Posts: 253
|
Post by Re-Play games on Feb 27, 2022 1:18:00 GMT 10
Editing "take" and "Examine" screen views
requirements: HxD (Hexadecimal Editor) and the game executable in version 1.0.6
After opening bio4.exe with HxD, press CTRL G and search for offset 8017F0
You will be redirected to the values corresponding to the "Examine" and "Take" screens of the first item, which in this case is 00 (Magnum Bullets).
Each item entry is 32 bytes long, and they are in ascending order according to their HEXADECIMAL ID.
Knowing that, let's go to the specifications of each value. For this I will use the entry of the first Item in the list, in this case, magnum bullets.
00 00 00 00 00 00 70 42 00 00 00 00 00 00 00 00
CD CC 8C 3F 04 00 00 00 00 00 00 00 00 00 00 00
00 00 = Item Hexadecimal ID
00 00 70 42 = Rotation X
00 00 00 00 = Rotation Y
00 00 00 00 = Rotation Z
CD CC 8C 3F = Scale
04 = Lighting type (I was able to identify only 4 types: 01, 02, 03, 04)
00 00 00 00 00 00 00 00 00 00 00 = unknown
This type of editing also works for the 2007 PC version, the only thing that will change is the offset of each item entry.
Bonus info: It is also possible to control the speed at which the item rotates in its Z axis
Velocity offset = 803B20
Value = 00 00 70 42 (Float32).
The higher the value, the slower the item will spin.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 27, 2022 2:32:05 GMT 10
excellent, this helps a lot to find the codes to be able to modify the game ah, could you help me with something? I sent you a private message, and it has to do with codes for the EXE of resident evil 4
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Apr 17, 2022 5:12:39 GMT 10
Ok I finally found the folder where the effects are located. The file is core_16.EFF in the Core.UDAS file. The Son of Persia tools can not repack this file without corrupting the file, which will kind of work, but it will certainly break some core effects, so the only safe way to edit this file is to HEX edit it. I was able to add some new custom effects, but I had to use the tools to make this so it broke some other effects. When I speak to Albert next I will try and get a better understanding of how to add effects without using the tools. For now if we wish to locate an effect (say to remove it or replace it) we can do so by using the Son of Persia EFF tool to remove groups little by little to see when the effect disappears. Each item that has an effect has its own Effect Group folder. Reducing the Effect0GroupCount value in the extracted .idx file little by little is a solid method of finding an effect folder. Once the effect folder has been located we can open the Data.txt file and try to compare this data to the CORE core_16.EFF file in a HEX editor and make the changes safely there. An easy way to remove an effect is to simply find the RGBA values in the file : Color_R = 0xFFColor_G = 0x32Color_B = 0x00Color_A = 0x69 We would be looking for the array FF 32 00 69. There may be multiple hits so we might need to add some other bytes to the array in our search. Each Effect folder in HEX is represented by: - Header which is 30 in length- Each individual effect block is 12C in lengthSo for example below we have effect Group 25 (Stone of Sacrifice) which has 4 effects ( Header in yellow, then 4 effects): 04 00 00 00 00 00 00 00 00 00 FE 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 10 00 00 00 00 00 00 00 00 00 00 00 01 00 79 00 00 00 00 00 01 80 00 00 00 00 00 00 00 00 C8 41 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 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 B4 42 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 9F 88 19 44 9F 88 19 44 00 00 00 00 00 00 00 00 00 00 80 3F FF 32 00 69 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 00 01 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 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 01 00 79 00 00 00 00 00 01 80 00 00 00 00 00 00 00 00 C8 C1 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 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 B4 42 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 9F 88 19 44 9F 88 19 44 00 00 00 00 00 00 00 00 00 00 80 3F FF 32 00 69 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 00 01 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 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 01 00 08 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 A0 41 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 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 B4 42 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 44 E4 BE 43 44 E4 BE 43 00 00 00 00 00 00 00 00 00 00 80 3F 00 78 FF A5 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 00 01 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 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 01 00 08 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 A0 C1 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 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 B4 42 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 44 E4 BE 43 44 E4 BE 43 00 00 00 00 00 00 00 00 00 00 80 3F 00 78 FF A5 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF 00 01 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 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
And the next group starts right after it, commencing with the header.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Apr 17, 2022 7:50:49 GMT 10
Listed below are the Effect Group folders (from the extracted Core_16.EFF file), that contain the effects used for some of the inventory models that we see in the examine window. This list is not complete, but simply those that I have found so far.
Core_16 Inventory Effect edits Examine Window Models with Effects
----------------------------------------------------------------- Group 4 - Spinel Group 8 - Green Catseye Group 20 - Emergency Lock Card Key Group 22 - Ruby Group 23 - Pesetas Group 25 - Stone of Sacrifice Group 26 - Storage Room Card Key Group 27 - Freezer Card Key Group 30 - Elegant Perfume Bottle Group 31 - Mirror w/ pearls & rubies Group 32 - Waste Disposal Card Key Group 40 - Emerald Group 51 - Elegant Mask (1 stone) Group 52 - Elegant Mask (1 stone) Group 53 - Elegant Mask (1 stone) Group 54 - Elegant Mask (2 stones) Group 55 - Elegant Mask (2 stones) Group 56 - Elegant Mask (2 stones) Group 57 - Elegant Mask (all three stones)
If anyone finds any others feel free to contact me and I will add them to this post. If you are having trouble locating one of the effects that are used in the examine window please feel free to contact me and I will do my best to help you find it!
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Apr 17, 2022 10:07:46 GMT 10
I also located the LIT file that is used to illuminate the models in the Examine Window, which consists of 2 separate light sources that somehow work together:
core_07\Light Group 1\# Light 0 core_22\Light Group 0\# Light 0, Light 1, and Light 3
For the Core_22 Lights, I suspect they may be connected with the value described in RE Play Games' post. Here is a review of the lights:
Light 0 (mostly blue-ish, a small light) Range = 1086.500000 Color_R = 105 Color_G = 101 Color_B = 180 Color_A = 128 Intensity = 0.100000
Light 1 (even color mix, medium sized light) Range = 3200.000000 Color_R = 130 Color_G = 130 Color_B = 130 Color_A = 128 Intensity = 0.300000
Light 2 (more red than any color, but not by much, larger than medium sized light) Range = 7912.500000 Color_R = 120 Color_G = 110 Color_B = 100 Color_A = 128 Intensity = 0.640001
So perhaps what is going on when we select the light type for these entries there is a mix between the lights, I am not sure. I am not sure how these lights interact with the core_07 light:
Light 0 Color_R = 128 Color_G = 128 Color_B = 128 Color_A = 128 Intensity = 0.800000
Anyways, it doesn't seem like we can control the lights for each individual object (although I was hopeful of this as there are 256 LIT Group folders in the Core_22.LIT file, one for each object in the game). Perhaps more research is required, but it seems that if we remove those first 3 lights from core_22\Light Group 0\ the light from core_07 doesn't work and no other lights touch the models.
|
|
Posts: 39
|
Post by NoobPlayEX on Apr 28, 2022 13:19:39 GMT 10
How to change Ammo Quantity Values Like Screen Shots?
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,991
|
Post by Mr.Curious on Apr 30, 2022 9:25:48 GMT 10
How to change Ammo Quantity Values Like Screen Shots? If you are simply talking about changing the amount of ammo that is in a drop, then you can read all about it in my ITA Tutorial HERE. If you have any questions about editing the ITA file, please feel free to ask in the ITA Tool thread. Happy MOdding !
|
|
Posts: 39
|
Post by NoobPlayEX on Apr 30, 2022 10:52:51 GMT 10
Ty For Help Mr.Curious
|
|
Posts: 253
|
Post by Re-Play games on May 1, 2022 8:28:33 GMT 10
How to change Ammo Quantity Values Like Screen Shots? Abra o Bio4.exe em um Editor Hexadecimal.
procure pelo seguinte valor: 5D C3 8B 45 0C C7 40 02 02 0A 32 00 8B
32 00 = Acumulo máximo para a caixa de balas de pistola
0A = quantidade do drop
o valor de cada drop padrão sempre vem antes do "acúmulo" de cada caixa de balas. Ammo Stack by @kteo
|
|
Posts: 39
|
Post by NoobPlayEX on May 1, 2022 9:23:29 GMT 10
How to change Ammo Quantity Values Like Screen Shots? Abra o Bio4.exe em um Editor Hexadecimal.
procure pelo seguinte valor: 5D C3 8B 45 0C C7 40 02 02 0A 32 00 8B
32 00 = Acumulo máximo para a caixa de balas de pistola
0A = quantidade do drop
o valor de cada drop padrão sempre vem antes do "acúmulo" de cada caixa de balas. Ammo Stack by @kteoVlw Irmao, consegui fazer usando o UDAS E ITA Tools, mas vou tentar tbm pelo editor Hexadecimal. vlw por responder.
|
|
|
Post by claude360 on Mar 30, 2024 6:57:07 GMT 10
good
Now how the hell do you edit the textures used for the item models used in the "take" screen view
|
|