Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Gmap to Text File (https://forums.graalonline.com/forums/showthread.php?t=55831)

Doahh_p2p 10-27-2004 09:51 PM

Gmap to Text File
 
I have heard some probelms about Gmaps and this is how to elimniate a gmap on your server. It does this by making a text file of all the levels (Like you used to have to do) but you use the Gmap to make it easier.

How to change a Gmap into a text map:

1) Open the Gmap file in word or something of the sort.
2) There is a section under Levelsstart (or something) where all of the levels are. Copy that and paste it into a new document and call it mapname.txt.
(For server owners Online)
3) After you do that make a weapon called -Map. In that file put
NPC Code:

//#CLIENTSIDE
if (created) {
setmap mapimage.png,mapfile.txt,(leave both of these blank),;
}

//Put this in the NPC server

if (actionplayeronline) {
addweapon -Map;
}


4) Put the text file in the folder called LEVELS
5) Enjoy!

OFFLINE!!
3) Put the text File in Graal2001 no sub folders!
4) Put this code in the starting level:
NPC Code:

if (created) {
setmap mapimage.png,mapfile.txt,(leave both of these blank),;
}


5) Enjoy!

Now you should all know how to eliminate Gmaps! So no more no bombs or bows problems BUT there is one thing:
If you shoot an arrow it will go all the way across untill it hits something!

xAndrewx 10-27-2004 09:54 PM

Ugh gmaps are alot better... lol

Doahh_p2p 10-27-2004 11:33 PM

Quote:

Originally Posted by xAndrewx
Ugh gmaps are alot better... lol

Don't just say that give people reasons

Crono 10-27-2004 11:53 PM

Gmaps are good. They treate the whole map as one level so when you can see other players in between levels. On the old maps you'd see the players lined up at the beginning of the level. But on a gmap they already load.

Gmaps are also fun because of how easy they are to make. :D! for me anyway

Doahh_p2p 10-28-2004 01:01 AM

Quote:

Originally Posted by Gerami
On the old maps you'd see the players lined up at the beginning of the levely

No they don't look at gta and UN they are all over the place XD

dysangelium 10-28-2004 07:23 AM

Quote:

Originally Posted by Doahh_p2p
I have heard alot of probelms about Gmaps and this is how to elimniate a gmap on your server. It does this by making a text file of all the levels (Like you used to haveto do) but you use the Gmap to make it easier.

I'd be interested in hearing what these problems with Gmaps are. I can't imagine how any problem you name could possibly outweigh it's benefits.

Also, I believe gmaps only load the levels directly around you, not the entire map at once.

xAndrewx 10-28-2004 10:16 AM

They load the levels 3x3 around you. Era just got a gmap and it's the best thing to come to era, we can use skateboards/helicopters/moterbikes/hover pads...
so yea, thats my reason. Your reason for not having gmaps are?

Crono 10-28-2004 03:38 PM

Quote:

Originally Posted by Doahh_p2p
No they don't look at gta and UN they are all over the place XD

On UN, the worldmap shows them like that but at the actual levels, before entering the edge of it you'll see some players lined up on it. That and you cant see what they're doing.

Admins 10-28-2004 04:47 PM

For seeing players moving through the surrounding levels on the old maps you and the other players need to have UDP enabled. For completely classic servers it is the only available map type, but it is only clientside and doesn't display npcs or so.
The only possible problem with gmaps is that it can lag if you don't setup it correctly. You need to keep care that the npcs don't contain a lot of client-side script (which slows down the level entering) and don't do too many timeouts in clientside scripts (which would lag all the time because the scripts of all npcs in the 3x3 levels surrounding you are running). This is not really a gmap-problem, but it is making things worse if you already have slow/laggy scripts.
Advantage is that crossing a level border doesn't really lag anymore, npcs can move to other map parts too. That is making level editing simplier, and you can do things like trains, cars, boats and other ways of transportations. Also bullets (shoot command) are going more far and don't stop at the level border.

Doahh_p2p 10-29-2004 04:27 AM

ahh ok (Must be i just can't set it up right) Is it just me or do signs not work also?

dysangelium 10-29-2004 05:18 AM

Quote:

Originally Posted by Doahh_p2p
ahh ok (Must be i just can't set it up right) Is it just me or do signs not work also?

Sign's don't work. Just use a script instead.

xAndrewx 10-29-2004 10:21 AM

ya setshape; if you do the sign way it goes to every level :P


All times are GMT +2. The time now is 02:04 AM.

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