Rain World

Rain World

72 ratings
Custom Centipede Maker
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
608.293 KB
Feb 17 @ 9:23am
Apr 1 @ 3:58pm
13 Change Notes ( view )

Subscribe to download
Custom Centipede Maker

Description
What is it?
A tool that lets you make your own centipede variants without code.

Making a new centipede
To create a new centipede:
1 - Make your own mod folder in Rain World/RainWorld_Data/StreamingAssets/mods.

2 - Create a CustomCentis folder inside it.

3 - Create a new text file whose name is the name of your centipede, then rename the extension to .tp.

The path should be:
Rain World/RainWorld_Data/StreamingAssets/mods/mymod/CustomCentis/MyCenti.tp
(replace mymod with the name of your mod folder and MyCenti with the name of your centipede)

(Optional) - If you need additional images/atlases to be loaded, put them in the same folder.

(Optional) - You can make multiple .tp files if you need multiple custom centipedes.

4 - Launch the game.

5 - In the Remix menu, ENABLE YOUR MOD and apply mods.

6 - Restart the game and you should now be able to edit your centipede(s).
Don't forget to save using the Save File button in the Main Menu!

If your centipede still doesn't appear:
- Double check your path.
- Try to write mymod (the name of your mod folder) directly in Rain World/RainWorld_Data/StreamingAssets/enabledMods.txt if it is not already there, then save and launch the game.

User Info
- Always restart the game after enabling/disabling custom centipede mods if you want them to appear/disappear properly.
- This mod should be compatible with other mods as long as they don't do cursed things.
- If a sprite or shader field is invalid, the default centipede one will be used.
- If a field is empty (relationship, sprite, shader, grabability...), the default centipede value will be used. For relationships, the default value depends on the Inherit field.
- Fields marked with a circular arrow require your to restart the game for changes to apply properly.
- Some fields depend on some other fields.
- The shells of your centipede use the main color (hue and saturation) by default. The fields Shell Color and Secondary Shell Color are used to override the color of the shells if they are not empty.
- If two custom centipedes using the same ID (the name of the .tp file) are enabled, only the first loaded one will exist. Try to make your ID unique to avoid incompatibilities.
- Don't forget to change the alpha slider if you don't want a color to be transparent.
- Transparency doesn't work for midground sprites because of how Rain World works.
- Using a pure black color or setting alpha to 0% makes a sprite invisible.

Modder Info
- The mod doesn't require More Slugcats to be enabled, but be careful not to use More Slugcats sprites like the aquapede wings if you don't want your mod to depend on More Slugcats.
- To set spawns for your centipede in a region using the world file, use the name of the .tp file (in the example path: MyCenti). It is case insensitive.
- You can edit the .tp file manually, though it's not recommended. Look at the Example.tp file found in the same folder as the CustomCentis.dll (probably hidden in the Steam workshop folder).
- To access the ExtEnum of your centipede while making a mod that depends on CustomCentis.dll, use the name of the .tp file as the only argument when calling the constructor of CreatureTemplate.Type:

var type = new CreatureTemplate.Type("MyCenti");
// Try to save this instance in a static field not to create too much garbage!
// You can then set your static field to null in OnDisable for example.
// Don't register/unregister the ExtEnum!

- Custom centipedes are registered in PostModsInit. Don't try to use your ExtEnum before!

Special thanks
Thanks to Balagaga and eli for testing.