![](templates/Classic/images/spacer.gif) |
ohm Beginner
Joined: 17 Sep 2002 Posts: 16
|
Posted: Sun May 04, 2008 1:28 am
xp status bar only display %mud.xp |
Thanks in advance for your help with this!
After installing cmud and creating a new session and logging in and out a couple of times I suddenly notice that the xp number that should be displayed on the status bar is replaced with xp "%mud.xp". After disabling all my settings (having thought them to blame) and restarting cmud the problem remains while the gp and health status bars work fine.
The stranger thing is when I do a #SHOW {%mud.xp} is actually shows my xp amount...
Trying to create other status bars with %mud.xp result in the same problem - "%mud.xp" being shown instead of it resolving to a number.
In fustration I reinstalled cmud and recreated a session from scratch. The first time I logged in it was fine, though on subsequent logins the same problem occured.
Anyone else have this issue, and better yet know a way to resolve it?
Regards. |
|
|
![](templates/Classic/images/spacer.gif) |
Tech GURU
![](images/avatars/172896370346230b24779a1.gif)
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu May 08, 2008 6:10 am |
What mud are you playing on? Does it support %mud.xp? Have you tried doing %eval(%mud.xp)?
|
|
_________________ Asati di tempari! |
|
|
![](templates/Classic/images/spacer.gif) |
shalimar GURU
![](images/avatars/114658559147aeed8fee539.gif)
Joined: 04 Aug 2002 Posts: 4685 Location: Pensacola, FL, USA
|
Posted: Thu May 08, 2008 9:04 am |
I believe this is Discworld, but I am not having this issue at all in v2.24.
Are you actually quoting it in your code?
You do need to send a command to the game before the variables update though. |
|
_________________ Discord: Shalimarwildcat |
|
|
![](templates/Classic/images/spacer.gif) |
ohm Beginner
Joined: 17 Sep 2002 Posts: 16
|
Posted: Thu May 08, 2008 2:57 pm |
Shalimar, you're a genious!
I feel a little bit worse for wear now having found an alias I named "xp". This worked fine in zmud, but has some obviously undesired results in cmud.
Renaming the alias "xp" to something else fixed the issue of "%mud.xp" being displayed.
I'm not sure if I would classify this as a bug, but I would clasify this as a reserved word as it obviously is going to an affect on mxp system variables if you use it. Perhaps even disabling the means for users to name thier aliases after these variables might be nice?
Anyway, problem fixed and thanks again! |
|
|
![](templates/Classic/images/spacer.gif) |
Fang Xianfu GURU
![](images/avatars/1763170544a2093e7e85da.gif)
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu May 08, 2008 3:26 pm |
Trouble is that the MUD can name MXP entities anything it likes; there's no way for CMUD to know in advance what they're going to be called. So what if someone connects to the MUD and the MUD's changed their entities, creating problems with the user's existing aliases? Which one gets cancelled?
I reckon it counts as a bug that alias names are interfering with entities in this way, though, and should probably be fixed if possible. |
|
|
![](templates/Classic/images/spacer.gif) |
|
|