Jump to content

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


Xira

Recommended Posts

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?
 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...