Giter VIP home page Giter VIP logo

d2itemreader's People

Contributors

squeek502 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

d2itemreader's Issues

Item Y coordinate -- possible value range conflict with stash page size

the D2 item format as described here:
https://squeek502.github.io/d2itemreader/formats/d2.html#item-list-data-format

reserves a 4 bit wide value (possible values range from 0 to 15) for the X coordinate, and a 3 bit wide value (possible values range from 0 to 7) for the Y coordinate. This representation is not sufficient to place the item in the PlugY stash, which has a page size of 10 by 10.

Conveniently, after the Y coordinate is a bit labeled unknown. After checking my limited set of test data, it seems to me that PlugY uses this unknown bit to extend the Y coordinate to a 4 bit field.

It seems tempting to assume that the item format reserves 4 bit for each X and Y coordinate, or are there test files that contradict this assumption?

Handle set bonuses properly

See nokka/d2s#5

The set bits correspond with how many items of that set need to be worn to get that bonus, and also with the values of the aprop fields in SetItems.txt.

If the bits are numbered 54321:

  • If bit 1 is set, then it requires >= 2 items worn
  • If bit 2 is set, then it requires >= 3 items worn
  • If bit 3 is set, then it requires >= 4 items worn
  • If bit 4 is set, then it requires >= 5 items worn
  • If bit 5 is set, then it requires >= 6 items worn

Examples:

  • M'avina's Belt

    • Set bonuses flag: 4 (00100)
    • SetItems.txt only has aprop3 field set
    • Only gets the bonus when >= 4 items are worn
  • IK Armor

    • Set bonuses flag: 31 (11111)
    • SetItems.txt has aprop1-aprop5 fields set
    • Get a new bonus each additional item that is worn
  • Trang's Armor

    • Set bonuses flag: 10 (01010)
    • SetItems.txt has aprop2 and aprop4 fields set
    • Only gets a new bonus when >= 3 items are worn and then another at >= 5 worn

Test against PlugY 14.x

AFAIK this is the only relevant change:

  • D2_MAX_STASH_PAGE_NAME_STRLEN got upped to 20 (from 15)

Handle negative "Save Add" column in ItemStatCost.txt properly

For example, "Hit Causes Monster to Flee" (id 112) has a "Save Add" column with value -1. Need to check if this is truly a negative value or if -1 denotes something else. Either way, ItemStatCost is parsed by d2itemreader assuming unsigned integers, so there is a bug here somewhere (-1 becomes 65535).

Corrupted .sss file please help

Hi @squeek502

Please could you help me. I couldn't find another way to contact you so i'm opening an issue.

I'm looking for a way of restoring my plugy shared stash file. It got corrupted when plugy didnt save properly.

I'm trying to read my .sss file and see if i can restore it. Is this possible? Do you know how I could do it?

I'm busy looking at the plugy source code and found your repo which looks promising on how to read a .sss file.

When i try to use the corrupted .sss file the game gives error 9 "Unable to enter game. Bad header"

When I only try to use the bad character i get "Unable to enter game. Bad character version"

Please find the attached .sss file. I haven't figured out how to use the d2itemreader yet.
save_files.ZIP

// Harry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.