Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Minimum race requirement?

 
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 >> Minimum race requirement? Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Minimum race requirement? - 10/27/2015 12:48:50 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Quick question, has anyone made a mod with less then 20 races? I tried adding just 2 or so and the game would crash until I added 20 races. Is that a hard coded requirement or is there some undocumented requirement/setting I need to change to allow less races. Does anyone have any experience with this?

I mainly want to understand why 20 is the arbitrary number and if anyone else has made a mode with less then 20 races.

Thanks in advance.

< Message edited by ZeroGScott -- 10/27/2015 2:18:57 AM >


_____________________________

Post #: 1
RE: Minimum race requirement? - 10/27/2015 12:52:34 AM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
You will need to edit the race biases file with the information about the new races you are adding.

Be warned the race biases file is vary picky about the syntax and being off by even a little bit will cause your mod to fail.

(in reply to ZeroGScott)
Post #: 2
RE: Minimum race requirement? - 10/27/2015 1:02:42 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Yes I edited the biases file and made sure it aligned well but still have this problem. To be clear I can load the theme without a crash, setup a game as normal, then when it begins to create the game it crashes. Thanks for the reply as well!

< Message edited by ZeroGScott -- 10/27/2015 2:56:04 AM >

(in reply to HeinrickArchsider)
Post #: 3
RE: Minimum race requirement? - 10/27/2015 5:28:14 AM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
Could you post the crash log? or is it just a CTD?

(in reply to ZeroGScott)
Post #: 4
RE: Minimum race requirement? - 10/27/2015 8:14:15 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Unfortunately I can't post the image since I'm so new and can't post till 7 days after my tenth post. Is there a log file created somewhere I'm missing?

(in reply to HeinrickArchsider)
Post #: 5
RE: Minimum race requirement? - 10/27/2015 9:53:52 AM   
Bingeling

 

Posts: 5186
Joined: 8/12/2010
Status: offline
There is a crash log in the folder above the SaveGames folder. Looking at the usually rather short call chain can give a hint of what fails since the method names displayed make sense.

It should be in something like: Documents - My Games - Distant Worlds Universe - 1.9.5.12 -

And have crash in its name and be a text file.

(in reply to ZeroGScott)
Post #: 6
RE: Minimum race requirement? - 10/27/2015 12:09:17 PM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Well I couldn't find any crash text files at that location. It doesn't crash to desktop so it probably doesn't make a crash file. Its a very long error message, it fills up most of the popup window, I can't make sense of any of the calls or variables, or at least anything that would hint what the problem is. Thanks for the help.

Guess I could type it out.

< Message edited by ZeroGScott -- 10/27/2015 1:12:33 PM >

(in reply to Bingeling)
Post #: 7
RE: Minimum race requirement? - 10/27/2015 12:27:49 PM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline

Error Details:

System.ArgumentOutOfRangeException: Index was out of range. Must
be non-negative and less then 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.Galazy.SetupAlienRacePopulations(EmpireStartList
empireStarts, Int32 aggressiveRacesRequired)
at DistantWorlds.Types.Galaxy..ctor(Int32 galaxyRandomSeed,
GalaxyShape galaxyshape, Int32 starCount, Double colonyPrevalence,
Int32 lifePrevalence, Double creaturePrevalence, Double
piratePrevalence, Int 32 pirateProximity, Int64 startStarDate, Double
baseTechCost, Double hyperdriveSpeedMultiplier, Int32 age, Double
aggressionLevel, Int32 maximumEmpireAmount, Boolean
spawnNewEmpire, EmpireStartList empireStarts, String
applicationStartupPath, String customizationSetName, Bitmap
galaxyBackground, Bitmap[] cloudImages, Double difficultyLevel, Int32
sectorWidth, Int32 sectorHeight, ResourceSystem resourceSystem,
Boolean allowGiantKaltorGeneration)
at DistantWorlds.Start.OYWJFHBRu7(GalaxyShape ,Int32 ,Int32 ,
Boolean ,Double ,Int32 ,Double ,Double ,Int32 ,Double ,Double ,
Int32 ,Double ,EmpireStart ,EmpireStartList ,VictoryConditions ,
EmpireVictoryConditions ,EmpireVictoryConditions ,Boolean ,
Boolean ,GameStartResets )

