Giter Club home page Giter Club logo

Comments (5)

SirWaddles avatar SirWaddles commented on July 30, 2024

I'd need to see the files you're talking about. I've never experienced this issue.

I can't think of any immediate reason why any code in the parser would strip underscores in any way, strings are usually represented as a length and a buffer, so they're not even null-terminated. The only parsing that goes on is to ensure UTF-8 compliance, (or in some cases, UTF-16, which then gets converted to UTF-8.)

My first thought is that that's just how the data is represented in the file. You can sort of try to confirm this using a hex editor. It could also be possible that whatever data you're after is being dropped by an unknown structure, which is not unheard of. If this were the case however, it's unusual that it would work at all in any case.

from johnwickparse.

chobbles avatar chobbles commented on July 30, 2024

ItemDB.zip

Thanks for the speedy reply.

Please see attached for a sample uasset/uexp pair (hoping that works).

After the ITM_037 entry, the next entry seems to be truncated to just ITM. Based on "ItemID_117_6F1FA31F452C60041595208CCAED321E":56, I believe it should read ITM__116.
There are several instances of this occurring throughout the file when serialized, as well as with other files.

.

from johnwickparse.

SirWaddles avatar SirWaddles commented on July 30, 2024

I can't seem to find any indication that it's not being serialized properly. Any of the missing ITM_ values, such as (ITM_019) are simply not present in the name map (you can check this by hex editing the uasset file.)

from johnwickparse.

chobbles avatar chobbles commented on July 30, 2024

Thanks again for the reply.

There are a few items that don't exist; as you mentioned, ITM_019 is one of them (along with 021, 026, 027, to name a few). The game appears to use two ID systems: one which is prefaced with ITM, and another which is the ItemID property, and ITM_001 is not necessarily ItemID: 1.

The parser correctly notes the ItemID of the items, but shows them only as ITM. For instance, ITM_037 (ItemID 55) you see:

  },
  "ITM_037":{
     "export_type":"RowStruct",
     "ItemID_117_6F1FA31F452C60041595208CCAED321E":55,
     "ItemNameID_118_78CF4DCD438E1C10ADEE2D951C83C0BE":"TX_NA_ITM_037",
     "DetailTextID_119_9EDA66264756DC5D79E5B2889F249818":"TX_CO_ITM_037",

while the next item entry is for ItemID 56, which should be ITM__116, but is identified as only ITM:
},
"ITM":{
"export_type":"RowStruct",
"ItemID_117_6F1FA31F452C60041595208CCAED321E":56,
"ItemNameID_118_78CF4DCD438E1C10ADEE2D951C83C0BE":"TX_NA_ITM",
"DetailTextID_119_9EDA66264756DC5D79E5B2889F249818":"TX_CO_ITM",

There are a few others items with ItemID (about 188) where the ItemID is parsed correctly, but the ITM identifier (not sure if correct term) is not (e.g. ItemID 53 should be ITM__115, 103 should be ITM__117, &c, but they only show up as ITM. The ItemIDs are correct though).

I can send the serialized file, but I'm not sure how to readily point to the exact locations.

from johnwickparse.

SirWaddles avatar SirWaddles commented on July 30, 2024

As far as I can tell, the file is being serialized properly. I was asking for an example of some data that was in the file itself, which you can view in a hex editor. The data that's "not there" in your case is not in the file.

from johnwickparse.

Related Issues (20)

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.