Craftopia

Craftopia

103 ratings
Command Handler
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
95.663 KB
Jun 30, 2023 @ 11:07am
Apr 29 @ 12:10pm
25 Change Notes ( view )

Subscribe to download
Command Handler

Description
Command Handler
Utility that manages the registered chat commands for other mods.

You're able to configure command key (commands' prefix) in the .cfg file, or via a chat command in-game. By default, it's . (dot). For example, you can set it to @ by typing ".set_cmd_key @" in the chat. Then all commands will start by @ instead of . (dot). (ie. "@ls" instead of ".ls") Please choose a key that will not interfere with other mods that also use chat commands, such as MisakiCore or ChatItem. I cannot confirm compatibility in those cases as I do not use them.

Commands are also configurable, but only through the .cfg file. For example, if you find ".find_ench wheel" too long to type, you could change "find_ench" to "e" in the .cfg file, and type ".e wheel" instead. Other mods created by me that are using the Command Handler should also have configurable commands in their respective .cfg files. Please note that if it detects an overlapping command, they might be reverted back to their original values.

Please use the List all available commands chat command to get an up-to-date list in-game.

Chat commands
  • .ls - List all available commands
  • .set_cmd_key [char] - Set a new command key
  • .find [name] - Find an item ID by name
  • .find_ench [name] - Find an enchantment ID and effects by name
  • .who [id] - Find who drops an item by ID
  • .whoe [id] - Find who drops an enchantment by ID
  • .what [name] - List drops by enemy name
Commands are configurable in the .cfg file.

About ConfigurationManager
While most toggles can be changed via the ConfigurationManager without trouble, some commands also do extra steps when executed. Therefore, I cannot guarantee that the feature you're trying to change will work as expected. Please use the chat commands whenever possible.

Legacy version
Use this if you are playing on the Legacy version.



For other devs
Modders are free to create mods using this as a requirement. You can decompile mods that use this utility to see how to integrate with it. You can leave a message below, or ping me on the official Discord server (Eradev) if you need further help.



If you enjoy the mod, and would like to see more, you can kindly support me by donating via Ko-Fi.

[ko-fi.com]
Popular Discussions View All (1)
0
Jul 4, 2023 @ 6:33am
Quickstart Guide
Psychloor
12 Comments
RockArmadaZ24 Dec 24, 2024 @ 10:05am 
Had time to troubleshoot issue turns out it was steam not mod.Strange that it had no issues until Craftopia updated?
Unforgiven  [author] Dec 22, 2024 @ 3:29pm 
@RockArmadaZ24

If it's caused by this mod (which is unlikely) then post your Bepinex log with the errors in the #modding-vroid channel on the Pocketpair Discord (see the forums for the link).
RockArmadaZ24 Dec 22, 2024 @ 3:18pm 
Game won't load after update
0fsgiven Nov 3, 2024 @ 2:52am 
going back to crafttopia to check it out again i feel this mod might be handy
Unforgiven  [author] Dec 7, 2023 @ 2:21pm 
It was a problem in QoL which has been fixed.
ZennBen Dec 5, 2023 @ 3:08pm 
is this mod updated for most recent update? my game currently wont save and its only when this and Quality of life mod are activated
Unforgiven  [author] Aug 31, 2023 @ 7:24am 
@Aika-Senpai

This mod doesn't touch crafting at all.
Aika-Natsukawa Aug 30, 2023 @ 6:56pm 
Hello, I'm having a problem as soon as I activate this mod... crafting in general is buggy, doing it by hand consumes the material but it says it was insufficient, nothing happens on the tables when I press the button to do the crafting...
Azurianoni Aug 5, 2023 @ 7:28pm 
@leoxilone press enter for chat and from there input commands
leoxilone Aug 5, 2023 @ 8:20am 
How do you open the command chat?