gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > If i don't want use a tool for my game map.......

#1955 - Link - Sun Jan 26, 2003 7:22 pm

How i can make my map file?

#1960 - Splam - Sun Jan 26, 2003 7:52 pm

I would suggest using a tool as it'll save you a lot of hassle but as you've said you don't want to, try making an array and editing the values by hand.

map[32x32]={
0,1,2,3,4,1,1,2,3, etc

#1962 - Link - Sun Jan 26, 2003 8:01 pm

these numbers are the tiles id (for serching in the bitmap file)? But if i want obtain the value to understand if it is a wall or just a climb how can i join the array?

Here there are an image file that show you a .map file of a surce windows game, can u tell me if is the same used in the gba games? Can you tell me what are these columns?


Last edited by Link on Sun Jan 26, 2003 11:37 pm; edited 1 time in total

#1971 - Link - Sun Jan 26, 2003 10:47 pm

UP Please

#1974 - Splam - Sun Jan 26, 2003 10:58 pm

Please stop posting UP UP UP this isn't a very busy forum so you have to give people a chance to read your message and understand what you want to know b4 they reply..

btw, that link you posted needs registration..

#1976 - Link - Sun Jan 26, 2003 11:16 pm

OK Sorry, but i would understand much before.

I don't know how i can see you this image so i descrive it for you like i can:

it is a .map file and it is all so:

00000060 06 1E 1E 00 00 00 00 00 00 24 24 26 ..........................
00000070 00 00 00 00 00 00 00 00 00 00 24 00 ..........................
00000080 00 00 1E 00 00 1B 00 00 00 24 00 26 ..........................

What is? With What compiler i can make it? It is a file map of windows game, but it is the same for GBA game? Can you explain me the meaning?

#1977 - XeroxBoy - Mon Jan 27, 2003 12:16 am

The GBA (likely) uses a different map format as that Windows game does.

#1978 - pollier - Mon Jan 27, 2003 12:24 am

First thing--you're very probably not going to be able to directly stick those numbers into your game. What Windows game is this? The .map extension seems familiar; is it from Mappy or something? (I'm not very familiar with that particular tool)
You'll need to figure out how the map data is stored, and then you'll need to write a converter tool or convert it by hand. The hex listing you have doesn't really mean anything, and from the looks of it is not compatible with a text mode BG. If you know how many tiles wide this map is, and have a longer hex listing, you might be able to see the trend of map data.
If you want to 'join' the array I suggest you use a bin2o program and then index into like this:
Code:
value = maparray[y * mapwidth + x];

to test for if it is a wall or whatever.

Hope that helps!
_________________
(Works for me!)

#1981 - Sweex - Mon Jan 27, 2003 1:00 am

Just a guess... but isn't the .map file you're looking at some compiler output? Most compilers can output a .map file which will contain some readable information about the exe/elf. If this is the case, it has nothing to do with a graphical representation.

#1990 - Link - Mon Jan 27, 2003 11:02 am

Ok, what is a good map editor for GBA (can you give me the link)?

Can you give me a exemple .map file (of gba) so i can understand? Is it possible to open with a textpad?

However every .map file are only separate array. Is it?

#1993 - ampz - Mon Jan 27, 2003 12:47 pm

http://www.gbadev.org Tools section, for map editors.
http://www.thepernproject.com For newbie background map and tile information.

#2055 - Link - Tue Jan 28, 2003 12:58 pm

Finally i have upload the map file. you can see:

http://forum.gbadev.org/viewtopic.php?p=2054#2054