Profile image

Map To Designer

72.0k hpgbproductions  4 months ago
1,212 downloads
Version 1.0 Designer Background

Map To Designer (MAPTODES) is a test for copying mod maps and transferring them to the designer.

Usage

  1. Go to the Mod Sandbox Maps and choose the map you want to copy.
  2. Enter the map and back out to the designer.
  3. The map should automatically be loaded in the designer.
  4. Click on the arrows to navigate the map (1, 10, or 100 meters per second). Shift-click to go 1000x faster.
  5. Use the MapToDes_ToggleButtons command to hide or show the buttons.

User scripts are mostly stripped from the cloned maps. The last cloned map persists until another map is cloned. The mod also remembers the last position used in each map.

The water and sky objects are copied into the designer as well. Only the in-game water (TasharenWater) and sky (TOD_Sky) may be cloned.

By default, maps are cloned automatically when the sandbox is paused. To remove this feature, delete the AUTOSAVE file that appears in .../NACHSAVE/MAPTODES/ after the first run. You can use the MapToDes_SaveMap command to copy the map.

Map rotation is NOT supported.

Recommended mods:
Designer Light Settings - can fix over-exposed terrain in designer
Designer Suite - can remove the gray circle

Known Issues

  • Sandbox pause functionality breaks after cloning a map.
  • Sandbox scripts and enemies may break if a map has been cloned before.
  • Ships move in an erratic manner in the designer.
  • Some custom scripts remain in the cloned map, causing errors to be logged in the dev console.

Dev Notes:
A fun, lightweight experimental mod. If you squint, the bugs almost disappear. Definitely useless now, but could have been cool a few years ago. Also, I spent a whole day making this, which went well until the fact that terrain can't be rotated thwarted my plans (lol). So there's no rotation support even though the code seems to suggest it.

Addenum: MTD file format
Only use BinaryWriter and BinaryReader.
[String] Header (NACHSAVEMTDSET)
[Single] OffsetX
[Single] OffsetY
[Single] OffsetZ
[Single] (Leave as zero!)
[Single] (Leave as zero!)
[Single] (Leave as zero!)
[Single] RenderDistance