Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Bug/Patch Discussion => Topic started by: Petek on July 07, 2013, 01:56:48 AM

Title: Oddball Unit Bug
Post by: Petek on July 07, 2013, 01:56:48 AM
The attached save file illustrates a bug that comes up from time-to-time. I can't remember whether the cause has been identified and/or fixed. Load the game. If you simply proceed to play, the game will crash after a message about sunspots appears. Now load the game again and open the scenario editor. At coordinates (32,46), 10,16), (19,13) and (24,12) you will see some non-standard units. These units cause the crash. Deleting them avoids the crash. Can it be determined what causes these units to appear and how to avoid them? I'm pretty sure has been discussed previously, but I can't can't recall the outcome.
Title: Re: Oddball Unit Bug
Post by: Yitzi on July 14, 2013, 11:11:40 PM
Well, I've found part of your problem:
Somehow, most of the unit data for all the predesigned SMAX units got deleted.  So those units use image number 0 (which is that weird thing you see), and have unit cost 0 (which means that when the AI tries to divide by the unit cost for whatever reason, it crashes.)

As for why that data got deleted, I'm not quite sure.  If you could give me earlier savegames from the same game, that might help.  (Only ones where those units don't appear, though; the best would be if you could provide a savegame where there are SMAX predesigned units such as spore launchers, as close to when the weird units appear as possible.)  It also might help if you could provide your alphax.txt file.  Finally, are you sure you started the game as SMAX?  I'm not sure, but switching from SMAC to SMAX in the middle might also cause the problem.
Title: Re: Oddball Unit Bug
Post by: Petek on July 14, 2013, 11:51:47 PM
Thanks for taking a look. The save game isn't mine, it came from this thread (http://www.gog.com/forum/sid_meier_s_alpha_centauri_/terranxexe_crashes_on_sunspot_activity_event) on GOG's SMAC forum. I'll post again if I can reproduce the problem or find other information.
Title: Re: Oddball Unit Bug
Post by: Yitzi on July 15, 2013, 12:16:22 AM
Ok, let me know if you get more information.
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 15.

[Show Queries]