西门吹雪 发表于 3 天前

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 &lt;Steam Directory&gt;\steamapps\common\Card Survival Tropical Island\BepInEx\plugins\SaveBlueprintRequirements\<br /><br />The files will be created/updated when the &quot;Update&quot; 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 />&nbsp; &nbsp; Trapping Pit<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Shovel (1)<br /><br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Heavy Stone (4)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Long Stick (6)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Palm Fronds (12)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Shovel (3)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Stone (16)<br /><br />Jungle:<br />&nbsp; &nbsp; Empty Skep<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Palm Fronds (6)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Palm Weave (8)<br /><br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Manure (2)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Mud Pile (2)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Palm Fronds (6)<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;The default update key is &quot;Page Up&quot; and can be changed in the config.&nbsp;&nbsp;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.&nbsp;&nbsp;See (#changing-the-configuration) below.<br /><br /><br />| Setting&nbsp; &nbsp;&nbsp; &nbsp;| Default&nbsp; &nbsp; | Description&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|<br />| ------------ | ---------- | ------------------------------------------------ |<br />| InlineFormat | false&nbsp; &nbsp;&nbsp; &nbsp;| If true, will put all needed resources in a&nbsp; &nbsp;&nbsp; &nbsp;|<br />|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| single line.&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; |<br />|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|<br />| FileBaseName | Blueprints | The name of the exported files, minus the&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|<br />|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| extension.&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br />|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|<br />| Hotkey&nbsp; &nbsp;&nbsp; &nbsp; | PageUp&nbsp; &nbsp;&nbsp;&nbsp;| The hotkey used to write the blueprint info on&nbsp; &nbsp;|<br />|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;|&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;| demand.&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;|<br /><br /><br />Changing the Configuration<br /><br />All options are contained in the config file which is located at &lt;Steam Directory&gt;\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.&nbsp;&nbsp;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 />&lt;Steam Directory&gt;\steamapps\common\Card Survival Tropical Island<br /><br />&nbsp; &nbsp; __Important__:&nbsp;&nbsp;The .zip file *must* be extracted to the root folder of the game.&nbsp;&nbsp;If BepInEx was extracted correctly, the following directory will exist: &lt;Steam Directory&gt;\steamapps\common\Card Survival Tropical Island\BepInEx.&nbsp;&nbsp;This is a common install issue.<br /><br />* Run the game.&nbsp;&nbsp;Once the main menu is shown, exit the game.<br /><br />* In the BepInEx folder, there will now be a &quot;plugins&quot; directory.<br /><br />Mod Setup<br /><br />* Download the SaveBlueprintRequirements.zip.<br />&nbsp; &nbsp; * If on Nexumods.com, download from the Files tab.<br />&nbsp; &nbsp; * 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.&nbsp;&nbsp;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 />&lt;Steam Directory&gt;\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 &lt;Steam Directory&gt;\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.&nbsp;&nbsp;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:&nbsp;&nbsp;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 &quot;save&quot; format and contain keys to the cards and the states of those cards.&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;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]
查看完整版本: N网mod搬运,Card Survival mod 输出目前正在构建的所有蓝图的需求。