Use codes rather than the printable names in data files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tangar
    Veteran
    • Mar 2015
    • 1004

    Use codes rather than the printable names in data files

    PWMA ported from V new feature - https://github.com/draconisPW/PWMAng...d1a02cb36047ff and I see from the my variant perspective that this feature is actually pretty bad for variant's (and future V!) customization... it's much easier to customize stuff based on name, than at FEAT. Eg I customize rng landscape like this in Tangaria:

    Code:
    # grass, water, tree, packed dirt
    name:grass
    feat:5:grass:,
    chance:0:floor 0 grass:20
    chance:1:floor 1 grass::20
    chance:2:floor w grass:20
    chance:3:A5 plants I:15
    chance:4:flower 0 green:1
    chance:5:flower 1 green:1
    chance:6:flower 2 green:1
    chance:7:flower 3 green:1
    chance:8:flower 4 green:1
    chance:9:flower 5 green:1
    chance:10:flower 6 green:1
    chance:11:A5 plants G:1
    chance:12:A5 plants H:1
    chance:13:A5 plants J:1
    chance:14:A5 plants K:1
    chance:15:A5 plants L:1
    chance:16:obj_grass A puddle:1
    # small trees
    chance:17:tree H:1
    chance:18:tree I:1
    chance:19:tree J:1
    chance:20:tree K:1
    chance:21:tree L:1
    chance:22:tree M:1
    chance:23:tree N:1
    chance:24:tree O:1
    chance:25:tree P:1
    chance:26:tree Q:1
    chance:27:tree R:1
    chance:28:tree S:1
    sound:WILD_GRASS
    with this update customization will be much harder... In my variant there are several thousands of terrains ( https://github.com/igroglaz/Tangaria...ta/terrain.txt ) and now with this change they all won't work...

    Of course it's not a problem, as I can just ignore this update and stay in old version, though I'll loose (even more) compatibility to PWMA and V... But still it's really bad change. IMHO it's important to expand possibilities for customization rather than to reduce them
    Last edited by tangar; February 15, 2023, 16:27.
    https://tangaria.com - Angband multiplayer variant
    tangaria.com/variants - Angband variants table
    tangar.info - my website ⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽
    youtube.com/GameGlaz — streams in English ⍽ youtube.com/StreamGuild — streams in Russian
  • tangar
    Veteran
    • Mar 2015
    • 1004

    #2
    for all who struggle to port stuff to a new system, I wrote tiny script in Golang to do it fast & ez:

    Tools and scripts for http://tangaria.com – free open-source online multiplayer roguelike game powered by PWMAngband. - script to add CODE and FEAT for terrain igroglaz/Tangaria_tools@71ee52e


    it will convert names to CODES and also put it to terrains .h file

    so after all it wasn't too hard to port this feature..
    https://tangaria.com - Angband multiplayer variant
    tangaria.com/variants - Angband variants table
    tangar.info - my website ⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽
    youtube.com/GameGlaz — streams in English ⍽ youtube.com/StreamGuild — streams in Russian

    Comment

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