nipkownix / re4_tweaks

Fixes and tweaks for the "UHD" port of Resident Evil 4
zlib License
342 stars 33 forks source link

Appropriating Keys & Treasures #208

Open Mister-Curious opened 2 years ago

Mister-Curious commented 2 years ago

Key & Treasure Item appropriation

I think a handy feature would be to have an .ini file that would allow users to chose which keys & treasures are present in their inventory. Normally we can do this with Raz0r's trainer, but there are several reasons why I try to avoid using his trainer (especially when testing). The .ini file could be placed a folder, something like \Bin32\re4_tweaks\item_overrides folder with a file name like items.ini.

An example of the config could include a list of all available items and then an area to activate them:

;----------------------------------------
;KEY ITEMS LIST
;----------------------------------------
;0F - salazar family insignia
;1D - stone tablet
;1E - lion ornament
;1F - goat ornament
;31 - activation key (blue)
;33 - activation key (red)
;39 - serpent ornament
;3A - moonstone (right half)
;3B - insignia key
;3C - round insignia
;3D - false eye
;69 - moonstone (left half)
;6E - king's grail
;6F - queen's grail
;74 - emergency lock card key
;7A - blue moonstone
;7B - key to the mine
;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
;8B - old key
;8C - camp key
;8D - dynamite
;8E - lift activation key
;92 - waste disposal card key
;A3 - gallery key
;A4 - emblem (right half)
;A5 - emblem (left half)
;A6 - hexagonal emblem
;A7 - castle gate key
;C3 - prison key
;C4 - platinum sword
;----------------------------------------
;TREASURE ITEMS LIST
;----------------------------------------
;1B - hourglass w/ gold decor
;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/ (r)
;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)
;70 - staff of royalty
;77 - ruby
;89 - dirty pearl pendant
;8A - dirty brass pocket watch
;8F - gold bangle
;90 - elegant perfume bottle
;91 - mirror w/ pearls & rubies
;93 - elegant chessboard
;96 - hourglass w/ gold decor
;98 - illuminados pendant
;9A - crown
;9B - crown jewel
;9C - royal insignia
;9D - crown with jewels
;9E - crown with an insignia
;9F - salazar family crown
;A1 - emerald
;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 )
;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 )
;--------------------------------------------------
[MY ITEMS]
74
80
33
;--------------------------------------------------

I think it would be too much work to try and implement support for weapons & ammo as there is all kinds of positional data that would need to be taken into account for the space that each of those things occupy in the case, whereas with key items & treasures you can have multiples of the same thing, and the game simply organizes them from left to right without limitation.

Mister-Curious commented 2 years ago

Not sure how the game would update the inventory after certain item use. Maybe a setting in the .ini file to toggle 'keep items after use' could be an option.