Yesterday i was just working in editor and this blue 4-way arrow thing came up… I clicked on it and you can move it around, If you click play after you move it around it ends up being where your character spawns to. It also loads the levels with out the black edges in offline.
[php]if (created) {
loadmap myoverworld.gmap;
}[/php]
^put that in an NPC in a level you will always visit first(you have to load the gmap before the overworld will be linked correctly). Though many people say to make a loadgmaps.txt file in your graal folder and write a list of the gmaps for them to load properly… but I’ve never done it like that and I’m not even sure the older versions support this way.
The gmap file itself is generated with the overworld if you used the level generator, and you can open it in wordpad to edit it and give it a map image and such by putting in:
MAPIMG myoverworldmap.png
and such.
[QUOTE=Beholder;14450]Also be warned that Gmap support is not completely there, Using “setmap image,map.txt,x,y;” is the safer and more stable choice for now.[/QUOTE]
With Graal 2.x or with the gserver?
Gmaps work mainly by loading the surrounding levels of the player, and otherwise work a lot like setmap except it treats the overworld, coordinates-wise, as one level(playersx/y can exceed 64, as per the gmap). Only problem is default chests, baddies, arrows(will loop around in the level), bombs, explosions and such don’t really work on gmaps.
If they function like that, they should be working as intended(the editor fully implements gmaps as well, which is a good comparison for testing). The only thing is, because of the way gmap is treated as one level, there are certain situations that may appear to be bugs but is just how it works and requires a work around(for example, to place a bomb(from a non-local NPC[weapon]) in the level proper, you must do something like putbomb 1,playerx+int(playerx/64)*64,playery+int(playery/64)*64;)
They could be working right now, I just haven’t bothered testing to be honest. The “serverside links” thing probably wasn’t implimented till v4 anyway.
And unsure if warping to a “gmap” (warpto something.gmap 130 527) has the top left level as grass (loading the gmap file itself instead of the level), or as a-1 still.
[QUOTE=Nalin;14459]
gmaps SHOULD work. Mostly. The only person who has bothered to test them is myself, and I am not quite sure how they should exactly work. So if you want to test them and tell me what should be changed, go right ahead.
Also, keep in mind that gmaps disable certain client-side features.
[/QUOTE]
Hey i’ve tested them too, terrain is fucked but flat gmaps seem to work alright.