bugs in latest patched version
Moderators: dorpond, trevor, Azhrei
Re: bugs in latest patched version
Found a new bug with Wiki: json.sort().
json.sort no longer sorts an array of objects.
You'll see that the above code works fine in b89 but errors in b90-beta.
I use this fairly often in my own code, but discovered this helping someone track a bug in Lindsay's framework using the Inventory macro. I first thought it was not sorting because my test only had one item in array, but it seems to be worse than that.
json.sort no longer sorts an array of objects.
Code: Select all
[H: a = json.set("{}","name","A","value",1)]
[H: b = json.set("{}","name","B","value",2)]
[H: c = json.append("",a,b)]
[R: json.sort(c,"a","value")]
I use this fairly often in my own code, but discovered this helping someone track a bug in Lindsay's framework using the Inventory macro. I first thought it was not sorting because my test only had one item in array, but it seems to be worse than that.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: bugs in latest patched version
OP updated with bug report
this is actually the first real bug that can potentially act as a real deal breaker for more advanced frameworks. funny that nothing of mine is broken, apparently I don't use this functionality.
this is actually the first real bug that can potentially act as a real deal breaker for more advanced frameworks. funny that nothing of mine is broken, apparently I don't use this functionality.
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
Re: bugs in latest patched version
Patch submitted.aliasmask wrote:json.sort no longer sorts an array of objects.
BTW, wolph, there's also a patch for item #5. The link to it is on the error thread itself.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: bugs in latest patched version
OP updated (still crappy internet)
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
Re: bugs in latest patched version
I've looked into #10. Is this happening in b89- as well? I don't have code older than b90 checked out, but the issue is caused because these macro buttons technically do not "exist" since they haven't been drawn yet on the token panels (Impersonated, Selected). I'm not sure what was and when this was changed, if there was any. I didn't pursue it any further as this issue doesn't occur in Mote (due to a difference in code), and there are quite a few classes that need to be changed in MapTool in order to match my work on Mote.
As for #11, I'm not sure about these wolph. These aren't actually doing json.unique. Actually these 3 functions accomplish things differently, and through the correct means prescribed for set theory in Java: json.difference = removeAll, json.intersection = retainAll, and json.unique just puts everything in a hash set, which basically prevents duplicates
An explanation for sets in Java is found here, note the first line explains why you won't receive any output with duplicates.
As for #11, I'm not sure about these wolph. These aren't actually doing json.unique. Actually these 3 functions accomplish things differently, and through the correct means prescribed for set theory in Java: json.difference = removeAll, json.intersection = retainAll, and json.unique just puts everything in a hash set, which basically prevents duplicates
An explanation for sets in Java is found here, note the first line explains why you won't receive any output with duplicates.
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: bugs in latest patched version
Question:Lee wrote:Patch submitted for item #12.
Did you prevent OCL from running at all or does it now only run for the owner and not for the rest ?
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
Re: bugs in latest patched version
Prevented from running at all, wolph. I wrote it as you described it.wolph42 wrote: Question:
Did you prevent OCL from running at all or does it now only run for the owner and not for the rest ?
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: bugs in latest patched version
its probly for the best, although i'm wondering whether it should not run for the owner only (if the right conditions are met, like visibility).Lee wrote:Prevented from running at all, wolph. I wrote it as you described it.wolph42 wrote: Question:
Did you prevent OCL from running at all or does it now only run for the owner and not for the rest ?
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
Re: bugs in latest patched version
I'm not sure, though I would think it hinges on what kind of macro(s) are being run, and if the writer will be aware of the selectivity. Things might go awry if he/she puts a macro meant for all on a selective library token, and I imagine it'd be hard to debug alone.wolph42 wrote: its probly for the best, although i'm wondering whether it should not run for the owner only (if the right conditions are met, like visibility).
My stuff for the community:
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Donate to the Mote Project
The Mote Project's G+ community
Mote on Facebook
Fully Customizable Calendar Drop-in
Re: bugs in latest patched version
That Can be explained two was, the local lib. could interfere or dependencies won't work. But as it's an OCL I'm inclined to let it work IF it abides the rest of the rules, so visible and on the token layer.Lee wrote:I'm not sure, though I would think it hinges on what kind of macro(s) are being run, and if the writer will be aware of the selectivity. Things might go awry if he/she puts a macro meant for all on a selective library token, and I imagine it'd be hard to debug alone.wolph42 wrote: its probly for the best, although i'm wondering whether it should not run for the owner only (if the right conditions are met, like visibility).
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
Re: bugs in latest patched version
17. Light cone bug: http://forums.rptools.net/viewtopic.php ... 84#p244084 (had completely forgotten about it until my last game)
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
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: bugs in latest patched version
Just a quick note: you used (16) twice (fixed json bug and light cone)
Re: bugs in latest patched version
indeed!CoveredInFish wrote:Just a quick note: you used (16) twice (fixed json bug and light cone)
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