Sign in to follow this  
Followers 1
Xira

Urwigo: changing a zone's name changes the player's latitude

1 post in this topic

I'm using Urwigo to develop a Wherigo cartridge. I've discovered a weird little quirk.

If a zone name get changed, the player's latitude gets incremented by 0.00001. The longitude doesn't change and it doesn't happen if an item's name is changed. It doesn't happen if the name is changed to the existing value. It only occurs in the Urwigo emulator. It doesn't happen in Webwigo or WhereYouGo.

To verify this, I created a cartridge with the bare essentials. It contains

  • one counter, used to toggle between two strings
  • one zone
  • two items, a dummy that does nothing, and one with two commands: ChangeZoneName and ChangeItemName.
  • one Lua function

The zone, counter, and dummy item were given identifiers for use in Lua.

The Lua function is:
function ChangeObjectName (TheObject)
    vCounter = vCounter+1
    if vCounter%2 == 0 then
        TheObject.Name = "aaa"
    else 
        TheObject.Name = "bbb"
    end
    Wherigo.LogMessage(vCounter .." " ..tostring(Player.ObjectLocation.latitude).. " "..tostring(Player.ObjectLocation.longitude))    
end

To test, call the ChangeZoneName several times in sequence, then ChangeItemName several times in sequence, and then examine the log. The latitude increments when the zone's name is changed but not the item's.

Is this a known problem? Can it be fixed?
 

0

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 1