Posted By: San Dog (2005-04-21 02:07:35)
I don't know if you are aware of this bug, but the following script line: setProduce( unit, "ACP 10", true );
produces a crash with this trace file: 19453 TRACE - SCRIPT: *** start script entry *** 19484 TRACE - SCRIPT: *** create unit Lamps *** 19515 TRACE - SCRIPT: *** create unit Lamps setStats*** 19531 TRACE - SCRIPT: *** create unit Lamps setMovement*** 19562 TRACE - SCRIPT: *** create unit Lamps setAttackAdjustment*** 19578 TRACE - SCRIPT: *** create unit Lamps setDefenseAdjustment*** 19609 TRACE - SCRIPT: *** create unit Lamps setSounds*** 19640 TRACE - IMGMGR -- Loaded image F:\Program Files\MetalShard\pocketwar/mods/Lamps/mod-lamps.png 19656 TRACE - IMGMGR -- Loaded mask F:\Program Files\MetalShard\pocketwar/mods/Lamps/mod-lampsmask.png 19687 TRACE - SCRIPT: *** create unit Lamps setImages*** 19719 TRACE - SCRIPT: *** create unit Lamps setDefaultMove*** 19734 TRACE - SCRIPT: *** create unit Lamps setDefaultAction*** 19765 TRACE - SCRIPT: *** create unit Lamps setTransport*** 19797 TRACE - SCRIPT: *** create unit Lamps setBuild*** 19812 Critical Error in C:\dev\pocketwarbackup\unittypes.cpp at line 322
When I specify false for the forceProduce parameter, all is well. So my work around is this: setProduce( unit, "ACP 10", false );
I think it might have something to do with the fact that the Lamps is built inside a Destroyer. Perhaps forcing the production violates some logical structure in the code...
|