Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-15-2004, 04:32 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
Weapon Exceeding 28k in size

Our server has a very complex GUI which is now getting into the 24k+ range. and I was told that the max size for a weapon script is 28K. if and when we hit that limit is there a way we can have an override by an Admin to allow a larger filesize? Its something that really cant be split up into 2 separate npc's.
__________________

Zenkou for life
Reply With Quote
  #2  
Old 08-15-2004, 04:39 AM
dlang dlang is offline
Yoshi!
dlang's Avatar
Join Date: Oct 2002
Location: Houston, Texas
Posts: 406
dlang is on a distinguished road
Send a message via AIM to dlang Send a message via MSN to dlang
Load pieces of the weapon script from classes.
__________________
Where do I take this pain of mine?
I run but it stays right by my side.
So tear me open, pour me out,
there's things inside that scream and shout.
And the pain still hates me, so hold me until it sleeps.

---------------
Reply With Quote
  #3  
Old 08-15-2004, 06:59 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
I still don't see how exceeding the filesize limit should ever be a problem
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #4  
Old 08-15-2004, 07:10 PM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
you havent seen our GUI.
__________________

Zenkou for life
Reply With Quote
  #5  
Old 08-15-2004, 07:19 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Regardless of the visual complexity of your GUI, you should easily just beable to hack extra script on by joining classes to it, which is what dlang said, and I assume Dach was hinting at.

If it 'really' is a problem, then make all your variables one letter long, and remove all tabbing/spacing... but then again, I shouldn;t really incourage such malpractice.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #6  
Old 08-15-2004, 07:21 PM
XiLe XiLe is offline
Lylic < Me
XiLe's Avatar
Join Date: Dec 2002
Location: My House
Posts: 224
XiLe is on a distinguished road
Send a message via AIM to XiLe Send a message via MSN to XiLe
Obviously if it is this big, it most likely contains many systems. All that needs to be done is the various systems split.
i.e. Some servers use -System to do a GUI, level system, HP system, and combat system. You would make -GUI, -Lvl System, -HP System, -Combat System.
__________________
AIM: xilesaim MSN: [email protected]
I'm the Co-Owner of Atrius... If you've got questions, ask me
Reply With Quote
  #7  
Old 08-15-2004, 07:35 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Polo
Regardless of the visual complexity of your GUI, you should easily just beable to hack extra script on by joining classes to it, which is what dlang said, and I assume Dach was hinting at.

If it 'really' is a problem, then make all your variables one letter long, and remove all tabbing/spacing... but then again, I shouldn;t really incourage such malpractice.
I would first suggest refining one's scripting rather than playing around with variable names and styling.
Reply With Quote
  #8  
Old 08-15-2004, 07:42 PM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
yeah we cut off as much as possible. i gues joining classes to it is our best option
__________________

Zenkou for life
Reply With Quote
  #9  
Old 08-15-2004, 08:10 PM
LordZen LordZen is offline
Registered User
LordZen's Avatar
Join Date: Jun 2002
Posts: 1,700
LordZen is on a distinguished road
Send a message via ICQ to LordZen Send a message via AIM to LordZen Send a message via Yahoo to LordZen
I think your system is kind of slow, anyways. No offense meant. =\

It would probably help to chop it up into smaller scripts that run at once rather than one giant one.
__________________

Click the picture!

FYI: I've pretty much retired from this game as it stands. Yep..

Contact Info
AIM: xxwarlordzenxx (not used so much anymore)
MSN: warlordzen(a)hotmail.com

Quote:
Originally Posted by Scott
I heard they were pregnant from the same father from a VERY reliable tabloid a couple years ago.
Quote:
Originally Posted by GryffonDurime
Etien, you are the best proof I have ever seen that the human gene pool has algee.
Reply With Quote
  #10  
Old 08-15-2004, 10:42 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by Polo
Regardless of the visual complexity of your GUI, you should easily just beable to hack extra script on by joining classes to it, which is what dlang said, and I assume Dach was hinting at.
Not really, a single system should not ever need to be that big. What Xile said is your best solution. If the situation is not as Xile assumed, you're problem is inefficient coding .

From looking at your menu system (which I do like), it is very possible to split it up into the major menus and just trigger the submenus from the main one.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 08-15-2004, 11:06 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Ah yes, theres always optimisation/refination, but I was assuming that they had already tried to reduce the script size as much as possible. I'd do what zach suggested with the seperate submenu's, although i havn't seen th gui so cannot fairly comment. Whatever you try, lets hope it works
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #12  
Old 08-16-2004, 01:25 AM
dlang dlang is offline
Yoshi!
dlang's Avatar
Join Date: Oct 2002
Location: Houston, Texas
Posts: 406
dlang is on a distinguished road
Send a message via AIM to dlang Send a message via MSN to dlang
Offtopic: I really need to get a new account -.-, I hate being called dlang

