Gotteshand Posted March 3, 2020 Share Posted March 3, 2020 (edited) Hello, everybody. I have created a config and will make it available later today. Many greetings You have to buy the game and unzip it into the vintagestory folder. Don't start it because it creates all the files on the first start. Similar to Minecraft https://www.vintagestory.at/ EDIT: I currently have only one problem and I'm trying to solve it Version: v1.12.5 (Stable)03.03.2020 20:37:55: Critical error occurred Newtonsoft.Json.JsonReaderException: Bad JSON escape sequence: \T. Path 'ModPaths[0]', line 17, position 9. Config: "ModPaths": [ "Mods", "$[Service.UserDirectory]\Mods" ], In the final it must look like this "ModPaths": [ "Mods", "D:\\TCAFiles\\Users\\DRT_Support\\130\\Mods" ], The Same at Saves Edited March 3, 2020 by Gotteshand Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Hi @Gotteshand! I don't know of a variable called UserDirectory. Have you tried with $[Service.RootDirectory] or $[Service.WorkingDirectory] instead? Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 (edited) 5 hours ago, DennisMidjord said: Hi @Gotteshand! I don't know of a variable called UserDirectory. Have you tried with $[Service.RootDirectory] or $[Service.WorkingDirectory] instead? Hi I have tried the two variable ones and the result looks like this TCADMIN Config "ModPaths": [ "Mods", "$[Service.RootDirectory]\Mods" ], TCADMIN Game Live Config "ModPaths": [ "Mods", "D:\TCAFiles\Users\DRT_Support\130\\Mods" ], This is wrong, there must be two \ Correct it must look like this "ModPaths": [ "Mods", "D:\\TCAFiles\\Users\\DRT_Support\\130\\Mods" ], Serverlog: Version: v1.12.5 (Stable)04.03.2020 15:02:03: Critical error occurred Newtonsoft.Json.JsonReaderException: Bad JSON escape sequence: \T. Path 'ModPaths[0]', line 17, position 9. bei Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote) bei Newtonsoft.Json.JsonTextReader.ParseString(Char quote, ReadType readType) bei Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) Edited March 4, 2020 by Gotteshand Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Ah, I missed that. I know I had a similar issue in the past, but unfortunately I can't remember the solution. Maybe @LFA can help? Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 16 minutes ago, DennisMidjord said: Ah, I missed that. I know I had a similar issue in the past, but unfortunately I can't remember the solution. Maybe @LFA can help? I Hope so Once I'm done, I'll upload the config Link to comment Share on other sites More sharing options...
Featured Comment LFA Posted March 4, 2020 Featured Comment Share Posted March 4, 2020 Instead of: $[Service.RootDirectory] use: $ipy<%=ThisService.RootDirectory.Replace("\\", "\\\\"); %> 2 Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Clever! Didn't know that could be used in configuration files. Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Sounds great! Remember to apply in this group: You won't be able to upload the configuration file otherwise 1 Link to comment Share on other sites More sharing options...
LFA Posted March 4, 2020 Share Posted March 4, 2020 27 minutes ago, DennisMidjord said: Clever! Didn't know that could be used in configuration files. I'll add it to https://help.tcadmin.com/Custom_Scripts If you need more lines of codeyou can do this: $ipy<% ... ... ... ReturnValue="xyz" %> Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 57 minutes ago, LFA said: Instead of: $[Service.RootDirectory] use: $ipy<%=ThisService.RootDirectory.Replace("\\", "\\\\"); %> Yes Nice Big Thx Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 21 minutes ago, DennisMidjord said: Sounds great! Remember to apply in this group: You won't be able to upload the configuration file otherwise Ok I have sent a request Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 It has been accepted now. 1 Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 (edited) Now First Version German Only Translate Comes later Edited March 4, 2020 by DennisMidjord Deleted config file. Upload through "Resources" instead Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Hi @Gotteshand I've removed the file. You need to upload it through the 'Resources' section on the forum. We have to validate the config before it will be made available for everyone else Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 2 minutes ago, DennisMidjord said: Hi @Gotteshand I've removed the file. You need to upload it through the 'Resources' section on the forum. We have to validate the config before it will be made available for everyone else Ok Sorry but where under Ressourcen ? Link to comment Share on other sites More sharing options...
Gotteshand Posted March 4, 2020 Author Share Posted March 4, 2020 Ok now Works Big Thx for Help Link to comment Share on other sites More sharing options...
Dennis Posted March 4, 2020 Share Posted March 4, 2020 Great to hear Link to comment Share on other sites More sharing options...
ucjohn Posted March 4, 2020 Share Posted March 4, 2020 I have to manually approve members and place you into the developer group lol Link to comment Share on other sites More sharing options...
Recommended Posts
Posted by LFA,
Reputation Points
Go to this post
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now