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 09-08-2004, 11:05 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Script Length

I know NPCWs can only go up to 28k but if you use join you can actually make them longer with out making the text with in the NPCW longer.

But when I was scripting I noticed that when I added a bit more text the stuff on the bottom just stopped working...
Is there a point when the server just stops reading the script?
__________________
Do it with a DON!
Reply With Quote
  #2  
Old 09-08-2004, 11:10 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
the class stoped working or the weapon?
__________________

Reply With Quote
  #3  
Old 09-08-2004, 11:18 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Both...
It just stops reading after a certian point I guess o_o
I tryed putting the part that didn't work in the weapon and it started working but then the the next few lines that were then moved to the bottom of the list in the class (because the old ones at the bottom I moved to the npcw) stopped working (because join puts the class at the bottom of the script)
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 09-08-2004, 11:26 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
check to make sure you closed off all your code blocks ( } ) and if it still doesnt work just triggeraction into another weapon thats hidden ( i know this is a stupid thing to do but whatever works right =D)
__________________

Reply With Quote
  #5  
Old 09-08-2004, 11:38 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
no everything matches (I didn't touch anything on the part that doesn't work and I tryed doing a simple setplayerprop #c,rar; in the begining of the function and it doesn't work but I also tryed that before the fuction call and after it and it works both times there )
I could do that but I would rather not ;P
I was just seeing if my assumtion was right.
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 09-11-2004, 02:56 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
The clientside part of joined classes is added to the end of the clientside part of the weapon before sending it to the client, so you cannot exceed the 28k limit with that.
We were working on changing that, those things are improved in the new scripting engine, scripts can be larger, and class scripts are sent separately. Until it is released you will need to split your weapon script into several smaller scripts though.
Reply With Quote
  #7  
Old 09-11-2004, 05:37 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
I think stefan should awnser my downloadsize thread!!!!!!!!!!!! <3
__________________

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 09:24 AM.


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