Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-24-2001, 10:27 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #2  
Old 12-24-2001, 10:55 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Peachy Macaroni!






so classics limit is 100k for sure?
Reply With Quote
  #3  
Old 12-24-2001, 10:46 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #4  
Old 12-25-2001, 08:24 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
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.
Reply With Quote
  #5  
Old 12-25-2001, 09:59 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
I heard 50k. Doubt it could be the level size limit, 'cuz the old Ninji Castle Barracks is 59k...and that never blew up...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #6  
Old 12-25-2001, 10:02 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
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...)
Reply With Quote
  #7  
Old 12-26-2001, 02:54 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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! ^_^
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #8  
Old 12-26-2001, 03:50 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
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.
Reply With Quote
  #9  
Old 12-26-2001, 05:15 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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*
Reply With Quote
  #10  
Old 12-26-2001, 07:35 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
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...
Reply With Quote
  #11  
Old 12-26-2001, 09:12 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #12  
Old 12-27-2001, 12:21 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #13  
Old 12-28-2001, 09:20 AM
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
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...)
Reply With Quote
  #14  
Old 12-28-2001, 09:21 AM
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
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.
Reply With Quote
  #15  
Old 12-28-2001, 10:35 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
so ratio for "Um" weapon limit size to text file is 1/5.
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 12:08 AM.


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