Page 5 of 5

Re: Trapdoor above the main room in Privateers Hold

Posted: Thu Mar 12, 2020 10:20 pm
by Interkarma
I masked the 3 bottom bits earlier in this topic. Felt right intuitively but doesn't yield the correct results. That's why I needed more data to look at. :)

Re: Trapdoor above the main room in Privateers Hold

Posted: Thu Mar 12, 2020 10:39 pm
by BadLuckBurt
Interkarma wrote: Thu Mar 12, 2020 10:20 pm I masked the 3 bottom bits earlier in this topic. Felt right intuitively but doesn't yield the correct results. That's why I needed more data to look at. :)
I took the liberty of dumping all models with the TRP description that have rotate or translation actions:

Rotation with axis > 6

Code: Select all

{
  "N0000006": {
    "name": "N0000006",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 13,
        "Magnitude": 392,
        "Flags": 8
      }
    ]
  },
  "N0000008": {
    "name": "N0000008",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 13,
        "Magnitude": 392,
        "Flags": 8
      }
    ]
  },
  "N0000033": {
    "name": "N0000033",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 10,
        "Magnitude": 496,
        "Flags": 8
      }
    ]
  },
  "W0000005": {
    "name": "W0000005",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 13,
        "Magnitude": 392,
        "Flags": 8
      }
    ]
  }
}
Rotation with axis <= 6:

Code: Select all

{
  "N0000003": {
    "name": "N0000003",
    "count": 4,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      }
    ]
  },
  "N0000004": {
    "name": "N0000004",
    "count": 4,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      }
    ]
  },
  "N0000005": {
    "name": "N0000005",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      }
    ]
  },
  "N0000033": {
    "name": "N0000033",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 5,
        "Magnitude": 480,
        "Flags": 8
      }
    ]
  },
  "N0000034": {
    "name": "N0000034",
    "count": 2,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 5,
        "Magnitude": 480,
        "Flags": 8
      },
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 512,
        "Flags": 8
      }
    ]
  },
  "N0000035": {
    "name": "N0000035",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 6,
        "Magnitude": 480,
        "Flags": 8
      }
    ]
  },
  "N0000036": {
    "name": "N0000036",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 560,
        "Flags": 8
      }
    ]
  },
  "N0000037": {
    "name": "N0000037",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 560,
        "Flags": 8
      }
    ]
  },
  "N0000038": {
    "name": "N0000038",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 560,
        "Flags": 8
      }
    ]
  },
  "W0000002": {
    "name": "W0000002",
    "count": 2,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 6,
        "Magnitude": 480,
        "Flags": 8
      },
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 512,
        "Flags": 8
      }
    ]
  },
  "W0000003": {
    "name": "W0000003",
    "count": 4,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 768,
        "Flags": 8
      }
    ]
  },
  "W0000004": {
    "name": "W0000004",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 560,
        "Flags": 8
      }
    ]
  },
  "W0000007": {
    "name": "W0000007",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 2,
        "Magnitude": 500,
        "Flags": 8
      }
    ]
  },
  "S0000001": {
    "name": "S0000001",
    "count": 3,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 2,
        "Magnitude": 760,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 1,
        "Magnitude": 760,
        "Flags": 8
      },
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 6,
        "Magnitude": 760,
        "Flags": 8
      }
    ]
  },
  "S0000080": {
    "name": "S0000080",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 2,
        "Magnitude": 488,
        "Flags": 8
      }
    ]
  },
  "S0000160": {
    "name": "S0000160",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 5,
        "Magnitude": 512,
        "Flags": 8
      }
    ]
  },
  "S0000181": {
    "name": "S0000181",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54001,
        "Description": "TRP",
        "Axis": 6,
        "Magnitude": 402,
        "Flags": 8
      }
    ]
  }
}

Re: Trapdoor above the main room in Privateers Hold

Posted: Thu Mar 12, 2020 10:40 pm
by BadLuckBurt
Translation with axis > 6:

Code: Select all

{
  "N0000007": {
    "name": "N0000007",
    "count": 1,
    "models": [
      {
        "ModelIdNum": 54000,
        "Description": "TRP",
        "Axis": 11,
        "Magnitude": 1782,
        "Flags": 1
      }
    ]
  }
}
Translation with axis <= 6 yields no results

Re: Trapdoor above the main room in Privateers Hold

Posted: Thu Mar 12, 2020 11:49 pm
by Interkarma
Thank you Burt! :D

I'm starting to reach the conclusion this is just bad/malformed data. Pango's initial workaround was very good in simply targeting the properties for the TRP objects.

Something I want to do though, and haven't had time for yet, is to sit down with some of these actions Burt identified in the editor and play them to see how they operate visually with different settings. If there's some universal solution that will fix several edge cases of unusual actions, including TRP, then brilliant. Otherwise, we already have a fix for TRP thanks to Pango and the others may not even be valid to start with.

Re: Trapdoor above the main room in Privateers Hold

Posted: Fri Mar 13, 2020 2:41 pm
by DigitalMonk
Interkarma wrote: Tue Mar 10, 2020 10:24 pm The value 13 isn't currently supported in a direct comparison. Maybe we're reading 1 too many bits when populating or comparing this value? I note that 13=1101 and 5=0101. Is NegativeZ appropriate for that Faallem trapdoor? We might need to & out that 4th bit. Again, just a guess for now until I'm back in front of my dev environment.
So, your mention of NegativeZ made me wonder if negative axis values are meaningful? If so, I can think of two possible negative meanings for 1101:
  • Signed magnitude, where 1xxx directly inverts the 101 yielding -5. This sorta fits what happened when you masked axis&7, and the trapdoor then rotated up instead of down. But then, the rotation also apparently was around the wrong axis, so...
  • Two's complement nybble? In which case 1101 is -3. If the rotation was inverted (so it went down like it's supposed to) and it used axis 3 instead of 5, would that make it behave as expected?
Just flinging ideas...

Re: Trapdoor above the main room in Privateers Hold

Posted: Thu Nov 26, 2020 1:18 am
by pango
I'm still finding a lot of trapdoors that open around the right axis, of what looks like the right amount, but upward instead of downward...
2020_11_26_02_16_17.jpg
2020_11_26_02_16_17.jpg (133.71 KiB) Viewed 3528 times

Re: Trapdoor above the main room in Privateers Hold

Posted: Sun Jan 31, 2021 8:12 pm
by Hazelnut
I thought they were meant to open upwards - like trapdoors usually do.

Re: Trapdoor above the main room in Privateers Hold

Posted: Sun Jan 31, 2021 9:22 pm
by pango
That doesn't make them very good traps. I should be possible to check in classic how they're supposed to move, but I'm pretty sure it's downward

This trap is bugged

Posted: Sat Nov 13, 2021 2:07 pm
by King of Worms
Finally found my favorite trap. Aaaand... its bugged :lol:

Load a save, make few steps forward and the door bellow you will open. Problem is, it opens itself in a wrong way.
Its literally impossible to fall in this trap, when its done this way. The door should open downwards, not upwards, otherwise it does not work and never will.

Ive tried approaching it from all 4 sides, and Ive never fell down. :cry:
SAVE484.rar
(287.4 KiB) Downloaded 76 times

Re: Trapdoor above the main room in Privateers Hold

Posted: Sun Nov 14, 2021 11:39 pm
by King of Worms
Thanks 4 merging the threads. Hope this is corrected as the current implementation is not working as a trap.