Recent posts by Draco18s on Kongregate

Flag Post

Topic: Game Programming / pls help

File → New

 
Flag Post

Topic: Game Programming / Using classes in AS3

As an aside, one of the best things I’ve done that’s gotten me into a good programming know-how, was modding Minecraft.

You can’t global-scope stuff, you can’t access static properties everywhere, and you’re not allowed to call rendering functions on the server. It will crash. It makes good and proper use of Interfaces and Abstract classes, and while it’s not explicit, blocks and items are effectively singletons.

 
Flag Post

Topic: Game Programming / As2 Loading percentage help

Originally posted by DannyDaNinja:

Classic programming forum banter

Fixed that for you.
The same thing happens on the Minecraft Forge forums.
“I get crash! Have my entire project! ”
“Great, post the cash log.”
or
“I get crash! Here’s the crash log.”
“Great, post your code.”

 
Flag Post

Topic: Game Programming / As2 Loading percentage help

Define “not working.”

 
Flag Post

Topic: Game Programming / Looking for life advices.

Get out now while you still have options.
*Cough*
Go get Unity3D and start working in that. It’s a good all-around Engine, it’s free, and knowing how to use it will be a big help. You can code in C# (related to C++) and has great documentation and a thriving forum community.

 
Flag Post

Topic: Game Programming / Selling Source Code

Man, no one’s going to pay 10 Euro for that. I’ve sold more complete stuff on Unity’s asset store for $2.

 
Flag Post

Topic: Game Programming / As2 Loading percentage help

Let me google that for you.

 
Flag Post

Topic: Game Programming / AS3 help - removeChild of a different class

Originally posted by a3lex33:

I use ‘Global’ class for this kind of tasks. This approach is hated by this forum and is ‘bad’ and stuff, but still:

If you didn’t call it Global and instead made it your document class (which is a singleton!), people wouldn’t complain so much.

public class MainClass {
    public static MainClass instance;
    public MainClass() {
        instance = this;
    }
}
 
Flag Post

Topic: Game Programming / as3: how do i write this? (part 2)

You can also combine them. Get the object from the dictionary, if its not there, get it by reflection and save it to the dictionary.

 
Flag Post

Topic: Game Programming / Does Kongregate allow scriptaccess to my domain?

I don’t think that has any effect on what hope trying to do. I did a remote file load before and didn’t have to jiggle that lever. 1

 
Flag Post

Topic: Game Programming / Does Kongregate allow scriptaccess to my domain?

It’s not Kongregate that allows access out. Its the remote site allowing access in. Your site needs to whitelist Kongregate (and the crossdomain.xml file must be at the site’s root directory, eg. www.whatever.com/crossdomain.xml)

 
Flag Post

Topic: Game Programming / Can adding RAM cause driver issues?

Originally posted by EndlessSporadic:

This means that if your original RAM was 2 4GB sticks, you are NOT allowed to add 1 8GB stick. If you have two 8GB sticks, they go in slots 2 and 4 in the motherboard (or 1 and 3), not slots 1 and 2.

Just to jump in:
You can put them in whatever slots you want. But there’s an ideal configuration that lets the hardware run optimally. Mismatching sizes and speeds won’t break anything, but your computer will probably treat the mismatched sticks as being a smaller size than they actually are.

A coworker of mine had some RAM go bad and didn’t have a paired stick to replace. So he ended up with 4/4/8 (which should total to 16 GB using normal math) but the computer treated it as 12 GB. Still better than what he started with (8GB), but it was being used suboptimally.

That said, it is possible that something weird happened as a result of mismatched frequency, size, or channels. I’m not an expert, so I can’t say what your experiencing is a result of. My guess was that something unrelated to the RAM happened while you were fiddling about. You could have knocked a SATA cable loose, you might’ve jiggled the video card, causing a short, you might’ve static-shocked something.

(Now there’s a TV show I forgot about)

 
Flag Post

Topic: Game Programming / AS3 - Ensuring Shared Objects still exist

Yes

 
Flag Post

Topic: Game Design / Bring an old game up to date

Anyway, I’m am hoping someone could be persuaded to contact this guy to get the rights to his games(s) — he made more than one but “A Mess O’ Trouble” was my favorite — and update them to be played online.

Yeah no. No one’s going to do that for you.

Closest I’ve come to agreeing to something like that was for a friend, who’d tried contacting the original developers himself (no response) and was going to try and code it himself if he did get the rights.

 
Flag Post

Topic: Game Programming / Unity and blender, simple quick texturing question

Originally posted by Narinik:

If you create the materials in blender and export to fbx there is an option in the unity importer to also import materials

You have to fix them most of the time though. It’ll create the material and the object will have the material on it, it might even have the right texture. It will, however, bet a Default Diffuse shader.

 
Flag Post

Topic: Game Programming / Cookie Question?

I think it’s based on the document. I.e. the URL the HTML page lives at gets one cookie.

 
Flag Post

Topic: Game Programming / How do you make a cookie-based save?

To write:

document.cookie = "key=value;key2=value2";

To read:

function getCookie(cname) {
    var name = cname + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1);
        if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
    }
    return "";
}
 
Flag Post

Topic: Game Design / Does my concept suck?

Reminds me of Roundabout.

 
Flag Post

Topic: Game Programming / Unity and blender, simple quick texturing question

He may have previously imported and set up the materials, so when he did it during recording it was already done.

 
Flag Post

Topic: Game Programming / [HTML5] Game refuse to update

Originally posted by SadCatStudio:

TL;DR: If you are not a Kongregate Admin then you can probably just ignore this thread.

http://www.kongregate.com/forums/7-technical-support
support@kongregate.com

 
Flag Post

Topic: Game Programming / Java Multiplayer RPG.

Kongregate, absolutely positively, does not support Java applets out of the box.

It supports iFrame HTML, Flash, and Unity. You could probably get a Java applet to work via iFrame, but you would have to play around with it.

 
Flag Post

Topic: Game Programming / [HELPER] Post For All

Originally posted by AliNasrallah:

I’m trying to help people for free .

Game Programming forum → all the help anyone could want for free.

Having a single thread is the worst idea imaginable even if we didn’t already have an entire forum dedicated to it and a chat room.

 
Flag Post

Topic: Game Programming / AS3: Syntax error

if (level1data[j] – 1 !== 2 || level1data[j] – 1 !== 0) <— missing {

 
Flag Post

Topic: Game Programming / How to make a 3D game without C++ (HTML, no WebGL)

Originally posted by AMD_Paulius_J:

But I wonder how then binary code is processed, it still has to have some kind of logic, for example how would an IF statement look in binary? and who processes it? there still has to be some backend software that handles binary?

Have you built any kind of redstone contraption in Minecraft? That’s how binary processing works.

It’s why people can say, “I built a computer in Minecraft” because they did.
See also:
Domino Half-Adder
and
3 and 4 bit Domino Full Adder

 
Flag Post

Topic: Game Programming / How to make a 3D game without C++ (HTML, no WebGL)

Actually there’s several of those. Every processor architecture has its own. Assembler generally refers to the version for x86 computers. There’s also assembler for Mac (prior to the switch to Intel processors) and assembeler for x64.

And then there’s the raw binary. Even assembler has a compiler.