Zezombye / overpy

High-level language for the Overwatch Workshop with support for compilation and decompilation.
GNU General Public License v3.0
179 stars 27 forks source link

String parser is broken again #219

Open Zezombye opened 4 years ago

Zezombye commented 4 years ago
playervar isEditing

rule "":
 hudSubtext([player for player in getPlayers(Team.1) if player.isEditing], "[{1}] LEAVE EDIT MODE\n{2} CREATE BOT\n{3} GRAB BOT\n[{4}] REMOVE BOT\n[{0}] + [{4}] REMOVE ALL BOTS\n[{5}] PLACE RESET MARKER\n[{0}] + [{5}] REMOVE RESET MARKER\n[{6}] INCREASE PLACEMENT DISTANCE\n[{0}] + [{6}] DECREASE PLACEMENT DISTANCE".format(buttonString(Button.ABILITY_1), buttonString(Button.INTERACT), buttonString(Button.PRIMARY_FIRE), buttonString(Button.SECONDARY_FIRE), buttonString(Button.ABILITY_2), buttonString(Button.RELOAD), buttonString(Button.MELEE)), HudPosition.LEFT, -9, Color.WHITE, HudReeval.VISIBILITY_AND_STRING, SpecVisibility.DEFAULT)  # show keybinds
Zezombye commented 4 years ago

Another bug:

playervar isEditing
playervar menuPage

rule "":
 hudSubtext([player for player in getPlayers(Team.1) if player.isEditing and player.menuPage == 0], "{1} CREATE BOT {2}\n{3} GRAB BOT\n[{4}] REMOVE BOT\n[{0}] + [{4}] REMOVE ALL BOTS\n[{4}] PLACE RESET MARKER\n[{0}] + [{4}] REMOVE RESET MARKER\n[{5}] INCREASE PLACEMENT DISTANCE\n[{0}] + [{5}] DECREASE PLACEMENT DISTANCE".format(buttonString(Button.ABILITY_1), buttonString(Button.PRIMARY_FIRE), buttonString(Button.SECONDARY_FIRE), buttonString(Button.ABILITY_2), buttonString(Button.RELOAD), buttonString(Button.MELEE)), HudPosition.LEFT, 0, Color.WHITE, HudReeval.VISIBILITY_AND_STRING, SpecVisibility.DEFAULT)  # show keybinds

Seems to be because of argument reordering.