CubeCoders / AMPTemplates

For the AMP community to share Generic Module templates.
86 stars 260 forks source link

Assetto Corsa Settings Import not working #745

Open VegaFlash opened 4 months ago

VegaFlash commented 4 months ago

Attempting to use the import feature on assetto corsa and am getting a message that says 0 entries were successfully imported.

Attempted importing the cfg file through explorer and through the AMP web portal.

Here is a cfg file that I've been using with the credentials and server name removed.

server_cfg.txt

Greelan commented 4 months ago

Hopefully the file is called server_cfg.ini on your server, not server_cfg.txt

VegaFlash commented 4 months ago

Hopefully the file is called server_cfg.ini on your server, not server_cfg.txt

It is I had to change the name so that github would take it.

Greelan commented 4 months ago

Just for giggles I tried importing your config on a new server on Windows (cut and pasted the content). Imported 23 entries, but had to refresh the browser for them to show (and refreshing the browser is annoying since it pops you back to the main instances screen and you have to manage the instance again)

Logs:

[04:55:19] [Generic:admin Info]   : Importing config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format).
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_NAME to Redacted
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_CARS to kl_gr_86_2021_rhd_hks;ebonayn_pushin_p_tuned;cky_porsche992_gt3rs_2023;subaru_wrx_sti_pushin_p_tunedv2;cky_honda_typer2023;400z_prvvy_x_tgn;ks_nissan_skyline_r34;porsche_919_hybrid_evo_2018;srp_honda_s2000_legendary
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_CONFIG_TRACK to nordschleife
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_TRACK to csp/0/../ks_nordschleife
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_SUN_ANGLE to 17
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_PASSWORD to Redacted
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_ADMIN_PASSWORD to Redacted
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_RACE_OVER_TIME to 60
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_KICK_QUORUM to 70
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_VOTING_QUORUM to 70
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:19] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_VOTE_DURATION to 15
[04:55:19] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_BLACKLIST_MODE to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_FUEL_RATE to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_DAMAGE_MULTIPLIER to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_TYRE_WEAR_RATE to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_ALLOWED_TYRES_OUT to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_AUTOCLUTCH_ALLOWED to 1
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_TYRE_BLANKETS_ALLOWED to 1
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_FORCE_VIRTUAL_MIRROR to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.SERVER_REGISTER_TO_LOBBY to 0
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.$MaxUsers to 28
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.DYNAMIC_TRACK_SESSION_START to 98
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
[04:55:20] [API:admin Activity]   : Changing setting Meta.GenericModule.DYNAMIC_TRACK_LAP_GAIN to 22
[04:55:20] [Generic:admin Info]   : Merging config file ./assetto-corsa/302550/cfg/server_cfg.ini (INI format) using Unicode (UTF-8) encoding.
VegaFlash commented 4 months ago

It's also not importing the entry list either, I tried deleting the stock entry list and putting my own in it's place through the AMP Ui and once I do it crashes anyone's game that tries to connect.

Greelan commented 4 months ago

It's also not importing the entry list either, I tried deleting the stock entry list and putting my own in it's place through the AMP Ui and once I do it crashes anyone's game that tries to connect.

I didn't add the import functionality to the entry list xD. AMP doesn't manage that file.

Greelan commented 4 months ago

What version of AMP are you on? Including AMP Instance Manager (type ampinstmgr version in command prompt)

VegaFlash commented 4 months ago

I am running v2.5.0.6 built 17/04/2024 22:10

VegaFlash commented 4 months ago

It's also not importing the entry list either, I tried deleting the stock entry list and putting my own in it's place through the AMP Ui and once I do it crashes anyone's game that tries to connect.

I didn't add the import functionality to the entry list xD. AMP doesn't manage that file.

It might need to because it does manage the cars you can use.

Greelan commented 4 months ago

I'm aware that it does, however there is no good way to do it in AMP other than have a big text box where you just paste in text. And that method wouldn't allow import anyway.

VegaFlash commented 4 months ago

It's just really weird that any real modifications to the entry list cause crashes.

Greelan commented 4 months ago

When you say "AMP UI", I assume you mean the File Manager? Because there is no UI setting for the entry list

VegaFlash commented 4 months ago

I do mean file manager (sorry tired as crap). lol I did a test run on my local machine and found an error in my entry list. After using a different entry list the crashing seems to have gone away, so crisis averted. lol Sorry if I came across a bit harsh.

VegaFlash commented 4 months ago

Any updates on this?

It is still saying 0 lines updated and the settings shows nothing.

I don't know if this has anything to do with it, but I am in a controller configuration.

Greelan commented 4 months ago

Possibly. Have you updated your templates on both controller and target, and then updated the instance?

VegaFlash commented 4 months ago

The corsa AMP target is a fresh install so it should be good.

How do I update the templates on the main controller?

NVM I found it, already up to date.