Please or Register to create posts and topics.

Portalable Piston Instance for PTI

PreviousPage 2 of 2

So I was able to download it. I edited my editoritems.txt file so that I could use both a regular piston and this one, but it seems that both choices are the regular piston. I'll have to look into that.
EDIT: When I removed the regular piston, it worked. Strange.

You need to give them individual item IDs. If they're the same the game sees them as the same object, even if it's listed twice.

Falsi sumus crusto!
FelixGriffin wrote:
You need to give them individual item IDs. If they're the same the game sees them as the same object, even if it's listed twice.

Thanks!

Nice.
If you want to include this in puzzlemaker separately from the existing piston platform, here's the instructions:

- Save the vmf file that you downloaded, lift_standalone.vmf, as sdk_content/maps/instances/p2editor/lift_standalone_portalable.vmf
- Add this into your editoritems.txt (edit the Palette entry as necessary, this one is mapped to "3 2 0").

Code: Select all
   "Item"
   {
      "Type"      "ITEM_PORTALABLE_PISTON_PLATFORM"
      "ItemClass"      "ItemPistonPlatform"
      "Editor"
      {
         "SubType"
         {
            "Name"      "PORTALABLE PISTON PLATFORM"
            "Model"
            {
               "ModelName"      "piston_lift_grate.3ds"
               "TextureName"   "pistonlift.png"
            }
            "Model"
            {
               "ModelName"      "piston_lift_section01.3ds"
               "TextureName"   "pistonlift.png"
            }
            "Model"
            {
               "ModelName"      "piston_lift_section02.3ds"
               "TextureName"   "pistonlift.png"
            }
            "Model"
            {
               "ModelName"      "piston_lift_section03.3ds"
               "TextureName"   "pistonlift.png"
            }
            "Model"
            {
               "ModelName"      "piston_lift_top.3ds"
               "TextureName"   "motionplatform.png"
            }
            "Model"
            {
               "ModelName"      "destination_target_outline.3ds"
               "TextureName"   "arm_4panel.png"
            }
            "Model"
            {
               "ModelName"      "piston_lift_tube.3ds"
               "TextureName"   "motionplatform.png"
            }
            "Palette"
            {
               "Tooltip"   "PORTALABLE PISTON PLATFORM"
               "Image"      "palette/arm_paneltop.png"
               "Position"   "3 2 0"
            }
            "Sounds"
            {
               "SOUND_CREATED"               "P2Editor.PlaceOther"
               "SOUND_EDITING_ACTIVATE"      "P2Editor.ExpandOther"
               "SOUND_EDITING_DEACTIVATE"      "P2Editor.CollapseOther"
               "SOUND_DELETED"               "P2Editor.RemoveOther"
            }
         }
         "MovementHandle"      "HANDLE_NONE"
      }
      "Properties"
      {
         "BottomLevel"
         {
            "DefaultValue"      "0"
            "Index"      "1"
         }
         "TopLevel"
         {
            "DefaultValue"      "1"
            "Index"      "2"
         }
         "StartUp"
         {
            "DefaultValue"      "0"
            "Index"      "3"
         }
         "ConnectionCount"
         {
            "DefaultValue"      "0"
            "Index"      "4"
         }
         "AutoTrigger"
         {
            "DefaultValue"      "1"
            "Index"      "5"
         }
      }
      "Exporting"
      {
         "Instances"
         {
            "0"
            {
               "Name"            "instances/p2editor/lift_standalone_portalable.vmf"
               "EntityCount"      "46"
               "BrushCount"      "15"
               "BrushSideCount"   "106"
            }
         }

         "TargetName"      "pl"
         "Inputs"
         {
            "CONNECTION_STANDARD"
            {
               "Activate"      "instance:counter;Add"
               "Deactivate"      "instance:counter;Subtract"
            }
         }
         "Offset"      "64 64 64"
         "EmbeddedVoxels"
         {
            "Voxel"
            {
               "Pos"      "0 0 0"
            }
            "Voxel"
            {
               "Pos"      "0 0 -1"
            }
         }
         "ConnectionPoints"
         {
            // left
            "Point"
            {
               "Dir"            "1 0 0"
               "Pos"            "-1 3 0"
               "SignageOffset"      "-2 2 0"
               "Priority"  "0"
            }
            "Point"
            {
               "Dir"            "1 0 0"
               "Pos"            "-1 4 0"
               "SignageOffset"      "-2 5 0"
               "Priority"  "0"
            }

            // right
            "Point"
            {
               "Dir"            "-1 0 0"
               "Pos"            "8 3 0"
               "SignageOffset"      "9 2 0"
               "Priority"  "0"
            }
            "Point"
            {
               "Dir"            "-1 0 0"
               "Pos"            "8 4 0"
               "SignageOffset"      "9 5 0"
               "Priority"  "0"
            }

            // up
            "Point"
            {
               "Dir"            "0 1 0"
               "Pos"            "3 -1 0"
               "SignageOffset"      "2 -2 0"
               "Priority"  "0"
            }
            "Point"
            {
               "Dir"            "0 1 0"
               "Pos"            "4 -1 0"
               "SignageOffset"      "5 -2 0"
               "Priority"  "0"
            }

            // down
            "Point"
            {
               "Dir"            "0 -1 0"
               "Pos"            "3 8 0"
               "SignageOffset"      "2 9 0"
               "Priority"  "0"
            }
            "Point"
            {
               "Dir"            "0 -1 0"
               "Pos"            "4 8 0"
               "SignageOffset"      "5 9 0"
               "Priority"  "0"
            }
         }
      }
   }
   "Item"
   {
      "Type"      "ITEM_PORTALABLE_PISTON_PLATFORM_EXTENT"
      "ItemClass"      "ItemPistonPlatformExtent"
      "Editor"
      {
         "SubType"
         {
            "Model"
            {
               "ModelName"         "handle_grip_sphere.3ds"
               "TextureName"      "buttonweight.png"
            }
            "Model"
            {
               "ModelName"      "destination_arrow.3ds"
               "TextureName"   "black_white_unlit.png"
            }
         }
         "MovementHandle"      "HANDLE_NONE"
         "OccupiesVoxel"      "0"
         "Deletable"         "0"
         "Copyable"         "0"
         "PseudoHandle"      "1"
      }
   }

I also hastily created a palette icon for the lift, but it defies me why it does not work in the game. It can be found here: http://bisqwit.iki.fi/kala/ptal2/arm_pa ... alable.png
When I tried to use it, in the console, I am getting an error <"materials/models/handles_map_editor/palette/arm_paneltop_portalable.vtf": can't be found on disk>, and in the palette I get a magenta-black grid patter, but I don't really know what are VTF files and what I can do about it.

So, while the regular piston platform and the portalable one can be used in the same map, they are both denoted by the same icon and graphics in the puzzlemaker. Perhaps someone could fix this?

You're a bit late, I already added it to the FGEMOD (although not the release version yet). ;)

VTF files are textures that the game can use, the ones for the palette are hidden in the VPK (those PNGs aren't used for anything).

Falsi sumus crusto!
FelixGriffin wrote:
You're a bit late, I already added it to the FGEMOD (although not the release version yet). ;)

Well, to me, unreleased = doesn't exist.

True. It will be released someday, probably a bit after HL3...

Falsi sumus crusto!
PreviousPage 2 of 2