Netriak Netriak

Galactopedia. Now Twilight of the Arnor compatible.

Galactopedia. Now Twilight of the Arnor compatible.

Updated by me due to abandonment by original author. (1.7.4)

I have updated Galactopedia (https://forums.galciv2.com/105605) to make it compatible with the new Twilight of the Arnor expansion, since it was abandoned by Christoph Nahr:

So I'm afraid the Galactopedia should be considered abandoned. Any .NET programmers reading these forums should feel free to pick up and continue the project. You don't need my permission to do so. Good luck and goodbye!


However, Twilight of the Arnor adds such an enormous amount of new content, that I decided it would be worth it to update galactopedia to be compatible with Twilight of the Arnor.

You can download my modified version here:
http://library.galciv2.com/index.aspx?m=775

It allows you to browse through the different racial tech trees, and it seems to work fine here with me.

Update: Now version 1.7.4.


488,459 views 81 replies | Pinned
Reply #76 Top

@Gorlums I would like to see  your work so when you get done post a link here to be Down Load or something like that?

 

Reply #77 Top

As I understand to compile it I need MS Visual Studio Express Edition for C#, don't I?

That will work fine. However, note that if you are running a 64 bit version of windows, the express edition will only allow you to create a 64-bit version of the executable. Such executables are not compatible with 32 bit versions of windows, which are still quite common.

Reply #78 Top

I can't get it to run right now on Windows 7 x64.

 

When Galatopedia started, it asked me for the location of Galactic Civilizations. I gave it the wrong directory (into the Twilight instead of Galactic Civilizations) and its been crashing on me since.

 

Where are the configuration files (like in documents/appdata/...) and where can I wipe them? Normally I'd change the path, but since I can't even start the app without it crashing, I can't do that.

 

Update:

Deleting the program, redownloading, and re-installing it does not work.

Reply #79 Top

Here's the crash report by the way:

 

Description:
  Stopped working

Problem signature:
  Problem Event Name:    CLR20r3
  Problem Signature 01:    galactopedia.exe
  Problem Signature 02:    1.7.6.21717
  Problem Signature 03:    4a0e9d9a
  Problem Signature 04:    System.Windows.Forms
  Problem Signature 05:    2.0.0.0
  Problem Signature 06:    4a275ebd
  Problem Signature 07:    22a4
  Problem Signature 08:    37
  Problem Signature 09:    System.InvalidOperationException
  OS Version:    6.1.7600.2.0.0.256.48
  Locale ID:    4105

Reply #80 Top

Update again, going into regedit and fixing the entry in the registry worked.

 

Go to:

@"HKEY_CURRENT_USER\SOFTWARE\Kynosarges\Galactopedia"

 

If that does not work (for any other users doing this), wipe the Kynosarges entry out completely.

 

Change the directory if incorrect. I found this out by downloading the source of the previous edition and looking through it. If possible, please send me the source as well.

 

Thanks.

Reply #81 Top

New Error:

 

Whenever I switch the source from regular Galactic Civilizations to Twilight of the Arnor, it crashes:

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Galactopedia.Program.LoadContainers(Boolean ChangingRacialTech)
   at Galactopedia.MainForm.LoadAndShowContainers(Boolean ChangingRacialTech)
   at Galactopedia.MainForm.SetGameVersion(GameVersion version)
   at Galactopedia.MainForm.<CreateMainMenu>b__a(Object , EventArgs )
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Galactopedia
    Assembly Version: 1.7.6.21717
    Win32 Version: 1.7.6.0
    CodeBase: file:///C:/Users/Administrator/Desktop/Galactic%20Civilizations%202%20Ultimate/Galactopedia/Galactopedia.exe
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

 

This bug seems to occur when you have 2 xml files of the same key. To solve it, find the error and wipe out the registry files like I mentioned above.

 

Update Again - Problem of Bug found:

 

Crash when you have 2 tech trees with the same display names.