MM8BDM Forum

Russel's Mapping Utils
Russel • January. 26, 2025, 8:01 PM
January. 26, 2025, 8:01 PM Copy Link
Shortcut Scripts

There's a bunch of little random rules mappers have had to keep track of over the years.
Sometimes ladders are sticky so they're hard to stop climbing, sometimes actors will just turn matte black under 3D floors, sometimes you might forget software mode exists at all and your texture offsets are all messed up.

That's a small list of things these are hoping to fix.

Installation
So you need Ultimate Doom Builder. If you can't run it, you're SOL. Sorry.

Download the scripts here.

Open a map in UDB, on the right side panel find this "Scripts" tab and hover over it.

Right click on Examples and click "Open in Explorer."


Once Explorer opens, go back one folder so you are in the "Scripts" folder.


Extract Russels_ShortcutScripts.zip here.


Return to UDB and you should now see these scripts available in the Scripts tab.


Available Scripts
Now that your scripts are installed, you can run them as you wish.
Keep in mind that scripts can do anything you can do manually, so be wary of running scripts that sound dangerous. When running the scripts from this set, most of them only do small tweaks, but always check the output to make sure they performed the actions you wanted them to and nothing more.

By running these scripts, you take responsibility for any output they produce. It is recommended you back up your map before running scripts that make significant changes.

To run a script, go to the Scripts tab, click the script you wish to run, make sure the parameters are set as you want them, and then click run.

UDB Scripts always count as an action in UDB's history, so you can just press ctrl-z if you don't like the results.

Quick Fixes
  • Create pitprotect lines - Adds monster block lines around pits.
  • Find bad spawns - Marks any spawns with a comment stating its issues. Also checks the counts for all of the spawn types to make sure the map fits the standard. (32 DM/16 for red & blue teams/8 for green & gold teams/player 1-8 starts)
  • Fix lighting overflow - Finds and fixes all sectors with lighting higher than 255 to fix an open gl bug where lighting can overflow to 0.
  • Fix negative offsets - Removes negative offsets from all textures in the map to fix a bug in software where negative offsets appear incorrectly.
  • Join identical sectors - Script that locates all sectors with the same properties and joins them so the game treats those sectors as the same. This script may have unforeseen consequences. Script should be run towards the end of map development and may cause issues such as SECTINFO clashing.
  • Remove sidedef offsets - Sidedef offsets are usually found in older maps, but they are added to the texture offsets of a line and can make offsetting textures on mass a little more difficult. This script adds the existing sidedef offsets to the texture offsets and sets the sidedef offsets to 0.
  • Standardize ladders - Makes sure all ladders in the map are the same and can only be triggered from the front. Also detects ladders that could be accessed from incorrect locations.

Searches
  • Highlight in-bounds sectors.
  • Highlight out of bounds sectors.
  • Highlight Sectors with callouts.
  • Highlight Sectors with pits.