![]() |
Raise the weapons limit!
Current weapon size limit = 50k
Suggested max size = 100k Reason: I just hit 50k on Classic. I can split it up into more stuff, but it becomes less efficient since I have to have 2 timeouts and recycle a lot of code. And that makes me a sad panda. Of course, if Stefan raised the limit to 100k, I could fit everything in the one system again and all would be peachy...^_^ Alternatively, if a weapon can call weaponname.function, that'd work too...I could go Object Oriented, have a zillion systems, one that does the timeout loop and calls the others if they're there...that way you could delete unnecessary "functions" when you're done with them and probably save a bit of space. |
Peachy Macaroni!
so classics limit is 100k for sure? |
I ran into that same problem. But, the weapon limit is 22kb.... How do you get 50kb? I loaded one of my system's in Andor, took the remaining code that was saved, copied it, stuck it in a text file, and checked the size. It was 22kb.
|
Boco how can your little system reach the limit? From the screens the script shouldn't be that long...I made a system like that, which was far more advance, and it didn't come near 22 kb...I think it was at 5, maybe less maybe more.
|
I heard 50k. Doubt it could be the level size limit, 'cuz the old Ninji Castle Barracks is 59k...and that never blew up...
|
Quote:
|
I know there's a limit of 50 NPCs per level, but I thought 50k was also the weapons limit...regardless, whatever it is, it needs to be HIGHER! ^_^
|
Quote:
|
Quote:
*thinks about working a week to cut another 10K chunk off the cnpc...oye* |
Quote:
|
Yeah Kyle, but you optimize your code until even you can't read it. ^_~
'sides, I go for speed optimization, not size optimization. Sure, I could supercompress the system with a string array, but can you imagine the lag? |
Quote:
|
Um
The limit for weapon scripts (like for npc scripts) is 28k. On Graal2002 it is far enough, the whole item system takes 22k, the player movement 17k, including the server-side part of the code. It's better to make a simple clear system instead of expanding the scripts too much :-) Remember that making the scripts means that the player needs to download a lot of data when he logins (it's sent compressed but scripts of 50k text would probably take 10k, and there are the other weapons that need to be sent too...) |
But we are planning to make a better scripting engine
with function parameters and objects and stuff, will see when I get some time for it. |
so ratio for "Um" weapon limit size to text file is 1/5.
|
| All times are GMT +2. The time now is 05:42 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.