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

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 20:25:31 -

You probably should of made you own topic but anyway, no graphics do not have to be internal. I recently made an editor that uses 16x16 tiles in bmp format, all you do is load the pictures into an active picture and then paste them into the background.

 
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

Mr Icekirby



Registered
  18/12/2003
Points
  846
27th September, 2005 at 21:24:16 -

@ phizzy: i wasn't the one who accused you of it, someone else was

@ dave: once you have a system for loading the images, you could reuse it for other editors, so it may be useful to spend some time on it

 
Mr Icekirby says so!
OBEY ME!

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
28th September, 2005 at 05:04:16 -

phizzy, could you please stop talking about irrelevant shit?

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

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

whoever's topic this is im sorry. i posted 2 topics about this and they got ignored, @Assult Andy: could you give me an example of how to load external graphics, i dont know what an archive image is. and it would be really really useful atm im using 100's of actives and thats not a good idea.

 
n/a

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
28th September, 2005 at 08:32:07 -

yeah I'd like to know that too.

phizzy: rather being an irrelevant shit than being a jerk like you

 
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
28th September, 2005 at 08:48:45 -

Okay what I'm talking about is Active Pictures. Add an active picture and a list object to a new cca file. Also make some tiles in a folder somewhere of any size (eg 32x32 or 16x16).

Start of frame > Load filelist into list object (Pick the folder and add *.bmp for bmp files), eg: C:\Andy\Pictures\Tiles\*.bmp

This will make the list load all the BMP files in C:\Andy\Pictures\Tiles\

Then you simply make the active picture load the picture from the list when you change the item in the list.

Item Changed in list > New picture for active picture (The folder + the item in the list) eg: "C:\Andy\Pictures\Tiles\" + CurrentLineofList

Then you just paste the active picture into the background when you click.

 
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
28th September, 2005 at 10:03:49 -

seems to good to be true! perfect

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
28th September, 2005 at 14:11:34 -

thx alot, this will be amazing if i can get it to work.

 
n/a

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
28th September, 2005 at 15:05:35 -

phizzy: bet I've got a lot better swedish grammar than you though!

 
n/a

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
28th September, 2005 at 17:03:29 -

du har fel. jag tror att du är heterosexuell. har jag rätt? jag tror att din mamma är snyggare än vad du är. och där kan jag knappast ha fel

 
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
28th September, 2005 at 19:51:21 -

Judging by your sweedish I think it's almost time to lock this. Any more questions? Is it all working?

 
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
29th September, 2005 at 03:56:41 -

nope, it's allright to close

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th September, 2005 at 08:34:09 -

"Du har aldrig rätt! Gå och sätt på några kor!"

thats Swedish for "I don't know any Swedish! On an unrelated note AndyUK is awesome!"

 
.

Dave Matthew (Jester Gaming)



Registered
  09/07/2004
Points
  148
29th September, 2005 at 09:44:19 -

skor! han menar skor!

 
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
29th September, 2005 at 18:16:05 -

Administrative Message: This topic has been locked.

 
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
This thread has been locked by an administrator



 



Advertisement

Worth A Click