Card Survival: Tropical Island
0 of 0

File information

Last updated

Original upload

Created by

NBK_RedSpy

Uploaded by

NBKRedSpy

Virus scan

Safe to use

Tags for this mod

About this mod

Exports a list of all blueprints being built in all locations, and the resources required to complete them.

Permissions and credits
Changelogs
Save Blueprint Requirements

A mod to output the requirements for all blueprints that are currently being built in all locations.  
Includes environment improvements that have had at least the first step completed.

Example Output


Eastern Grasslands:
    Trapping Pit
        (1:30)
        Shovel (1)
       
        (7:30)
        Heavy Stone (4)
        Long Stick (6)
        Palm Fronds (12)
        Shovel (3)
        Stone (16)
       
Jungle:
    Empty Skep
        (1:30)
        Palm Fronds (6)
        Palm Weave (8)
       
        (7:30)
        Manure (2)
        Mud Pile (2)
        Palm Fronds (6)
        Palm Weave (8)
     

Output Format

The output is as follows:
* The Environment the blueprint is in.
* The name of the blueprint
* The building time of the current stage.
* The remaining requirements for the current stage.
* A blank line
* The building time of all work remaining.
* All of the requirements to complete the blueprint, including the remaining items for the current stage.

File info

The mod saves the output to two files:
* Blueprints.txt
* Blueprints.json

The .txt file is the formatted version, the .json file is the database.  

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\

The files will be created/updated when the "Update" hotkey is pressed (default is "Page Up") or the player travels to a different environment (traveling or entering a structure.)
The update key can be changed.  See the [configuration](#configuration) section below.

For modders that wish to create a better mod, see [Note to Modders](#note-to-modders) at the end of this document for research notes.



Viewing the File

Since the file is updated often, it is recommended to use an editor that will automatically show the file's changes without needing to manually reload the file.
Visual Studio Code from Microsoft supports automatic file refresh by default and is free.  

https://code.visualstudio.com/


Limitations

I debated releasing this mod as it is so rough; however, I've found it to be quite useful so others may as well.

The limitations are listed below.

Updates

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.

Changing Game Saves

If a different game is loaded or a new game is started, the .json file must be deleted.  Otherwise the output will show data from the previous game.

Improvements

Improvements are only included if there is at least one item filled in the blueprint or the blueprint is beyond the first step.
Otherwise, the output would contain every available improvement for all locations.

Only Visited Locations

For pre-existing saves, blueprints in other locations will not be included until those locations are visited.  


Configuration

The following settings are in the configuration file.  See [Changing the Configuration](#changing-the-configuration) below.


| Setting       | Default    | Description                                     |
| ------------- | ---------- | ----------------------------------------------- |
| Hotkey        | PageUp     | The hotkey used to write the blueprint info on  |
|               |            | demand.                                         |
|               |            |                                                 |
| InlineFormat  | false      | If true, will put all needed resources in a     |
|               |            | single line.                                    |
|               |            |                                                 |
| FileBaseName  | Blueprints | The name of the exported files, minus the       |
|               |            | extension.                                      |
|               |            |                                                 |
| ShowBuildTime | true       | If true, will include the time remaining for    |
|               |            | the current stage and all remaining work.       |
|               |            |                                                 |
| SortByName    | true       | If true, will sort the blueprints by name.      |
|               |            | Otherwise, it will be the order of the items on |
|               |            | the screen.                                     |


Changing the Configuration

All options are contained in the config file which is located at <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx\config\SaveBlueprintRequirements.cfg.

The .cfg file will not exist until the mod is installed and then the game is run.

To reset the config, delete the config file.  A new config will be created the next time the game is run.

Installation

This section describes how to manually install the mod.

If using the Vortex mod manager from NexusMods, these steps are not needed.  

Overview

This mod requires the BepInEx mod loader.

BepInEx Setup

If BepInEx has already been installed, skip this section.

Download BepInEx from https://github.com/BepInEx/BepInEx/releases/download/v5.4.21/BepInEx_x64_5.4.21.0.zip

* Extract the contents of the BepInEx zip file into the game's directory:
<Steam Directory>\steamapps\common\Card Survival Tropical Island

    __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.

* Run the game.  Once the main menu is shown, exit the game.
   
* In the BepInEx folder, there will now be a "plugins" directory.

Mod Setup

* Download the SaveBlueprintRequirements.zip.  
    * If on Nexumods.com, download from the Files tab.
    * Otherwise, download from https://github.com/NBKRedSpy/CardSurvival-SaveBlueprintRequirements/releases/

* Extract the contents of the zip file into the BepInEx/plugins folder.

* Run the Game.  The mod will now be enabled.

Uninstalling

Uninstall

This resets the game to an unmodded state.

Delete the BepInEx folder from the game's directory
<Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx

Uninstalling This Mod Only

This method removes this mod, but keeps the BepInEx mod loader and any other mods.

Delete the SaveBlueprintRequirements directory from the <Steam Directory>\steamapps\common\Card Survival Tropical Island\BepInEx\plugins directory.

Compatibility

Safe to add and remove from existing saves.


Note to Modders

This section discusses some of the findings from researching this mod.  Be aware that some of it is from memory, and some paths were not fully researched.

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.

The hydrated state is stored in GameManager.CurrentEnvironment and all the cards in GameManager.AllCards are all of the cards for the current environment.

The rest of the environments are in a "save" format and contain keys to the cards and the state of those cards.  If I remember correctly, those environments are stored in GameManager.EnvironmentsData.

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.

Source code for this mod can be found at https://github.com/NBKRedSpy/CardSurvival-SaveBlueprintRequirements/


Change Lo

1.5.0

* Changed improvements to be included if there is an item placed in the blueprint

1.4.0

* Added SortByName option.

1.3.0

* Added improvements under construction to the list.
* Added build time.