Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Raise the weapons limit! (https://forums.graalonline.com/forums/showthread.php?t=19531)

Tyhm 12-24-2001 10:27 AM

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.

royce 12-24-2001 10:55 AM

Peachy Macaroni!






so classics limit is 100k for sure?

BocoC 12-24-2001 10:46 PM

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.

T-Squad 12-25-2001 08:24 AM

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.

Tyhm 12-25-2001 09:59 AM

I heard 50k. Doubt it could be the level size limit, 'cuz the old Ninji Castle Barracks is 59k...and that never blew up...

T-Squad 12-25-2001 10:02 AM

Quote:

Originally posted by Tyhm
I heard 50k. Doubt it could be the level size limit, 'cuz the old Ninji Castle Barracks is 59k...and that never blew up...
22kb is max size for NPC scripts, 50 is the max number of weapons allowed in weapon list (or something like that...)

Tyhm 12-26-2001 02:54 AM

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! ^_^

T-Squad 12-26-2001 03:50 AM

Quote:

Originally posted by Tyhm
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! ^_^
Heh, that would take the fun of scripting away...just optimize your scripts.

kyle0654 12-26-2001 05:15 AM

Quote:

Originally posted by Tyhm
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! ^_^
Keep your scripts small and you'll appreciate it later.

*thinks about working a week to cut another 10K chunk off the cnpc...oye*

T-Squad 12-26-2001 07:35 AM

Quote:

Originally posted by kyle0654

Keep your scripts small and you'll appreciate it later.

*thinks about working a week to cut another 10K chunk off the cnpc...oye*

Yes...very true...

Tyhm 12-26-2001 09:12 AM

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?

BocoC 12-27-2001 12:21 AM

Quote:

Originally posted by T-Squad
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.
Well, I have to create keydown code for each menu in the system. I am going to re-make it sometime, and make it way better, hopefully lowering the size of it. But, I had like, 5 or so menu's that had to have its own keydown scripts.

Admins 12-28-2001 09:20 AM

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...)

Admins 12-28-2001 09:21 AM

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.

royce 12-28-2001 10:35 AM

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.