www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Tomb Raider Anniversary (https://www.tombraiderforums.com/forumdisplay.php?f=27)
-   -   TRAE-Menu-Hook (https://www.tombraiderforums.com/showthread.php?t=226771)

TheIndra 15-11-21 22:27

TRAE-Menu-Hook
 
Hi,

I want to introduce a project I have been working on for a year now, TRAE-Menu-Hook (not to be confused with Anniversary Edition).

TRAE-Menu-Hookis a dll/asi to be injected into Tomb Raider: Anniversary to provide extra features ingame such as menu to quickly switch levels but also tools for mods like loading objects.

Features
  • Load files outside bigfile without restarting the game (including levels and objects)
  • Spawn and manage instances
  • Free camera
  • Restored level debug including seeing of Event variables
  • See level markup (legdges, ladders)
  • See enemy navigation
  • Disable death fade/respawn
  • Disable cinematic bars
  • Slow motion
  • Skew/flight cheat
  • Switch player outfit
  • Switch levels
  • Show instances including health, animation and more
  • Play animations
  • Wireframe view
  • See collision mesh
  • See portals
  • See signals/triggers
  • Skip intros/copyright screen
  • Partly restored Legend binoculars

Downloads can be found on the Releases page together with the source code on GitHub. Unzip the files in your game folder and add the binkw32.dll and you are ready to go. Steam, GOG.COM and other same retail builds are supported.

Controls

F2 Toggle skew/flight cheat
F3 Pause the game
Shift + F3 Cycle Slow motion
F4 Toggle free camera
F5 Disable player control (useful while in free camera)
F7 Hide the menu
F8 Toggle menu focus (allows you to interact with the menu)
F9 Quickly switch between player outfits
F11 Instant ragdoll death
Insert/Ins Toggle hud

Flight controls depend on QWERTY/AZERTY keyboard layout (Q/A or Z/W)

Screenshots

Messing around with instances

https://i.imgur.com/NQlkrNp.png

Level debug restored

https://i.imgur.com/ocxfK7N.png

lara.drm and a custom level loaded without repacking bigfile
(WOTV lara model by Raq/LuckyEdge10)

https://i.imgur.com/oV9QTZe.png
https://i.imgur.com/Argnnq1.png

Other games

TRAE-Menu-Hook repository also includes TR7-Menu-Hook and TR8-Menu-Hook for Legend and Underworld though those are not the main games I focus on and thus less supported for some versions/less features.

LuckyEdge10 15-11-21 22:28

ok cool and all but when tr7 hook for Steam

tlr online 15-11-21 23:06

Thank you for posting TheIndra.

Woops 15-11-21 23:14

Awesome work

LuckyEdge10 15-11-21 23:15

doesnt work???

EDIT: I arrived at part with Lara in bikini she has to save Anaya in Ghana and hook no longer work

HenryCST 15-11-21 23:20

doesnt work guess ill stick to texmod

ATombRaiderFan 16-11-21 07:33

Hey TheIndra, great to see a thread for menu hook on this forum, and thank you for creating an alternative way of using mods for Anniversary!

Ameliorator 16-11-21 08:11

This is really cool to see, thanks for sharing what you've been working on with us :tmb:

UroshUchiha 16-11-21 08:43

Haven't had a chance to play with this yet, but it looks like a fun tool. Thanks a lot for sharing!

TheIndra 05-12-21 22:45

Thanks for all kind comments

--

Working on visualization of signals, I guess you can kinda call them triggers.

https://i.imgur.com/79EZBhT.png

https://i.imgur.com/BxAKFQ8.png

LateRaider 06-12-21 03:05

cool stuff!

theindra, i hate to be a bother but is there a tutorial anywhere to make DRM files for use with the hook? jamjoom is trying to do so for his TR:U retexture mod but he can't figure out how. https://www.tombraiderforums.com/sho...d.php?t=226402

thank you for your time and continued hard work. sorry for the bother

TheIndra 06-12-21 21:16

Quote:

Originally Posted by LateRaider (Post 8334152)
cool stuff!

theindra, i hate to be a bother but is there a tutorial anywhere to make DRM files for use with the hook? jamjoom is trying to do so for his TR:U retexture mod but he can't figure out how. https://www.tombraiderforums.com/sho...d.php?t=226402

thank you for your time and continued hard work. sorry for the bother

Sorry for late response, no bother at all. You can use https://github.com/Gh0stBlade/cdcEngineTools/ to unpack and repack drm files. Note for Underworld and using with TR8-Menu-Hook don't compress the file with cdrm.exe

Woops 09-12-21 23:31

Quote:

Originally Posted by TheIndra (Post 8334132)
Thanks for all kind comments

--

Working on visualization of signals, I guess you can kinda call them triggers.

[IMG]https://i.imgur.com/79EZBhT.png[IMG]

[IMG]https://i.imgur.com/BxAKFQ8.png[IMG]

that looks incredible

LateRaider 10-12-21 05:39

Quote:

Originally Posted by TheIndra (Post 8334229)
Sorry for late response, no bother at all. You can use https://github.com/Gh0stBlade/cdcEngineTools/ to unpack and repack drm files. Note for Underworld and using with TR8-Menu-Hook don't compress the file with cdrm.exe

Thanks. I've DM'd Jamjoom with this info but haven't gotten a response.

grotesque 26-12-21 02:10

Not work for me :-(
program can't start because XINPUT1_4.dll etc
and after
unable to load TRAE-menu-hook.asi error 126

TheIndra 28-12-21 00:43

Quote:

Originally Posted by grotesque (Post 8337091)
Not work for me :-(
program can't start because XINPUT1_4.dll etc
and after
unable to load TRAE-menu-hook.asi error 126

Make sure you extracted all files, also what version of the game?

grotesque 28-12-21 14:40

Quote:

Originally Posted by TheIndra (Post 8337247)
Make sure you extracted all files, also what version of the game?

Windows 7, TRA GOG version, all file downloaded (it's only 2 files) and that file renamed, paste in game folder.

TheIndra 29-12-21 19:13

Quote:

Originally Posted by grotesque (Post 8337312)
Windows 7, TRA GOG version, all file downloaded (it's only 2 files) and that file renamed, paste in game folder.

Managed to setup a Windows 7 VM and seems I fixed the issue, I'll push an update which fixes it later tonight.

EDIT Updated https://github.com/TheIndra55/TRAE-menu-hook/releases

grotesque 30-12-21 15:24

Quote:

Originally Posted by TheIndra (Post 8337421)
Managed to setup a Windows 7 VM and seems I fixed the issue, I'll push an update which fixes it later tonight.

EDIT Updated https://github.com/TheIndra55/TRAE-menu-hook/releases

Now work, thanks!
I'm very happy with free camera :-D
Thanks!

(TRU have problem of FOV with free camera, sorry if I write here)

SecretWeapon 10-01-22 20:18

Can somebody explain me like I'm 5 years old how to use this?

I wanted to use the Natla mod, awesome
https://www.nexusmods.com/tombraideranniversary/mods/20

I went to TheIndra's page.

1- I downloaded the ASI loader, changed the name as required and pasted into the Anniversary folder. Used the non 64 version
https://github.com/ThirteenAG/Ultima...oader/releases

2- I downloaded the TRAE menu hook, pasted into Anniversary folder

3- Created a folder called units. I also created a blank txt file named objectlist.txt

4- Downloaded the mod, pasted into units folder. Added the line "959,lara.drm" to the objectlist.txt

5- Started up the game. I see the UI so the menu hook seemly works but i don't see Lara changed. I don't know if i have to do anything else. I also tried downloading Premake but the exe didn't work

EDIT: In case anyone else gets stuck like a dumbass like me, what i did wrong is that i didn't download the objectfile from here https://files.theindra.eu/?dir=tomb%20raider

In my defense, i didnt know i had to do that or extract it on my own

TheIndra 11-01-22 17:23

Quote:

Originally Posted by SecretWeapon (Post 8339127)
Can somebody explain me like I'm 5 years old how to use this?

I wanted to use the Natla mod, awesome
https://www.nexusmods.com/tombraideranniversary/mods/20

I went to TheIndra's page.

1- I downloaded the ASI loader, changed the name as required and pasted into the Anniversary folder. Used the non 64 version
https://github.com/ThirteenAG/Ultima...oader/releases

2- I downloaded the TRAE menu hook, pasted into Anniversary folder

3- Created a folder called units. I also created a blank txt file named objectlist.txt

4- Downloaded the mod, pasted into units folder. Added the line "959,lara.drm" to the objectlist.txt

5- Started up the game. I see the UI so the menu hook seemly works but i don't see Lara changed. I don't know if i have to do anything else. I also tried downloading Premake but the exe didn't work

EDIT: In case anyone else gets stuck like a dumbass like me, what i did wrong is that i didn't download the objectfile from here https://files.theindra.eu/?dir=tomb%20raider

In my defense, i didnt know i had to do that or extract it on my own

If you just want to replace lara you don't need the whole objectlist.txt steps just placing the lara.drm in the right folder is enough. objectlist.txt is only needed when you want to add *new* objects

SecretWeapon 15-01-22 15:56

It wasn't working before that actually :o

R3lic_Hunter 02-03-22 00:54

This mod is awesome!
 
I've kinda always wanted to have my own little jurassic park, with this mod it is finally possible:D

https://i.imgur.com/8dD78AL.png

https://i.imgur.com/butOQQE.png

R3lic_Hunter 02-03-22 01:31

Suggestions
 
@TheIndra

Thanks for making this mod, I like it very much!

I may have some suggestions to further improve your mod:

- make full WASD-Movement for flycam

- make cutscenes playable, as seen here

- make documentation more detailed, e.g. what is "Enable debug keypad", "toggle drawgroup", etc.

TheIndra 05-03-22 23:33

Quote:

Originally Posted by R3lic_Hunter (Post 8344856)
@TheIndra

Thanks for making this mod, I like it very much!

I may have some suggestions to further improve your mod:

- make full WASD-Movement for flycam

- make cutscenes playable, as seen here

- make documentation more detailed, e.g. what is "Enable debug keypad", "toggle drawgroup", etc.

I'll look into the free camera controls this week, cutscenes are already playable if you disable the unit script from loading.

I wrote some quick documentation about some menu options and I'll try to update that wiki further.
https://github.com/TheIndra55/TRAE-m...i/Menu-options

R3lic_Hunter 07-03-22 07:42

Thanks for writing the wiki, that's great!

I'll try playing the cutscenes, thanks for the hint.

Something else I've noticed, when you spawn the larson model it looks really weird, (like scrambled mesh)? Why is that happening? (It's kinda funny though)

TheIndra 03-04-22 21:27

A new version has been released

Changelog:
  • Fix game crashing when DEP is enabled (base game bug)
  • Change the implementation of wireframe
  • Add unhide instance to Underworld
  • Improve the skew/flight cheat for all games
  • Refactor instance loops
  • Redo script log hooks in Underworld
  • Allow free camera to be locked into position in Underworld
  • Change the behaviour of menu toggle buttons after feedback

Download from GitHub releases https://github.com/TheIndra55/TRAE-menu-hook/releases

Also while you're at it you should check out the TRA custom level we published :D
https://www.youtube.com/watch?v=PTX0YWO4l1g

R3lic_Hunter 16-04-22 16:13

Awesome work!
 
You are a true modding master!
I can't wait to see a TR7 / TR8 / TRA level editor, have been waiting a long time for this.
Thanks so much for putting your time and effort in this project, this is simply mind-blowing!

FairFriend 18-04-22 12:24

Quote:

Originally Posted by TheIndra (Post 8349271)
A new version has been released

Changelog:
  • Fix game crashing when DEP is enabled (base game bug)
  • Change the implementation of wireframe
  • Add unhide instance to Underworld
  • Improve the skew/flight cheat for all games
  • Refactor instance loops
  • Redo script log hooks in Underworld
  • Allow free camera to be locked into position in Underworld
  • Change the behaviour of menu toggle buttons after feedback

Download from GitHub releases https://github.com/TheIndra55/TRAE-menu-hook/releases

Also while you're at it you should check out the TRA custom level we published :D
https://www.youtube.com/watch?v=PTX0YWO4l1g

This should get more attention! I'm not as big of a fan of the CD games as I am of the Core ones, but this is mighty impressive and could open the doors to a whole new era of level editing (alongside TEN and Tomb Editor). I hope you keep working on it and that some kind people will put the effort to create modding tools. It seems you are heading in that direction and that is should become possible in the near future.

oscarpdk 22-04-22 13:11

Thanks for all your hard work on this! You've done a great service to the modding community. Installed them and they work well!

A few questions/comments though:
1. In both Anniversary and Underworld (I haven't tested Legend yet), even with no fadeout/respawn checked, the screen still fades to black when the default kneeling death animation plays, and for the death animation that plays when you're crouched or walking (the one where she curls up and then rolls onto her back) the screen fades to black AND still causes a reload. It still works fine for the other animations and instant-ragdoll deaths, though.

2. Is there a way to adjust the free camera speed? It goes at a fairly controllable speed in underworld but SUPER fast in anniversary. Might it be tied to frame rate?

3. Will there be a Legend version that will be compatible with Steam version of TRL?

TheIndra 23-04-22 19:56

Quote:

Originally Posted by oscarpdk (Post 8352559)
1. In both Anniversary and Underworld (I haven't tested Legend yet), even with no fadeout/respawn checked, the screen still fades to black when the default kneeling death animation plays, and for the death animation that plays when you're crouched or walking (the one where she curls up and then rolls onto her back) the screen fades to black AND still causes a reload. It still works fine for the other animations and instant-ragdoll deaths, though.

Can you provide me with a scenario where she does these? Like when getting attacked by an enemy or jumping from x?

Quote:

Originally Posted by oscarpdk (Post 8352559)
2. Is there a way to adjust the free camera speed? It goes at a fairly controllable speed in underworld but SUPER fast in anniversary. Might it be tied to frame rate?

The forward speed or the speed the camera moves when you move your mouse? For forward speed you can hold shift to go faster. I'm planning to have some configuration file in the future so then I might be able to make these even more configurable (or just add a slider for the speed)

Quote:

Originally Posted by oscarpdk (Post 8352559)
3. Will there be a Legend version that will be compatible with Steam version of TRL?

Planning to, just haven't found time/motivation yet to do it since it requires me to map lot of functions

Quote:

Originally Posted by R3lic_Hunter (Post 8351827)
You are a true modding master!
I can't wait to see a TR7 / TR8 / TRA level editor, have been waiting a long time for this.
Thanks so much for putting your time and effort in this project, this is simply mind-blowing!

Quote:

Originally Posted by FairFriend (Post 8352066)
This should get more attention! I'm not as big of a fan of the CD games as I am of the Core ones, but this is mighty impressive and could open the doors to a whole new era of level editing (alongside TEN and Tomb Editor). I hope you keep working on it and that some kind people will put the effort to create modding tools. It seems you are heading in that direction and that is should become possible in the near future.

I wish this forum had a like button (like modern forum software such as Discourse) but thank you for your kind comments, I'll be sure to continue working on this and other projects.

oscarpdk 25-04-22 14:38

Quote:

Originally Posted by TheIndra (Post 8352766)
Can you provide me with a scenario where she does these? Like when getting attacked by an enemy or jumping from x?

When dying from a long it does not fade out, but when being killed by any enemy or trap or anything else that makes her do the default death animation, the screen still fades to black, but it wont induce a respawn. It'll just kinda sit at blackout for a few moments before going away. I could see about sending you a few vids to show you what I mean, if you'd like!



Quote:

Originally Posted by TheIndra (Post 8352766)
The forward speed or the speed the camera moves when you move your mouse? For forward speed you can hold shift to go faster. I'm planning to have some configuration file in the future so then I might be able to make these even more configurable (or just add a slider for the speed)

Just the forward speed. In anniversary I press forward and it just goes ZOOM, but less so in Underworld, so I want it to go forward slower is what I mean. Good to hear that such may come!



Quote:

Originally Posted by TheIndra (Post 8352766)
Planning to, just haven't found time/motivation yet to do it since it requires me to map lot of functions

I feel you there. Thank you certainly for what you have put forward. I appreciate your work very much!

oscarpdk 16-06-22 23:51

Does anyone know of a way to reenable saves with the debug version of TRL7 that this tool requires?

TheIndra 13-07-22 23:30

A new version has been released, from now on the retail version of Tomb Raider Legend is supported. This means it should work with the latest version from Steam or GOG.

Changelog:
  • Add support for Tomb Raider: Legend retail version
  • Fix terrain flags breaking sometimes
  • Add experimental config files, current only one option to experiment with these
  • Fix pressing F7 not returning focus to game

Download from GitHub releases https://github.com/TheIndra55/TRAE-menu-hook/releases

Running in the main menu of the retail version
https://i.imgur.com/NTIuwga.png

Finally no longer these ugly black bars in retail version cinematics
https://i.imgur.com/ezBvHbj.png

leoarcie 22-07-22 18:08

Itís not working for me :(
I put the three files in the folder and the menu donít show up!

TheIndra 22-07-22 23:41

Quote:

Originally Posted by leoarcie (Post 8364627)
Itís not working for me :(
I put the three files in the folder and the menu donít show up!

Which game and which version? Also are you sure you replaced the binkw32.dll file?

leoarcie 23-07-22 09:47

I tried everything. The steam version, GOG, retail... Even the demo version.
And yes, I put the binkw32.dll file.

TheIndra 31-07-22 21:51

Quote:

Originally Posted by leoarcie (Post 8364684)
I tried everything. The steam version, GOG, retail... Even the demo version.
And yes, I put the binkw32.dll file.

Do you still have this issue? If so can you add a screenshot of your game folder?

TheIndra 31-07-22 21:54

Another release, v1.13 for Menu Hook.

Changelog:
  • Rewrite file offload code to use an improved way to support all files
  • Refactor draw code
  • Add remove_quit_message and hide_menu_on_start config options
  • Add option to disable motion blur
  • Add draw load queue option

All files which should be loaded outside the bigfile can now be placed in a folder named 'mods' in the game folder, a lot more convenient than before.

https://user-images.githubuserconten...306d227408.png

https://github.com/TheIndra55/TRAE-menu-hook/releases

leoarcie 20-08-22 19:01

Quote:

Originally Posted by TheIndra (Post 8366635)
Do you still have this issue? If so can you add a screenshot of your game folder?

It's solved, don't worry!


All times are GMT. The time now is 23:11.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.