Rimworld Map to Source Engine VMF Exporter

If you liked this item, please rate it up on Steam Workshop page.

Author: King Sans

Last revision: 25 Nov, 2023 at 21:18 UTC

File size: 15.15 MB

On Steam Workshop

Description:

Exports stuff? Yeah.

This was just created so I could learn how to make Rimworld mods, I never made one before.

It doesn’t export every single thing, but the terrain and walls and trees and rocks mountains and such are exported, basically most of the environment. Also, bodies of water are also exported (that was tough to implement).

INSTRUCTIONS:

There are two ways to access it: In the bottom right corner of the screen (which will also let you adjust some settings (WHICH I RECOMMEND LEAVING AT THE DEFAULT BTW UNLESS YOU KNOW WHY TO CHANGE THEM (also half of them haven’t really been implemented yet)), or in the developer menu under "Map" as can be seen in a screenshot above.

It will export a .vmf file to the documents folder, which you can then simply compile using hammer or some other compiler if you don’t use hammer (compilepal is one), and it should work right off of the bat. They should compile for every single source engine game just fine, the settings to change the game to SFM or GMOD are deprecated and don’t work.

That’s about it, remember this is just for fun and it could theoretically be improved immensely, however it works so that’s good enough for now.

Quick explanation of how it works (only read if you’re interested in that)

Basically, it just gets every tile, every object, and all the pawn locations, and makes a list, then writes the vmf data of the world, then the objects, and finally ever pawn location is used as spawn points, and the first one is used as a light_environment location.

Known Issues (ignore unless you have issues)

When the tile size is set too low, too many brushes are made so an algorithm should be made to merge ones that can be merged, in the meantime just increase it.

No cubemaps, place them manually if needed

If people are too close to walls, spawn points may be made inside walls, delete those if needed

Source code is included, edit it if you want (you don’t need to ask me or anything do whatever you want it’s just a mod)