Rhonen Posted August 26, 2020 Report Share Posted August 26, 2020 (edited) Version 2.3.0 The mod creates a default Item-Packages based on available player-classes and stores in JSON file. As Server-Admin (also in Singleplayer) you can edit this json file by adding the items / blocks with its code. Editing the Item-Package-Json file requires a restart of the Server/Singleplayer. Only the ItemCodes are supported! All Players will be recorded by its uuid, which is created by VintageStory-AccountManagement, and garantues that no one will get the items twice. path: \VintagestoryData\ModConfig\starterpackmod\<world-id>\starterpack.playersreceivedpackage.json You can edit both files, but be sure you know what you are doing with it. HINT for Admins of existing worlds: For your existing players you must allow users to re-select their playerclass to get the package delivered. There is a no API to get that information that a player has already closed that dialog.The mod is regulary thought for multiplayer. Singleplayer is supported also. Known issues: Backpacks / Baskets etc causing client crashes, so blacklisted them by mod-coding - sorry. Download in ModDB [if you like my mods, with a donation you can support me and my work] Edited September 5, 2022 by Rhonen Update 2 1 1 Link to comment Share on other sites More sharing options...
Julius van Vern Posted August 26, 2020 Report Share Posted August 26, 2020 Nice Link to comment Share on other sites More sharing options...
Rhonen Posted August 27, 2020 Author Report Share Posted August 27, 2020 Released: Version 1.0.2 notes see first post 1 Link to comment Share on other sites More sharing options...
Conquest of Blocks Posted September 1, 2020 Report Share Posted September 1, 2020 You can add starting items already via editing a file in the servers directory. No need for a mod. At least not in mp. Dont know about sp. Link to comment Share on other sites More sharing options...
Rhonen Posted September 1, 2020 Author Report Share Posted September 1, 2020 (edited) 5 hours ago, Kai Effelsberg said: You can add starting items already via editing a file in the servers directory. No need for a mod. At least not in mp. Dont know about sp. Then please share your knowledge with us. the files for the server i know does not support something like this. This mod was requestet cause we did not find such options. Until the mod is downloaded and used, i think its not wrong to offer it. i dont understand your comment right now. Edited September 1, 2020 by Rhonen misread 1 Link to comment Share on other sites More sharing options...
Conquest of Blocks Posted September 2, 2020 Report Share Posted September 2, 2020 20 hours ago, Rhonen said: Then please share your knowledge with us. the files for the server i know does not support something like this. This mod was requestet cause we did not find such options. Until the mod is downloaded and used, i think its not wrong to offer it. i dont understand your comment right now. I believe it was the general.json inside the survival folder that you have to edit. I cant have a look right now, since i am at work. But this is how i did it on my server VSo: Conquest of Blocks. Link to comment Share on other sites More sharing options...
Rhonen Posted September 2, 2020 Author Report Share Posted September 2, 2020 (edited) ok i think i found what you mean. Vintagestory\assets\survival\config\general.json but there is only this empty entry. startStacks: [ ], no information about what and how, nor in wiki. I think this mod makes it more comfortable to create a starter-pack. It's an offer to the community, not more, not les. But ye, experts may not need it. And no one is forced to use it. Edited September 2, 2020 by Rhonen 1 Link to comment Share on other sites More sharing options...
Conquest of Blocks Posted September 2, 2020 Report Share Posted September 2, 2020 In fact it has to be done pretty much exactly like in your mod. Only that you use "quantity" instead of "amount". A question: Does your mod reset after updating the game? Or do the entries stay and the start stacks work no matter what? Because if you do it via general.json, you have to enter the start stack items again after each update of the game. Link to comment Share on other sites More sharing options...
Rhonen Posted September 2, 2020 Author Report Share Posted September 2, 2020 (edited) Thanks for the info. Nope, the generated files stay in the VintagestoryData\ModData\<world-id>\ when updating the game. no need to backup/ recreate them . that would be horrible. Tested and confirmed with the todays stable update 1.13.2 Edited September 2, 2020 by Rhonen 1 Link to comment Share on other sites More sharing options...
Rhonen Posted September 17, 2020 Author Report Share Posted September 17, 2020 Released: Version 1.1.0 notes see first post Link to comment Share on other sites More sharing options...
Rhonen Posted September 27, 2020 Author Report Share Posted September 27, 2020 (edited) Released: Version 1.1.1 make compatible fixes. See compatible mod list in first post! Edited September 27, 2020 by Rhonen Link to comment Share on other sites More sharing options...
Devestatio Posted November 10, 2020 Report Share Posted November 10, 2020 (edited) @RhonenI am having an issue where this mod won't work after the first world I made with it. I am guessing it has something to do with your statement that "All Players will be recorded by its uuid, which is created by VintageStory-AccountManagement, and garantues that no one will get the items twice. " So the game is thinking it already gave me the items once on the first world and won't give them again? *Edit* Ok it was actually the mod "Armor Overhaul", the mod was put up in April, so I am guessing it wasn't actually meant for 1.13. I left a message for the mod author in case he plans on updating the mod as it breaks many other mods right now on 1.13. Everything is all good now thank you for the mod. Edited November 11, 2020 by Raul Beltran Update status of bug report. Link to comment Share on other sites More sharing options...
Devestatio Posted November 11, 2020 Report Share Posted November 11, 2020 @Rhonen Where do you find the item code info? can't seem to find anything via google, and going into creative doesn't help Link to comment Share on other sites More sharing options...
Rhonen Posted November 11, 2020 Author Report Share Posted November 11, 2020 9 hours ago, Raul Beltran said: Ok it was actually the mod "Armor Overhaul", the mod was put up in April, so I am guessing it wasn't actually meant for 1.13. I left a message for the mod author in case he plans on updating the mod as it breaks many other mods right now on 1.13. Everything is all good now thank you for the mod. ye, outdated mods can block loading other mods sorry for that good to know, that it's now working. Quote Where do you find the item code info? can't seem to find anything via google, and going into creative doesn't help the item-codes are not listed anywhere you have to look into the assets folder and look into the json files - or look in the language-files for them. Link to comment Share on other sites More sharing options...
Devestatio Posted November 11, 2020 Report Share Posted November 11, 2020 OK so when and if I find them, how do I go about making that file apply with those changes to any world I make in single player? Link to comment Share on other sites More sharing options...
Rhonen Posted November 12, 2020 Author Report Share Posted November 12, 2020 you have to edit path: \VintagestoryData\ModData\<world-id>\starterpack.deliveritempackage.json this is for singleplayer to. so you have to find out the correct world id. may be the last-edit date of the folder or the world-savegame can give you an advise. i think there is a /command for it, but did not find it in the hury. sorry. i think that explains that you have to change this for every world. Link to comment Share on other sites More sharing options...
Devestatio Posted November 12, 2020 Report Share Posted November 12, 2020 (edited) For single player, that is not a solution, as that means anytime someone starts a new world they start with your premade pack... isn't there a way for you to reference the deliveritempackage.json file from the mod configs directory as others have done? That way the config in that folder takes precedence instead of your pre packed one. If that is not something your able to do, then this mod is pointless for singleplayer customization, as anyone can easily just go into creative mode with the gamemode command and give themselves what they want. Edited November 12, 2020 by Raul Beltran Link to comment Share on other sites More sharing options...
Rhonen Posted November 12, 2020 Author Report Share Posted November 12, 2020 (edited) 3 hours ago, Raul Beltran said: If that is not something your able to do, then this mod is pointless for singleplayer customization, as anyone can easily just go into creative mode with the gamemode command and give themselves what they want. mainly this mod was created to used in multiplayer. the singleplayer is using the same world-mechanic (starting a local server). i don't know if it is identifyable by code that a singleplayer game was started. i will check that. but yes, it would be possible to define only one global starterpack.deliveritempackage.json instead for each world. Edited November 12, 2020 by Rhonen Link to comment Share on other sites More sharing options...
Rhonen Posted November 12, 2020 Author Report Share Posted November 12, 2020 3 hours ago, Raul Beltran said: anyone can easily just go into creative mode with the gamemode command and give themselves what they want yes, so no one is forced to use the mod. 1 1 Link to comment Share on other sites More sharing options...
Rhonen Posted November 12, 2020 Author Report Share Posted November 12, 2020 Released: Version 1.1.2 a little tweak for singleplayer and server: only one global starterpack.deliveritempackage.json will be created / used. you can copy the old `starterpack.deliveritempackage.json` from /vintagestorydata/moddata/<world-id>/ to /vintagestorydata/modconfig/ so you have not to configure each world seperatly. Link to comment Share on other sites More sharing options...
Devestatio Posted November 12, 2020 Report Share Posted November 12, 2020 2 hours ago, Rhonen said: Released: Version 1.1.2 a little tweak for singleplayer and server: only one global starterpack.deliveritempackage.json will be created / used. you can copy the old `starterpack.deliveritempackage.json` from /vintagestorydata/moddata/<world-id>/ to /vintagestorydata/modconfig/ so you have not to configure each world seperatly. Thank you for this change, I know you didn't have to, but it makes a HUGE difference in how usable the mod is , it's working perfect now, and with your help I was able to tweak the starter pack to my liking 1 Link to comment Share on other sites More sharing options...
Rhonen Posted November 12, 2020 Author Report Share Posted November 12, 2020 Released: Version 1.2.0 Support for VS 1.14.0-pre7 Link to comment Share on other sites More sharing options...
Rhonen Posted November 13, 2020 Author Report Share Posted November 13, 2020 12 hours ago, Raul Beltran said: Thank you for this change, I know you didn't have to, but it makes a HUGE difference in how usable the mod is , it's working perfect now, and with your help I was able to tweak the starter pack to my liking np, i will do some more rework for using files by my mods. Link to comment Share on other sites More sharing options...
Rhonen Posted November 13, 2020 Author Report Share Posted November 13, 2020 Released: Version 1.2.1 notes see first post Link to comment Share on other sites More sharing options...
Tech_Rabbit Posted November 23, 2020 Report Share Posted November 23, 2020 @Rhonen get a server error: 23.11.2020 08:55:30 [Error] [starterpack] An exception was thrown when trying to start the mod: System.MissingMethodException: Method not found: '!!0 SharedLibrary.ApiExtension.LoadOrCreateDataFile(Vintagestory.API.Common.ICoreAPI, System.String)'. at starterpack.src.busineslogic.FileManager.LoadReceivedPlayers() at starterpack.src.busineslogic.FileManager.init() at starterpack.src.StarterPackMod.StartServerSide(ICoreServerAPI api) at Vintagestory.Common.ModLoader.TryStartSystem(Mod mod, ModSystem system, ICoreAPI api, ModEventPhase phase) 23.11.2020 08:55:30 [Error] Failed to start system starterpack.src.StarterPackMod Link to comment Share on other sites More sharing options...
Recommended Posts