Author Topic: Adjusted Item Properties  (Read 3449 times)

Malachor

  • Developer
  • Great Eye / First
  • ****
  • Posts: 2005
  • Karma: 25
Adjusted Item Properties
« on: Nov 01, 2015; 03:33 AM »
Just reuploading my AdjustedItemProperties file.

Morphy

  • Named
  • **
  • Posts: 199
  • Karma: 2
Re: Adjusted Item Properties
« Reply #1 on: Nov 01, 2015; 05:25 PM »
Forgive me if this is either dumb or has already been explained..but  (example)

Quote
Luck: 00 00 00 82 xx 00 00 00
You must use a value 10 times larger than what you want ingame, eg. use 1000, if you want 100.

How do you put 1000 into that "xx" - the max the "xx" can carry is FF, 255...

Am I missing something?

Same here:

Quote
Stack size: 00 00 C0 49 xx 00 00 00 00 00 00 4A yy 00 00 00
xx is the maximum number in the stack, eg 20 for injectors or 5000 for components.
yy is the current number in the stack.

One byte can't carry the value for 5000...

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Adjusted Item Properties
« Reply #2 on: Nov 01, 2015; 05:35 PM »
Forgive me if this is either dumb or has already been explained..but  (example)

Quote
Luck: 00 00 00 82 xx 00 00 00
You must use a value 10 times larger than what you want ingame, eg. use 1000, if you want 100.

How do you put 1000 into that "xx" - the max the "xx" can carry is FF, 255...

Am I missing something?

Same here:

Quote
Stack size: 00 00 C0 49 xx 00 00 00 00 00 00 4A yy 00 00 00
xx is the maximum number in the stack, eg 20 for injectors or 5000 for components.
yy is the current number in the stack.

One byte can't carry the value for 5000...
1000 would be 3E8 in hex. You have to reorganize the digits in pairs. It would become E8 03. If there's an uneven number of digits you add a 0 to the first digit in the original hex (the one before reorganizing them).
Hope this helps.

Morphy

  • Named
  • **
  • Posts: 199
  • Karma: 2
Re: Adjusted Item Properties
« Reply #3 on: Nov 01, 2015; 10:19 PM »
Dank Rafft - yes, i understand the concepts of hex and the reversal of the character pairs..

But:

Quote
Stack size: 00 00 C0 49 xx 00 00 00 00 00 00 4A yy 00 00 00
xx is the maximum number in the stack, eg 20 for injectors or 5000 for components.

In that, are the two hex values the 49xx or the xx00?  You need two hex values to make 5000 decimal.

You can't just ADD more characters, you cant make it 49 1A 1F 00.

That was the thrust of my question - the decimal numbers shown need four character hex but the location shown "xx" is only two character hex.

(I say 'character' to refer to the text version, "xx" being two characters)

Malachor

  • Developer
  • Great Eye / First
  • ****
  • Posts: 2005
  • Karma: 25
Re: Adjusted Item Properties
« Reply #4 on: Nov 02, 2015; 12:08 AM »
Dank Rafft - yes, i understand the concepts of hex and the reversal of the character pairs..

But:

Quote
Stack size: 00 00 C0 49 xx 00 00 00 00 00 00 4A yy 00 00 00
xx is the maximum number in the stack, eg 20 for injectors or 5000 for components.

In that, are the two hex values the 49xx or the xx00?  You need two hex values to make 5000 decimal.

You can't just ADD more characters, you cant make it 49 1A 1F 00.

That was the thrust of my question - the decimal numbers shown need four character hex but the location shown "xx" is only two character hex.

(I say 'character' to refer to the text version, "xx" being two characters)
You can do this:
Quote
00 00 C0 49 xx xx 00 00 00 00 00 4A yy yy 00 00

Morphy

  • Named
  • **
  • Posts: 199
  • Karma: 2
Re: Adjusted Item Properties
« Reply #5 on: Nov 02, 2015; 02:12 PM »
Thanks for that.

Normally when you hex edit, you can't add extra to a file.

Like when you edit a save file, if you start with 1A 1B 1C then all you can do is make it 1A 1C 1C, not 1A 1B 1D 1C

The extra 1D pushes the 1C into a new location and it gets read for "Stamina" instead of "Strength" (for example)

Hellgate seems weird, if it allows for additions to a file like that.

Thanks for the reply.

Malachor

  • Developer
  • Great Eye / First
  • ****
  • Posts: 2005
  • Karma: 25
Re: Adjusted Item Properties
« Reply #6 on: Nov 03, 2015; 01:06 AM »
But you're not adding, you're replacing 00 with xx. Count the 00s

Dank Rafft

  • Founder
  • Named
  • **
  • Posts: 225
  • Karma: 15
  • but friends call me daft
    • Youtube Channel
Re: Adjusted Item Properties
« Reply #7 on: Nov 03, 2015; 09:12 AM »
For example:
00 00 40 24 XX 00 00 00 is the hex for palladium. If I want to give myself 999.999 palladium I replace it with 00 00 40 24 3F 42 0F 00. You can override 00 bytes but the total amount of bytes shouldn't increase.

Morphy

  • Named
  • **
  • Posts: 199
  • Karma: 2
Re: Adjusted Item Properties
« Reply #8 on: Nov 03, 2015; 05:52 PM »
Thanks guys, I can see it clearly now.

The 00 00 00 IS the place holder for larger values.  And the "xx" is the START of that section.

Sorry, I was reading them as the next item or attribute along the list.

It's obvious now - I must have just been "number blind". Sometime you can't see the trees for the trees, let along for the forest!

Thanks.