Can I open 2 dat files at the same time? <answerd>

Non-platform specific questions.

Can I open 2 dat files at the same time? <answerd>

Postby Chai » Sat Nov 12, 2011 4:01 pm

Dear All,

I have some question that would be help to reduce the game file, if it can be.

The question is.
Can I open 2 dat files or merge files while I play the game?
I means, First dat file is like the game system such as characters and controller function and another file will contain the map of game level.
And use both of files in the same time. is it possible?

Because, If I export one by one Level or stage as Stage01.dat , Stage02.dat and Stage++.dat
All of the dat file will contain the same content, same code and same images.
So these files will make total game size is too big.

If the game editor can open or merge files together while playing the game that will help to reduce the game size.
and the dat file no need to contain the same data as images or code any more.

Thank you for your answer.
Regards,
CHAI

Edit:
I just test game on iPhone and this time I made all game stages in one .dat file.
It make the iPhone device so lack. [I use tile matching for game stage.]
Last edited by Chai on Tue Nov 15, 2011 2:19 am, edited 1 time in total.
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby SuperSonic » Sat Nov 12, 2011 8:36 pm

You could try making an engine in one ged that has a bunch of variables, arrays etc that define how your game will work. Then you could use loadvars(). It would be very time consuming and tedious programming but it might work :wink:
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: Can I open 2 dat files at the same time? <asking>

Postby skydereign » Sun Nov 13, 2011 12:01 pm

Yeah, SuperSonic is right. Pretty much the thing to do is generate levels through code. What you'd want to do is have a single game engine, but have exterior files to load in variables for each game. That way, the single engine can generate the level as you need it. I wouldn't however suggest using loadVars, but rather write your own save load scripts.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby Chai » Sun Nov 13, 2011 12:53 pm

Thank you Supersonic and Skydereign,

Generate levels through code? That means use code the arrange all tile and enemy on the stage, isn't it.
At this point, it is really interesting.

Do you have any example file for arrange stage by code?
Because I really no idea about this. Usually I arrange stage and enemy in GE directly.

Thanks.

p.s. Can I use the tile mapping editor software for this? Tile map editor
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby lcl » Sun Nov 13, 2011 1:22 pm

You may want to look at this: viewtopic.php?f=6&t=6011
:)

- lcl -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby SuperSonic » Sun Nov 13, 2011 2:47 pm

Chai wrote:Thank you Supersonic

No problem :)
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: Can I open 2 dat files at the same time? <asking>

Postby Chai » Sun Nov 13, 2011 4:33 pm

Dear lcl,
Thank you for your help. I will looking though your code and try to play around with it.
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby lcl » Sun Nov 13, 2011 9:02 pm

Chai wrote:Dear lcl,
Thank you for your help. I will looking though your code and try to play around with it.

Glad you find it useful. But it's not mine, it's made by Eliminator.

I can help you understand it if needed. :D

- lcl -
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Can I open 2 dat files at the same time? <asking>

Postby Chai » Mon Nov 14, 2011 5:06 am

I found this game for tile map with code. Gameover land by pyrometal....link
but the code quite complicate than tile mapping by Eliminator.
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest