The joy of a never ending loop
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
The joy of a never ending loop
By mistake, I placed a call to a macro that constantly asks me to enter a value for a variable. Unfortunately, that macro is called in the onCampaignLoad macro. As such I keep on getting this pop-up message box asking for a value, and no matter what I type or not type, the pop-up doesn't go away. Is there anyway to stop the execution of this code or somehow bypass (temporarily) the onCampaign load macro?
Re: The joy of a never ending loop
Maybe change your min mem to 1024 so it causes a stack error. It's possible to edit the xml directly if you know where to look. In theory, the loop will end after 1000 iterations.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: The joy of a never ending loop
Try holding down the ESC key until it "gives up".nirkedar wrote:By mistake, I placed a call to a macro that constantly asks me to enter a value for a variable. Unfortunately, that macro is called in the onCampaignLoad macro. As such I keep on getting this pop-up message box asking for a value, and no matter what I type or not type, the pop-up doesn't go away. Is there anyway to stop the execution of this code or somehow bypass (temporarily) the onCampaign load macro?
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: The joy of a never ending loop
that would be after a 1000 loopsFull Bleed wrote: until it "gives up".
Lol I must say, this reminds me of an IT 'specialist' (programmer) who had the nifty idea to (waaay back in time btw) set his user account to auto login, only to realise that he thus could no longer enter his admin account.
We've rofloao.
Granted this is different and more innocuous, but still funny.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS