opentomb / OpenTomb

An open-source Tomb Raider 1-5 engine remake
http://opentomb.github.io/
GNU Lesser General Public License v3.0
1.4k stars 146 forks source link

Weapons mismatch in TR1 UB #576

Closed RICCIARDI-Adrien closed 5 years ago

RICCIARDI-Adrien commented 5 years ago

Lara does not always equip the right weapon in UB :

Other weapons seem to work.

ghost commented 5 years ago

sure that id in items.lua script is not good, i will check it now and commit fix tomorrow.

EDIT: for me is working good, the animation refactoring can be bug the weapon select script, need to be check it. EDIT2: omg i not fixed "==" to "<" so the game not get the good id :x sorry for it i will fix it for sure !

ghost commented 5 years ago

you can download the fix (items.lua in scripts->inventory) and replace the old file, and check if is fixed, if you have this bug after this fix, its sure that is animation refactoring than cause the bug.

ghost commented 5 years ago

i have updated the src to lastest release by @TeslaRus and the bug is fixed with the items.lua !

RICCIARDI-Adrien commented 5 years ago

I confirm the bug is fixed by your items.lua modification. I will close the issue when the fix will be merged to this repo. Thank you !

ghost commented 5 years ago

Fixed by @TeslaRus in update 2a930fe

RICCIARDI-Adrien commented 5 years ago

Uzis are not working in UB in commit 2a930fe3379441467b0c8a1cb082002c943ca4db, but they were working in the TokyoSU modified items.lua.

ghost commented 5 years ago

@TeslaRus you have missing < in certain items_funcs[] :x sorry for it, i missed it in the last update.

ghost commented 5 years ago

FIXED (cf87583)

RICCIARDI-Adrien commented 5 years ago

Yes, it's working in cf87583.