Posts: 255
|
Post by Re-Play games on Aug 22, 2020 11:47:57 GMT 10
Editing the number of slots for weapons and items. Warning:Before modifying any files, make a backup copy. This is a modification made directly in the game executable "game.exe" Any wrong changes that make your game may stop working. =====================================================================
Before starting, let's open the game and see how many slots the weapon or item we want to modify occupies in the inventory (I will use TMP as an example).
We see that it occupies a total of 6 slots in the inventory, that is, 03 horizontally and 02 vertically (3x2=6 slots). Basically, we only need 3 values to know where the slots of each weapon are within the game's .EXE:
1 - Id of weapon or item in hexadecimal. 2 - number of slots in the horizontal position. 3 - number of slots in the vertical position.
But how do we find these values in game.exe?
Simple, let's open the game executable in a hex editor. I recommend using HxD, you can download it here: HxD
Now we execute the command CTRL F to open the search window, and click on the "Hex-values" tab.
Now, the order of the values that we need to type in the search box is as follows: weapon or item id, number of slots in the horizontal position, number of slots in the vertical, exactly in that order. In the case of tmp, it would be:
30000000000302 (Important: always add "000000" after the weapon id and before the slot values). so we type "300000000302" in the search box and hit enter.
Now that we have found the values of the TMP slots, we need to understand the following:
all bytes in blue correspond to a single weapon, in this case tmp ... the next value 34 00 00 00 07 03 ... would be chicago typewriter (infinite) and so on ...
good, let's proceed
30 00 00 00 03 02 00 00 00 00 80 3F 00 00 00 3F 31 31 31 31 31 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 80 3F = X coordinates
00 00 00 3F = Y Coordinates (height)
31 31 31 31 31 31 = this value corresponds to the expensive slot that the weapon / item occupies, that is, if the tmp occupies 6 slots in the inventory, then we will have 6 bytes with a value of "31".
Now let's make it occupy 18 slots in the inventory.
Then we modify the values leaving them as follows:
execute the command CTRL S to save and open the game.
Well, this is useful for those who modify the weapon models in the inventory, if they want to place models whose scale is larger than the original weapon model ... I hope I have explained this in a way that everyone can understand. As Mr. Curious said "happy modding".
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Aug 22, 2020 19:41:09 GMT 10
Holy shit man !!!! Amazing discovery. wow. How did you figure this out !?
PROPS!!!!
|
|
sed.akoson@gmail.com
Posts: 651
|
Post by seda on Aug 22, 2020 21:22:36 GMT 10
woooow man you have discovered one of the Newton's laws of re4!
congratulations and thank you
I have few questions
1. is it same in steam version?
2. do you have a full list of weapons' IDs
3. what is the reason of using two-digit!? I mean is it just because of hex rules or there is a ... because as I remember the longest weapon in the game is the rifle and it takes just nine slots (unfortunately I ddon' have access to the game rrigh now so I am not sure) did I missed a bigger one in the game?
4. if we change the values what will happen to the size of objects and 3d models does the game shrink the models down the size ? or stretching those to fit the new position?
and I wish you happiness in your modding time and also in entire of your life
and also I wish you keep your discoveries up because there are lots of stuff to figure out about this game like limit of number of saves
|
|
Posts: 130
|
Post by tomazm on Aug 23, 2020 2:24:54 GMT 10
nice man , Leo Lima managed to do this in his mod , good tutorial
|
|
Posts: 255
|
Post by Re-Play games on Aug 23, 2020 3:39:30 GMT 10
Holy shit man !!!! Amazing discovery. wow. How did you figure this out !? PROPS!!!!I was analyzing the executable of the ps2 version, some things are similar in the 2007 and uhd version.
|
|
Posts: 255
|
Post by Re-Play games on Aug 23, 2020 4:13:13 GMT 10
woooow man you have discovered one of the Newton's laws of re4! congratulations and thank you I have few questions 1. is it same in steam version? 2. do you have a full list of weapons' IDs 3. what is the reason of using two-digit!? I mean is it just because of hex rules or there is a ... because as I remember the longest weapon in the game is the rifle and it takes just nine slots (unfortunately I ddon' have access to the game rrigh now so I am not sure) did I missed a bigger one in the game? 4. if we change the values what will happen to the size of objects and 3d models does the game shrink the models down the size ? or stretching those to fit the new position? and I wish you happiness in your modding time and also in entire of your life and also I wish you keep your discoveries up because there are lots of stuff to figure out about this game like limit of number of saves 1 - yes, I believe so, since these values are the same in the ps2 version and in the classic version.
2 - this applies to all items that appear in the inventory, including healing items, ammo etc ...
00 - magnum ammo 01 - hand grenade 02 - incendiary grenade 03 - matilda 04 - handgun ammo 05 - first aid spray 06 - green herb 07 - rifle ammo 08 - chicken egg 09 - brown chickev cxszsn egg 0A - gold chicken egg 0B - aaa 0C - plaga sample 0D - krauser's knife 0E - flash grenade 0F - salazar family insignia 10 - bowgun 11 - bowgun bolts 12 - green herb x2 13 - green herb x3 14 - mixed herbs (g+r) 15 - mixed herbs (g+r+y) 16 - mixed herbs (g+y) 17 - rocket launcher (special) 18 - shotgun shells 19 - red herb 1A - handcannon ammo 1B - hourglass w/ gold decor 1C - yellow herb 1D - stone tablet 1E - lion ornament 1F - goat ornament 20 - tmp ammo 21 - punisher 22 - punisher w/ silencer 23 - handgun 24 - handgun w/ silencer 25 - red9 26 - red9 w/ stock 27 - blacktail 28 - blacktail w/ silencer 29 - broken butterfly 2A - killer7 2B - killer7 w/ silencer 2C - shotgun 2D - striker 2E - rifle 2F - rifle (semi-auto) 30 - tmp 31 - activation key (blue) 32 - tmp w/ stock 33 - activation key (red) 34 - chicago typewriter (infinite) 35 - rocket launcher 36 - mine thrower 37 - handcannon 38 - combat knife 39 - serpent ornament 3A - moonstone (right half) 3B - insignia key 3C - round insignia 3D - false eye 3E - custom tmp 3F - silencer (handgun) 40 - (silncer(??? 41 - p.r.l. 412 42 - stock (red9) 43 - stock (tmp) 44 - scope (rifle) 45 - scope (semi-auto rifle) 46 - mine-darts 47 - shotgun** 48 - capture luis sera 49 - target practice 4A - luis' memo 4B - castellan memo 4C - female intruder 4D - butler's memo 4E - sample retrieved 4F - ritual preparation 50 - luis' memo 2 51 - rifle (semi-auto) w/ infrared scope 52 - krauser's bow 53 - chicago typewriter (regular) 54 - treasure map (castle) 55 - treasure map (island) 56 - velvet blue 57 - spinel 58 - pearl pendant 59 - brass pocket watch 5A - elegant headdress 5B - antique pipe 5C - gold bangle w/ pearls 5D - amber ring 5E - beerstein 5F - green catseye 60 - red catseye 61 - yellow catseye 62 - beerstein w/ (g) 63 - beerstein w/ ® 64 - beerstein w/ (y) 65 - beerstein w/ (g,r) 66 - beerstein w/ (g,y) 67 - beerstein w/ (r,y) 68 - beerstein w/ (g,r,y) 69 - moonstone (left half) 6A - chicago typewriter ammo 6B - rifle + scope 6C - rifle (semi-auto) w/ scope 6D - infinite launcher 6E - king's grail 6F - queen's grail 70 - staff of royalty 71 - gold bars 72 - arrows 73 - bonus time 74 - emergency lock card key 75 - bonus points 76 - green catseye 77 - ruby 78 - treasure box (s) 79 - treasure box (l) 7A - blue moonstone 7B - key to the mine 7C - attache case s 7D - attache case m 7E - attache case l 7F - attache case xl 80 - golden sword 81 - iron key 82 - stone of sacrifice 83 - storage room card key 84 - freezer card key 85 - piece of the holy beast, panther 86 - piece of the holy beast, serpent 87 - piece of the holy beast, eagle 88 - jet-ski key 89 - dirty pearl pendant 8A - dirty brass pocket watch 8B - old key 8C - camp key 8D - dynamite 8E - lift activation key 8F - gold bangle 90 - elegant perfume bottle 91 - mirror w/ pearls & rubies 92 - waste disposal card key 93 - elegant chessboard 94 - riot gun 95 - black bass 96 - hourglass w/ gold decor 97 - black bass (l) 98 - illuminados pendant 99 - rifle w/ infrared scope 9A - crown 9B - crown jewel 9C - royal insignia 9D - crown with jewels 9E - crown with an insignia 9F - salazar family crown A0 - rifle ammo (infrared) A1 - emerald A2 - bottle caps A3 - gallery key A4 - emblem (right half) A5 - emblem (left half) A6- hexagonal emblem A7 - castle gate key A8 - mixed herbs (r+y) A9 - treasure map (village) AA - scope (mine-thrower) AB - mine-thrower + scope AC - playing manual 1 AD - info on ashley AE - playing manual 2 AF - alert order B0 - about the blue medallions B1 - chief's note B2 - closure of the church B3 - anonymous letter B4 - playing manual 3 B5 - sera and the 3rd party B6 - two routes B7 - village's last defense B8 - butterfly lamp B9 - green eye BA - red eye BB - blue eye BC - butterfly lamp w/ ( g ) BD - butterfly lamp w/ ( r ) BE - butterfly lamp w/ ( b ) BF - butterfly lamp w/ ( g, r ) C0 - butterfly lamp w/ ( g, b ) C1 - butterfly lamp w/ ( r, b ) C2 - butterfly lamp w/ ( r, g, b ) C3 - prison key C4 - platinum sword C5 - infrared scope C6 - elegant mask C7 - green gem C8 - red gem C9 - purple gem CA - elegant mask w/ ( g ) CB - elegant mask w/ ( r ) CC - elegant mask w/ ( p ) CD - elegant mask w/ ( g, r ) CE - elegant mask w/ ( g, p ) CF - elegant mask w/ ( r, p ) D0 - elegant mask w/ ( r, g, p ) D1 - golden lynx D2 - green stone of judgement D3 - red stone of faith D4 - blue stone of treason D5 - golden lynx w/ ( g ) D6 - golden lynx w/ ( r ) D7 - golden lynx w/ ( b ) D8 - golden lynx w/ ( g, r ) D9 - golden lynx w/ ( g, b ) DA - golden lynx w/ ( r, b ) DB - golden lynx w/ ( g, r, b ) DC - leon w/ rocket launcher DD - leon w/ shotgun DE - leon w/ handgun DF - ashley graham E0 - luis sera E1 - don jose E2 - don diego E3 - don esteban E4 - don manuel E5 - dr. salvador E6 - merchant E7 - zealot w/ scythe E8 - zealot w/ shield E9 - zealot w/ bowgun EA - leader zealot EB - soldier w/ dynamite EC - soldier w/ stun-rod ED - soldier w/ hammer EE - isabel EF - maria F0 - ada wong F1 - bella sisters F2 - don pedro F3 - j.j. F4 - letter from ada F5 - luis' memo 3 F6 - paper airplane F7 - our plan F8 - luis' memo 4 F9 - krauser's note FA - luis' memo 5 FB - our mission FC - aaa FD - aaa FE - tactical vest FF - aaa
256 - punisher 257 - handgun 258 - shotgun 259 - mine thrower 260 - handcannon 261 - mine thrower + scope 262 - mission directives 1 263 - mission directives 2 264 - mission directives 3 265 - mission directives 4 266 - mission directives 5 267 - mission 1 treasure map 268 - mission 2 treasure map 269 - mission 3 treasure map 270 - mission 4 treasure map 271 - mission 5 treasure map
3 - I don't know for sure, I figured out how to change this by accident, trying to find patterns and using logic ... and math too xD.
4 - it doesn’t affect the 3d model, I don’t move them because it only moves the slots, and when I change the 3d models they stay out.
|
|
Posts: 255
|
Post by Re-Play games on Aug 23, 2020 4:16:41 GMT 10
nice man , Leo Lima managed to do this in his mod , good tutorial nós trocamos algumas dicas mano, valeu
|
|
sed.akoson@gmail.com
Posts: 651
|
Post by seda on Aug 23, 2020 11:21:20 GMT 10
thank you sooo much I'm really appreciate
best wishes for You
|
|
dale home
Posts: 288
|
Post by kTeo on Aug 27, 2020 11:59:46 GMT 10
thanks for the help, man! i was struggling to find a stable way to mess with this file in x86 assembly, had no idea it could be edited in hex. very smart of me lol
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Aug 27, 2020 15:06:52 GMT 10
I was searching through the Bio4.exe for RE4UHD and found an interesting entry:
52 00 00 00 07 03 00 00 00 00 40 40 00 00 80 3F 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0.........
Any thoughts on this one? Do you think this might actually be the case itself? The XL case seems to be 15 x 8 but this entry shows 21 values of 31
|
|
Posts: 255
|
Post by Re-Play games on Aug 28, 2020 7:47:19 GMT 10
I was searching through the Bio4.exe for RE4UHD and found an interesting entry: 52 00 00 00 07 03 00 00 00 00 40 40 00 00 80 3F 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0......... Any thoughts on this one? Do you think this might actually be the case itself? The XL case seems to be 15 x 8 but this entry shows 21 values of 31 this entry would be the krauser's bow if I'm not mistaken... the first two bytes refer to the item or weapon ID
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Aug 28, 2020 14:53:49 GMT 10
but why 21 ? Confused here.
|
|
Posts: 255
|
Post by Re-Play games on Sept 12, 2020 14:36:03 GMT 10
but why 21 ? Confused here. Krauser's Arrow 21 slots, 7x3
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Sept 12, 2020 17:33:52 GMT 10
maybe you can help me fix my rocket launcher that wont fit
|
|
Posts: 255
|
Post by Re-Play games on Sept 13, 2020 6:10:38 GMT 10
maybe you can help me fix my rocket launcher that wont fit of course, i help! I didn't get this kind of modification with the option that has in the Raz0r DLL, my game always crashes
|
|