Closed JonathanArendt closed 1 month ago
You don't need the . after the $ - so it should be $[1].name
[15:51:32] [API:admin Activity] : Changing setting Meta.GenericModule.UserName to Jonathan1
[15:51:33] [Generic:admin Info] : Merging config file ./openrct2/server/user-data/config.ini (INI format) using Unicode (UTF-8) encoding.
[15:51:33] [Core:admin Warning] : Returned exception from API call Core/SetConfig
[15:51:33] [Core:admin Error] : ArgumentNullException
[15:51:33] [Core:admin Error] : [0] (ArgumentNullException) : Value cannot be null.
Parameter name: input
[15:51:33] [Core:admin Error] : at Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)
at GenericModule.GenericModuleConfig.ApplicationConfig.SubstituteTemplates(String input, Dictionary`2 variables)
at GenericModule.ModuleMain.MergeINI(String finalPath, MetaConfigFile fileInfo)
at GenericModule.ModuleMain.WriteMetaconfigs()
at GenericModule.ModuleMain.SaveChanges(String key, String value)
at GSMyAdmin.WebServer.WebMethods.UpdateSetting(String node, String value, SettingCacheEntry entry, SettingSpec cache)
at GSMyAdmin.WebServer.WebMethods.SetConfig(String node, String value)
at GSMyAdmin.WebServer.WebAttributes.<InvokeMethod>()
at GSMyAdmin.WebServer.APIService.<InvokeAPI>()
Same log error
I got a different error this time.
Are you still working on this? If so I'll reopen. But the error you're getting seems to be because you are adjusting the existing generic template and broke the settings file connection.
Bug Report
System Information
I confirm:
Symptoms
Reproduction
Add the following lines to the appropriate part of the openRCT2 template At Greelan/AMPTemplates:openRCT2
This is the neccessary addition to metaconfig.json
This is the user-data/users.json file, which is the file that the settings should be set to.
Additional lines to config.json, settings show up, but settings are not being writen to file, JPath may be incorrect / not functioning properly.
Error Message from console log when settings are being change.