Newie Problem : Various levels in same file

Non-platform specific questions.

Re: Newie Problem : Various levels in same file

Postby MrJolteon » Thu Mar 08, 2012 8:26 pm

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 :P

Never happened to me
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Newie Problem : Various levels in same file

Postby SuperSonic » Thu Mar 08, 2012 9:21 pm

MrJolteon wrote:Never happened to me

Yeah, it's kinda rare :roll:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Newie Problem : Various levels in same file

Postby ResourceDragon » Thu Mar 08, 2012 10:15 pm

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.
ResourceDragon
 
Posts: 39
Joined: Thu Feb 16, 2012 2:17 am
Score: 0 Give a positive score

Re: Newie Problem : Various levels in same file

Postby skydereign » Thu Mar 08, 2012 10:31 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Newie Problem : Various levels in same file

Postby ResourceDragon » Fri Mar 09, 2012 12:26 am

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.
ResourceDragon
 
Posts: 39
Joined: Thu Feb 16, 2012 2:17 am
Score: 0 Give a positive score

Re: Newie Problem : Various levels in same file

Postby skydereign » Fri Mar 09, 2012 12:59 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Newie Problem : Various levels in same file

Postby AcisAce » Fri Mar 09, 2012 8:36 am

It was an accident...
the message didnt load on time and i clicked the submit button twice
AcisAce
 
Posts: 4
Joined: Mon Mar 05, 2012 4:17 pm
Score: 0 Give a positive score

Re: Newie Problem : Various levels in same file

Postby Hblade » Fri Mar 09, 2012 4:20 pm

Dont worry AcrisAce, it happens :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Newie Problem : Various levels in same file

Postby ResourceDragon » Fri Mar 09, 2012 6:56 pm

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.
ResourceDragon
 
Posts: 39
Joined: Thu Feb 16, 2012 2:17 am
Score: 0 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest