Frostpunk Theme in Factorio deprecated


Adds special entities which can allow player to run a Frostpunk like theme. Sets up world to make it look like Frostpunk with many elements.

Overhaul
a month ago
1.1
108
Power

b Error: File not found

5 months ago

Hey, getting an error:

2.307 Error ModManager.cpp:1625: Failed to load mod "FPFTheme": FPFTheme/prototype/furnace/furnace_functions.lua:1: module ././util/functions not found; no such file FPFTheme/prototype/furnace/././util/functions.lua no such file FPFTheme/././util/functions.lua no such file core/lualib/././util/functions.lua
stack traceback:
[C]: in function 'require'
FPFTheme/prototype/furnace/furnace_functions.lua:1: in main chunk
[C]: in function 'require'
FPFTheme/prototype/furnace/furnace_base.lua:1: in main chunk
[C]: in function 'require'
FPFTheme/data.lua:4: in main chunk
2.307 Loading mod core 0.0.0 (data.lua)
2.365 Checksum for core: 3215923532
2.408 Error ModManager.cpp:1625: Error in assignID: recipe-category with name 'crafting' does not exist.

The solution:
Change:
prototype/furnace/furnace_functions.lua:1 -> require("././util/functions")
to
prototype/furnace/furnace_functions.lua:1 -> require("util/functions")

5 months ago

Another error of same sort:

30.172 Error AppManagerStates.cpp:2631: FPFTheme/script/lib.lua:4: module ./util/functions not found; no such file FPFTheme/script/./util/functions.lua no such file FPFTheme/./util/functions.lua no such file core/lualib/./util/functions.lua
stack traceback:
[C]: in function 'require'
FPFTheme/script/lib.lua:4: in main chunk
[C]: in function 'require'
FPFTheme/control.lua:4: in main chunk

The solution:
Change:
require("./util/functions")
require("./prototype/furnace/furnace_functions")
local fposition = require("./util/position")
local ftable = require("./util/table")
to
require("util/functions")
require("prototype/furnace/furnace_functions")
local fposition = require("util/position")
local ftable = require("util/table")

If I find more, I will post it here.

5 months ago

Error:
31.657 Error AppManagerStates.cpp:2631: FPFTheme/script/spawning.lua:1: module ./util/position not found; no such file FPFTheme/script/./util/position.lua no such file FPFTheme/./util/position.lua no such file core/lualib/./util/position.lua
stack traceback:
[C]: in function 'require'
FPFTheme/script/spawning.lua:1: in main chunk
[C]: in function 'require'
FPFTheme/script/lib.lua:8: in main chunk
[C]: in function 'require'
FPFTheme/control.lua:4: in main chunk

The solution:
Change:
local fposition = require("./util/position")
local ftable = require("./util/table")
to
local fposition = require("util/position")
local ftable = require("util/table")

5 months ago
(updated 5 months ago)

I uploaded 1.01 version for this, I hope it will fix. did you check with new version?
it was my mess and mod portal not accepting "FPF" as mod name, I tried to rename it to "FPFTheme" which should solve that problem now

5 months ago

Yeah I use 1.0.1, just now I also tried to remove all mods, reinstalled, still the same.

5 months ago

strange, are you using linux? something that is not windows?

5 months ago
(updated 5 months ago)

I am using Windows 11

Pretty sure it's simply because the pathing does not read correctly, even if written in other type of code, then ./ would mean the current folder, factorio lua reads it from base folder, atleast on all mods I seen, edited, or written for myself.

base folder as the "mod base folder"

5 months ago

never mind, zip has some issues, I fixed it in 1.0.2, thanks for the tips

5 months ago
(updated 5 months ago)

yea, I did not know folder vs zip would matter. I always have open folder in mods, I did not realize it before as well
thanks, I hope 1.0.2 should fix it

I also tested myself now, everything seems to work

5 months ago

Yw, glad to help

New response