Resource icon

[Open Assets] Dslopehelper - Vertex slope auto tagger for SRB2Kart v1.0

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
Dslopehelper or Dynamic Slope Helper is combo of a Lua script and program to auto tag and offset vertex slopes as well as get base heights for your dynamic vertex slopes.
This program/script does not nor is intended to supersede UDMF slope points or the vertex slope assistant in Zone Builder itself.

The output from the Lua script has to be patched to the .wad with the included program (Dslopepatcher) or manually with your choice of hex editor. The program only handles .wad files.

Usage:
Lua file:
  • The lua file should be added as a resource while using Zone Builder, and is completely unnecessary to include in your final release.
  • Add the No Climb flag to Set Tagged Dynamic Slope (linedef type 799) to set the sector's height to tagged slope vertex's height. The slope linedefs will still need to be tagged dynamic for an effect.
  • Linedef types 704,705,714,715: You do not need to add "No Knux/Use Tags and Offsets" to these lines beforehand. It is recommended to place 3 vertex slopes of tag 0 somewhere in your map instead.
    • The No Climb flag will search for vertex slope things closest to the vertices (max range ~ 6 Fracunits; it is recommended to place slope things on the in level vertexes) of your 3 linedef triangle. It will default to the highest ones for the ceiling at each point and the lowest for each floor. Thing placement order still matters however, and some manual touch up may be needed if there are issues.
    • The Block Enemies flag copies the slope tags of a sector on the opposite side of the linedef effect. The affected sector can have any amount of linedefs.
    • Add the Bouncy Flag to the linedef as well as No Climbif it is for a Floor Over Floor control sector. The X offset determines the sector tag to use as a reference.
      • Adding the Effect 1/Slope Skew Flag to this will set the floor and ceiling height of the control sector as clamps and ignore any vertex slopes outside of its range.

  • If everything is set up properly a message will occur when testing your map. It will give the name of a patch file which should be plugged in to the attached program or referenced to manually patch your wad lumps with a hex editor.
    1690942568167.png
Program:
  • The program is a bare bones C++ file; copy the full path of your wad file then your patch file. You can shift right click your files on Windows in order to get the full path of your files or merely drag the files onto the console window.
  • The program will create a .bak backup of your input wad file any time it is used just in case something goes wrong. Close the map in your map editor before operation. It and the script will clean up any flags which were used exclusively for the purpose of script features.
Limitations:
  • Standard limitations of slope vertices still apply. Add 3 vertex slope things of tag 0 to your map to so that it can still boot up before patching it.
  • The script only works with 3 linedef triangles at this time. Adding trim or other sectors on top of your untagged vertex slopes should be done with additional passes.
Permissions:
  • The script and the program are completely free to reuse, modify and adapt for your own release/purposes. The source code of the program is included if you prefer to compile it yourself.

The test map (K_Dslopetest) and the script generated patch file (DSlopeOut_Map01) included showcase the features of the program; plug them into it to see the result.
Alternatively you can boot up the map with the lua script loaded and get the patch file to load into the program that way.

The map shows off an autotagged hemisphere, a dynamic pool of water, clamped vertex FoFs and a vertex copy slope.
It is completly flat before it is patched.
kart0611.png
kart0610.png
  • Cool!
Reactions: Lighto
Author
Chaobrother
Downloads
233
Views
728
Extension type
zip
File size
517.6 KB
MD5 Hash
3eaa6fbe364c131375e83ba00b661dc7
First release
Last update

More resources from Chaobrother

Share this resource

Latest reviews

Does what it says on the tin. Maybe I'm a bit dumb but the instructions felt a little hard to parse. Once I understood how it worked, though, I was golden. The auto-tagging of vertex slopes is very handy!
Upvote 0
Back
Top