Navigation

    angband.live forum

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. DavidMedley
    D
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    DavidMedley

    @DavidMedley

    1
    Reputation
    5
    Posts
    3
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    DavidMedley Follow

    Best posts made by DavidMedley

    • RE: Parsing info from .txt files

      I've written a Perl script that parses monster.txt and monster_base.txt. I don't think I have Wiki database access yet to add it to the new wiki. I created a really basic page on the wiki here:
      https://wiki.angband.live/index.php/Creature_template
      My current idea is to generate a new page for each monster and fill that "statblock" table with the data. Then people can edit all around the statblock - tips and tricks, Tolkien history, whatever - and when the data changes I can replace the statblock and leave everything else untouched. I think we'll want a little drop-down menu to display statblocks from different versions but I haven't gotten that far. It would be handy, I think, to have identically named monsters from similar *bands share a page as well, but that's undecided.

      If anyone has ideas how to liven up that template, that'd be awesome. For example, if we're legally allowed we could put Shockbolt's icon up there. But I don't know off-hand how to take the big image of all the tiles and turn it into one image for each tile and name it appropriately. But I know that professionals in image manipulation could do it in an hour or less. And we'll need to display what *band(s) this monster is found in. Also, not all info is equally important, so we'd probably want Depth (for example) displayed prominently.

      posted in Angband Wiki
      D
      DavidMedley

    Latest posts made by DavidMedley

    • RE: Parsing info from .txt files

      I'm sure you're right about that, but I want to do it from the bottom-up, so to speak. And I don't want the data structure of this template any more complex than it needs to be.

      posted in Angband Wiki
      D
      DavidMedley
    • RE: Parsing info from .txt files

      I don't mean to suggest that every bit of data in every file we're going to read is in the format "name:value". The line:
      I:2:7d4:0 (Sil)
      Is three name/value pairs once it's been read properly, though, and that's how I picture it looking in the wiki:
      Speed->2
      Health->7d4
      Light->0

      posted in Angband Wiki
      D
      DavidMedley
    • RE: Parsing info from .txt files

      @Gwarl What are your goals apart from putting this information into the wiki? We don't need "formal specifications" to take name/value pairs from a text file and put them into an HTML table.

      posted in Angband Wiki
      D
      DavidMedley
    • RE: Parsing info from .txt files

      I've written a Perl script that parses monster.txt and monster_base.txt. I don't think I have Wiki database access yet to add it to the new wiki. I created a really basic page on the wiki here:
      https://wiki.angband.live/index.php/Creature_template
      My current idea is to generate a new page for each monster and fill that "statblock" table with the data. Then people can edit all around the statblock - tips and tricks, Tolkien history, whatever - and when the data changes I can replace the statblock and leave everything else untouched. I think we'll want a little drop-down menu to display statblocks from different versions but I haven't gotten that far. It would be handy, I think, to have identically named monsters from similar *bands share a page as well, but that's undecided.

      If anyone has ideas how to liven up that template, that'd be awesome. For example, if we're legally allowed we could put Shockbolt's icon up there. But I don't know off-hand how to take the big image of all the tiles and turn it into one image for each tile and name it appropriately. But I know that professionals in image manipulation could do it in an hour or less. And we'll need to display what *band(s) this monster is found in. Also, not all info is equally important, so we'd probably want Depth (for example) displayed prominently.

      posted in Angband Wiki
      D
      DavidMedley
    • RE: Parsing info from .txt files

      I don't know how to put the output data into Mediawiki. Anyone who could point me in the right direction would be greatly appreciated.

      posted in Angband Wiki
      D
      DavidMedley