Page 2 of 2
Re: Newie Problem : Various levels in same file

Posted:
Thu Mar 08, 2012 8:26 pm
by MrJolteon
SuperSonic wrote:MrJolteon wrote:There's no need to post the same post three times in a row...
That is usually an accident. It happened to me once

Never happened to me
Re: Newie Problem : Various levels in same file

Posted:
Thu Mar 08, 2012 9:21 pm
by SuperSonic
MrJolteon wrote:Never happened to me
Yeah, it's kinda rare

Re: Newie Problem : Various levels in same file

Posted:
Thu Mar 08, 2012 10:15 pm
by ResourceDragon
The way I do it is I make the levels in different files, and export them all to .exe's. Then, I go in and change Intro.exe to something like Intro.int, Level1.exe to level1.lvl.
As long as it's set up in the game as "LoadGame("Intro.int");" or "LoadGame("level1.lvl")", it will load it just fine. Also, unless people know to change the extension name back to .exe, windows won't recognize it. I DON'T recommend changing the extension to .DAT, because it is highly over used and there are tutorials about .dat's on how to easily figure out whether it is an executable or not.
You can change the extension to your own custom extensions, as long as you set it up right in the LoadGame.
Re: Newie Problem : Various levels in same file

Posted:
Thu Mar 08, 2012 10:31 pm
by skydereign
Why do that though? Exporting to .dat will prevent people from playing your game files, unless loaded through gE. Of course if you just don't like the .dat extension (as a file extension name), then you can do the same renaming of the .dat files, but there is little point in not using the data export option of gE. The executable and dat exports are actually different things. The exe allows execution of the game as it includes the gE engine, while the .dat doesn't, so it can only be loaded by a game running the gE engine.
Re: Newie Problem : Various levels in same file

Posted:
Fri Mar 09, 2012 12:26 am
by ResourceDragon
But you can change the "level.dat" name to "level.exe" and run it as an executable. .dat's are notorious for being either executables, text files, or image files.
Re: Newie Problem : Various levels in same file

Posted:
Fri Mar 09, 2012 12:59 am
by skydereign
But you can't do that with a .dat file produced by gE. To be able to run a gE dat file, you need to also have the actual engine component, which windows doesn't just have. So if you export a .dat file from gE (it's the choice with iphone and ipad in it) and rename it to .exe, you can't run it. You can only run it through a LoadGame, even if you call it .exe. That's why if you export as a .dat file, it's size is smaller than if you export as an exe.
Re: Newie Problem : Various levels in same file

Posted:
Fri Mar 09, 2012 8:36 am
by AcisAce
It was an accident...
the message didnt load on time and i clicked the submit button twice
Re: Newie Problem : Various levels in same file

Posted:
Fri Mar 09, 2012 4:20 pm
by Hblade
Dont worry AcrisAce, it happens

Re: Newie Problem : Various levels in same file

Posted:
Fri Mar 09, 2012 6:56 pm
by ResourceDragon
Oh, ok. I see sky. I thought you were talking about changing a windows exe extension from something like "game.exe" to "game.dat".
Sorry, my fault.