Timers not loading from world file

Posted by Rynne on Sat 19 Jan 2008 06:02 PM — 9 posts, 35,053 views.

France #0
When making a timer, it works fine, until I quit and reload.

This is what I get :

Line  572: Invalid character ',' in numeric attribute named 'second' (timer not loaded)



and this is the world file :

<timers
   muclient_version="4.19"
   world_file_version="15"
   date_saved="2008-01-19 19:51:37"
  >
  <timer enabled="y" second="1,00"    send_to="12"
>
  <send>Note("Test")</send>

  </timer>
</timers>


I suppose that comma should be a dot, but why does it saves it with a comma to begin with ?
Netherlands #1
Hehe. That's the same bug I already had Nick fix for the plugin required-version numbers.
Australia Forum Administrator #2
Quote:

I suppose that comma should be a dot, but why does it saves it with a comma to begin with ?


I save floating point numbers supposedly with a dot, but the C libraries try to be smart and say "that is currency", and if you are in France or Holland or such like, it changes the dot to a comma.

Upgrade to version 4.20 or higher, that changes the comma back to a dot:

http://www.gammon.com.au/forum/?id=8401

For now manually edit the world file with a text editor and fix any such places.
France #3
Doh, silly me, should have checked for newer versions beforehand.

Keep up the good work, Nick, MushCLIENT is awesome.
Germany #4
I've just upgraded from version 4.07 to 4.37.
Every thing looks great, but for german users there is still a timer-problem with commas and dots :\

If I enter "0,6" in the field "second", the timer works fine. When I save it, it looks like this (dots instead of commas):

<timers>
<timer enabled="y" second="0.60" offset_second="0.00" send_to="10"
group="kampf" >
<send>KICK</send>

</timer>
</timers>

But when I load the timer, I get this message:

Line 2: Timer for 'every' time cannot have zero interval (timer not loaded)

Changing the seconds to "1,2", the timer is saved correctly (second="1.2") but loaded as "1" second (no decimals)

Any suggestions?
Or will I have to stay with Version 4.07?

Libori

Australia Forum Administrator #5
In confirm that if I switch my regional settings to German I can reproduce that problem. Why, I am not sure, because I don't have access to the source code just now.

I'll look into that in a couple of days, sounds like a bug.
#6
Having the same problem. Fixed yet? Haven't been able to find anything on the forum.

I'll try to work around using a timer in my world file, but I'd rather keep all of my stuff in plugins.

Sorry for reviving this thread, but I prefer it to creating a new one ^^
Australia Forum Administrator #7
Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


This appeared to be fixed in version 4.41.

http://www.gammon.com.au/scripts/showrelnote.php?version=4.41&productid=0

See point 12.
#8
My bad, still on 4.40