I do:
<Config>
<Element> </Element> <Recipes> modified the standard recipes </Recipes></Config>
-does not work
Or he does not support?
I do:
<Config>
<Element> </Element> <Recipes> modified the standard recipes </Recipes></Config>
-does not work
Or he does not support?
-Validated-
I am not sure if this is supported, I guess no, but after confirming it should just go into development for a reply.
Confirmed. Also there is no option to import the recipes when importing the block config where you choose the fields to import in the block editor.
This would be nice to be able to do. We use custom blocks on our server, and not being able to transfer the recipes upon version update, requiring manual updates to the /data/config/BlockConfig.xml file, is definitely not good.
Hello brother modder.
If the server lives on Linux, you can use this bash script.
The script is not mine, found on the Internet.
zamena='/home/t1000/Server-hard/zamena' # file that contain replacement text srcfile2='/home/t1000/Server-hard/server/StarMade/customBlockConfig/BlockConfigImport.xml' # file that contain replacement text srcfile='/home/t1000/MOD/in/uploads/BlockConfig.xml' # source file outfile='/home/t1000/Server-hard/server/StarMade/data/config/BlockConfig.xml' # output file beginBlock='<Recipes>' # start string of text block that would be replaced. Should be the Regular expression. endBlock='</Config>' # end string of text block that would be replaced. Should be the Regular expression. ###################### # No user intervention beyond this point !!!!!!!!! ###################### cat "${srcfile2}" | sed -n '/Recipes/,/Config/w '$zamena'' cat "${srcfile}" | awk -v replace="${zamena}" -v a="${beginBlock}" -v b="${endBlock}" 'BEGIN { c=""; x=1; while (x != 0 && x != -1) { x=getline < replace if (x != 0) c=c $0 "\n"; } if (x == -1) { print "Error while reading file: " replace " Exiting..."; exit 1; } } { if ( $0 ~a && skip == 0) { skip=1; print c; } if ( $0 ~b && skip == 1) { skip=0; next; } }!skip' > "${outfile}"
Of course you need to fix the file paths.
Carefully, the script completely replaces the list of recipes.
zamena - file with permissions r-v, you need to create an empty file manually.
Oh awesome. Thank you! I'll give it a whirl and see how it goes. I was messing around with a program called "xmlstarlet", which I was planning on using to read configs, then transfer data to new configs. This way it would retain any changes from version to version, but I hadn't quite gotten to figuring it all out just yet.