My Quick Start

by nm9311

This simple, minimalistic quick start mod enhances your Factorio experience by allowing you to choose from one of nine startup kits: Empty, Default, Default-militant, Tiny, Small, Medium, Big, Huge, or CUSTOM. You can select your preferred kit in the mod configuration settings. Additionally, you have the option to place items from the kit on one of your four quickbars or conduct some or all research in advance. The mod is multiplayer ready and supports quality items if that option is selected.

Content
a month ago
0.17 - 2.1
25.4K
Cheats

b Research

1 year, 9 months ago

Mod force researches everything when it should only research the technologies of the kit selected.

Seems like in control.lua around line 750, in this section:
-- Unlock technologies
if kit["technologies"] ~= nil and kitTechnologiesSetting == true then
player.force.research_all_technologies()
--for k,v in pairs(kit["technologies"]) do
--player.print("Technology = " .. technologies[v[1]])
--player.force.technologies[v[1]].researched = true
--end
end

It's commented out to research only required from kit.

1 year, 9 months ago

Yes, I know about that. Trying some solutions, need some more time...

1 year, 9 months ago

ChatGPT says that the problem is the print, you're calling technologies[v[1]] but "technologies" is not a table with tech names as keys, instead you can use something like:

-- Unlock technologies
if kit["technologies"] ~= nil and kitTechnologiesSetting == true then
for _, v in pairs(kit["technologies"]) do
-- Print the technology name directly
player.print("Technology = " .. v[1])
-- Set the technology as researched
player.force.technologies[v[1]].researched = true
end
end

and that would probably fix it

1 year, 9 months ago

Unfortunately, I tried and tried and tried and your advice works fine for huge and big but not for custom kit (around line 917). When choosing custom kit nothing is researched using code you provided. So for custom kit is all or nothing researched, for now. I will keep trying, but now I enjoying much more playing new fabulous DLC. Many thanks anyway!

New response