Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Information (https://forums.graalonline.com/forums/forumdisplay.php?f=136)
-   -   Level editing guidelines (https://forums.graalonline.com/forums/showthread.php?t=72107)

Admins 02-10-2007 07:33 PM

Level editing guidelines
 
For making maps for Zone you need to do following:

- download the editor and level generator (on serverlist click on Start, select Install packages, then download the development package)
- generate a gmap using the level generator (this might not be very simple but any gmap fits, just needs correct level links)
- add the gmap name to the file loadgmaps.txt in your Graal folder (create the file if it doesn't exist)
- edit levels/tiledefs/tiledefsOffline.txt and copy everything from levels/tiledefs/tiledefsZone.txt, adding your new gmap name replacing one of the existing gmaps, e.g. to make a map using the alpha tileset (cut the .gmap from the name):

tileset_zone-blank.png,MYGMAP,1,0,0
tileset_zone-floor1.png,MYGMAP,4,1024,0
tileset_zone-wall1up.png,MYGMAP,4,1472,256
tileset_zone-wall1top.png,MYGMAP,4,1536,256
tileset_zone-wall2up.png,MYGMAP,4,1504,304
tileset_zone-earth_gray.png,MYGMAP,4,1024,32
zone_tiles1.png,MYGMAP,4,768,48
zone_tiles2_gray.png,MYGMAP,4,1664,256
zone_tiles3.png,MYGMAP,4,1504,352
zone_tiles4-tent.png,MYGMAP,4,1504,448
zone_tiles5-paths_gray.png,MYGMAP,4,768,128
zone_tiles6-sulfpits_gray.png,MYGMAP,4,1664,352

pooper200000 02-10-2007 07:34 PM

Quote:

Originally Posted by Stefan (Post 1275862)
For making maps for Zone you need to do following:

- download the editor and level generator (on serverlist click on Start, select Install packages, then download the development package)
- generate a gmap using the level generator (this might not be very simple but any gmap fits, just needs correct level links)
- add the gmap name to the file loadgmaps.txt in your Graal folder (create the file if it doesn't exist)
- edit levels/tiledefs/tiledefsOffline.txt and copy everything from levels/tiledefs/tiledefsZone.txt, adding your new gmap name replacing one of the existing gmaps, e.g. to make a map using the alpha tileset (cut the .gmap from the name):

tileset_zone-blank.png,MYGMAP,1,0,0
tileset_zone-floor1.png,MYGMAP,4,1024,0
tileset_zone-wall1up.png,MYGMAP,4,1472,256
tileset_zone-wall1top.png,MYGMAP,4,1536,256
tileset_zone-wall2up.png,MYGMAP,4,1504,304
tileset_zone-earth_gray.png,MYGMAP,4,1024,32
zone_tiles1.png,MYGMAP,4,768,48
zone_tiles2_gray.png,MYGMAP,4,1664,256
zone_tiles3.png,MYGMAP,4,1504,352
zone_tiles4-tent.png,MYGMAP,4,1504,448
zone_tiles5-paths_gray.png,MYGMAP,4,768,128
zone_tiles6-sulfpits_gray.png,MYGMAP,4,1664,352

what does a correctly made zone_wars tile look like? The grass ones?? how do you know they are correct?

Crow 02-10-2007 07:41 PM

Quote:

Originally Posted by Stefan (Post 1275862)
For making maps for Zone you need to do following:

- download the editor and level generator (on serverlist click on Start, select Install packages, then download the development package)
- generate a gmap using the level generator (this might not be very simple but any gmap fits, just needs correct level links)
- add the gmap name to the file loadgmaps.txt in your Graal folder (create the file if it doesn't exist)
- edit levels/tiledefs/tiledefsOffline.txt and copy everything from levels/tiledefs/tiledefsZone.txt, adding your new gmap name replacing one of the existing gmaps, e.g. to make a map using the alpha tileset (cut the .gmap from the name):

tileset_zone-blank.png,MYGMAP,1,0,0
tileset_zone-floor1.png,MYGMAP,4,1024,0
tileset_zone-wall1up.png,MYGMAP,4,1472,256
tileset_zone-wall1top.png,MYGMAP,4,1536,256
tileset_zone-wall2up.png,MYGMAP,4,1504,304
tileset_zone-earth_gray.png,MYGMAP,4,1024,32
zone_tiles1.png,MYGMAP,4,768,48
zone_tiles2_gray.png,MYGMAP,4,1664,256
zone_tiles3.png,MYGMAP,4,1504,352
zone_tiles4-tent.png,MYGMAP,4,1504,448
zone_tiles5-paths_gray.png,MYGMAP,4,768,128
zone_tiles6-sulfpits_gray.png,MYGMAP,4,1664,352

Why did you post this?O.o

pooper200000 02-10-2007 08:04 PM

Quote:

Originally Posted by Crow (Post 1275866)
Why did you post this?O.o

I asked him a question on gk about it. I knew how to do it and he still hasn't answered it :(

Admins 02-10-2007 08:29 PM

I don't understand?

pooper200000 02-10-2007 08:30 PM

Quote:

Originally Posted by Stefan (Post 1275882)
I don't understand?

Ok you have the little box of tiles. How many do you take to make it look like one long 4by whatever row. How is it not lined almost?? Then what does it look like. If you need more clarifacation I can try.

Huwajux 02-10-2007 10:39 PM

Quote:

Originally Posted by pooper200000 (Post 1275885)
Ok you have the little box of tiles. How many do you take to make it look like one long 4by whatever row. How is it not lined almost?? Then what does it look like. If you need more clarifacation I can try.

:confused: ??? :confused:

Tracker180 02-10-2007 10:40 PM

i would like sumthing to be like a big field of a certain tileset and then to the right a box with pictures of all the different tiles and u just have to click it and then hit the space u want the tile then it would be really easy

pooper200000 02-11-2007 02:29 AM

Quote:

Originally Posted by Huwajux (Post 1275915)
:confused: ??? :confused:

ok. GO to the right in zone tiles. you take all the stuff so you have a long box of grass that is not very tall. How do you correctly make that as a tile with which to make an entire map?

Quote:

Originally Posted by Tracker180 (Post 1275918)
i would like sumthing to be like a big field of a certain tileset and then to the right a box with pictures of all the different tiles and u just have to click it and then hit the space u want the tile then it would be really easy

that would be great!

Tracker180 02-11-2007 02:43 AM

That's what i'm saying! :pluffy:

Aachen 02-11-2007 02:44 AM

1 Attachment(s)
Here.

Notice how it's made. All GMAPs have to start with "GRMAP001;" followed by the Width of the GMAP (in levels), then the height. Following is "LEVELNAMES," then the names of all the levels, in the order that you want them to appear in the gmap. Meaning that The very first level you list (going left to right) will be the top-left corner level in the actual GMAP. The very last level you list will be the bottom-right level of the GMAP.

Also, make sure that you have the levels spelled correctly, or else you'll screw up the levels when you go to edit them after loading the gmap.

After all of your levels are listed, put "LEVELNAMESEND" to finish the gmap.

To load the gmap in the editor, you need to create an NPC with "load map mapname" in the script (this is using GS1, and I only bothered to learn very little of GS1, so don't bite my head off). Something like:
NPC Code:
// NPC made by Cor
if (playerenters) {
loadmap gmapname
}



NOTE: When specifying the gmap name, do not use the ".gmap" extension in the script, or it will not work.

The NPC should be placed in the first level of the GMAP the player would enter; or, you could place a similar NPC in every level of the gmap.

pooper200000 02-11-2007 03:17 AM

Quote:

Originally Posted by Aachen (Post 1276029)
Personally, I think making your own GMAP without the Level Editor is easier. I haven't made one in a while, but I know they work. As soon as Gmail stops being stupid, I'll post one of my old ones :[

ok. when you do can I jack it up to what I had in mind for a map idea? That would be very nice.

Admins 02-11-2007 03:45 AM

You use the level generator to generate the gmap and levels (nw), each level is 64x64 pixels so you need a 256x256 pixel bitmap for generating a 4x4 map. The image can be completely green color.
After generating it you open the levels with the level editor and put the right tiles. You can drag&drop the tiles and right-click on the level to fill it with the selected tiles (can be zone-grass or whatever) if they are all the same tiles, although I am not sure if the level generator makes "clean" levels with just one single tile. If there are problems then just do the normal way of filling it with tiles by right-click copying.

Aachen 02-11-2007 04:00 AM

FYI, you should probably only use my method if you can't do what Stefan suggests.

blazeingonix 07-26-2007 08:45 PM

This is to do zone maps?


All times are GMT +2. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.