[Highly Customized] Base normal for all techno and new placing grids
- You can now set
CheckExtraBaseNormalto true to use every technos to expand the construction scope of the base.ExtraBaseNormalcontrols whether our own buildings can be place around it like vanillaBaseNormaldo.ExtraBaseForAllyBuildingcontrols whether ally buildings can be place around it like vanillaEligibileForAllyBuildingdo.
In rulesmd.ini:
[General]
CheckExtraBaseNormal=false ; boolean
[SOMETECHNO] ; TechnoType
ExtraBaseNormal=false ; boolean
ExtraBaseForAllyBuilding=false ; boolean
- Do not assign this to too many technos.
- If
CheckExtraBaseNormalis set to true ,Adjacent.AllowedExtraandAdjacent.DisallowedExtrawill work for technos as whatAdjacent.AllowedandAdjacent.Disalloweddo.
In rulesmd.ini:
[SOMEBUILDING] ; BuildingType
Adjacent.AllowedExtra= ; list of TechnoTypes
Adjacent.DisallowedExtra= ; list of TechnoTypes
- This feature is highly compatible with
ExpandBuildingPlace. If setDrawAdjacentBoundaryto true, it will display the four corners of theAdjacentboundary. If setPlacementGrid.Expandto true, it will display the placing grids withplace.shpand following corresponding frame number.PlacementGrid.LandFramescontrols the placing grids frames on non-water cell. The three numbers respectively represent "Some technos that can command departure have occupied this area", "This cell is actually beyond the scope, but there is still at least one cell inside the entire region" and "Here is no problem, everything is OK".PlacementGrid.WaterFramescontrols the placing grids frames on water cell. Each item corresponds to the same as above.
In ra2md.ini:
[Phobos]
DrawAdjacentBoundary=false ; boolean
In rulesmd.ini:
[AudioVisual]
PlacementGrid.Expand=false ; boolean
PlacementGrid.LandFrames=1,0,0 ; integer, zero-based frame index - have technos, near boundary, is normal
PlacementGrid.WaterFrames=1,0,0 ; integer, zero-based frame index - have technos, near boundary, is normal
Splits from #1335 .
Nightly build for this pull request:
- compiled-dll-f1cfe0c500705337fd2c7164d1ab5a647199a33d.zip These artifacts will expire in 90 days and will not be available for download after that time.
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.
This ignores Adjacent.Allowed= , which means buildings that are restricted to be built only next to specific buildings will be buildable near a unit with UnitbaseNormal=yes. Adjacent.Allowed= should either be expanded to allow VehicleTypes, or (i think better option) a similar tag should be added for buildings to check for specific VehicleTypes (like: Adjacent.AllowedUnits= ?)
Also, i see that only ground VehicleTypes appear to work. I can understand if it's not meant for InfantryTypes and AircraftTypes, as supporting them might be too problematic, but there still should be a note that only grounded VehicleTypes will work.
This ignores Adjacent.Allowed= , which means buildings that are restricted to be built only next to specific buildings will be buildable near a unit with UnitbaseNormal=yes. Adjacent.Allowed= should either be expanded to allow VehicleTypes, or (i think better option) a similar tag should be added for buildings to check for specific VehicleTypes (like: Adjacent.AllowedUnits= ?)
Get it. I will add it later.
Also, i see that only ground VehicleTypes appear to work. I can understand if it's not meant for InfantryTypes and AircraftTypes, as supporting them might be too problematic, but there still should be a note that only grounded VehicleTypes will work.
Okay, but I would like to know if you think infantry/air force (jumpjet, aircraft) need this feature? If it's not necessary, it's very simple. I'll add an explanation later; If necessary, the logic of that part needs to be redone (it won't be very complicated, but it will take time. In fact, infantry is also easy, but the air force cannot handle it like the original version).
Okay, but I would like to know if you think infantry/air force (jumpjet, aircraft) need this feature? If it's not necessary, it's very simple. I'll add an explanation later; If necessary, the logic of that part needs to be redone (it won't be very complicated, but it will take time. In fact, infantry is also easy, but the air force cannot handle it like the original version).
Necessary or not is an incorrect question, because if it's there, then people will find a use for it. :P (for example, an engineering helicopter that allows placing base defenses nearby, or a hero infantry that allows the same) And I myself wanted to add it to an infantry, but i'll manage without it if i have to.
Still, i think adding it to air units might still be too much work for too little gain. Just a note that airborne objects are not supported should suffice.
If it's not too complex, jumpjet vehicles could be cool too. For example, there was an old game called Urban Assault, I once wanted to replicate it in C&C. There a floating host station could build stuff around itself.
AircraftTypes I don't see much point in adding.
Also seeing that there's an UI improvement - it could be cool to show it in docs as an image.