Tiny bug in the code...

Trust me on this one.

In the buy ship menu, if you select "Nothing", and click buy, it will bring a window for purchasing a "Ranger" class ship. The price seems to be that of the last ship selected (haven't confirmed) and when you click purchase it takes your money and then procedes in building nothing.

Anyone else able to get this?


On a side note, anyone else having trouble with the normal (non html) "Create Post" tool losing all line return data and not even being able to create a new post with firefox?
3,820 views 4 replies
Reply #1 Top
I've had this, too.

Also once, my money went below 0 and all my current starbases forever the "buy" button was disabled no matter how high my money rose. Eventually, though I found destroying and rebuilding the starbase fixed it.
Reply #2 Top
Oh and eagerly awaiting the patch I keep going to https://www.galciv2.com/Downloads.aspx

Well it's broken. Oddly, though the web servers run on Microsoft NET 2.0??? That's the same stuff galactopedia wants me to download (which I don't want to) to use it.

Back to the site downloads.aspx, Always it says:
------------------------------------------------------------------------------



Server Error in '/' Application.
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:



Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
System.Collections.ArrayList.Add(Object value) +43
Bacon.PageBase..ctor() +176
GalCiv2.PageBase..ctor() +11
GalCiv2.downloads..ctor() +10
ASP.downloads_aspx..ctor() +28
__ASP.FastObjectFactory_app_web_rmv6anf4.Create_ASP_downloads_aspx() +38
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Reply #3 Top
Please update to the newest version (version 1.2) and see if you still have this problem with ranger ships. I remember we addressed it in one of the updates. If you are using a saved game from a previous version of the game with the problem, the problem may continue but only for that saved game. New games started with the new version should not have this problem. If you still experience this problem after starting a new game with the new version, please let us know.

Thank you.
Reply #4 Top
any chance the update is going to fix my other problem? Link