I'm playing with AAI vehicles, however I dislike their implementation in the tech tree not being locked behind vanilla vehicle tech requirements. So essentially I'm trying to create a standalone mod that adds prerequisites to them. I think I understand the basics of how the order of the data.lua scripts work.
So what I've got so far is a proper info.json with dependencies, and a data-final-fixes.lua with a few lines of code. Doesnt seem to be working so far though. As in, the game isnt registering my mod exists for some reason.
info.json
Code: Select all
{
"name": "AAI-tech-tweak",
"version": "0.1.0",
"title": "AAITT",
"author": "You",
"factorio_version": "1.1",
"dependencies": ["base >= 1.1"],["?aai-vehicles-hauler >= 0.6.1"],
["?aai-vehicles-flame-tank >= 0.5.1"],
["?aai-vehicles-miner >= 0.6.3"],
["?aai-vehicles-chaingunner >= 0.6.1"],
["?aai-programmable-vehicles >= 0.7.20]"
"description": "This mod changes the requirements for AAI vehicles"
}
Code: Select all
do
--Miner
if data.raw.technology["vehicle-miner"] and data.raw.technology["automobilism"] then
table.insert(data.raw.technology["vehicle-miner"].prerequisites, ["automobilism"])
end