View Issue Details

IDProjectCategoryView StatusLast Update
0005366Dwarf FortressTechnical -- Input/Keybinding/Macrospublic2012-02-22 14:33
ReporterGreiger Assigned ToBaughn  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.34.02 
Fixed in Version0.34.03 
Summary0005366: Bizarre macro behavior
DescriptionSaving a macro does not stop recording, playing that macro after saving can cause loss of game control.
Steps To ReproduceHit ctrl-r to create a macro and put in some basic commands, hit ctrl-s to save it. Note that the recording indicator is still on. Hold ctrl-p to play the macro afterwards. Note how the game is now simultaneously recording and playing the macro.

This can cause the game to go out of control, as the macro system seems to record and play itself repeatedly. A quick tap of the play button will often stop playing after a moment, but when the play button is held for a few seconds it seems to snowball out of control quickly.
TagsNo tags attached.

Relationships

has duplicate 0002571 resolvedlethosor Accidentally trying to run a macro while you are recording causes an infinite input loop 

Activities

Greiger

2012-02-21 07:31

reporter   ~0020373

Last edited: 2012-02-21 07:35

Actually, it seems holding the play key down at all to play a macro results in complete loss of game control. I imported a "down, enter, enter" macro from .31 and the macro would not stop after it was played.

This occurred in the trade screen when attempting to buy large amounts of food.

user6

2012-02-21 07:36

  ~0020375

Reminder sent to: Baughn

Macros in simultaneous record/playback or something.

Baughn

2012-02-22 14:31

manager   ~0020492

Oh, neat! I didn't realize it would do that, though it's obvious in retrospect.

I've changed the behaviour so it'll stop recording when you press ctrl-p. To the degree anyone would *want* the current behaviour, I'll deal with that using better macro keys when possible.

Baughn

2012-02-22 14:33

manager   ~0020494

Actually, let's make that "temporarily stop recording while playing it back", so you'll be able to see how it works so far and then record some more.

Issue History

Date Modified Username Field Change
2012-02-21 07:16 Greiger New Issue
2012-02-21 07:31 Greiger Note Added: 0020373
2012-02-21 07:35 user6 Status new => assigned
2012-02-21 07:35 user6 Assigned To => Baughn
2012-02-21 07:35 user6 Summary Bizzare Macro behavior => Bizarre macro behavior
2012-02-21 07:35 Greiger Note Edited: 0020373
2012-02-21 07:36 user6 Note Added: 0020375
2012-02-22 14:31 Baughn Note Added: 0020492
2012-02-22 14:31 Baughn Status assigned => resolved
2012-02-22 14:31 Baughn Fixed in Version => Next Version
2012-02-22 14:31 Baughn Resolution open => fixed
2012-02-22 14:33 Baughn Note Added: 0020494
2015-01-19 16:25 lethosor Relationship added has duplicate 0002571