www.tombraiderforums.com

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

Reply
 
Thread Tools
Old 24-08-17, 13:58   #111
Dustie
Relic Hunter
 
Dustie's Avatar
 
Join Date: Apr 2005
Location: Poland
Posts: 8,782
Default

I might very well be trying to reverse-engineer the wheel (since everyone else seems to know how things work, while I'm starting from scratch), but I just wanted to say I'm currently investigating sapper's TR42PRJ tool code because I want to learn the TR file format so that maybe I can convert TR2/3 levels to PRJ one day

Currently I'm trying to wrap my head around FloorData, because I lack much knowledge and fluency in binary and hexadecimal systems, so it all appear cyphered to me. But because it's so fascinating I can't help trying to figure it all out! It's too addictive!
Dustie is online now   Reply With Quote
Old 29-08-17, 15:22   #112
TempleOfHorus
Hobbyist
 
Join Date: Jan 2017
Posts: 12
Default TR

I found what is entity 144 in TR1. It's scion piece which has Pierre in Tomb of Tihocan level.
TempleOfHorus is offline   Reply With Quote
Old 30-08-17, 11:16   #113
Dustie
Relic Hunter
 
Dustie's Avatar
 
Join Date: Apr 2005
Location: Poland
Posts: 8,782
Default

Never stop learning, I guess
Dustie is online now   Reply With Quote
Old 09-05-18, 01:39   #114
sapper
Archaeologist
 
sapper's Avatar
 
Join Date: Sep 2007
Posts: 1,594
Default

One thing that needs checking.

Quote:
struct tr_face4 // 12 bytes
{
uint16_t Vertices[4];
uint16_t Texture;
};

Texture field can have the bit 15 set: when it is, the face is double-sided (i.e. visible from both sides).
Room#17 in andy3.trc has some water surface faces that have bit 14 set.

Using
Code:
texture and 0x7fff
gives invalid texture index. Need to use
Code:
texture and 0x3fff
Can be seen with fexinspect where invalid texture leads to incorrect texturing of water surface.
__________________
Check trsearch\Tools for some of my programs
sapper is offline   Reply With Quote
Old 14-02-19, 14:24   #115
ChocolateFan
Student
 
ChocolateFan's Avatar
 
Join Date: Dec 2017
Location: I am female
Posts: 152
Default

On this page: https://trwiki.earvillage.net/doku.php?id=trs:sound, section Sound Map, the Looping behaviour flag is described as:

Code:
[...] Since TR3, one-shot wait mode is introduced (value 10), [...]
I think that the correct is:

Code:
[...] Since TR3, one-shot wait mode is introduced (value 01), [...]
Perhaps it would be nice to also specify the relationship with Sounds.txt flags:
  • None: normal playback;
  • W: one-shot wait;
  • R: one-shot rewound; and
  • L: looped.
ChocolateFan is offline   Reply With Quote
Old 14-02-19, 22:23   #116
Boobandie
Professor
 
Boobandie's Avatar
 
Join Date: Jul 2012
Location: New Zealand
Posts: 3,641
Default

What does one shot wait and one shot rewound mean in regards to how a sound is played? How does it differ from normal playback?
Boobandie is offline   Reply With Quote
Old 15-02-19, 16:57   #117
AkyV
Moderator
 
Join Date: Dec 2011
Location: Hungary
Posts: 3,432
Default

Wait (W): do not restart if it is already playing. (After that, the new start is not automatical when the old play stops.)
Rewound (R): abort the actual one and restart a new play.

These are for single plays.

In my actual WIP TRNG plugin I am just working successfully on a feature to change some sound sample features, including these, in-game.

Last edited by AkyV; 15-02-19 at 16:58.
AkyV is online now   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 21:59.


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