Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Graal GMAP NPCs (https://forums.graalonline.com/forums/showthread.php?t=79677)

[email protected] 05-10-2008 03:13 AM

Graal GMAP NPCs
 
I cant seem to see the script I out into a text generated GMAP... I made a notepad document with a gmap script:
GRMAP001
WIDTH 6
HEIGHT 6
LEVELNAMES
"fourstones_a1.nw","fourstones_b1.nw","fourstones_ c1.nw","fourstones_d1.nw","fourstones_e1.nw","four stones_f1.nw"
"fourstones_a2.nw","fourstones_b2.nw","fourstones_ c2.nw","fourstones_d2.nw","fourstones_e2.nw","four stones_f2.nw"
"fourstones_a3.nw","fourstones_b3.nw","fourstones_ c3.nw","fourstones_d3.nw","fourstones_e3.nw","four stones_f3.nw"
"fourstones_a4.nw","fourstones_b4.nw","fourstones_ c4.nw","fourstones_d4.nw","fourstones_e4.nw","four stones_f4.nw"
"fourstones_a5.nw","fourstones_b5.nw","fourstones_ c5.nw","fourstones_d5.nw","fourstones_e5.nw","four stones_f5.nw"
"fourstones_a6.nw","fourstones_b6.nw","fourstones_ c6.nw","fourstones_d6.nw","fourstones_e6.nw","four stones_f6.nw"
LEVELNAMESEND

...to fit my GMAP, they are all linked fine, signs work, doors work... However I can't seem to get my text scripts to work... I tried GS2 and GS1 both clientsided and it didn't show the text I scripted, heck it didn't show any at all. Yes my GMAP is correctly added the the server options list, without the ".gmap" extension (gmaps="fourstones")... Can anyone shed some light on my situation?

Rapidwolve24 05-10-2008 03:18 AM

I hated using gmaps for the first time, they worked 10% of the time the first time.
>_> god stefan

zokemon 05-10-2008 03:26 AM

You just seem to have trouble outputting the text to a .gmap file? Are you saving it to an array like:
PHP Code:

temp.lines = {};
lines.add("GRMAP001");
lines.add("WIDTH " temp.gmapwidth);
lines.add("HEIGHT " temp.gmapheight);
lines.add(etc); 

If are you doing it like that (which you should be) then first try to echo(lines[0]) and see if you get "GRMAP001". Then try lines.savelines("test.txt", 0) and see if the text file saves right. After that then just replace test.txt with your gmap file name :).

Also, if you are saving serverside, the (npcserver) needs rights to the file you are trying to access. If it doesn't have rights, the file will be saved in the "scriptfiles/" folder in the file browser.

cbk1994 05-10-2008 04:06 AM

I think he means that scripts placed in the GMAP do not work.

Did you try restarting the Gserver?

Have the owner say this in RC Chat: /global servercontrol restart

Deas_Voice 05-10-2008 11:13 AM

Quote:

Originally Posted by [email protected] (Post 1389959)
Yes my GMAP is correctly added the the server options list, without the ".gmap" extension (gmaps="fourstones")...

x_x
its gmaps=fourstones ( with no " " !)

Bell 05-10-2008 06:05 PM

Its fixed, he just updated the gmap and they worked fine.


All times are GMT +2. The time now is 12:34 AM.

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