Jump to content
The Dark Mod Forums

Physics puzzles


dmw88

Recommended Posts

I have a particular physics puzzle in mind, in which players have a certain number of crates of variable weight and have to use them to balance a single-beam scale, which has one side caged in with a combination of crates on it. Im still undecided on how the player solves it; there could be a readable that allows players to work out the relative weights of different crates, or a second set of scales. Is this possible in the engine? Additionally, itd be ideal if I could have a trap go off if the player overweights the adjustable side of the scales.

 

Have other developers successfully implemented any interesting physics puzzles? I am hoping to do a module that focuses on these in the future.

  • Like 1
Link to comment
Share on other sites

Our physics engine is pretty rusty & wonky. If I recall, for "holding objects" it only recognizes objects holding objects, but not any further degrees (objects holding objects holding objects), so e.g., you can have a key in a drawer move with the drawer, but you can't have a book in a drawer with the key on the book. The book will move with the drawer but not the key.

 

So I personally wouldn't trust it with additive weight, and would instead do this kind of puzzle by something like a "move object here" hidden objective & a script for moving the beam the same percent as the relative weight. Or something along those lines.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

while you can place something of weight on a scale and the game will see it, when you take it off the scale the game will act as though something is still there, there doesn't seem to be a way to check for no object.

your plate has to be flat, you can't make concave objects, unless you cheat, where the concave object is actually made up of many objects bound together by the bind command.

Link to comment
Share on other sites

you can have a key in a drawer move with the drawer, but you can't have a book in a drawer with the key on the book. The book will move with the drawer but not the key.

I was playing No Honour Among Thieves last night and Goldchocobo had a drawer come out with a key on a book, how did he manage this?

 

Is the physics engine something that I might be able to work on in the source code? Im an experienced programmer.

Link to comment
Share on other sites

I was playing No Honour Among Thieves last night and Goldchocobo had a drawer come out with a key on a book, how did he manage this?

 

Is the physics engine something that I might be able to work on in the source code? Im an experienced programmer.

 

Don't know about your question about the key, i've not worked that much with the physics engine for the time being, but the physics engine source code is totally open, so you are free to make it work better, you can also take it out completely and change it for something like Newton or PhysX but that perhaps would require much more work.

Edited by HMart
Link to comment
Share on other sites

Putting a new physics engine in would be great but that's a massive task and we're underhanded as it is.

 

Re: the key. I was going by memory, so for what you saw, I was maybe not remembering what the issue was correctly, or maybe he just bind'd the key to the book. I recall it had something to do with transitivity (A links to B links to C but A doesn't link to C), but I can't remember the particulars exactly. But just play with it and you get the idea pretty quickly what you can and can't do. I should have said from the start this is my guess, but don't take my word; It might work!

 

I know you can set up weight traps/puzzles really easily, like when you put a weight on a little platform, or two weights on two separate platforms, to open a door. Find one of these and you'll see the basic set up, and your puzzle is that theme but with multiple weights on the one platform. I suspect there might be an issue, but you never really know what you can do unless you experiment.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 4 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...