-Inverness
__________________
Where do I take this pain of mine?
I run but it stays right by my side.
So tear me open, pour me out,
there's things inside that scream and shout.
And the pain still hates me, so hold me until it sleeps.

---------------
Reply With Quote
  #13  
Old 08-16-2004, 03:27 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by haro41
you havent seen our GUI.
The graphic of the gui is too big.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #14  
Old 08-16-2004, 08:22 AM
middo middo is offline
VHE Monkey
middo's Avatar
Join Date: Aug 2002
Location: California
Posts: 327
middo is on a distinguished road
Send a message via AIM to middo
Quote:
Originally Posted by osrs
The graphic of the gui is too big.
Agreed, I can't see jack. And it takes AGES for the mini-windows to pop up.
I bet if I had the time and enthusiasm I could make something MUCH less than 28k that would be just as good.

I bet the high file size is due to lack of taking the time to make it more flexible.
Reply With Quote
  #15  
Old 08-17-2004, 04:12 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
well you play many other online games full screen. this will be one of them. there is alot of data that will need to be displayed. you can just hide the gui by pressing u as well.
__________________

Zenkou for life
Reply With Quote
  #16  
Old 09-01-2004, 01:54 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I would suggest not adding the stuff to it until you have those systems done. I.E. you have menus for spells weapons party's and more, yet for none of those have i seen a way to get/use it!
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #17  
Old 09-01-2004, 02:07 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
LoL if you have 1 weapon exceeding 28k theres something seriously wrong , a weapon should never be that big.
__________________

Reply With Quote
  #18  
Old 09-02-2004, 08:34 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by ZeroTrack
LoL if you have 1 weapon exceeding 28k theres something seriously wrong , a weapon should never be that big.
*cough* Bravo's Staff NPC (which you deleted ) *cough*
Reply With Quote
  #19  
Old 09-02-2004, 08:40 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
Quote:
Originally Posted by Slash-P2P
*cough* Bravo's Staff NPC (which you deleted ) *cough*
LoL hence why i deleted it =p <3
__________________

Reply With Quote
  #20  
Old 09-02-2004, 08:42 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by ZeroTrack
LoL hence why i deleted it =p <3
I loved that tool. Nothing on any server could match the fun of placing repel and vortex blocks.
Reply With Quote
  #21  
Old 09-02-2004, 08:59 PM
Goodspeed Goodspeed is offline
Well.. I'm sure lost
Goodspeed's Avatar
Join Date: Aug 2004
Location: OOOOoooklahoma..
Posts: 14
Goodspeed is on a distinguished road
Send a message via ICQ to Goodspeed Send a message via AIM to Goodspeed Send a message via MSN to Goodspeed Send a message via Yahoo to Goodspeed
I still dont see why GUI even matters..
The regular graal gui works fine.
__________________
The Shaded Legend Bum
-Proud #gscript Regular
Reply With Quote
  #22  
Old 09-02-2004, 11:28 PM
Andares Andares is offline
Scr1pt3r-ish
Andares's Avatar
Join Date: Mar 2004
Posts: 55
Andares is on a distinguished road
Send a message via AIM to Andares
Quote:
Originally Posted by Goodspeed
I still dont see why GUI even matters..
The regular graal gui works fine.
Hmm...
Try using the regular gui for say, Era or GK.

It's like swords in halo.
Reply With Quote
  #23  
Old 09-03-2004, 02:19 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
well zenkou has nothing that the regular gui cant cover (except for the hp/mp, which u cant lose yet neway so it doesnt matter)
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #24  
Old 09-03-2004, 07:48 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by falco10291029
well zenkou has nothing that the regular gui cant cover (except for the hp/mp, which u cant lose yet neway so it doesnt matter)
But you can only have 100 mp max and 20 hearts max with the normal GUI.
Reply With Quote
  #25  
Old 09-03-2004, 09:46 AM
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
Quote:
Originally Posted by Lance
I would first suggest refining one's scripting rather than playing around with variable names and styling.
I totaly agree with you.

And I already went over this...
Read my signiture.

Quote:
Originally Posted by ZeroTrack
LoL hence why i deleted it =p <3
The only reason you deleted that npc was because you couldn't understand it, you didn't like me and because you can't script something like that.
__________________
Do it with a DON!
Reply With Quote
  #26  
