+Mzebonga Posted February 24, 2020 Share Posted February 24, 2020 I made a few tweaks to an existing cartridge today and, when trying to compile, got the "You are attempting to upload an invalid GWZ file." error message. I've since gone back to the original version (the one that currently exists on Wherigo.com) and that now generates the same error message. Other cartridges that I have built are compiling just fine. Does anyone have any ideas how I can debug this given the complete lack of any diagnostic information? What are the common causes of this problem and why would a previously working Wherigo Cartridge no longer compile successfully? Quote Link to comment
Ranger Fox Posted February 25, 2020 Share Posted February 25, 2020 They should still be working. If you’d like, you can send me the GWZ that isn’t working and I can see if I can upload it through my account. But, first, try to see if the cartridge works with the online compiler, just in case. I hope this isn’t related to the other site problems. Quote Link to comment
+Mzebonga Posted March 2, 2020 Author Share Posted March 2, 2020 I've dropped you a note on the Geocaching Message Center with a link to the GWZ file. Any help is hugely appreciated - I can't see any obvious problems and I'm not getting much usable information from the error message on Wherigo.com. Strangely, the GWZ file will compile on the Wherigo foundation website (Test compiler) but won't compile via the Earwigo website or upload to Wherigo.com. Quote Link to comment
Ranger Fox Posted March 6, 2020 Share Posted March 6, 2020 For those curious, the compiler (I was using the compiler from Groundspeak's builder application) didn't seem to like that Earwigo put some functions at the top of the cartridge. I moved everything down to the author script block and Groundspeak's compiler liked it. However, things can't be that simple. Groundspeak's Wherigo site's compiler did not like that cartridge. So, what we have here might be a case of slightly different compilers. Well, we learn something every day. So, we have something like this: zitemTarget.Commands = { Debug = Wherigo.ZCommand{Text="Debug", CmdWith=false, Enabled=false, EmptyTargetListText="Nothing available"}, } So, within the Builder's compiler and WF compiler, this is valid. The Wherigo site's compiler, however, seems to hate having a command titled "Debug". I seem to remember something similar happening before in the forum, perhaps sometime around an October one or two years ago... Quote Link to comment
+Mzebonga Posted March 6, 2020 Author Share Posted March 6, 2020 I've confirmed that renaming the hidden "Debug" commands that I had in the cartridge to help me while I'm working on the cartridge has enabled me to upload a new version to the Wherigo website and also run the compiler in Earwigo. This appeared to be allowed after I last changed the cartridge (Feburary 2017) but is now not compatible with the Wherigo site's compiler as Ranger Fox describes. Would not have figured this out without you, Ranger Fox. Thanks so much for your help. Quote Link to comment
+jollyquest Posted December 8, 2020 Share Posted December 8, 2020 I had the following code in my Urwigo cartridge function __LINE__() return debug.getinfo(2, 'l').currentline end and got the "You are attempting to upload an invalid GWZ file." error message. The function wasn't being called anymore. After removing the code I was able to upload the cartridge. Thanks to Ranger Fox for the posting. 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.