UnitRepair=yes + Factory=AircraftType = IE
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ares |
Confirmed
|
Low
|
Unassigned |
Bug Description
Apparently this causes internal errors so Ares pre-empts this by crashing during startup.
How does this cause IEs? I've had the combination in my mod for ages and never had a problem. I'm using NADEPT as a place to produce a non-AirportBound aircraft, which may be why I don't get errors (although it's certainly possible through capturing other sides' tech that AirportBound aircraft could be produced here).
If this really is such a fatal thing, is it possible we can have a work-around?
E.g. if the problem is due to AirportBound aircraft, then can you make it so that AirportBound aircraft are not produced here and/or that they are automatically ordered to move next to the building on completion, so that they will either land or crash when they can't return?
***Alternatively, can VehicleType factories be used to build AircraftTypes that are not AirportBound? This would be a better solution.***
Changed in ares: | |
status: | New → Confirmed |
importance: | Medium → Low |
This is one specific IE that drove me mad for ages - Westwood's GAAIRC has UnitRepair=yes commented out, and a lot of people have itchy fingers and uncomment it. When AI needs to find a valid repair bay (damaged vehicle), it tries to communicate with the repair bays it has to see which one is empty. Westwood's code at that point goes more weetawded that usual, and gets stuck in an infinite loop -> stack overflow at a random EIP -> pain in the ass to debug. I'm not sure if it's the fact that the GAAIRC has multiple docks, or simply that it produces/contains aircraft at the time. And when I tested it myself, my own aircraft would jump right off of it after getting repaired, which kind of cockblocked their attempts to reload.
I can see how in some circumstances this combination is actually useful, but I obviously didn't think of them when I added that preemptive Fatal Error. I'll look into lifting it if someone can give me more conclusive results of what causes the crash or if the consensus is that I should...