User:Radicalicious/Map updating documentation

From SRB2 Wiki
Jump to navigation Jump to search
This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article.

Alright, I'm compiling what I've learned recently about porting maps to the latest version of SRB2 that date as far back as Final Demo.

Final Demo to v2.0

Haven't done much research on the specifics, but with some digging around in the source code and old wiki articles, I should be able to piece together what changed. For now, I recommend using the level conversion tool released alongside v2.0. Make sure to download LumpMod while you're at it, as the level conversion executable needs to be in the same folder as LumpMod to function. Note that the level conversion only converts the normal difficulty objects, as other difficulties have been axed as of v2.0. All non-normal objects are turned to thing type 146, an unknown number. You'll have to manually remove them in SRB2DB/SRB2WB/ZB, whichever you use for old map editing. Hell, you might even be able to manually remove all of the instances of object 146 in the map's THINGS lump in SLADE, but I wouldn't recommend that.

Level conversion tool: https://files.srb2.org/srb2.org/lvlconv.exe

LumpMod: https://files.srb2.org/srb2.org/lumpmod.zip

v2.0 to v2.1

  • Linedef types 405 and 406 are Lower/Raise Floor According To Linedef. The distance they take on the X axis determines the speed of the movement, and the distance they take on the Y axis corresponds to the amount to move them. For example, a 406 line taking up 64 units on the X axis and 256 on the Y axis will raise the floor of the tagged sector by 256 units, moving at 8 fracunits per second.
    • Conversion to v2.1's format would simply involve changing the linedef to the Move Floor According To Texture Offset line type. The X offset would be the X distance and the Y offset would be the Y distance. Note that the X offset must always be positive, unlike the Y offset, which can vary. 405 lines must always have a negative offset, while 406 lines must always have a positive offset.
  • Linedef types 407 and 408 are Lower/Raise Ceiling According To Linedef. The distance they take on the X axis determines the speed of the movement, and the distance they take on the Y axis corresponds to the amount to move them. For example, a 408 line taking up 64 units on the X axis and 256 on the Y axis will raise the ceiling of the tagged sector by 256 units, moving at 8 fracunits per second.
    • Conversion to v2.1's format would simply involve changing the linedef to the Move Ceiling According To Texture Offset line type. The X offset would be the X distance and the Y offset would be the Y distance. Note that the X offset must always be positive, unlike the Y offset, which can vary. 407 lines must always have a negative offset, while 408 lines must always have a positive offset.

v2.1 to v2.2

To-do. Haven't done enough research yet. Most 2.1 maps work fine in 2.2, though. I remember LJ Sonic making a 2.1 to 2.2 conversion script for SLADE though, so you might want to poke him about that on Discord if you're really having trouble.