Jump to content

snoyes

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by snoyes

  1. If I understand the algorithm properly, the geohash 'xkcd' ought to map to the square with latitude between 27.0703125 and 27.24609375 and longitude between 148.359375 and 148.7109375. So you could round it to anything between (27.1 148.4) and (27.2 148.7). But geohash.org outputs (27 149), which is outside the range to the southeast and is actually in square 'xkcc'. The geohash 'ebrb' gives you (1 -0) which is actually in 's00j'. It needs to round to one more decimal place.
  2. That's the nature of floating point numbers - see the IEEE-754 standard for details math.floor(0.03000124 * 100) / 100 should take care of it.
  3. How and where do you call this function?
  4. You might post the answer anyway (create a variable, create an Input assigned to that variable, write a script for when the player inputs data, display it with ]]..VariableName..[[ ), for future users with the same question.
  5. Neither "Create from Map" nor "Edit Online" work. I understand that Terraserver changed something so I didn't expect the "Create from Map" to work, but I don't see anyone else reporting this error when doing "Edit Online". Line 25 Char 5 Error 'builder_zones' is undefined Code 0 URL: http://www.Wherigo.com/js/BuilderZones.js
  6. Advanced Search, set Search Type to 'Keyword Search', enter keyword 'source'. Or go to http://www.Wherigo.com/search/results.aspx?&sname=source&stype=7
  7. For this particular cartridge, I make the player carry only one item at a time. So I just checked for task completion each time a player drops an item, and that works fine for this one. For future cartridges, I'll just remember to check both the zone and the player's inventory if that's appropriate. Now on to figure out how to write functions or subroutines or whatever so I don't have to repeat the code for each item.
  8. It definitely recognizes that I have entered the zone (I got the message text you said to add, and also I have prevented it from dropping an item outside of a zone.) Still didn't complete the task. However, I got it to work by adding the checking for all 3 items to the zone's OnExit method, dropping the item in the zone and then walking away. So I have a hunch: I'm checking for task completion via a line like: if zoneB:Contains(zitem1) and zoneB:Contains(zitem2) and zoneB:Contains(zitem3) then... When I walk in with item 3, it's in my inventory. Perhaps WhereYouGo doesn't consider that a zone contains an item if that item is in the player's inventory, even if the player is within the zone. The emulator considers the player's inventory to be within the zone if the player is.
  9. To complete the task, the player must carry three objects into a zone. The zone's OnEnter() method checks if the zone contains all three items. It sets the task and the cartridge to complete, and shows a message box. It works fine on the emulator - as I drag the guy into the zone with the last item, I get the message and the task is marked complete. On my HTC Evo running WhereYouGo, I can carry the objects into the zone, but there is no message box and the task still shows as pending. I have tried building the .gwc with both the Wherigo Builder and Urwigo.
×
×
  • Create New...