+ATXTracker Posted April 25, 2013 Share Posted April 25, 2013 I've run into a problem in a cartridge I'm building where I have an item with 8 commands. When I play it on the iPhone app, and I click on one of the eight commands, it appears to be executing one of the eight commands randomly and not the command I selected. If I remove two of the commands, so there are 6 total, then it works correctly. This is not a problem with my garmin or with the urwigo emulator (with all 8 commands). Has anyone seen this before? Thanks, John Quote Link to comment
+jonny65 Posted April 25, 2013 Share Posted April 25, 2013 Very interesting ! I've never seen it but heard about it. A player reports to me, that some commands of an item were jumbled. And this item has 8 commands. Besides it would be important to know whether it depends too, if the commands are visible or invisible or both. And : It seems this is happening only sometimes. Not possible to reproduce it at any time. A workaround as a prevention would be never to use items and characters with more than 6 commands, visble or not. In most cases it is possible to partition the commands on 2 items. I have an item "Setup/Info/Help" with 8 commands and I think I will make 2 : "Setup" (3 commands) and "Info/Help" (5 commands) Anyone who can test this on an iPhone (4 & 5) ? Simply create an item with 8 commands. First all of them set to visible, then hide 3 or 4 of them or toggle it. Quote Link to comment
Tyreless Posted April 25, 2013 Share Posted April 25, 2013 I just gave it a test on an iphone 4s. Created a cartridge with 1 item with 8 commands (Named "Command 1", "Command 2", etc). Each command is meant to bring up a message with its name when it is executed. It doesn't work properly. The commands don't appear in order (they appear in the order 3, 1, 6, 5, 4, 2, 8, 7). Command 3 does nothing. The rest of the commands execute the command for one above it in the list (ie: command 1 says "Command 3"; command 6 says "Command 1", etc). I created a second version with 7 commands and it has the same fault. I then created a third version with 6 commands and it works properly (ie: although the commands are out of order they still execute properly with command 1 saying "Command 1", command 2 saying "Command 2", etc). Cheers, Geoff aka Tyreless Quote Link to comment
+ATXTracker Posted April 26, 2013 Author Share Posted April 26, 2013 Thanks for confirming. That is a strange bug - I don't know why 6/7 commands would make a difference. At least I know it is not because I have a major problem that will appear elsewhere. Quote Link to comment
+jonny65 Posted April 26, 2013 Share Posted April 26, 2013 The issue with the wrong order is a known problem, but not sooooo important. It occurs always too, if 1 command hides another one and vice versa. But that Command3 shows "I am Command 5" is very fatally. And does it depends on player version or the device too ? But this doesn't matter, I never will use items with 6 commands (unvisble included)in future, respectively I will split my "Setup/Info/Help" item. Quote Link to comment
+charlenni Posted April 26, 2013 Share Posted April 26, 2013 Would it be possible to publish the test cartridge (GWC and GWZ)? Quote Link to comment
Tyreless Posted April 26, 2013 Share Posted April 26, 2013 Would it be possible to publish the test cartridge (GWC and GWZ)? Yes, but give me a couple of days. It's the weekend now here in Australia and I won't be back in the office with the urwigo files for a couple of days - I'm going to be out finding caches :-) Geoff aka Tyreless Quote Link to comment
+charlenni Posted April 26, 2013 Share Posted April 26, 2013 No problem. Enjoy your hunt Quote Link to comment
+ATXTracker Posted April 27, 2013 Author Share Posted April 27, 2013 Do you think the problem is with the Urwigo builder or the iPhone app? Quote Link to comment
Tyreless Posted April 27, 2013 Share Posted April 27, 2013 I remade the test cartridges. You can download them here: Test commands Cheers, Geoff aka Tyreless Quote Link to comment
+jonny65 Posted April 27, 2013 Share Posted April 27, 2013 Do you think the problem is with the Urwigo builder or the iPhone app? I'm very convinced that this is a problem only with the app. On garmin or android I've never have heard about a problem. Only from people with iPhone and this, as I say, rarely. Quote Link to comment
+charlenni Posted April 27, 2013 Share Posted April 27, 2013 The solution for the strange order the commands are displayed is, because the pairs() Lua command didn't give the entries in a defined order. Each element in a table could be the first one. Even in tables with an index. So, if the app goes twice through the list, it could happen, that the first time it gets 3, 1, 6, 5, 4, 2, 8, 7, the next time it gets 6, 7, 5, 4, 1, 2, 3, 7, 8 and returns the wrong command. All this are only speculations. Quote Link to comment
+jonny65 Posted April 27, 2013 Share Posted April 27, 2013 But then it should return the wrong command too, if there are only 5 commands Quote Link to comment
Recommended Posts
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.