(in reply to ZeroGScott)
Post #: 8
RE: Minimum race requirement? - 10/27/2015 1:02:50 PM   
Bingeling

 

Posts: 5186
Joined: 8/12/2010
Status: offline
How to try make sense of it. Start from the top.

ArgumentOutOfRangeException. It tried to fetch element 42 and there was only 40 elements. Or something similar. The numbers I wrote are random.

At ThrowHelper? Not interesting

At Collections? Not interesting, this is inside the programming lanugage.

At DistantWorlds.Types.Galaxy.SetupAlienRacePopulations - Aha, it was related to creating populations of alien races or similar. Notice it starts with something referencing Distant Worlds

So I can hazard a guess. Something is off when it comes to the alien races. Check that there is no pointer to "race 20 if there is only 19 races", or some other errors with number of commas per line in race setup.

When looking at those, the top line with "Distant Worlds" is the first interesting ones, and the below tells a story of how it got there.
The top line can sometimes be a helper function, if so look one step down.

(in reply to ZeroGScott)
Post #: 9
RE: Minimum race requirement? - 10/27/2015 8:36:11 PM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
Basically what bingeling said, your mod is trying to call on something that doesn't exist. OR it's trying to call on something that is out of range meaning past the minimum or maximum variables

It would really help if you could figure out a way to post the files you are modifying so we can look at them direcly.

< Message edited by HeinrickArchsider -- 10/27/2015 9:38:28 PM >

(in reply to Bingeling)
Post #: 10
RE: Minimum race requirement? - 10/27/2015 9:13:34 PM   
ehsumrell1


Posts: 2529
Joined: 8/17/2010
From: The Briar Patch Nebula
Status: offline
SetupAlienRacePopulations(EmpireStartList
empireStarts, Int32 aggressiveRacesRequired)

This also tell me that there needs to be an aggressive race included in the
biases file (Insectoid, Shakturi & probably Ancient Guardians at the least)
something the hard-coded game logic needs to see. Most probably in concert
with one of the games storylines. Just a reach. I never tried to make a mod
with less than 12 races though.


_____________________________

Shields are useless in "The Briar Patch"...

(in reply to ZeroGScott)
Post #: 11
RE: Minimum race requirement? - 10/27/2015 10:20:04 PM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Why would it load at 20 though if this was the case? I'm using a duplicated race file that has the same settings so I haven't added an aggressive race with it, but I also DID change one of the races to aggressive as well just to be sure of this since I noticed that error string as well and it didn't fix it. I also tried adding just the Shakturi files as well with no change. So I don't think its something that obvious. I'm still fiddling with the files though.

I'm trying to figure out a way to give you guys access to the files so you can isolate my modding ignorance. Stand by...

(in reply to ehsumrell1)
Post #: 12
RE: Minimum race requirement? - 10/27/2015 11:24:29 PM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
Just post the link to the file download and use () around some of the point in the link to trick the board

(in reply to ZeroGScott)
Post #: 13
RE: Minimum race requirement? - 10/27/2015 11:29:03 PM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
Anyone willing to poke around with my basic file setup can just send me a PM with your e-mail address and I'll send you a zip file.

Can anyone else try and make a quick mod with only 2 races and able to start a new galaxy? Mainly to confirm its not something on my end.

(in reply to ZeroGScott)
Post #: 14
RE: Minimum race requirement? - 10/28/2015 12:38:00 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
If you scan it and put a report of the scan up, i'd be willing to look at for you and help get it working. But want a virus scan before i do.

_____________________________




(in reply to ZeroGScott)
Post #: 15
RE: Minimum race requirement? - 10/28/2015 2:52:34 AM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
Already checked the file it's clean. Im pretty sure its a issue with not having enough races but not really sure.

(in reply to yummie)
Post #: 16
RE: Minimum race requirement? - 10/28/2015 3:04:02 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Probly with biases or messed up one of the inputs for the race, it might be in wrong spot, or your lacking a vital input. That happened to me earlier while i was writing the files. Order does matter. Plus might of labeled it wrong in the save. There are several ways to mess it up. I would have to look at it.

_____________________________




(in reply to HeinrickArchsider)
Post #: 17
RE: Minimum race requirement? - 10/28/2015 4:50:31 AM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
Here's the stuff he sent me.

Attachment (1)

< Message edited by HeinrickArchsider -- 10/28/2015 5:51:29 AM >

