UnReal World forums

UnReal World => Modding => Mod Releases => Topic started by: Brygun on December 20, 2018, 04:48:15 AM

Title: Looking up vanilla item prices and weights
Post by: Brygun on December 20, 2018, 04:48:15 AM

The wiki has some info such as this incomplete on the wooden tub

http://www.unrealworld.fi/wiki/index.php?title=Wooden_tub

As Im writing a mod I'd like to base my weights and prices in proportions to the vanilla but Im not sure of the data.

Is there a way to drill into the data files to look those up for vanilla items?
Title: Re: Looking up vanilla item prices and weights
Post by: Brygun on January 02, 2019, 09:53:32 PM
So far the only available reference is

https://www.unrealworld.fi/wiki/index.php?title=Price_v3.40

Title: Re: Looking up vanilla item prices and weights
Post by: caethan on January 04, 2019, 06:41:35 PM
It's still pretty hacky, but this is the notebook where I do data extraction:  https://github.com/caethan/urw-object-reader/blob/master/URW%20object%20evaluation.ipynb

Each object has 172 bytes of data, and I've successfully identified (I think) what some of that data is.  Still don't know everything, though.  You can dig into the CONSTANT.OBJ file for static data or CHARNAME/CHARNAME.OBJ for character-specific data. 
Title: Re: Looking up vanilla item prices and weights
Post by: caethan on January 04, 2019, 06:52:11 PM
And if you don't want to run it yourself, here's the full table dump from CONSTANT.OBJ: 

https://docs.google.com/spreadsheets/d/1l3JpN3IcZu3h82NXmfZ8F3hl1vYbAiQwFngQ1rB5dDs/edit#gid=0
Title: Re: Looking up vanilla item prices and weights
Post by: Brygun on January 05, 2019, 04:07:20 AM
Thanks!

Is there a way to download that rather than open in a browser window?
Title: Re: Looking up vanilla item prices and weights
Post by: caethan on January 07, 2019, 07:25:43 PM
Here you go:
Title: Re: Looking up vanilla item prices and weights
Post by: Brygun on January 07, 2019, 08:28:04 PM
thanks!

I didnt have time to do a thorough economic review for the BAC project recipes for valuable/trade items

<-->
PS

Did you mean for the file to on the upload list twice?
Title: Re: Looking up vanilla item prices and weights
Post by: Brygun on January 07, 2019, 08:42:21 PM
Double thanks,

I was able to use it to identify what graphics are already part of the vanilla game to reduce the size of future BAC zip files
Title: Re: Looking up vanilla item prices and weights
Post by: Credit on March 27, 2019, 06:27:18 PM
Been looking for a table like this, thanks!
Title: Re: Looking up vanilla item prices and weights
Post by: Night on November 16, 2019, 11:35:17 PM
And if you don't want to run it yourself, here's the full table dump from CONSTANT.OBJ: 

https://docs.google.com/spreadsheets/d/1l3JpN3IcZu3h82NXmfZ8F3hl1vYbAiQwFngQ1rB5dDs/edit#gid=0

Just wanted to give a huge thanks for this, been manually mapping this struct in cheat engine, this should help tremendously. I'd also like to point out, that Weight1 is actually the data value for deterioration, despite it being the same value as Weight2. When the item deteriorates, it loses a small chunk of Weight1's value.

Title: Re: Looking up vanilla item prices and weights
Post by: aat on November 21, 2019, 02:03:38 AM
And if you don't want to run it yourself, here's the full table dump from CONSTANT.OBJ: 

https://docs.google.com/spreadsheets/d/1l3JpN3IcZu3h82NXmfZ8F3hl1vYbAiQwFngQ1rB5dDs/edit#gid=0

Just wanted to give a huge thanks for this, been manually mapping this struct in cheat engine, this should help tremendously. I'd also like to point out, that Weight1 is actually the data value for deterioration, despite it being the same value as Weight2. When the item deteriorates, it loses a small chunk of Weight1's value.

That's great news! I'm been working on my own mod and I've been inferring prices and weights directly in-game, this would speed up a lot.  Please keep us posted with your progress.

I would also like to point out that the Value in the table is *not* the value in squirrel hides, which is the standard unit used in the recipes with the [PRICE:] tag.
It is instead 8 times the price in squirrel hides. Here is what I've inferred in-game:
1 wooden bowl : 0.4 squirrel hides
1 broad knife : 17 squirrel hides

In fact, in the table:
wooden bowl Value : 3.2 = 0.4 * 8
broad knife Value: 136 = 17 * 8
Title: Re: Looking up vanilla item prices and weights
Post by: Brygun on November 21, 2019, 03:18:21 PM
That price unit difference led to one of the major revisions of the BAC. Some elements had accounted for it and some didn't. The overhaul a few versions back got them all in sync to the actual [PRICE:] unit.
Title: Re: Looking up vanilla item prices and weights
Post by: aat on November 22, 2019, 01:32:03 AM
By the way, in the table I see no entries for attack/defense or accuracy. Are they stored somewhere else?
Title: Re: Looking up vanilla item prices and weights
Post by: Night on November 22, 2019, 05:30:04 AM
By the way, in the table I see no entries for attack/defense or accuracy. Are they stored somewhere else?

Attack/defence are determined by the blunt, edge, point, tear, squeeze, and warmth values as far as I know.
Melee accuracy I couldn't find, but ranged accuracy has its own value not currently described in the table, but it is in the data struct the table is based off of.

