Macros are... gone???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2940

    Macros are... gone???

    As a variant maintainer who just implemented some features from V3.2 in his variant, I found a bug when running the SDL client: the new pref parser cannot parse pref-sdl.prf correctly because of the "T:\::\:" line. This line is misinterpreted as "T \ \" (using ":" as token for parsing) instead of "T : :", and then translated into n1 = NULL, n2 = NULL by the parse_prefs_t() hook. The result is that when parsing the next line, parser_freeold() crashes with a NULL pointer exception when trying to free some memory related to n1 and n2.

    Since I wanted to fix this, I tried to look at the latest source code in the repository... and found that parse_prefs_t() didn't exist anymore. In fact, pref-sdl.prf doesn't exist anymore, as well as anything related to Macro Trigger configuration.

    Investigating further, I found a committed changeset... that simply removed the entire macro system!!!

    Will this system be replaced by something else? I have a BIG problem here... My variant is real-time based, not turn-based. It's impossible for a player to type 3-4 keys (command, item choice, direction, target...) while struggling to keep the character alive in real-time. In Vanilla Angband, the macro system is kinda pointless... but in my variant it's primordial to be able to perform an action with one key.

    There's some cool stuff here: http://trac.rephial.org/wiki/InputRework. I hope this will be implemented...
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
  • takkaria
    Veteran
    • Apr 2007
    • 1895

    #2
    Originally posted by PowerWyrm
    Investigating further, I found a committed changeset... that simply removed the entire macro system!!!

    Will this system be replaced by something else? I have a BIG problem here... My variant is real-time based, not turn-based. It's impossible for a player to type 3-4 keys (command, item choice, direction, target...) while struggling to keep the character alive in real-time. In Vanilla Angband, the macro system is kinda pointless... but in my variant it's primordial to be able to perform an action with one key.

    There's some cool stuff here: http://trac.rephial.org/wiki/InputRework. I hope this will be implemented...
    Keymaps are better now, so macros aren't necessary. You saw a commit that removed macros – read a bit closer and you'll see it did a lot of other work, amounting to rewrite of the input system in a way that makes keypress handling a lot cleaner. As part of that, keymaps should do everything you wanted macros to do.
    takkaria whispers something about options. -more-

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