diff --git a/Jsarus/Program.cs b/Jsarus/Program.cs index ef416c8..461a186 100644 --- a/Jsarus/Program.cs +++ b/Jsarus/Program.cs @@ -14,7 +14,7 @@ namespace Jsarus { internal class Program { - public static string version = "1.1.1"; + public static string version = "1.2.0"; public static string cd = Directory.GetCurrentDirectory(); public static Process p = new Process(); static void Main(string[] args) @@ -51,7 +51,8 @@ namespace Jsarus int RequiredAmount = settings["D_ProcessorRecipes"]["RequiredAmount"].ToObject(); int CraftedAmount = settings["D_ProcessorRecipes"]["CraftedAmount"].ToObject(); - int ÞlayerInventorySize = settings["D_InventoryInfo"]["ÞlayerInventorySize"].ToObject(); + string[] InventoryList = settings["D_InventoryInfo"]["InventoryList"].ToObject().Split('|'); + int InventorySize = settings["D_InventoryInfo"]["InventorySize"].ToObject(); string[] supportedJson = { @"Traits\D_Itemable.json", @"Experience\D_ExperienceEvents.json", @"Tools\D_StaminaActionCosts.json", @"Tools\D_ToolDamage.json", @"Crafting\D_ProcessorRecipes.json", @"Inventory\D_InventoryInfo.json" }; @@ -208,9 +209,9 @@ namespace Jsarus case "D_InventoryInfo.json": foreach (var r in job["Rows"]) { - if (r["Name"].ToObject() == "Backpack") + if (InventoryList.Contains(r["Name"].ToString())) { - r["StartingSlots"] = ÞlayerInventorySize; + r["StartingSlots"] = InventorySize; } } break; diff --git a/README.md b/README.md index c02701d..ecdcf57 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,28 @@ Official MxIcarus Modding Tool for Icarus. ## Features -* Extract json data from your client. -* Mod your extracted json data according to the settings.json config. -* Create a pak file, ready to use on your client/server. -* Can copy the created pak file to a user specified list of path. +1. Extract json data from your client. +2. Mod your extracted json data according to the settings.json config. +3. Create a pak file, ready to use on your client/server. +4. Can copy the created pak file to a user specified list of path. +- Set all stackable item stack size and weight. (Edited in settings.json) +- Set all non-stackable item weight. (Edited in settings.json) +- Multiply all experience gain. (Edited in settings.json) +- Divide stamina cost of listed action list. (Edited in settings.json) +- Set efficiency of listed pickaxe and axe from a list. (Edited in settings.json) +- Set ore recipe crafting speed. (Edited in settings.json) +- Reduce all required mats of a recipe to 1, using a list. (Edited in settings.json) +- Set output of all stacking recipes to a specified value. (Edited in settings.json) +- Adjust the size of all inventory specified in a list. (Edited in settings.json) ## How-To - 1. Download the latest release. (https://mxgit.ovh/Icarus/Jsarus/releases) - 2. Copy the archive content in an empty folder on your disk. - 3. Open "settings.json" and edit the "ModName" and "GameContentPath". - 4. IMPORTANT: Escape "\" in your path with "/". Ex.: "C:\/SteamLibrary\/steamapps\/common\/Icarus\/Icarus\/Content" - 5. Save the "settings.json" file and run "Jsarus.exe". - 6. Jsarus will extract your game data, press "y" when asked to mod it and generate a mod pak. - 7. Copy the created pak file from the "Paks" folder to your game "mods" folder. - 8. "mods" location exemple: "C:\SteamLibrary\steamapps\common\Icarus\Icarus\Content\Paks\mods" - 9. If you don't have a "mods" folder, create one first. - 10. Voila! \ No newline at end of file +1. Download the latest [release](https://mxgit.ovh/Icarus/Jsarus/releases). +2. Copy the archive content in an empty folder on your disk. +3. Open "settings.json" and edit the "ModName" and "GameContentPath". +4. IMPORTANT: Escape "\" in your path with "/". Ex.: "C:\/SteamLibrary\/steamapps\/common\/Icarus\/Icarus\/Content" +5. Save the "settings.json" file and run "Jsarus.exe". +6. Jsarus will extract your game data, press "y" when asked to mod it and generate a mod pak. +7. Copy the created pak file from the "Paks" folder to your game "mods" folder. +8. "mods" location exemple: "C:\SteamLibrary\steamapps\common\Icarus\Icarus\Content\Paks\mods" +9. If you don't have a "mods" folder, create one first. +10. Voila! \ No newline at end of file