How can I get my Shadows theme to work in Universe? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Design and Modding



Message


Jaimoe_MatrixForum -> How can I get my Shadows theme to work in Universe? (7/3/2014 3:08:57 AM)

I have a custom theme that I use in Shadows that I am trying to use in Universe. I copied the folder for the theme from my Shadows customization folder to my Universe customization folder, but when I go to switch themes it just doesn't do it. It just stutters a bit and the theme looks like it stays the same. Then if I try to start a new game I get an error that allows me to continue but brings me back to the main menu. Does anyone know how to get a Shadows theme to work in Universe?




Unforeseen -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 3:19:08 AM)

Alot of things that were possible or worked with Shadows just simply wont work with universe. You would need to figure out exactly what is incompatible and determine if it can be reworked to function with Universe. It's entirely possible that it can't be done depending on what it is we are talking about. On the other hand it could be an easy matter, so it would help if you told us exactly what it is your theme modifies.




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 3:28:34 AM)

It is basically a theme that replaces all of the graphics for the races as well as replaces one race with a custom race. Also the music folder is updated. All cosmetics except for the one custom race.




Unforeseen -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 4:40:04 AM)

That's a bit strange it sounds like it should work. May i take a look? If you upload it I'll see if i can get it to work.




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 10:16:10 AM)

I can upload it after work this evening.




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 10:24:11 PM)

If I can figure out how to upload it I will, but in the meantime, this is the error message that I get when I try to start a new game in my custom theme.

quote:

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

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at DistantWorlds.Types.Galaxy.ResolveDescriptionGeneral(ResourceBonus resourceBonus)
at DistantWorlds.Types.Galaxy.GenerateRaceSummary(Race race)
at DistantWorlds.Start.laCH7yhLAJpye32j6Lx(Object )
at DistantWorlds.Start.vli2BojhYp(Object , EventArgs )
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at DistantWorlds.Start.qstJ1lnVYgnJJ9nvwYW(Object , Int32 )
at DistantWorlds.Start.HpyHCgmjV9(StartGameOptions )
at DistantWorlds.Start.fnHDMZT7QR(String )
at DistantWorlds.Start.eht2aG32cp(Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DistantWorlds.Controls.HoverMenuItem.OnClick(EventArgs e)
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.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: 4.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
_
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
DistantWorlds
Assembly Version: 1.9.5.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
DistantWorlds.Controls
Assembly Version: 1.9.5.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
DistantWorlds.Types
Assembly Version: 1.9.5.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.Xna.Framework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0 built by: xnabldr
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.dll
----------------------------------------
Microsoft.DirectX.DirectSound
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.DirectSound/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.DirectSound.dll
----------------------------------------
Microsoft.Xna.Framework.Graphics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30901.0 built by: xnabldr
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Graphics/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Graphics.dll
----------------------------------------
System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
AxInterop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Matrix%20Games/Distant%20Worlds%20Universe/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Matrix%20Games/Distant%20Worlds%20Universe/Interop.WMPLib.DLL
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34004 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34004 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.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.




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 11:02:54 PM)

I cannot upload the theme, it is too big. I'm trying to post a screenshot of the files in the theme, maybe if someone can tell me which ones might be the problem I can upload them separately.



[image]local://upfiles/24211/CB715A66F72A4438B674EE88F02E620C.jpg[/image]




Retreat1970 -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 11:17:53 PM)

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at DistantWorlds.Types.Galaxy.ResolveDescriptionGeneral(ResourceBonus resourceBonus)
at DistantWorlds.Types.Galaxy.GenerateRaceSummary(Race race)

Just throwing it out here, but maybe a custom race issue? Check the values in your custom race. I'm not a programmer just a guess.




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/3/2014 11:38:16 PM)

quote:

1.9.5.0


I looked through the file.....no negative index values and no overly large values, at first glace. I uploaded the file here.





Unforeseen -> RE: How can I get my Shadows theme to work in Universe? (7/4/2014 3:41:31 PM)

I'm not sure how it would effect things, but i immediately noticed that your file is in a different font/size than the current vanilla race files. Still reading through.

Edit: Aahhh i think i know what the problem is. Your actually missing lines.. these need to be placed at the bottom with one space after TroopRegenerationFactor. Try it, make sure to edit the values however you want them. If it doesn't work i'll take a more detailed look at the file and make sure nothing else is missing.


'Pirate Default playstyle: 0=Balanced, 1=Pirate, 2=Mercenary, 3=Smuggler
PirateDefaultPlaystyle ;1

'Designs picture family index when race is Pirate: index of default ships pictures used for this race from ship pictures contained in Images\units\ships\ folder or Customization\YourTheme\shipImages\ folder
'-1 = default random pirate ship images, 0-50 = normal ship design family index
DesignsPictureFamilyIndexPirates ;23

ImmuneToPlagues ;N





ehsumrell1 -> RE: How can I get my Shadows theme to work in Universe? (7/4/2014 9:14:31 PM)

quote:

ORIGINAL: Jaimoe

I have a custom theme that I use in Shadows that I am trying to use in Universe. I copied the folder for the theme from my Shadows customization folder to my Universe customization folder, but when I go to switch themes it just doesn't do it. It just stutters a bit and the theme looks like it stays the same. Then if I try to start a new game I get an error that allows me to continue but brings me back to the main menu. Does anyone know how to get a Shadows theme to work in Universe?

Hello Jaimoe;

From what I've read in this thread and your error message let me help you out.

First, there are MANY changes that must be made to a Shadows theme to make it compatible for Universe. If it is YOUR custom theme (i.e. not a theme previously made by another forum member) the first thing you should do is to read the Universe modding guide thoroughly. You'll see that the
theme directory structure and format has changed from Shadows to Universe. That is your first and biggest problem, the structure is incompatible.

Second, as Unforeseen has attempted to assist you with, all of the vanilla race files (as well as any
modded race files based upon them) have changes in content (at least 7 that I can think of off the top of my head at the moment) and structure. This is why you have your aforementioned 'Out of Index' error.

Thirdly, and I'll finish here (because there are more) you have many missing files as well as existing
files that have changed (Such as biases.txt to raceBiases.txt as one example).

Please read the Universe modding guide (get it via here: http://www.matrixgames.com/forums/tm.asp?m=3615682 )
Once done, then you should have all the info you need to make your custom theme compatible.
Hope this helps!
[:)]




Jaimoe_MatrixForum -> RE: How can I get my Shadows theme to work in Universe? (7/18/2014 3:50:05 AM)

Thanks for the help guys. I did have to redo my race files....the lines Unforseen mentioned were missing and also some of the values changed...most importantly the default or none setting was changed from 0 to -1. Also as ehsumrell1 mentioned the file structure had to be reworked a little.

The good news is that I now have my mod working and the Slaytanic are once again Raining Blood throughout the galaxy. [sm=Cool-049.gif]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.25