Star Weaver's crash report

Freeform discussion about anything related to modding Transcendence.
Post Reply
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

At IRC day, Star Weaver (I think) sent me a pastebin showing a crash when removing items. Here's what I found:

1. There is a slight typo in the mod:

Code: Select all

(objEnumItems wvrGlobalShip "*wI" weap (shpRemoveDevice wvrGlobalShip weap))
The criteria "*wI" matches all installed item (The * means all items types. The w is ignored, since the * already implies that you're looking for weapons). The result is that the code above tries to uninstall all items, including items that are not installed. The mod will not crash if you change the criteria to "wI"

2. There is a subtle bug in the engine: When you install/uninstall devices on an AI ship, the AI does not realize that the devices have changed, so it doesn't use weapons properly (i.e., it may use a weapon thinking that it has a long range when in fact that weapon was uninstalled). I've fixed this bug in 1.07.

3. Because of #1, the ship's shield generator is uninstalled. Because of #2, the AI doesn't realize that the shield generator has been uninstalled and it tries to use it. Since it can't find the device, the game crashes. I've also fixed this in 1.07.

Thanks for the report--it helped me to find some good bugs.
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

Nice! That explains why the game crashes when AI controlled ships in Playership Drones remove and install patch spiders by themselves.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!

Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

george moromisato wrote: 3. Because of #1, the ship's shield generator is uninstalled. Because of #2, the AI doesn't realize that the shield generator has been uninstalled and it tries to use it. Since it can't find the device, the game crashes. I've also fixed this in 1.07.
Cool! That will fix some nasty bugs in WE and G.O.D. as well. Thanks!
Get your own Galactic Omni Device
Get it now. It's free!!
Image
Post Reply