Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Stack Overflow Error with Modded research.txt

 
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 >> Stack Overflow Error with Modded research.txt Page: [1]
Login
Message << Older Topic   Newer Topic >>
Stack Overflow Error with Modded research.txt - 11/21/2016 3:14:58 AM   
Unbroken

 

Posts: 21
Joined: 8/22/2014
Status: offline
Hey folks,

I recently decided to take a stab at modding, and I've hit a bug that has been befuddling me for several hours now.

I was working on research.txt with the goal of consolidating/removing some of the filler techs and reorganizing other areas to provide less of a simple linear pathway, along with adjusting research costs to promote some level of decision making. An example of this would be tweaking the costs between the 3rd-generation of a tier two weapon (ex. Velocity Shard v3) versus the 1st-gen Plasma Torpedo in such a way that there's an actual choice: grab the weapon upgrade for a more immediate benefit, or spend less money/time and go straight for the new weapon.

The issue is that I've managed to get clr.dll-related stackhash/stackoverflow errors --> CTDs as a direct result of the attached research.txt during the galaxy creation process when starting a new game. I can run a different theme and start a new game without a hitch; the issue lies in something I've done, likely without noticing. I have a hunch some of the parent/child tech relationships are still off, yet the game can successfully parse the file without problems.

I'd definitely appreciate any advice/help pinning down the exact issue as chances are I'm just too blind to spot the problem at this point.

Attachment (1)
Post #: 1
RE: Stack Overflow Error with Modded research.txt - 11/22/2016 12:53:26 AM   
darkriot

 

Posts: 32
Joined: 7/5/2014
Status: offline
Did you look at the crash log file?

(in reply to Unbroken)
Post #: 2
RE: Stack Overflow Error with Modded research.txt - 11/22/2016 2:02:28 PM   
Unbroken

 

Posts: 21
Joined: 8/22/2014
Status: offline
There's no crash log for this problem, unfortunately. Otherwise, that'd provide me a better idea of what is going wrong. When the game crashes, it gives me the a Windows standard "Distant Worlds Universe has stopped working" appcrash citing clr.dll and a Stack Overflow Exception as the culprits.

(in reply to darkriot)
Post #: 3
RE: Stack Overflow Error with Modded research.txt - 11/22/2016 5:17:20 PM   
Retreat1970


Posts: 948
Joined: 11/6/2013
From: Wisconsin
Status: offline
I went through it looking for typos, which I never want to do again lol. Every error I've had is because of a typo or omission. That being said, I didn't see anything wrong, but after the first 100, things start to blend together.

(in reply to Unbroken)
Post #: 4
RE: Stack Overflow Error with Modded research.txt - 11/22/2016 8:29:09 PM   
Unbroken

 

Posts: 21
Joined: 8/22/2014
Status: offline
Thanks for checking it!

I did try noodling with it some more, namely by attempting to isolate what part of the file is causing issues. To this end, I copy-pasted the first 42 or so techs into the AI Improvement Mod 1.04's research file and still received the error. Even after removing the tech cost changes in those, reverting any name changes and basically ensuring the two files are identical (at a glance), I'd still get the stack overflow error.

Short of having a formatting issue that the game's parser doesn't catch, I wonder if it's simply FUBAR'd.

(in reply to Retreat1970)
Post #: 5
RE: Stack Overflow Error with Modded research.txt - 11/23/2016 6:00:18 AM   
Bingeling

 

Posts: 5186
Joined: 8/12/2010
Status: offline
Formating errors (wrong number of entries) should be pretty obvious if you edit the file in a spreadsheet.

If you don't figure it out, check for how to open csv (comma separated value files). You get each value in a cell.

I would never try to do any significant modding without using a tool like a spreadsheet to keep track of the values (save as .csv).

(in reply to Unbroken)
Post #: 6
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Design and Modding >> Stack Overflow Error with Modded research.txt 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

1.546