(in reply to yummie)
Post #: 18
RE: Minimum race requirement? - 10/28/2015 4:52:08 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Ill look at it give me a few, ill look at it

_____________________________




(in reply to HeinrickArchsider)
Post #: 19
RE: Minimum race requirement? - 10/28/2015 5:03:07 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
He wrote baises wrong he needs to remove everything after3-21 its expecting more races thats why its crashing. Ill start it up and see if it works and also read through the rest.

_____________________________




(in reply to yummie)
Post #: 20
RE: Minimum race requirement? - 10/28/2015 5:07:59 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Okay he also messed up the race txt also missing a few things, also the order is off, and has contradicting info that is why its crashing also

_____________________________




(in reply to yummie)
Post #: 21
RE: Minimum race requirement? - 10/28/2015 5:52:17 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
I'm confused. What are you using to edit the files? According to what I'm using I HAVE removed anything past the first two entries. I use notepad or notepad++. Does it not show correctly using those? What are you using to view the files? According to what I'm seeing in the biases file there is nothing past the first two entries and the row is the correct length as well. You need to be more specific please about how your getting your information.

(in reply to yummie)
Post #: 22
RE: Minimum race requirement? - 10/28/2015 6:02:41 AM   
HeinrickArchsider


Posts: 19
Joined: 10/9/2015
Status: offline
I think she means in the top name row.

'#, Name, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21

Not the others. You should have removed everything past two on this row as well.

< Message edited by HeinrickArchsider -- 10/28/2015 7:25:02 AM >

(in reply to ZeroGScott)
Post #: 23
RE: Minimum race requirement? - 10/28/2015 6:07:21 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
I assumed it was a comment cause of the ' in front of the line and thus was not read. What about the description lines above as well, do I remove those? This wasn't described very well in the modding document if that's the case. Not to mention the implications of all those lines used that way in the race files. Thank you thought for the info, just trying to understand the disconnect.

< Message edited by ZeroGScott -- 10/28/2015 7:17:06 AM >

(in reply to HeinrickArchsider)
Post #: 24
RE: Minimum race requirement? - 10/28/2015 6:15:24 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
I'm still getting the error after trimming down that line, which leads me to believe its in the race files where the problem lies.

< Message edited by ZeroGScott -- 10/28/2015 7:16:05 AM >

(in reply to ZeroGScott)
Post #: 25
RE: Minimum race requirement? - 10/28/2015 6:47:55 AM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Yeah i know it is you have 5 conflicting lines, and a few missing inputs, ill have to figure those out. ill fix them in morning, after i get off from work. You made just a couple errors, and i got caught up watching netflix. And i have to be up in 4 hours, or id knock it out really quick. I using note pad

< Message edited by yummie -- 10/28/2015 7:51:06 AM >


_____________________________




(in reply to ZeroGScott)
Post #: 26
RE: Minimum race requirement? - 10/28/2015 6:55:25 AM   
ZeroGScott


Posts: 13
Joined: 10/27/2015
Status: offline
No problem, do it when its most convenient for you. Sheesh get some rest as well, I need 8 hours sleep minimum to function.

(in reply to yummie)
Post #: 27
RE: Minimum race requirement? - 10/28/2015 8:14:58 PM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Lol netflix keep me up, just got home quick nap then ill fix that for you

_____________________________




(in reply to ZeroGScott)
Post #: 28
RE: Minimum race requirement? - 10/29/2015 7:18:53 PM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
Sorry the guy up stairs distracted me last night, Going to go figure it out right now, sorry about that. But also got some programing to do. Might do that and run it through my program, might be easier than reading each line and checking if the info is valid. The joys of languages, even though this language is very simplistic.

_____________________________




(in reply to yummie)
Post #: 29
RE: Minimum race requirement? - 10/29/2015 9:13:37 PM   
yummie


Posts: 109
Joined: 1/29/2014
Status: offline
First glace errors, try this, Contekka, is missing values, so add values to WeaponResearchProject, EnergyResearchProject, HighTechProjectOrder,DissallowedCompeponentIds these errors is also made in Rogene txt file. I corrected them and it loaded for me. If no value remove all text relating to it. It is expecting a value and no value is present. Now off to continue writing a program.

_____________________________




(in reply to yummie)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Design and Modding >> Minimum race requirement? Page: [1] 2   next >   >>
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

2.313