The Daily Click ::. Forums ::. Klik Coding Help ::. File storing
 


 

Posted By Message
This thread has been locked by an administrator

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
26th September, 2005 at 09:28:14 -

I am about to make a level editor and I want the maps to be stored in files. However, I don't like ini-files. Is there ways in MMF to store data in other type of files?

 
n/a

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
26th September, 2005 at 10:08:00 -

Arrays, you can store a lot of values.
http://www.create-games.com/article.asp?id=16 <--this might be a start.

 
thinking is like pong, it's easy, but you miss sometimes.

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
26th September, 2005 at 10:36:56 -

it seems so ugly though. I would like to create an XML-file or maybe make my own standard. Doing the way the article says would be a little bit overwhelming for pixel-sized tiles editorbut maybe if I make bigger tiles. Another drawback is that there is no good way to place two things at the same position.

 
n/a

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
26th September, 2005 at 10:59:25 -

The Z axis? I'm not entirely sure what you are talking about though, sorry.

Edit: there is an XML parsar, I'm not entirely sure what it does though.
http://click.spatang.com/ext/view.php?ext=256

Image Edited by the Author.

 
thinking is like pong, it's easy, but you miss sometimes.

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
26th September, 2005 at 13:21:45 -

ah, so there is 3-dimensional arrays. That may work then. Thank you.


at first I was thinking about storing my level like this in a xml-file.

<OBJECT type="1" xpos="100" ypos="200"\>
<OBJECT type="1" xpos="120" ypos="200"\>
<OBJECT type="3" xpos="10" ypos="341"\>




Image Edited by the Author.

 
n/a

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
26th September, 2005 at 16:05:40 -

You could always use the Binary Object and store your level as a stream of data under your own custom format.
You just have to organize it really well.

 
Go Moon!

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
26th September, 2005 at 16:20:27 -

"It seems so ugly though"

Yeaaah....well, your avatar is ugly. *crosses arms and storms away*

 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

Mr Icekirby



Registered
  18/12/2003
Points
  846
26th September, 2005 at 21:25:59 -

your not one to talk phizzy, you used to be all "spinny mullety" as i remember

 
Mr Icekirby says so!
OBEY ME!

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
26th September, 2005 at 22:30:11 -

Dave Matthew - Your XML style of storing is hardly differant to storing objects in an ini.

Your method:
<OBJECT type="1" xpos="100" ypos="200"\>
<OBJECT type="1" xpos="120" ypos="200"\>
<OBJECT type="3" xpos="10" ypos="341"\>

Ini Method:
[Object 1]
type=1
xpos=100
ypos=200

OR you could use an ini method and string parsing:
[Objects]
1="1;100;200"
2="1;120;200"
3="3;10;341"

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
27th September, 2005 at 04:24:10 -

you're right andy. I may go that way. Storing in an array seems not so good as probably only a tenth of all the elements will be populated

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th September, 2005 at 06:51:42 -

how do you load the tilesets? do they have to be inside the app? or can they be external?

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
27th September, 2005 at 08:34:40 -

...What? Tilesets?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th September, 2005 at 10:47:55 -

am i really not making sense , i deleted 2 topics cauese 2 days and not one post.
K let me explain what i mean so maybe somone can help me.

I want to load graphics using an array. do the graphics have to be inside the application or can they be external and loaded when required?, if they can then how is it done?

Image Edited by the Author.

 
n/a

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
27th September, 2005 at 18:40:22 -

I understood. I guess they have to be available already in the level. As active objects. And if they are to be used as obstacle platforms later on, you make a paste into background I guess. I hope that works with scrollings. I've got a bad feeling it didn't last time i tried.

I will use the ini probably, so that also can save attributes of objects. So if i place a moving platform on the screen I can store how fast it moves and directions and so on. It would be to much work to do that in an array I guess.

Or maybe I'll make some hybrid thing.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
27th September, 2005 at 19:31:05 -

k, i think paste to background works for scrolling, theres another one that doesnt, im not sure what option it is.

 
n/a
This thread has been locked by an administrator



 



Advertisement

Worth A Click