Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Need help with race modding - get crash

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Design and Modding >> Need help with race modding - get crash Page: [1]
Login
Message << Older Topic   Newer Topic >>
Need help with race modding - get crash - 6/25/2014 9:02:03 AM   
Imperius

 

Posts: 26
Joined: 6/25/2014
Status: offline
Hi guys,

First off - thanks for all the excellent mods I see here! First time poster, but I've really enjoyed reading this forum over the last year.

I decided to take the first step towards making a Babylon 5 mod using many of the resources here, and I've got a lot of races and such done. The problem is, the game crashes when trying to create the galaxy with this error report:

((Edit: Ugghh.. cant post links until 7 days from now... ))

Something about aggressiveRacesRequired and index being out of bounds?

I thought the problem was in my race files, so to test that theory, I just tried copying over all the vanilla race files, changing only the name, portrait numbers, and shipset numbers. All the other "indexes" in those files are therefore correct.

It could be race policy then, but I tried removing all my custom policy files as well, and it still crashes.

I also removed the custom character files, so the problem is not there either.

So basically I have a mod, where the only things I've changed are portraits and some shipsets, and it crashes on trying to create the galaxy with the message stating something about aggressiveRacesRequired and index being out of bounds.

Any ideas of what could be wrong here, judging from that error report?


Any help is greatly appreciated!

Edit:

The error report in more detail says:

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... etc, etc..
at DistantWorlds.Types.Galaxy.SetupAlienRacePopulations(EmpireStartList empireStart, Int32 aggressiveRacesRequired)

< Message edited by Imperius -- 6/25/2014 10:12:58 AM >
Post #: 1
RE: Need help with race modding - get crash - 6/25/2014 10:00:25 AM   
Tcby


Posts: 342
Joined: 12/16/2013
From: Australia
Status: offline
Can you upload the test race file?

(in reply to Imperius)
Post #: 2
RE: Need help with race modding - get crash - 6/25/2014 10:59:02 AM   
Bingeling

 

Posts: 5186
Joined: 8/12/2010
Status: offline
Not sure if it is the problem, but make sure your files are encoded in UTF-8 and not ANSI. I know that at least the resource file crashes if ANSI.

How? One way is to look at them in Notepad++. ANSI/UTF-8 is shown in the lower right, and can be changed in the encoding menu.

(in reply to Tcby)
Post #: 3
RE: Need help with race modding - get crash - 6/25/2014 11:12:52 AM   
Tcby


Posts: 342
Joined: 12/16/2013
From: Australia
Status: offline
On that subject, Notepad++ is generally pretty great.

(in reply to Bingeling)
Post #: 4
RE: Need help with race modding - get crash - 6/25/2014 12:08:07 PM   
Imperius

 

Posts: 26
Joined: 6/25/2014
Status: offline
Thanks guys, I got it fixed - I *think* the problem was in the bias and racebias.txt tiles, once I actually got those done for a mod with only 18 races instead of 21, it seemed to work.

And yes, notepad++ is a must :D I learned that from Crusader Kings II modding, it's pretty much impossible to work without it there.

It may also be that I added the Shakturi and Mechanoids...

< Message edited by Imperius -- 6/25/2014 1:09:33 PM >

(in reply to Tcby)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Design and Modding >> Need help with race modding - get crash Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.570