Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Weapon Exceeding 28k in size (https://forums.graalonline.com/forums/showthread.php?t=54904)

haro41 08-15-2004 04:32 AM

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.

dlang 08-15-2004 04:39 AM

Load pieces of the weapon script from classes.

Dach 08-15-2004 06:59 AM

I still don't see how exceeding the filesize limit should ever be a problem :\

haro41 08-15-2004 07:10 PM

you havent seen our GUI.

Polo 08-15-2004 07:19 PM

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.

XiLe 08-15-2004 07:21 PM

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.

Lance 08-15-2004 07:35 PM

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.

haro41 08-15-2004 07:42 PM

yeah we cut off as much as possible. i gues joining classes to it is our best option

LordZen 08-15-2004 08:10 PM

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.

Dach 08-15-2004 10:42 PM

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

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.

Polo 08-15-2004 11:06 PM

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

dlang 08-16-2004 01:25 AM

Offtopic: I really need to get a new account -.-, I hate being called dlang

-Inverness

osrs 08-16-2004 03:27 AM

Quote:

Originally Posted by haro41
you havent seen our GUI.

The graphic of the gui is too big. :frown:

middo 08-16-2004 08:22 AM

Quote:

Originally Posted by osrs
The graphic of the gui is too big. :frown:

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.

haro41 08-17-2004 04:12 AM

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.

falco10291029 09-01-2004 01:54 AM

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!

ZeroTrack 09-01-2004 02:07 PM

LoL if you have 1 weapon exceeding 28k theres something seriously wrong , a weapon should never be that big.

Slash-P2P 09-02-2004 08:34 PM

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*

ZeroTrack 09-02-2004 08:40 PM

Quote:

Originally Posted by Slash-P2P
*cough* Bravo's Staff NPC (which you deleted >_< ) *cough*

LoL hence why i deleted it =p <3

Slash-P2P 09-02-2004 08:42 PM

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.

Goodspeed 09-02-2004 08:59 PM

I still dont see why GUI even matters..
The regular graal gui works fine.

Andares 09-02-2004 11:28 PM

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. :rolleyes:

falco10291029 09-03-2004 02:19 AM

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)

Tolnaftate2004 09-03-2004 07:48 AM

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.

zokemon 09-03-2004 09:46 AM

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.

ZeroTrack 09-03-2004 01:51 PM

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.

osrs 09-03-2004 06:01 PM

Quote:

Originally Posted by ZeroTrack
#1- scripters don't put down other scripters.

You probably don't know Kaimetsu then.

falco10291029 09-03-2004 06:03 PM

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

Dach 09-03-2004 08:16 PM

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

falco10291029 09-04-2004 12:09 AM

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!

Kaimetsu 09-04-2004 12:18 PM

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.

ZeroTrack 09-04-2004 05:00 PM

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

Tolnaftate2004 09-04-2004 07:44 PM

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. :whatever:

falco10291029 09-04-2004 08:41 PM

How do you work it then? it lets me do nothing ni that part of the menu

Tolnaftate2004 09-05-2004 04:47 AM

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

falco10291029 09-05-2004 05:47 AM

Ok got ya ill try that sometime if i feel like it XD

Curt1zzle 09-06-2004 08:33 PM

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.

Crono 09-06-2004 08:36 PM

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

haro41 09-07-2004 12:41 AM

regular GUI? ok to put it into perspective, thats like trying to use a nes controller to play steel battalion

falco10291029 09-07-2004 02:12 AM

Wait, you are saying i shouldn;t be doing that? crap!


All times are GMT +2. The time now is 03:23 AM.

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