Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   savevars: Excluding predefined variables? (https://forums.graalonline.com/forums/showthread.php?t=63192)

Yen 01-04-2006 02:49 AM

savevars: Excluding predefined variables?
 
Is it possible to exclude the predefined variables, like timeout and the such, from what savevars saves?
The useless crap makes it look so messy. :/

ApothiX 01-04-2006 06:09 AM

Another good idea/question by yen! These stupid predefined variables make my mudaccounts files look gross :(

Yen 01-05-2006 01:21 AM

Same problem, they're making my archetypes look icky. :(

Inverness 01-06-2006 02:10 AM

Change the variable name:
PHP Code:

this.items.shortsword=blah
this
.items.skill_amplify1=moreblah
this
.items.savevars(Oi!); 

Would this not work for your case? I have used it before...

Yen 01-06-2006 02:38 AM

It automatically saves the NPC's timeout, joinedclasses, ect.

Skyld 01-06-2006 02:45 AM

Quote:

Originally Posted by Yen
It automatically saves the NPC's timeout, joinedclasses, ect.

Is it really a large problem? After all, that is what savevars() is meant to do; save the variables of the object, not just created variables.

Yen 01-06-2006 02:49 AM

Yeah, but for MUD Libraries, it makes the .arc look icky. :(
Not that anyone should be reading a .arc in Wordpad, but still.

Skyld 01-06-2006 02:57 AM

Quote:

Originally Posted by Yen
Not that anyone should be reading a .arc in Wordpad, but still.

I rest my case.

Yen 01-06-2006 03:01 AM

>=O Hey, those extra bytes add up!

Skyld 01-06-2006 03:08 AM

Quote:

Originally Posted by Yen
>=O Hey, those extra bytes add up!

Just because they do not benefit you does not mean they should be removed.

Yen 01-06-2006 03:10 AM

Not removed, just an option to disclude them. o-o'

Skyld 01-06-2006 03:14 AM

Quote:

Originally Posted by Yen
Not removed, just an option to disclude them. o-o'

Still seems pointless. The functionality is fine as it is now.

If your Graal server had a 1.44mb storage capacity for all your files, then fine, but it doesn't.

Yen 01-06-2006 03:16 AM

-Bites Skyld.-


All times are GMT +2. The time now is 09:23 PM.

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