Results 1 to 4 of 4

Thread: Data Files and Id numbers question

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Posts
    4

    Default Data Files and Id numbers question

    I see that Item.txt has the item numbers for each entry but Equipment.txt doesn't.

    The item number for equipment is in the web pages. Is there any plan to add this data?

    Why? I'm updating the pykol code to python 3.x (3.7 at this time) and I plan to sync with the mafia data files.

    If the mafia developers don't add this I'll be adding code to start mapping this data.

    I can't see my code being ready for a 0.1 release before Jan 2018 as there is so much to fix and update.

  2. #2
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,447

    Default

    items.txt has item number and item name and other stuff.
    equipment.txt has item name and other stuff.
    We're fine with that. There are no plans to add item number (which is redundant, given item name) to equipment.txt.

    There are a handful of items with the same name but different item numbers.
    No worries! There is syntax to specify an item using both item number and item name. And I am sure that equipment.txt uses that syntax, as needed.

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,447

    Default

    Here is an example from equipment.txt:

    Code:
    [2268]Staff of Fats	100	Mys: 35	2-handed staff
    [7964]Staff of Fats	100	Mys: 35	2-handed staff

  4. #4
    Developer
    Join Date
    Apr 2010
    Posts
    4,872

    Default

    And that syntax doesn’t really use the name part, it is there for humans. Item number surrounded by square brackets is a valid, and specific, item name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •