![]() |
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? |
the class stoped working or the weapon?
|
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 x_x (because join puts the class at the bottom of the script) |
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)
|
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 x_x)
I could do that but I would rather not ;P I was just seeing if my assumtion was right. |
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. |
I think stefan should awnser my downloadsize thread!!!!!!!!!!!! <3
|
| All times are GMT +2. The time now is 12:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.