![]() |
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. |
Could this be added please? thanks
|
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 |
Way to go reviving an old thread! The thing is, can you add a substring in profilevars? If not, please add it!
|
Quote:
|
Quote:
|
Quote:
|
Pretty please
|
Yes. Would be very useful with the dynamic birds I am scripting.
|
Quote:
|
Quote:
|
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 like the external a lot =o.. it is possible to rescript them anyway.
|
Quote:
|
clientr.thisisaprofilevar = clientr.iwanttomakethisavar[1];
profilevars=Var:=clientr.thisisaprofilevar God you guys are lazy. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
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.