www.tombraiderforums.com

Go Back   www.tombraiderforums.com > Tomb Raider Modding > Tomb Raider Level Editor > Software Development

Reply
 
Thread Tools
Old 19-06-12, 10:01   #1
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,550
Default Using TRWad Reorganizer to change position of gunflash

Here's a tutorial to download which shows how to change an enemy's meshtree to get the gunflash at the correct position.

Here I use Cowboy's cowboy which is in the Baddy1 slot.

TR Wad Reorganizer is used so that the animations are still OK.

Note that TRWad Reorganizer requires that all animations have at least one frame and I didn't check the animations before and after in this tutorial.

Unzip the download and open the html file in your browser.

trwadreorganizer.zip


I didn't post in tutorial forum since it is only a download but if Titak wants to move to tutorial section, OK by me.

-------------------------------------------------------------------

EDIT: Download from LarasBoyfr dropbox link since 4shared needs registration to download.

https://dl.dropbox.com/u/62482708/trwadreorganizer.zip

.

Last edited by sapper; 06-10-16 at 06:52.
sapper is offline   Reply With Quote
Old 19-06-12, 10:36   #2
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 29,593
Default

You have to login to download that file?


You read my mind.
Good addition to our tutorials section because with all the enemy customization that can be done with TRNG nowadays (and also with TREP if I remember correctly) it is nice to be able to get the gunflash in the right position.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 19-06-12, 10:40   #3
Laras Boyfr.
Professor
 
Laras Boyfr.'s Avatar
 
Join Date: Jul 2009
Location: Albania
Posts: 4,744
Default

Good stuff

For all those who don't have a 4shared account, I uploaded it here to download for you

https://dl.dropbox.com/u/62482708/trwadreorganizer.zip
Laras Boyfr. is offline   Reply With Quote
Old 19-06-12, 13:10   #4
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 29,593
Default

Thanks.
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 19-06-12, 13:20   #5
psiko
Archaeologist
 
psiko's Avatar
 
Join Date: Apr 2001
Posts: 1,477
Default

I haven't already downloaded the tutorial, I hope it won't be hard for me.
But I have a question: does this mean we can, for istance, decide which mesh a certain firing enemy will shot from?
For example, a completely new enemy with a new mesh tree/animations, in, example, the sas slot?
psiko is offline   Reply With Quote
Old 19-06-12, 19:21   #6
teme9
Professor
 
teme9's Avatar
 
Join Date: Nov 2005
Location: Finland
Posts: 3,255
Default

This program sounds interesting!

Could it be possible to adjust the gunflash from the Lara weapon animations too?
teme9 is offline   Reply With Quote
Old 19-06-12, 23:02   #7
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,550
Default

Sorry about having to login to download. I didn't realise 4shared had changed this.
I will start using another file sharing site.



Quote:
Originally Posted by psiko View Post
I haven't already downloaded the tutorial, I hope it won't be hard for me.
But I have a question: does this mean we can, for istance, decide which mesh a certain firing enemy will shot from?
For example, a completely new enemy with a new mesh tree/animations, in, example, the sas slot?
Well the gunflash is hardcoded to a certain mesh number for a slot. But you can decide where to put that mesh with TRWad Reorganizer.
sapper is offline   Reply With Quote
Old 24-06-12, 05:07   #8
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,550
Default

LGG wanted one of cowboy's SAS enemies http://www.trsearch.org/Items/811
fixed so that the gunflash didn't appear between the enemy's legs.

1. Make a wad that contains only cowboy's enemy.

2. Examine the meshtree and compare it to the SAS meshtree.
The SAS gunflash is linked to mesh 7.



3. Examine the anims of the enemy in wadmerger and check that they all have at least one frame.

4. Open the enemy wad in TR Wad Reorganizer (right click) and open the Mesh modification tool (right click).

5. Move the meshes up or down and change the opcodes to get the following structure.
Select a mesh and use ctrl+up or ctrl+down to move meshes.

(Right click to change opcode pop and push. Pop =1, Push = 2, Pop and Push =3)



6. Update the wad (right click Mesh Modification window) and save (right click main window).

7. I open the wad in my Meshtree program to check that there are no errors
with the new meshtree. Errors appear in red text on the left.



8. Transfer the enemy to the game wad using wadmerger.

Fixing the gunflash seems to give the enemy better aiming too!

Last edited by sapper; 24-06-12 at 05:13.
sapper is offline   Reply With Quote
Old 09-05-13, 20:33   #9
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 29,593
Default

I used the tutorial on the baddy in the above screenshot.
He has two guns so now his left gun has the gunflash in the correct spot.

Any chance of adding a gunflash to the second gun?
I guess it is hardcoded...
__________________
If it walks like a duck and if it quacks like a duck, it is a duck.
Titak is offline   Reply With Quote
Old 10-05-13, 07:14   #10
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,550
Default

Yes for two gunflashes you will need to ask Lwmte to add a patch to FLEP or hopefully it will be possible with Paolone's TRNG sdk.
sapper is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 04:33.


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