Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Level Editor and Modding > Tomb Raider Level Editor > Software Development

Reply
 
Thread Tools
Old 12-11-14, 00:44   #1001
Dustie
Member
 
Dustie's Avatar
 
Joined: Apr 2005
Posts: 9,208
Default

Quote:
Originally Posted by Lwmte View Post
Thanks, that's what I thought! So basically, if I have a door in one room which leads to another un-flipped room, and then I flip that room, door in first room will lead to flipped room instead?
Well, the whole point of flipping a room is you switch it up, so doors can lead to either an unflipped or a flipped room, regardless of which is active at the moment.

The case of Trajan's Market would indicate they made it possible to alter doors in flipped rooms...?

Last edited by Dustie; 12-11-14 at 00:49.
Dustie is offline   Reply With Quote
Old 12-11-14, 02:15   #1002
Lwmte
Member
 
Lwmte's Avatar
 
Joined: Aug 2010
Posts: 1,809
Default

Quote:
Originally Posted by Dustie View Post
The case of Trajan's Market would indicate they made it possible to alter doors in flipped rooms...?
No, actually, the same set-up was used in Angkor Wat (with the same wheel door), so I suppose there's no difference between flipmap functionality in TR4 and TR5. Just the data structure was changed, and no one documented and made it work properly just before TeslaRus done it yesterday.
Lwmte is offline   Reply With Quote
Old 12-11-14, 09:14   #1003
Ado Croft
Member
 
Joined: Apr 2013
Posts: 343
Default

Soundtracks won't work. I downloaded old version of soundtrack.lua and replaced it to script/audio and still doesn't work.
Ado Croft is offline   Reply With Quote
Old 12-11-14, 09:29   #1004
SLAYER
Member
 
SLAYER's Avatar
 
Joined: Jun 2006
Posts: 2,380
Default

^They disabled that a while ago.

Missing walls in TR5?

Last edited by SLAYER; 12-11-14 at 09:32.
SLAYER is offline   Reply With Quote
Old 12-11-14, 11:05   #1005
Lwmte
Member
 
Lwmte's Avatar
 
Joined: Aug 2010
Posts: 1,809
Default

Quote:
Originally Posted by SLAYER View Post
^They disabled that a while ago.
Actually, soundtracks worked pretty well on my side, but they were disabled by TeslaRus, as he was getting crashes with it (however, I experienced no crashes whatsoever with ogg player lately). Feature just needs additional debug. You can enable it back by uncommenting the code in audio.cpp - in functions Stream_Ogg, Load_Ogg and case switch in StreamTrack::Stop.

Quote:
Missing walls in TR5?
No, I just checked original TR5, and there is a similar gap in there - so it's just the wrong item placement (just like lion staues in first level of TR4 got misplaced on their pedestals in the beginning).
Lwmte is offline   Reply With Quote
Old 12-11-14, 13:50   #1006
Titak
Moderator
 
Titak's Avatar
 
Joined: Jul 2003
Posts: 33,352
Default

Those "reach in hole" type objects alwasy have to be placed in front of an alcove like that.
Otherwise the collision of the wall prevents Lara from interacting with the object. As far as I know anyway.
In the TRLE manual it says to place the objects like that.
I have to admit I never tried it any other way.
Titak is offline   Reply With Quote
Old 12-11-14, 19:56   #1007
Ado Croft
Member
 
Joined: Apr 2013
Posts: 343
Default

Well, I have noticed two or three critical bugs in this engine. The first is when Lara grabs on ledge and player press left arrow Lara will fall down:

https://www.youtube.com/watch?v=wTrsLazjc-g

The second one is when Lara climbs on wall and her animation is changed to "one step ladder animation" and player press left or right arrow she will fall down immediately. Actually this is old bug:

https://www.youtube.com/watch?v=vfUEihQfN10

Maybe it is connected with this bug:

https://www.youtube.com/watch?v=XZrliT6AAiQ

Anyway I have noticed that Tesla Rus fixed grabbing bug, falling bug and so on. Great job

Last edited by Ado Croft; 12-11-14 at 20:00.
Ado Croft is offline   Reply With Quote
Old 12-11-14, 23:04   #1008
Gh0stBlade
Member
 
Gh0stBlade's Avatar
 
Joined: Dec 2010
Posts: 2,773
Default

The latest commits sound great! I have yet to try them!

Anyways, I decided to add support for Tomb Raider Chronicles Dreamcast level files. It works *almost* perfectly. There are some changes to the format in comparison to PC. I've finally figured out that these changes weren't that drastic as I had originally thought and subsequently can now load them.

The current problems are:

