Tomb Raider Forums  

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

Reply
 
Thread Tools
Old 27-09-19, 20:38   #1
Reggie
Member
 
Reggie's Avatar
 
Joined: Jan 2006
Posts: 22,530
Default Palace Midas style switches

Myself and Lore have been trying to figure out how to do this. The TR1 setup doesn't seem to work where bit codes are placed on doors with corresponding switches. My initial setup of placing bit codes on the door triggers with normal switch triggers doesn't work either.

Can anyone shed light on this?
Reggie is offline   Reply With Quote
Old 27-09-19, 21:01   #2
Opaque79
Member
 
Opaque79's Avatar
 
Joined: Jun 2017
Posts: 1,664
Default

So what's described in this tutorial doesn't work?

Seems quite simple to do in my opinion.
Opaque79 is offline   Reply With Quote
Old 27-09-19, 21:19   #3
Reggie
Member
 
Reggie's Avatar
 
Joined: Jan 2006
Posts: 22,530
Default

I ran a few searches on 'palace midas switches' and didn't find anything like that. I'll check it out.

Edit: So what happens if you use only 4 switches rather than 5? Does that affect the calculations? Still seems a bit complicated to me, 1+1 = 0 lol I'll look again tomorrow, I'm probably just tired and unable to brain rn.

Last edited by Reggie; 27-09-19 at 21:27.
Reggie is offline   Reply With Quote
Old 27-09-19, 21:50   #4
Opaque79
Member
 
Opaque79's Avatar
 
Joined: Jun 2017
Posts: 1,664
Default

Adjust it to fit your setup. Calculations are the same
Opaque79 is offline   Reply With Quote
Old 27-09-19, 22:18   #5
AgentXP
Member
 
AgentXP's Avatar
 
Joined: Jun 2007
Posts: 3,194
Default

Maybe the 2nd half of this video could help?

https://www.youtube.com/watch?v=0Jmu...07axYf&index=7

I made this partly for myself cos I never remember how to set this up.
AgentXP is offline   Reply With Quote
Old 28-09-19, 07:31   #6
TR-Freak
Unverified
 
TR-Freak's Avatar
 
Joined: Jan 2008
Posts: 5,140
Default

Think of it like this:

An Object (your doors) have 5 Bits, once these bits are all set, the object is triggered.

A trigger can change these bits by deciding what bits you want to set in the trigger.

If you want Door A to be opened when Switch 1 and Switch 4 are pulled,
you have to set these Bits in Door A (Press O when the door is selected in NGLE) :
01101
In the Switch for Switch1 you have to set these bits:
10000
In the Switch for Switch4 you have to set these bits:
00010

If you combine all of them, the Door has all bits set:
11111

And tada, the door opens when Switch1 and Switch4 are pulled

Most people do only know about the Trigger bits, but Objects themselves have bits aswell.
The trigger bits change the Object bits and you can give an object a different "start" bit combination.

the case of palace midas, the doors have the bits set according to their inverted switch combination.

Last edited by TR-Freak; 28-09-19 at 07:36.
TR-Freak is offline   Reply With Quote
Old 28-09-19, 07:39   #7
Tombraider95
Member
 
Tombraider95's Avatar
 
Joined: Dec 2008
Posts: 13,125
Default

I recently set this up in my own level and thought the original tutorial was confusing. But my partner figured it out and it's relatively easy. I wrote this previously:

Quote:
Originally Posted by Tombraider95 View Post
Ignore the fact the ocb codebits are 1,2,3,4,5. It's changed to 0,0,0,0,0, and if you press one of the buttons they'll become 1.

So you know how if you wanted to trigger something from the beginning of the level, you'd select all of the OCB codebits (12345), basically in this instance this is the 1,1,1,1,1.

With the combinations of the switches you use, and the OCB of the door that opens needs to add up so it's all 1,1,1,1,1.

With 5 switches set with the codebits as:

Quote:
10000
01000
00100
00010
00001
If Switch 1+4+5 opens Door 1, the sum would be:

10000
00010
00001
=
10011 (but this doesn't equal 11111. So the door won't open.)

so to open the door, the OCB of the door needs to fill in the rest of the sum to equal 11111.

So the door OCB would be 01100. So sum would now be:

10000 - Switch 1
00010 - Switch 4
00001 - Switch 5
01100 - Door 1 OCB.
-------
11111

If you only have 3 switches. I think each door OCB will always have 4+5 code bits pressed.

So it could be:

10000 - Switch 1
01000 - Switch 2
00100 - Switch 3

If Switch 1 and 2 open Door 1. It would be:

10000 - Switch 1
01000 - Switch 2
00111 - Door OCB
-------
11111

I hope this all makes sense. I hope I'm right.
If you just want 4 switches, all of the doors will have the number 5 ocb pressed. (as there's no 5th switch)

Last edited by Tombraider95; 28-09-19 at 07:44.
Tombraider95 is offline   Reply With Quote
Old 29-09-19, 16:33   #8
Reggie
Member
 
Reggie's Avatar
 
Joined: Jan 2006
Posts: 22,530
Default

Thanks for the help ^^ That explanation makes a lot of sense! Quite easy to setup on that basis.
Reggie 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 08:04.


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.