I may post my own findings/documentation later, as this table doesn't fully describe all the data, but has most.

the final value of the item (not base value) is also affected by quality, which is described here: https://www.unrealworld.fi/wiki/index.php?title=Quality
Title: Re: Looking up vanilla item prices and weights
Post by: aat on November 22, 2019, 11:14:05 AM
By the way, in the table I see no entries for attack/defense or accuracy. Are they stored somewhere else?

Attack/defence are determined by the blunt, edge, point, tear, squeeze, and warmth values as far as I know.
Melee accuracy I couldn't find, but ranged accuracy has its own value not currently described in the table, but it is in the data struct the table is based off of.

I may post my own findings/documentation later, as this table doesn't fully describe all the data, but has most.

the final value of the item (not base value) is also affected by quality, which is described here: https://www.unrealworld.fi/wiki/index.php?title=Quality

Actually every melee weapon has an attack/defense bonus, which is represented by a number from 0 to 6. You can check in-game by examining the weapon in your inventory, and even mod the values:
https://www.unrealworld.fi/wiki/index.php?title=Weapons

On the other hand, the accuracy parameter should be only for bows and crossbows, but it's hidden in-game and cannot be modded.
Title: Re: Looking up vanilla item prices and weights
Post by: Night on November 22, 2019, 09:50:32 PM

Actually every melee weapon has an attack/defense bonus, which is represented by a number from 0 to 6. You can check in-game by examining the weapon in your inventory, and even mod the values:
https://www.unrealworld.fi/wiki/index.php?title=Weapons

On the other hand, the accuracy parameter should be only for bows and crossbows, but it's hidden in-game and cannot be modded.

Ranged accuracy is in the struct this table was scraped from (modifiable via cheat engine). Bonus attack and defense were not described in the struct as far as I could see. Maybe someone else can spot it:

http://prntscr.com/q0rttk

Also, bows aren't exclusive to the ranged accuracy value, spears also have a ranged accuracy (not described on wiki as far as i know).

http://prntscr.com/q0s2he


edit: Potentially found attack/defence bonus. confirming atm.

Attack/defense bonus were stored in an unusual way making it hard to correlate the wiki values to data.
http://prntscr.com/q0saqb

52 represents the attack AND defence bonus for the item staff in this case, converting 52 to hex we get 0x34, and then splitting the two numbers from each other we get the respective values 3 and 4 for defense and attack bonus. strange that its done this way...

here are some other values for reference:

Battlesword: Value 37, hex 0x25, bonus values 5 attack 2 defense.
Staff: value 52, hex 0x34, bonus values 4 attack, 3 defense.
Scimitar: value 34, hex 0x22, bonus values 2 attack 2 defense.
Boardsword: value 35, hex 0x23, bonus values 3 attack 2 defense.
Mace: value 19, hex 0x13, bonus values 3 attack 1 defense.

Highly likely this value represents the bonus'.


edit2: I have found another table created by someone on the wiki, including some values not included on this table. this is for version 3.52, however it should still be relevant.

https://github.com/fabio-t/UrwObjDump/blob/master/Dumps/3.52.constant.obj.csv
Title: Re: Looking up vanilla item prices and weights
Post by: smilediver on January 09, 2020, 12:11:59 PM
edit2: I have found another table created by someone on the wiki, including some values not included on this table. this is for version 3.52, however it should still be relevant.

https://github.com/fabio-t/UrwObjDump/blob/master/Dumps/3.52.constant.obj.csv

I'm the author and maintainer of this tool. The original link to the repo is at https://github.com/smilediver/UrwObjDump . I play the game on and off, so I'm updating the tool sparingly. You can find already dumped 'constant.obj' files for different game versions here: https://github.com/smilediver/UrwObjDump/tree/master/Dumps . And you can dump obj files on your own by downloading the tool here: https://github.com/smilediver/UrwObjDump/releases . I also maintain item structure of known fields here https://github.com/smilediver/UrwObjDump/blob/master/UrwStructs.hsl , that can be used in "Hex Workshop" editor to inspect and modify obj files.
Title: Re: Looking up vanilla item prices and weights
Post by: Night on January 10, 2020, 11:51:33 AM
edit2: I have found another table created by someone on the wiki, including some values not included on this table. this is for version 3.52, however it should still be relevant.

https://github.com/fabio-t/UrwObjDump/blob/master/Dumps/3.52.constant.obj.csv

I'm the author and maintainer of this tool. The original link to the repo is at https://github.com/smilediver/UrwObjDump . I play the game on and off, so I'm updating the tool sparingly. You can find already dumped 'constant.obj' files for different game versions here: https://github.com/smilediver/UrwObjDump/tree/master/Dumps . And you can dump obj files on your own by downloading the tool here: https://github.com/smilediver/UrwObjDump/releases . I also maintain item structure of known fields here https://github.com/smilediver/UrwObjDump/blob/master/UrwStructs.hsl , that can be used in "Hex Workshop" editor to inspect and modify obj files.

Hello! I'm still mapping the struct as well, I can help you map some of the ones you're missing if you're interested. Let me know ^^.
Title: Re: Looking up vanilla item prices and weights
Post by: StefanPravda on February 02, 2020, 01:52:29 PM
These things are better than the wiki.  :-*