Skip to content

Replacing blocks with props. Put .exe in folder with .rbe files. For Diabotical / Diabotical Rogue

License

Notifications You must be signed in to change notification settings

dhcold/RogueConverter

Repository files navigation

RogueConverter

What it does

RogueConverter is a C# tool for Diabotical / Diabotical Rogue, that is capable of:

  • Converting all blocks from the map into diagonal/rectrangle props.
  • Rescaling converted map (making it bigger or smaller)

Additional info

  1. Converting respects block type (diagonal/solid) and creates corresponded prop
  2. You can select if block material should be taken into consideration while converting them (so you can get different materials on converted props aswell. Otherwise every prop will be with same material)
  3. It removes any original prop, that starts with prop_ and isn't invis prop
  4. All other entities (triggers, tps, lights, etc) stays the same
  5. I tried to convert ramps, but they are misplaced for now (maybe i'll found solution for converting any invis props into new blockout props)

Download latest .exe

DOWNLOAD HERE

How to use

Launching app

  • Put .exe in a folder with .rbe files (Diabotical map folder - %appdata%/Diabotical/Maps). For now it works only with original/parsed Diabotical maps. If you save map in-game (Diabotical Rogue), it will update version and no longer can be loaded in this tool.

image

  • It will read every .rbe map in that folder, after that you can select which map you want to load image

Loading a map

  • If map is loaded, you will get short map info. From this point you can select what operation you want to do with the map image

Converting/Rescaling and Saving the results

  • After executing operation it will automatically generate new file in Diabotical Rogue folder (%appdata%/DiaboticalRogue/Maps). With postfix _rogue for converted maps, and _rescaled for scaled maps. image
  • You can edit new map right away, by typing command (or copy from app output) to in-game console /edit newmapname

Example

image image2

If you have any questions

Write me in Discord: @dhcold

Special Thanks to

  • pressOK - for creating original tool and also helping me a lot.
  • hst - for helping me to understand parsing/writing process and helping overall during process. Check out his tools too!
  • GD Studio - for creating amazing games 🫶

If you want to do something with the code yourself (examples)

Loading a Map

// Create an instance of MapHandler
MapHandler mapHandler = new MapHandler();

// Load a map from file
MapObject mapObject = mapHandler.LoadMap("path/to/your/mapfile.rbе");

// Access map data
Console.WriteLine($"Map Version: {mapObject.ver}");
Console.WriteLine($"Author: {mapObject.authorName}");
// Access other map components: materials, blocks, entities, etc.

Saving a Map


// Save the map to file
mapHandler.SaveMap(mapObject, "path/to/save/mapfile.rbe");

About

Replacing blocks with props. Put .exe in folder with .rbe files. For Diabotical / Diabotical Rogue

Resources

License

Stars

Watchers

Forks

Languages