Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home3/tedson/public_html/metalshard/header.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home3/tedson/public_html/metalshard/header.php:14) in /home3/tedson/public_html/metalshard/header.php on line 26
Pocket PC Forum page 1 topic 552 at MetalShard
MetalShard, inc.
Pocket PC and Windows Games and Software

Pocket War (Game) Forum




This is a message in the Pocket War (Game) forum. If you would like to reply to this subject then fill in your reply in the box at the bottom of the page and click the Reply button. To get back to the main page for this forum click the Topics button.

Subject - Possible bug in unittypes.cpp
Pages: [1] Messages 1 - 2 of 2
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...


Posted By: Anonymous (2005-04-21 09:06:36)

the force produce makes it stop building whatever it is building and build something else. usually you dont use it right after a unit is built (because it isnt already building anything.) you would normally using that flag from an AI script to tell a unit to stop building whatever it is building right then and build something else instead.
Pages: [1] Messages 1 - 2 of 2




Reply


Attach File (zip and pwg files only)


you must be logged in to post
 
Copyright 2003-2010 MetalShard, inc. Games for Windows and Pocket PCs pocket war forums, automation software freegames