N网mod搬运,Card Survival mod 输出目前正在构建的所有蓝图的需求。
一个粗略的mod,输出目前正在构建的所有蓝图的需求。<br />它可以用来跟踪所有环境中的所有蓝图以及它们需要的资源。<br /><br />下方原版英文mod说明:<br />Save Blueprint Requirements<br /><br />A rough mod to output the requirements for all blueprints that are currently being built.<br />It can be used to keep track of all the blueprints in all of the environments and what resources they require.<br /><br />The mod saves the output to two files:<br />* Blueprints.txt<br />* Blueprints.json<br /><br />The .txt file is the formatted version, the .json file is the database.<br /><br />The files will be located in the plugin's install directory, which will be <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx\plugins\SaveBlueprintRequirements\<br /><br />The files will be created/updated when the "Update" hotkey is pressed or the player travels to a different environment (traveling or entering a structure.)<br /><br />For modders that wish to create a better mod, see (#note-to-modders) at the end of this document for research notes.<br /><br />File Output:<br /><br />Example<br /><br /><br />Eastern Grasslands:<br /> Trapping Pit<br /> Shovel (1)<br /><br /> Heavy Stone (4)<br /> Long Stick (6)<br /> Palm Fronds (12)<br /> Shovel (3)<br /> Stone (16)<br /><br />Jungle:<br /> Empty Skep<br /> Palm Fronds (6)<br /> Palm Weave (8)<br /><br /> Manure (2)<br /> Mud Pile (2)<br /> Palm Fronds (6)<br /> Palm Weave (8)<br /><br /><br />Overview<br /><br />The output is as follows:<br />* The Environment the blueprint is in.<br />* The name of the blueprint<br />* The requirements for the current stage.<br />* A blank line<br />* All of the requirements to complete the blueprint, including the remaining items for the current stage.<br /><br />Viewing the File<br /><br />It is recommended to use a text editor that refreshes an opened file when that file has changed. Visual Studio Code from Microsoft supports automatic file refresh and is free.<br /><br />https://code.visualstudio.com/<br /><br /><br />Limitations<br /><br />I debated releasing this mod as it is so rough; however, I've found it to be quite useful so others may as well.<br /><br />The limitations are listed below.<br /><br />Updates<br /><br />The data is only updated when leaving an environment or the user presses the update hotkey. The default update key is "Page Up" and can be changed in the config. Mouse3 is a good option for mice with side buttons.<br /><br />Changing Game Saves<br /><br />If changing saves or starting a new game, the .json file must be deleted or data from the previous game will be shown.<br /><br />No Improvements<br /><br />Improvements such as expansions on huts or paths, etc. are not included.<br /><br /><br />Configuration<br /><br />The following settings are in the configuration file. See (#changing-the-configuration) below.<br /><br /><br />| Setting | Default | Description |<br />| ------------ | ---------- | ------------------------------------------------ |<br />| InlineFormat | false | If true, will put all needed resources in a |<br />| | | single line. |<br />| | | |<br />| FileBaseName | Blueprints | The name of the exported files, minus the |<br />| | | extension. |<br />| | | |<br />| Hotkey | PageUp | The hotkey used to write the blueprint info on |<br />| | | demand. |<br /><br /><br />Changing the Configuration<br /><br />All options are contained in the config file which is located at <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx\config\SaveBlueprintRequirements.cfg.<br /><br />The .cfg file will not exist until the mod is installed and then the game is run.<br /><br />To reset the config, delete the config file. A new config will be created the next time the game is run.<br /><br />Installation<br /><br />This mod requires the BepInEx mod loader.<br /><br />BepInEx Setup<br /><br />If BepInEx has already been installed, skip this section.<br /><br />Download BepInEx from https://github.com/BepInEx/BepIn ... Ex_x64_5.4.21.0.zip<br /><br />* Extract the contents of the BepInEx zip file into the game's directory:<br /><Steam Directory>\steamapps\common\Card Survival Tropical Island<br /><br /> __Important__: The .zip file *must* be extracted to the root folder of the game. If BepInEx was extracted correctly, the following directory will exist: <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx. This is a common install issue.<br /><br />* Run the game. Once the main menu is shown, exit the game.<br /><br />* In the BepInEx folder, there will now be a "plugins" directory.<br /><br />Mod Setup<br /><br />* Download the SaveBlueprintRequirements.zip.<br /> * If on Nexumods.com, download from the Files tab.<br /> * Otherwise, download from https://github.com/NBKRedSpy/Car ... uirements/releases/<br /><br />* Extract the contents of the zip file into the BepInEx/plugins folder.<br /><br />* Run the Game. The mod will now be enabled.<br /><br />Uninstalling<br /><br />Uninstall<br /><br />This resets the game to an unmodded state.<br /><br />Delete the BepInEx folder from the game's directory<br /><Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx<br /><br />Uninstalling This Mod Only<br /><br />This method removes this mod, but keeps the BepInEx mod loader and any other mods.<br /><br />Delete the SaveBlueprintRequirements.dll from the <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx\plugins directory.<br /><br />Compatibility<br /><br />Safe to add and remove from existing saves.<br /><br /><br />Note to Modders<br /><br />This section discusses some of the findings when doing research for this mod. Be aware that some of it is from memory, and some paths were not fully researched.<br /><br />Card Survival stores the current game's cards in two ways: All of the environments in a dehydrated state and the current environment in a hydrated state.<br /><br />The hydrated state is stored in GameManager.CurrentEnvironment and all the cards in GameManager.AllCards are all of the cards for the current environment.<br /><br />The rest of the environments are in a "save" format and contain keys to the cards and the states of those cards. If I remember correctly those environments are stored in GameManager.EnvironmentsData.<br /><br />Note that while the current environment is in the EnvironmentsData collection, it appears to be a stale copy. When the game is loaded, the current environment's entry in GameManager.EnvironmentsData is effectively ignored since the current environment is loaded from different data. The save data is updated when the player leaves an environment.<br /><br />Source code for this mod can be found at https://github.com/NBKRedSpy/Car ... eprintRequirements/<br /><br />
页:
[1]