Search found 129 matches

by ZlovreD
Wed Apr 26, 2017 12:57 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

What is the difference between startup, runtime-global, and runtime-per-user? E.g., which ones are accessible where (such as control.lua and data.lua). If a user changes a setting from the main menu (i.e., there is no game running), and then loads a game, does the loaded game see the old values for...
by ZlovreD
Tue Apr 25, 2017 9:59 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

After that the *startup* settings are available to read in the normal prototype setup process. The settings must always have the same values at startup independent of the rest of the prototypes because when you join an MP game it loads the settings from the MP game and the end result must be identi...
by ZlovreD
Tue Apr 25, 2017 8:45 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

Btw, what is a real point to load settings-final-fixes before relative data stage ? 0.191 Loading mod settings ZTestMod 1.0.0 (settings.lua) 0.192 Loading mod settings ZTestMod 1.0.0 (settings-final-fixes.lua) 0.196 Loading mod core 0.0.0 (data.lua) 0.207 Loading mod base 0.15.1 (data.lua)
by ZlovreD
Tue Apr 25, 2017 7:24 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

That's already fixed for the next version of 0.15 :) Sweet.. :) But other settings like map-settings and map-gen-presets stored in data.raw. Those aren't mod settings. But it's still settings =)) Also "runtime" settings aren't available in the normal data prototype stage because they're j...
by ZlovreD
Tue Apr 25, 2017 6:13 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

Also few bugs: Name of settings partially cut on left side and need to add 4+ spaces before them in loc file. http://dl3.joxi.net/drive/2017/04/25/0019/0980/1283028/28/73ffe27903.png And 'description' key has no effect. But works fine with 'name' key [mod-setting-description] name-test1=description-...
by ZlovreD
Tue Apr 25, 2017 6:00 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

The "settings" table is not part of data or data.raw. It's like "game" - you just access it directly. Heh.. old habits die hard. But its strange. If dump 'data' in settings.lua then we get all settings, or at least my own, as part of 'data.raw' (both startup and runtime) 0.187 S...
by ZlovreD
Tue Apr 25, 2017 5:18 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

I can't find a way to get access to startup setting. I've noticed what they stored in root\mod-settings.json file. But it's looks useless or than just for save them between restarts. So.. or change data.clear(self) to something like that: data.clear = function (self) for k, v in pairs(self.raw) do ...
by ZlovreD
Tue Apr 25, 2017 3:29 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

I can't find a way to get access to startup setting. I've noticed what they stored in root\mod-settings.json file. But it's looks useless or than just for save them between restarts. So.. or change data.clear(self) to something like that: data.clear = function (self) for k, v in pairs(self.raw) do i...
by ZlovreD
Mon Apr 24, 2017 9:12 pm
Forum: Modding discussion
Topic: [0.15] Mod setting/config interface - give your input
Replies: 203
Views: 63527

Re: [0.15] Mod setting/config interface - give your input

And?..
Adding settings.json to the mod folder has no effect.

Go to advanced search