Hallo,
ich versuche in einem Savegame verschiedene mods aufeinander anzupassen, die sonst inkompatibel sind..
Hat bereits alles geklappt, ich finde nur nicht die korrekte Stelle, wo die Waren der bereits platzierten Stadtgebäude modifiziert werden...
konkret geht es um die neuen Industrien (V. 2.54), Automobilindustrie, Post mod von nown release.
(die vertauschten IDs sind nicht das problewm, das ist leicht zu beheben)
es sollte bei shopping 5 waren geben.. anstelle von 4..
im code des automobilindustriemods habe ich das eigentlich korrigiert...
local function Commercial_Addition ( data, capacity )
local ruleCapacity = math.floor(capacity + 0.5)
--if (ruleCapacity > 0) then
-- data.stocks = {}
-- data.stockRules = {}
-- local cargoTypes = { "VEHICLE", "TOOLS", "FOOD", "GOODS" }
-- local inputs = {
-- { { 1, 0, 0, 0 } },
-- { { 0, 1, 0, 0 } },
-- { { 0, 0, 1, 0 } },
-- { { 0, 0, 0, 1 } },
-- }
-- for i = 1, 4 do
-- data.stocks[i] = {
-- cargoType = cargoTypes[i],
-- type = "RECEIVING",
-- edges = { },
-- moreCapacity = ruleCapacity
-- }
-- data.stockRules[i] = {
-- input = inputs[i],
-- output = { { 0, 0, 0, 0 } },
-- capacity = ruleCapacity
-- }
-- end
--end
local inputTable = {
{ { 1, 0, 0, 0, 0, 0 } },
{ { 0, 1, 0, 0, 0, 0 } },
{ { 0, 0, 1, 0, 0, 0 } },
{ { 0, 0, 0, 1, 0, 0 } },
{ { 0, 0, 0, 0, 1, 0 } },
}
local CommercialCargoList = {
"TOOLS",
"FOOD",
"GOODS",
"CLOTHES",
"ALCOHOL",
}
local CargoList = CommercialCargoList
if (ruleCapacity > 0) then
data.stocks = { }
data.stockRules = { }
for i = 1, 5 do
data.stocks[#data.stocks + 1 ] = {
cargoType = CargoList[i],
type = "RECEIVING",
edges = { },
moreCapacity = ruleCapacity
}
data.stockRules[#data.stockRules + 1 ] = {
input = inputTable[i],
output = outputTable,
capacity = ruleCapacity
}
end
end
return data
end
Alles anzeigen
aber es ändert sich nichts, auch neu platzierte gebäude (mit ploptownbuildings) erhalten nur vanilla-waren..
ich habe alle anderen mods durchsucht, nach "stocks" und keine weiteren stellen gefuden, wo das geändert wird gefunden (ausser ploptownbuildings, das deaktivieren des mods ändert aber auch nichts)...
hat jemand eine Idee, was ich übersehe?
Hallo,
I try to make some mods I use for a savegame compatible.
It works already, but I don't find the right place, where to modify the stocks of already placed townbuildings.
It is the new industries 2.54 mod and some other automotive industry, post mod of nown release..
(the wrong Ids are not the problem, that's easy to solve)
there should be 5 shopping-stocks instead of 4
I corrected the parts in the code of the mod automotive industry..
(code see above)
but nothing changes, newly with ploptownbuildings placed townbuildings only show vanilla stocks.
I searched through all mods, but did not found any place where these stock values also get changed.. (tried also to disable ploptownbuildings)
Does anyone have an idea?
Hallo,
als je Nederlands spreekt, denk ik dat Engels of Duits goed voor je is..