Avorion

Avorion

Config Loader
23 Comments
Digan Feb 15 @ 6:24am 
Could use an update alright.
InsanityXL Dec 7, 2022 @ 12:59pm 
I am getting this on our Dedicated Server

2003555597 is problematic: Mod 'Config Loader' [2003555597]'s base game requirement (0.33.5 to 2.0.*) doesn't match version 2.3 of the game.

Any plans on updating this mod or any of your other mods?
Redrum Jackle Aug 4, 2022 @ 3:35pm 
It needs an update, but works so far.
CurtimusPrime92 Aug 4, 2022 @ 1:13pm 
is this 2.2 compatible?
Bubbet!  [author] May 12, 2021 @ 7:49pm 
Sounds like you've messed up one of your configs?
Mialu May 12, 2021 @ 1:43pm 

Error while adding file D:\Program Files (x86)\Steam\steamapps\workshop\content\445220\2003555597\data/scripts/lib/ConfigLoader.lua:
D:\Program Files (x86)\Steam\steamapps\workshop\content\445220\2003555597\data/scripts/lib/tabletofile.lua:103: attempt to get length of local 'tables' (a nil value)
VortexBox Sep 17, 2020 @ 7:15am 
update please and thank you
Me_Who_Else Jun 29, 2020 @ 10:35pm 
Are you going to update this one?
MachoNatchoMan May 15, 2020 @ 12:15am 
aah oki sorry for the disturbance, thank you for the answer :)
in the grand scheme of things it turned out your mod wasn't much of an issue at all
Bubbet!  [author] May 12, 2020 @ 1:01pm 
Again, i've wrote code to reduce disk reads/writes down to one time on startup and none on clients which should be much faster. But im not allowed to use it because of server hard crashing bugs that the devs have to resolve before i can roll out the update again. I've already emailed koonschi but he's out of office currently.
MachoNatchoMan May 12, 2020 @ 11:24am 
2k character limit :p

NoteNR2: some system and server specs
it's a windows OS and i do play on the server via the same machine/OS
it's an old'ish (few days) galaxy with probably around 100 Hrs now. 2 players, me and a friend
memory is not an issue, nor is cpu,
gpu might be but that should not affect the server surely. might be wrong

NoteNR3 just noticed though that those log posts only happened once so probably not a big issue at all. best of luck and not just with the mod! hope you get it sorted soon'ish though :)
MachoNatchoMan May 12, 2020 @ 11:24am 
heyo, i'm trying to clean up my server errors and hangups
i noticed you mod is causing some slight (5 second'ish) hangups regarding loading a file
if you could take a look at this log message i'd appreciate it a lot :)

2020-05-12 18-34-12| E:\steamcmd\avorion_server\galquestConfigs(): Invoke took 5628 ms

the config loader file above this in the log only took 0.19 of a second (195 ms)

Note: Just read your comment bellow.. not sure if i should post this or not but considering you've reverted to something more stable i imagine it should be faster too maybe? (if the other method hadn't conked out ofc)

especially since i got my server on an SSD with 554MB/s Write 528MB/s Write Speed and an SSD C drive with 525MB/s Read 160MB/s Write
ech, i'll post it, better to have too much feedback than too little (in most cases anyway i'd say x) )
Bubbet!  [author] Mar 15, 2020 @ 9:15pm 
Its looking like the optimizations i made are directly incompatible with systems(being that systems are a weird system to begin with thats understandable). Basically I stored all the configs in a server side array instead of loading them from disk every time they're needed. The system did not like invokingfunctions to that server side array to fetch the correct config from it instead of from disk. Invokefunction is already really glitchy and this is yet another bug i'll have to submit to the devs. So for now we're stuck with the lots of disk requests.
Bubbet!  [author] Mar 15, 2020 @ 8:50pm 
Yeah, i reverted it while i investigate, i was able to reproduce when i created a new galaxy.
Tiberius Tiberium Mar 15, 2020 @ 8:30pm 
I noticed it got reverted, so it works now but here are the logs in case they have anything useful, I'm not too good at reading them anyway.

Server log
https://drive.google.com/file/d/1ErDbAHPTyS39dVxC5eRnQlckNH2ewFAx/view?usp=sharing

Client log
https://drive.google.com/file/d/1ruloEEUIhiCNSkKpw1Q2E9mMkQMJgofH/view?usp=sharing
Bubbet!  [author] Mar 15, 2020 @ 8:01pm 
The scaling turret mod works fine for me, have you got any log files i could look at?
Bubbet!  [author] Mar 15, 2020 @ 7:55pm 
Thats entirely possible, i did a lot of changes especially server side, and only tested it with the claimable resource asteroid mod.
Tiberius Tiberium Mar 15, 2020 @ 6:50pm 
I can't say for sure, but I think the update released today has broken the scaling turret system mod. After today's update, any save I have that contains the upgrade on a ship simply wont load. Any save that does not have the upgrade on a ship will, but if I attempt to install it, the server hangs, and disconnects me.
Bubbet!  [author] Mar 15, 2020 @ 2:21pm 
With the way this is wrote, with that ease of access in mind. There is no way to enforce automatic namespacing in the way you'd like. Its up to the people using the mod to namespace their configs.
Bubbet!  [author] Mar 15, 2020 @ 1:22pm 
This mod came to be after that config loader because i didnt like how complicated his was to set up, with this its as simple as having a file in your config folder that returns a table, and then you include the configloader. That is the entire setup and the reason i created this mod in the first place.
Bubbet!  [author] Mar 15, 2020 @ 1:20pm 
Thats correct, it would result in conflicts, only one of the values would be used. If this is of your concern you can just namespace your values by putting them into their own unique table and avoid that issue entirely.
FuryoftheStars Mar 15, 2020 @ 7:56am 
So, out of curiosity, how does this config loader handle if more than one mod uses the same var name in their config files? Doing Config.Varname could result in some conflicts. I've also been looking at another config management mod ( https://steamcommunity.com/sharedfiles/filedetails/?id=1720259598 ) where this is already taken care of, though you get your values through get commands and he still needs to update his modinfo file so it doesn't show red in the mods list in game.