Search found 3 matches

by NovaM
Fri Aug 02, 2019 4:22 pm
Forum: Modding help
Topic: How a mod can support both factorio 0.16 and 0.17
Replies: 2
Views: 864

Re: How a mod can support both factorio 0.16 and 0.17

Thanks for your answer even it does not run at the data.lua step.
I read again the doc https://lua-api.factorio.com/latest/Data-Lifecycle.html
I wrote a test mod and get the base version from the mods["base"].


local factorion_version = mods["base"]


the mods["base"] is available at the steps ...
by NovaM
Fri Aug 02, 2019 11:57 am
Forum: Modding help
Topic: How a mod can support both factorio 0.16 and 0.17
Replies: 2
Views: 864

How a mod can support both factorio 0.16 and 0.17

Hello,

I search a way to detect the factorio base version at runtime.
For sample in data.lua

local factorio_version = "0.16.51" -- HERE: how to get this version string !

local factorio_major_version = factorio_version:sub(1,4)

if factorio_major_version == "0.16" then
data:extend({
...CODE FOR ...
by NovaM
Wed Apr 24, 2019 5:48 pm
Forum: Minor issues
Topic: [wheybags]factorio-data: (packaging issue) version missmatch
Replies: 1
Views: 1336

[wheybags]factorio-data: (packaging issue) version missmatch

Hello,

The release before 0.16.42 seems good.

The issue was introduce in the 0.16.42.
The issue is found in all version since 0.16.42 up to the lastest 0.17.32.

The value of the version field in the `base/info.json` file does not match the release.

Good (0.16.41):
https://github.com/wube ...

Go to advanced search