Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-19-2005, 06:01 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Map Not working?

Where using the GS1 Commands everything is gs1 we have the setmap and setminimap commands in 1 weapon and in the control npc and it still dosn't work. The image name and text file is right.
NPC Code:
setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;

Can anyone help me here?
Thanks!

If you want the full script:
NPC Code:
//#CLIENTSIDE
if(created||playerenters){
letters=sparitoria-letters.gif;
map=sp_bigmap.gif,sp_bigmap.txt,0,0;
minimap=sp_minimap.gif,sp_bigmap.txt,0,0;

__________________
Last Manager of Shaded Legend
Reply With Quote
  #2  
Old 12-19-2005, 06:07 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
um.. o__o

setmap, setminimap, changeletters are commands, not variables.

I believe you are thinking of the serveroption map=.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 12-19-2005, 06:19 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Quote:
Originally Posted by ApothiX
um.. o__o

setmap, setminimap, changeletters are commands, not variables.

I believe you are thinking of the serveroption map=.
Somone must of been messing with it.

In other words the script should be.
NPC Code:
//#CLIENTSIDE
if(created||playerenters){
setletters=sparitoria-letters.gif;
setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;



That is what should be there right?
__________________
Last Manager of Shaded Legend
Reply With Quote
  #4  
Old 12-19-2005, 06:48 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Quote:
Originally Posted by CujoDaMan
<snip>
That is what should be there right?
PHP Code:
setletters("sparitoria-letters.gif");
setmap("sp_bigmap.gif""sp_bigmap.txt"00); 
etc.
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.
Reply With Quote
  #5  
Old 12-19-2005, 07:26 PM
Grappler Grappler is offline
Registered User
Join Date: Feb 2005
Posts: 43
Grappler is on a distinguished road
So the truth comes out, Cujo...

Anyway,

NPC Code:

setmap=sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap=sp_minimap.gif,sp_bigmap.txt,0,0;



should be:

NPC Code:

setmap sp_bigmap.gif,sp_bigmap.txt,0,0;
setminimap sp_minimap.gif,sp_bigmap.txt,0,0;



Same goes for setletters.

Like ApothiX said, they're commands, not strings.

And the weapon needs a closing bracket, "}".



Edit because I don't have Gold:

NPC Code:

//#CLIENTSIDE
if(created||playerenters)
{
setletters sparitoria-letters.gif; //Command, not a variable.
setmap sp_bigmap.gif,sp_bigmap.txt,0,0; //Command, not a variable.
setminimap sp_minimap.gif,sp_bigmap.txt,0,0; //Command, not a variable.
} //Ending bracket



If that doesn't work, them something is wrong with either the .txt file or the .gif file.
Reply With Quote
  #6  
Old 12-19-2005, 07:26 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
That still didn't work

hmm.
__________________
Last Manager of Shaded Legend
Reply With Quote
  #7  
Old 12-19-2005, 07:52 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
I thought it was changeletters, not setletters? I could be wrong though
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 12-19-2005, 08:34 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Why not use a gmap?
__________________
Reply With Quote
  #9  
Old 12-20-2005, 01:42 AM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Quote:
Originally Posted by xAndrewx
Why not use a gmap?
Gmaps suck you gotta go around filling them in.
__________________
Last Manager of Shaded Legend
Reply With Quote
  #10  
Old 12-20-2005, 03:50 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
You could use the level generator to make a blank world (all flat plain grass) the size you want, then if you have a web server with perl or php, or c++ visual basic etc. you can write a program to read the .nw as text files, copying the tile definitions of the levels you already into the levelgenerator name levels, without changing the links. Then use the gmap that the levelgen program made.
I know this works becasuse I have done it.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #11  
Old 12-20-2005, 01:46 PM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
he doseint want that he wants to use his premade map that he did
__________________
account was being used by jigga.... sorry for what he has said in the past
Reply With Quote
  #12  
Old 12-20-2005, 03:20 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Converting normal maps to gmaps is not that hard. Also those map= and minimap= lines should go into the server options to automatically set it at login, although the script command are ok too.
Reply With Quote
  #13  
Old 12-20-2005, 09:54 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Quote:
Originally Posted by Stefan
Converting normal maps to gmaps is not that hard. Also those map= and minimap= lines should go into the server options to automatically set it at login, although the script command are ok too.
i have map and mini map in server options i even removed the script from the server and it still didn't work everything is right i copyed the names of images and text file to the server options and still didn't work.
__________________
Last Manager of Shaded Legend
Reply With Quote
  #14  
Old 12-21-2005, 09:25 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by CujoDaMan
i have map and mini map in server options i even removed the script from the server and it still didn't work everything is right i copyed the names of images and text file to the server options and still didn't work.
Make sure the map and minimap images are uploaded onto your server in some directory that is specified in your folder config.

Other than that, I'm thinking it must be a problem with your map text file, perhaps you could paste a portion of it for us to see?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #15  
Old 12-23-2005, 04:25 PM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Quote:
Originally Posted by ApothiX
perhaps you could paste a portion of it for us to see?
Okay
NPC Code:
"sparitoria_aa01.nw","sparitoria_ab01.nw","sparito  ria_ac01.nw","sparitoria_ad01.nw","sparitoria_ae01  .nw","sparitoria_af01.nw","sparitoria_ag01.nw","sp  aritoria_ah01.nw","sparitoria_ai01.nw",".....


theres a few levels not the hole thing theres to much
__________________
Last Manager of Shaded Legend
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:45 AM.


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