Old 09-03-2004, 01:51 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
Quote:
Originally Posted by zokemon
The only reason you deleted that npc was because you couldn't understand it, you didn't like me and because you can't script something like that.
LoL.... are you totally seriously making that statement, because if you are you shouldnt be allowed to even speak anymore

#1- scripters don't put down other scripters. that's just the way things go you'd have to be very immature and dimwitted to do so, you should be shunned from the name scripter.

#2- I didn’t know how to script, that’s why I made almost every single NPC on that server and what did you do... make a staff NPC that seems to be your pride and joy? -_- oh please spare your breath; I am very intimidated that you made a staff npc and I didn’t.

BTW I don’t hate anyone; I disliked your arrogance and your unwillingness to do any real work we needed.
__________________

Reply With Quote
  #27  
Old 09-03-2004, 06:01 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by ZeroTrack
#1- scripters don't put down other scripters.
You probably don't know Kaimetsu then.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #28  
Old 09-03-2004, 06:03 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
But you can only have 100 mp max and 20 hearts max with the normal GUI.
Ah, but you cant lose either one on zenkou, so it doesnt matter right now. Also if they wanted they could hide just the hearts and mp parts of the gui and then replace those with some text or a couple bars...
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #29  
Old 09-03-2004, 08:16 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by falco10291029
Ah, but you cant lose either one on zenkou, so it doesnt matter right now. Also if they wanted they could hide just the hearts and mp parts of the gui and then replace those with some text or a couple bars...
That doesn't solve anything, replacing a couple of lines with another set of a couple of lines won't work. To bypass the 28k limit you have to make your script not >28k. ex: establish common functions merging similar code, separate different menu items into other scripts to be called from main script (also allows multiple menus to be open at once) condense and refine current algorithms to alleviate cpu stress and extra coding, stuff like that
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #30  
Old 09-04-2004, 12:09 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
Originally Posted by Dach
That doesn't solve anything, replacing a couple of lines with another set of a couple of lines won't work. To bypass the 28k limit you have to make your script not >28k. ex: establish common functions merging similar code, separate different menu items into other scripts to be called from main script (also allows multiple menus to be open at once) condense and refine current algorithms to alleviate cpu stress and extra coding, stuff like that

NO NO NO!! im saying they should use default gui with replaced heart area and then integrate new stuff as it becomes available. Once you make a party system readd the party part, same with everything else!
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #31  
Old 09-04-2004, 12:18 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by osrs
You probably don't know Kaimetsu then.
Haha. The funniest thing is that you're not even aware of the hypocrisy.
__________________
Reply With Quote
  #32  
Old 09-04-2004, 05:00 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
Quote:
Originally Posted by Kaimetsu
Haha. The funniest thing is that you're not even aware of the hypocrisy.
but this is why your amazing kaimetsu =D lol
__________________

Reply With Quote
  #33  
Old 09-04-2004, 07:44 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by falco10291029
NO NO NO!! im saying they should use default gui with replaced heart area and then integrate new stuff as it becomes available. Once you make a party system readd the party part, same with everything else!
The party system does work.
Reply With Quote
  #34  
Old 09-04-2004, 08:41 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
How do you work it then? it lets me do nothing ni that part of the menu
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #35  
Old 09-05-2004, 04:47 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by falco10291029
How do you work it then? it lets me do nothing ni that part of the menu
/createparty name
/joinparty name
/leaveparty
Reply With Quote
  #36  
Old 09-05-2004, 05:47 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Ok got ya ill try that sometime if i feel like it XD
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #37  
Old 09-06-2004, 08:33 PM
Curt1zzle Curt1zzle is offline
Starting not to love you
Curt1zzle's Avatar
Join Date: Sep 2003
Posts: 3,669
Curt1zzle has a spectacular aura about
Send a message via AIM to Curt1zzle
Quote:
Originally Posted by Goodspeed
I still dont see why GUI even matters..
The regular graal gui works fine.
Die please, now.

A post like that is just asking to get yelled at.
__________________

This message has been deleted by Sam. Reason: you should better stop it now
Reply With Quote
  #38  
Old 09-06-2004, 08:36 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Curt1zzle
Die please, now.
That's uber negative and illegal I think.

Quote:
A post like that is just asking to get yelled at.
Just like certain posts are meant to be flamed, GOD WHY DONT PEOPLE EVER LISTEN TO ME ?

It's all part of proportions...
__________________
Reply With Quote
  #39  
Old 09-07-2004, 12:41 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
regular GUI? ok to put it into perspective, thats like trying to use a nes controller to play steel battalion
__________________

Zenkou for life
Reply With Quote
  #40  
Old 09-07-2004, 02:12 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Wait, you are saying i shouldn;t be doing that? crap!
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:18 AM.


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