Posted: Wed Jul 27, 2016 9:29 am Post subject:
Units exploding on the repair bay bug?
I'm not entirely sure what conditions cause this, but seems like the AI sends units to be repaired, or even just passing over the repaid dock and boom.
I can't see any particular code glitch? Anything else I should look at?
Code:
[NADEPT]
UIName=Name:NADEPT
Name=Soviet Service Depot
BuildCat=Tech
Prerequisite=NAWEAP,NACNST
Strength=1200
Armor=concrete
TechLevel=6
Adjacent=2
Sight=5
UnitRepair=yes
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs
AIBasePlanningSide=1 ;gs 0 for Good, 1 for Evil
Cost=800
Points=80
Power=-20
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1SM,DBRIS1LG,DBRIS4SM,DBRIS5SM,DBRIS4LG,DBRIS7SM,DBRIS8SM,DBRIS5LG
MaxDebris=15
MinDebris=5
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=270, 580, 260
AIBuildThis=yes
NumberOfDocks=1
NumberImpassableRows=1
I don't remember the AI suffering from this bug, but ever since Red Alert 1, interrupting the player unit's exit/entry process with an attack command causes it to explode. IIRC, it was a safe measure by the developers to prevent the game from crashing due to the interruption. Way to avoid fixing the actual issue. _________________ Last edited by Crimsonum on Wed Jul 27, 2016 1:06 pm; edited 2 times in total QUICK_EDIT
Pressing s to stop a unit moving on the repair bay gets it killed too if it just moved on the building.
It's like the building gets passable when it has an approaching unit, but any command that aborts the units repair command, will turn the building back to the normal impassable building. Which ends in the unit colliding with the building.
Since Ares has the key IsPassable, it might help fixing the issue by making the repair bay always passable, not only for the unit that got the docking command. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Well since I'm talking about the AI's activity, I must assume it's changing orders like being recruited? Is this a known bug I can't fix then?
Possible. The AI is constantly doing trying to recruit units in new teams.
That bug probably was the reason why WW set AIBuildThis=no.
Do you tested IsPassable=yes already?
G-E wrote:
This doesn't really explain how units regularly roll over the factory and refinery bibs?
They are bibs defined with Bib=yes, which makes the southeast row of cells passable by default.
The repair bay only gets passable for the unit that tries to dock with it. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I had a strange thought, has anyone tried to make a repair bay with multiple docks? Let's say a new building 3x2 with 1 impassable row, and 3 docks in the next row?
you should rather test a 1x1 repair bay first, which is much easier done and see if Bib=yes really helps to solve this.
After that, you could also test a 1x3 repair bay with Bib=yes.
FirestormWall=yes makes a building passable too. Worth a try here. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Well as expected FirestormWall makes them invisible (and no bib appears at all) minus the active animations which still work, but I didn't see any explosions.
The problem is this proves nothing because I only sporadically noticed explosions, and I posted when I saw 3 in a row at the same time. It's possible it is more frequent than I realize but the conditions for the AI to behave the right way (to test) aren't that common either. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
Then try to find out how to cause the explosion with your own unit and repair bay, so you can reproduce it much easier. Or create a testmap in which you do some trigger/scripts work that causes the AI units to constantly dock and explode.
Then you can do some reliable tests.
FirestormWall makes the building expect the special wall frames order in the shp. Either copy the frames in the shp to match the wall logic order of frames
or try a different approach like
-make building SHP itself empty
-add keys like BibShape or ActiveAnim into which you put the building SHP, to this way get around the special wall logic frames order _________________ SHP Artist of Twisted Insurrection: Nod buildings
To my recall you can cause the unit explosion about all the time if you give the unit a move command over the bib and suddenly give attack command vs ground over central cell and it will just blow up...
yes, TS has it too.
Though the hassle to repair a unit for 25% of its cost, i have always rather build a complete new unit. _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum