jgoffredo / Aftermath_Fixed

This is my try to make Aftermath Minetest subgame work in newer versions of Minetest.
GNU Lesser General Public License v2.1
1 stars 1 forks source link

mg_villages chicken-egg problem. #5

Closed jgoffredo closed 3 years ago

jgoffredo commented 3 years ago

2021-08-08 01:15:23: ERROR[Main]: mod "handle_schematics" has unsatisfied dependencies: "mg_villages" 2021-08-08 01:15:23: ERROR[Main]: mod "mg_villages" has unsatisfied dependencies: "handle_schematics" 2021-08-08 01:15:23: ERROR[Main]: mod "village_gambit" has unsatisfied dependencies: "mg_villages" 2021-08-08 01:15:23: ERROR[Main]: mod "village_modern_houses" has unsatisfied dependencies: "mg_villages" 2021-08-08 01:15:23: ERROR[Main]: mod "village_ruins" has unsatisfied dependencies: "mg_villages"

mg_villages needs some mods, but some of these mods needs mg_villages.

I had to place in depends.txt to work, but happens these errors.

jgoffredo commented 3 years ago

village_gambit, village_modern_houses and village_ruins depends of mg_villages

But mg_villages depends of handle_schematics, and handle_schematics depends of mg_villages.

The problem may be only between handle_schematics and mg_villages.

minetest03:SUPER[227] grep handle_schematics mods/mg_villages/* mods/mg_villages/buildings.lua: res = handle_schematics.analyze_file( file_name, building_data.we_origin, building_data.mts_path .. building_data.scm ); mods/mg_villages/depends.txt:handle_schematics mods/mg_villages/init.lua:-- save_restore is now part of handle_schematics mods/mg_villages/mapgen.lua: village.to_add_data = handle_schematics.place_buildings( village, tmin, tmax, data, param2_data, a, cid, village_id); mods/mg_villages/mapgen.lua: handle_schematics.place_dirt_roads( village, tmin, tmax, data, param2_data, a, c_feldweg);

minetest03:SUPER[228] grep mg_villages mods/handle_schematics/* mods/handle_schematics/build_chest.lua: -- yoff(set) from mg_villages (manually given) mods/handle_schematics/build_chest.lua: -- note: in mg_villages, yoff has to be 0 in order to include the ground floor as well; mods/handle_schematics/depends.txt:mg_villages? mods/handle_schematics/handle_schematics_misc.lua: -- mg_villages stores available rotations of buildings in orients={0,1,2,3] format mods/handle_schematics/init.lua:-- the replacement groups do add some non-ground nodes; needed by mg_villages mods/handle_schematics/init.lua:-- (and also place_buildings for mg_villages) mods/handle_schematics/place_buildings.lua: if( mg_villages and mg_villages.print ) then mods/handle_schematics/place_buildings.lua: mg_villages.print( mg_villages.DEBUG_LEVEL_WARNING, msg ); mods/handle_schematics/place_buildings.lua: if( not( binfo ) and mg_villages) then mods/handle_schematics/place_buildings.lua: binfo = mg_villages.BUILDINGS[pos.btype] mods/handle_schematics/place_buildings.lua: -- the building got removed from mg_villages.BUILDINGS in the meantime mods/handle_schematics/place_buildings.lua: if( mg_villages and mg_villages.print ) then mods/handle_schematics/place_buildings.lua: mg_villages.print( mg_villages.DEBUG_LEVEL_WARNING, mods/handle_schematics/place_buildings.lua: if( binfo.farming_plus and binfo.farming_plus == 1 and pos.fruit and mg_villages) then mods/handle_schematics/place_buildings.lua: mg_villages.get_fruit_replacements( replacements, pos.fruit); mods/handle_schematics/place_buildings.lua:-- place_buildings is used by mg_villages exclusively. It calls the local function generate_building and mods/handle_schematics/place_buildings.lua: -- this function is only relevant for mg_villages mods/handle_schematics/place_buildings.lua: if( not( mg_villages )) then mods/handle_schematics/place_buildings.lua: local replacements = mg_villages.get_replacement_table( village.village_type, nil, village.to_add_data.replacements ); mods/handle_schematics/place_buildings.lua: -- roads are only placed if there are at least mg_villages.MINIMAL_BUILDUNGS_FOR_ROAD_PLACEMENT buildings in the village mods/handle_schematics/place_buildings.lua: if( not(pos.btype) or pos.btype ~= 'road' or village.anz_buildings > mg_villages.MINIMAL_BUILDUNGS_FOR_ROAD_PLACEMENT )then mods/handle_schematics/place_buildings.lua: local road_material = mg_villages.road_node; mods/handle_schematics/place_buildings.lua: cid.c_plotmarker = handle_schematics.get_content_id_replaced( 'mg_villages:plotmarker', replacements ); mods/handle_schematics/replacements_get_table.lua: if( not( replacements ) and mg_villages and mg_villages.get_replacement_list) then mods/handle_schematics/replacements_get_table.lua: replacements = mg_villages.get_replacement_list( housetype, pr ); mods/handle_schematics/replacements_get_table.lua: if( minetest.registered_nodes[ 'mg_villages:torch']) then mods/handle_schematics/replacements_get_table.lua: table.insert( replacements, {'default:torch', 'mg_villages:torch'});

jgoffredo commented 3 years ago

This error is wrong. I didn't understood the error and created a new error trying to fix one error.

I will close this issue.