Is the wall lever activable zone/location hardcoded ?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Is the wall lever activable zone/location hardcoded ?

Post by LordYig »

I have played a bit with buttons and levers animation and I have witnessed a strange behavior with levers.

While moving (translating) buttons with the GMT does the job of putting a working button anywhere you want on a wall, you cannot do the same with a lever.
You can add a working (somewhat) lever placed on the right side of a wall (for example), but the activation zone where you can click is always in the middle of the wall...
That's gives you a working lever with animation on the right side of a wall (for example again) but you can only activate it by clicking on the middle part of the wall where... well... there is nothing...
That's quite frustrating...

You can make a unique wall with several buttons, all actionable and working, I have managed to add 6 on the same wall so far but with correct placement more is feasible imho...
But you cannot do the same with levers... :?

I am guessing that the hidden/difficult to see secret buttons forced the buttons handling system of the game engine to be more flexible and available from nearly anywhere while the lever only needed a more simple handling system...

Am I guessing correctly ?
Have I missed something ?
Is that a possible change / update, new feature that could be added in the future ?
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Is the wall lever activable zone/location hardcoded ?

Post by petri »

This should be easy to fix. I'll try to remember this for the next beer coding event but as there are about a hundred things in my todo list (practically all the time it seems!) somebody better remind me when the time comes :)
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by LordYig »

petri wrote:This should be easy to fix. I'll try to remember this for the next beer coding event but as there are about a hundred things in my todo list (practically all the time it seems!) somebody better remind me when the time comes :)
If I'm available when the time comes, I'll try to remind you. Thanks Petri
User avatar
montagneyaya
Posts: 103
Joined: Tue May 01, 2012 11:08 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by montagneyaya »

You can use an invisible button at the same place that the lever connecting to a script

function LeverToggle()
lever_1:toggle()
end
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by LordYig »

montagneyaya wrote:You can use an invisible button at the same place that the lever connecting to a script
function LeverToggle()
lever_1:toggle()
end
Thanks for the tip :)

But the whole point was to have 3 or more levers on the same wall.
All being properly actionable and animated?

You can do it with buttons but currently you can't with the levers.
User avatar
montagneyaya
Posts: 103
Joined: Tue May 01, 2012 11:08 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by montagneyaya »

If you put multiple lever on the same wall and click in the middle only the first lever is used.

You can create an invisible lever not connected like first lever for have not click zone in the middle (or if you are a lever in the middle it must be the first).
And use my trick for other lever, I think it work (not tested).
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by LordYig »

montagneyaya wrote:If you put multiple lever on the same wall and click in the middle only the first lever is used.
That was exactly my point.
Not clearly explained as you have though...
montagneyaya wrote:You can create an invisible lever not connected like first lever for have not click zone in the middle (or if you are a lever in the middle it must be the first).
And use my trick for other lever, I think it work (not tested).
I'll give it a try as a workaround. If this works that'll do the job.
But I would have preferred a full support from the engine itself.
It's possible for buttons so it should be possible for levers as well.
I hope the devs will find some time to add support for this, in the meantime I'll try you solution.

Thanks montagneyaya.
User avatar
montagneyaya
Posts: 103
Joined: Tue May 01, 2012 11:08 pm

Re: Is the wall lever activable zone/location hardcoded ?

Post by montagneyaya »

LordYig wrote: But I would have preferred a full support from the engine itself.
It's possible for buttons so it should be possible for levers as well.

I totally agree with you.
Post Reply