1. Misc texture format is unknown.
2. Some very small lighting bugs. Values will probably need converting to PC ones.
3. Sound effects are not ADPCM encoded. It looks like a custom encoding to me so they don't play.
4. Dreamcast only has 16-bit textures. PC has 32-bit ones as well. Not really a problem since OpenTomb converts them anyway *i think* and it loads 16-bit textures just fine!
5. Files have no version info, they cannot be distinguished between PC files without a cheap *hack*. There is no magic/identifier.

Luckily there are many similarities between the two plaforms. Tomb Raider 4 Dreamcast level files are identical to PC anyway. They just based Tomb Raider Chronicles' Dreamcast level format on PC then altered it for platform specific optimisation purposes.

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

Most people will probably wonder why I chose to do this. It's simply because I'm interested in the 4 leftover test levels on disc. 3 which are completely unknown. These levels are:

DEL.TRC (Already known, Del's test leve. Leftover on PC version)
TOM.TRC (Unknown, Tom's test level. has beta Rome textures)
GIBBY.TRC (*Now known*, Gibby's test level)
JOBY1.TRC (Unknown, Has mansion textures)

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

All these level files have a slightly different format to the final game. This is clear evidence these files were not built for the final build but from a range of different beta versions. Currently I have figured out the format differences for DEL.TRC, the format also matches GIBBY.TRC so they both load now! I will most likely look into the format differences for TOM.TRC/JOBY1.TRC and try get them to load within OpenTomb because evidence suggests they both have their own unique format which is why I can't load them yet.

These files have baffled me for years now! I finally might be able to uncover what each of these levels hold for the first time in 14 years.. 2 more to go

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

Video of DEL.TRC/GIBBY.TRC




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

Notice the weird ammo in the inventory?

BETAAAAAAAAAAAA

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

Is the source available for the Model viewer that used to be distributed with OpenTomb? Perhaps there are more different items hidden, or I could just change what items are in the inventory I guess...

Regards.

Last edited by Gh0stBlade; 12-11-14 at 23:07.
Gh0stBlade is offline   Reply With Quote
Old 13-11-14, 01:31   #1009
Lwmte
Member
 
Lwmte's Avatar
 
Joined: Aug 2010
Posts: 1,809
Default

My goodness! How is that possible at all?! I posted a tweet with your video!

Anyway, seems that Dreamcast format isn't so different from PC format (when comparing to PSX, of course...). That strange ammo means they wanted to make a crossbow for TR5 as well... Cause this ammo doesn't seem like TR4 crossbow ammo.

And that strange "spiky trap" which falls from the ceiling... Not sure I've ever seen it anywhere in TRC.

Also, seems like some polygons are broken in second level... It's a miracle that it loads anyway! Great job!

Some updates from me... I totally broke my head when trying to make pushable sounds work correctly in TR4. While in TR1-3 Core simply used pre-defined frame numbers for pushable animations to play a sound, in TR4-5 they used absolutely different scheme. As pushable moves with Lara's bounding box in these games, they had to invent some clever way to play pushable sound all the way it moves; so they just made a pushable sound LOOPED and played it all time while pushable is moving with Lara; then they added extra "pushblock end" one shot sound, which plays once, when Lara is no longer pushing a block. This setup seems easy, but it is not! So for now, it only plays looped pushable sound, which stops aburptly, because I just can't make it work with pushblock end sound correctly - there is a difference in TeslaRus' way of moving pushables and Core's way, even if they use the same "moving bounding box" method.

Quote:
Originally Posted by Gh0stBlade View Post
Is the source available for the Model viewer that used to be distributed with OpenTomb? Perhaps there are more different items hidden, or I could just change what items are in the inventory I guess
As far as I remember, OpenTomb and Model Viewer shared the same source code, and switched by the SKELETAL_TEST define in main_SDL.cpp file - but it wasn't updated for a while and seems broken for now, unfortunately... You can indeed add other items to inventory by using addItem console command, just look into scripts/inventory/items.lua to know which items you can use!

Last edited by Lwmte; 13-11-14 at 01:40.
Lwmte is offline   Reply With Quote
Old 13-11-14, 16:56   #1010
TeslaRus
Member
 
TeslaRus's Avatar
 
Joined: Jan 2013
Posts: 195
Default

Quote:
As far as I remember, OpenTomb and Model Viewer shared the same source code, and switched by the SKELETAL_TEST define in main_SDL.cpp file
Good news - today I though to fix model viewer and did it (see SF commit)
Flipped room test (r + 4) prevents engine crash (debug does not helps). I will rewrite some flipping logic... may be crashes will stopped.
TeslaRus is offline   Reply With Quote
Reply

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 07:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.