Marosai Posted April 10, 2021 Report Share Posted April 10, 2021 hey guys awesome community you got here, i was wondering is there any way to lock the phase upgrades ingame? 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 10, 2021 Report Share Posted April 10, 2021 What do you mean lock? You mean keep the match to a specific phase? 1 Quote Link to comment Share on other sites More sharing options...
Marosai Posted April 10, 2021 Author Report Share Posted April 10, 2021 Yes so factions can not go into city phase for example. I couldn't find a way to do this in the game and also not in the editor, is there a way to do this? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 10, 2021 Report Share Posted April 10, 2021 4 minutes ago, Marosai said: Yes so factions can not go into city phase for example. I couldn't find a way to do this in the game and also not in the editor, is there a way to do this? There might be a way to disable the techs in specific map XML files. 2 Quote Link to comment Share on other sites More sharing options...
Lopess Posted April 10, 2021 Report Share Posted April 10, 2021 I've seen something like this once in the javascript of a community map. 1 Quote Link to comment Share on other sites More sharing options...
Lopess Posted April 10, 2021 Report Share Posted April 10, 2021 I got this from a mod on github Sciguy42. I believe that something like this disabling the phase city technology. https://github.com/SciGuy42/Macedonia_0ad/blob/master/maps/scenarios/Macedonia_22.js (In this example he is disabling the possibility to build several buildings and units for all civs for this map only.) var disabledTemplates = (civ) => [ // Economic structures "structures/" + civ + "_corral", "structures/" + civ + "_farmstead", "structures/" + civ + "_field", "structures/" + civ + "_storehouse", "structures/" + civ + "_rotarymill", "structures/" + civ + "_market", // Expansions "structures/" + civ + "_civil_centre", "structures/" + civ + "_military_colony", // Walls "structures/" + civ + "_wallset_stone", "structures/rome_wallset_siege", "other/wallset_palisade", // Shoreline "structures/" + civ + "_dock", "structures/brit_crannog", "structures/cart_super_dock", "structures/ptol_lighthouse", //villagers "units/" + civ + "_support_female_citizen" ]; 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted April 10, 2021 Report Share Posted April 10, 2021 Yes. I remember now. In your map XML file: { "AISeed": 0, "CircularMap": true, "Description": "Northern Italy near the Alps is called Cisalpine Gaul by the Romans. It's a fertile area contested by the Gauls, Etruscans, and Romans alike. ", "Keywords": [ "new" ], "DisabledTechnologies": [ "pair_farming_01", "pair_farming_02", "celts/gather_farming_harvester", "gather_farming_cultivation", "ptolemies/gather_grain_water_wheel", "ptolemies/gather_grain_well_sweep", "farms_crop_rotation", "vision_defense_tower" ], "LockTeams": false, "Name": "Cisalpine Winter (2 players)", "PlayerData": [ "", { "Name": "Player 1" }, { "Name": "Player 2" } ], "Preview": "cisalpine_winter_2p.png", "RevealMap": false, "VictoryConditions": [ "domination" ] } See "DisabledTechnologies" section. Just put the phases you want to disable there. 2 Quote Link to comment Share on other sites More sharing options...
Marosai Posted April 10, 2021 Author Report Share Posted April 10, 2021 awesome, thnx a lot i go try it out 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.