Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Server Options - Profile Vars (https://forums.graalonline.com/forums/showthread.php?t=65471)

KuJi 04-18-2006 03:57 AM

Server Options - Profile Vars
 
In the next gserver version can you please include the ability to do flags as this:
profilevars=Kills:=clientr.stats[1], Deaths:=clientr.stats[0]

Please allow some kind of support for this.

xAndrewx 05-01-2006 11:15 AM

Could this be added please? thanks

KuJi 05-01-2006 12:41 PM

Posted this like a month ago, I'll try to find Stefan and bring it to his attention :D.

I hate having to to make a client. string to display HP / Max HP

* Edit * also, if possible, maybe we can use @ in profilevars aswell:

HP:=clientr.health[0] @ " / " @ clientr.health[1]

:O

xXziroXx 10-07-2006 05:36 AM

Way to go reviving an old thread! The thing is, can you add a substring in profilevars? If not, please add it!

KuJi 10-07-2006 06:02 AM

Quote:

Originally Posted by xXziroXx (Post 1227017)
Way to go reviving an old thread! The thing is, can you add a substring in profilevars? If not, please add it!

If you are talking about me reviving a thread, your saying this 5 months later lol!

xXziroXx 10-07-2006 06:15 AM

Quote:

Originally Posted by KuJi (Post 1227029)
If you are talking about me reviving a thread, your saying this 5 months later lol!

I ment the part where I revived it. :)

KuJi 10-07-2006 06:34 AM

Quote:

Originally Posted by xXziroXx (Post 1227034)
I ment the part where I revived it. :)

O hahahaha, about to say

xAndrewx 10-07-2006 09:21 AM

Pretty please

Demisis_P2P 10-07-2006 10:08 AM

Yes. Would be very useful with the dynamic birds I am scripting.

Rapidwolve 10-07-2006 02:14 PM

Quote:

Originally Posted by KuJi (Post 1176501)
Posted this like a month ago, I'll try to find Stefan and bring it to his attention :D.

I hate having to to make a client. string to display HP / Max HP

* Edit * also, if possible, maybe we can use @ in profilevars aswell:

HP:=clientr.health[0] @ " / " @ clientr.health[1]

:O

We already can

KuJi 10-07-2006 04:09 PM

Quote:

Originally Posted by Rapidwolve (Post 1227144)
We already can

No you can't o.O

Admins 10-07-2006 04:23 PM

Eventually it could be interesting if the profile could be fully customized (a script which you could override). Would it be ok to have the profile in the game window or do people prefer the external profile window?

KuJi 10-07-2006 04:31 PM

I like the external a lot =o.. it is possible to rescript them anyway.

xXziroXx 10-07-2006 05:53 PM

Quote:

Originally Posted by Stefan (Post 1227200)
Eventually it could be interesting if the profile could be fully customized (a script which you could override). Would it be ok to have the profile in the game window or do people prefer the external profile window?

I would preffer in-game :o

Bl0nkt 10-07-2006 07:03 PM

clientr.thisisaprofilevar = clientr.iwanttomakethisavar[1];

profilevars=Var:=clientr.thisisaprofilevar

God you guys are lazy.

xXziroXx 10-07-2006 07:22 PM

Quote:

Originally Posted by Bl0nkt (Post 1227326)
clientr.thisisaprofilevar = clientr.iwanttomakethisavar[1];

profilevars=Var:=clientr.thisisaprofilevar

God you guys are lazy.

No, I just hate useless strings. :(

KuJi 10-07-2006 08:03 PM

Quote:

Originally Posted by Bl0nkt (Post 1227326)
clientr.thisisaprofilevar = clientr.iwanttomakethisavar[1];

profilevars=Var:=clientr.thisisaprofilevar

God you guys are lazy.

That is not necessary.. it should have been using arrays in the first place.

Rapidwolve 10-07-2006 08:33 PM

Quote:

Originally Posted by KuJi (Post 1227186)
No you can't o.O

It was done on one server and it worked fine...I cant remember which one though

xXziroXx 10-07-2006 09:00 PM

Quote:

Originally Posted by Rapidwolve (Post 1227364)
It was done on one server and it worked fine...I cant remember which one though

Really, you CANT do it.

Tyhm 10-07-2006 10:28 PM

The principal problem with making a variable and setting it equal to the more complex array entry you want reflected in the profile is that, while effective, it is crude in the sense of efficiency - you have to update the profile-ready variable every time you update the array entry. While that's not a whole LOT of overhead, it can be if the variable/string/array changes frequently, and what's worse, it's one more operation to be transcribed an unbound number of times: if the array ever changes and someone forgets to update the profile-ready variable, it'll be reflecting the wrong information on the profile.

Now, maybe if there was an action for onProfileOpen, that could work...but I've been up to my ears in figuring out the most efficient way of sending details like "A lot of information about another player's gani which isn't likely to change a great deal while these two players are online, but might, so should it re-send every detail every time they appear on each others' screens, or should it send updates even when they're not on each others' screens, or...?"

Nicely complicated. So glad this game has Stefan to deal with these issues, he actually knows what he's doing.


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

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