Modding Assistance - Problem Fixed

Please post here for questions and discussion about scenario, art and sound modding and the game editor for Distant Worlds.

Moderators: Icemania, elliotg

Post Reply
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

Modding Assistance - Problem Fixed

Post by TomFrame »

This problem is now fixed - a summary of what problems occured and how to fix is at bottomn

Introduction
Intro is here, skip below for problem

Hi there guys, thanks for making such a sweet game [&o]- i really enjoy it. Anyways since i enjoy this game so much I have decided to make my own modification using sounds, pictures and data from a game called: Master of Orion 2.

Having already extracted the race pictures from my Moo2 root folder and edited them in photoshop I've made some reasonable pictures

Image
Image

Also having replaced sounds like music, alarms, torpedoes, lasers and events it makes the game very different. This all works great as planned as I am only replacing!

The problem however comes when I attempt to add a new race to the game:

The actual problem!
The problem is when I attempt to add these races. Whatever I do, no matter how many times I recheck the text files, the forums and the folders I still get the "more bias values than races at line 12" or something similar. That is it, no more nothing less.

EDIT: Right now I cant even enter the game (DW stopped working), probably because it exited with the theme on since I pressed continue, but this means I can test the game faster!

Here is what I can setup, In reality I only have Bias file, races folder with a text file named alkari, a Policy folder with a text file named Alkari and a raceImage in Theme\raceImages that is named Race_22 and Race_22a. All the text files are originally copy-pasted from core game root and only edited in what you see in these Images. The music folder is also there, but does not affect anything that includes mentioned problems.


Image
(I renamed race to races - no effect)

As far as I understand I only need to get the Policy, Bias and Race file of the race I'm adding correct. All else is loaded as default if missing - is this correct? If not I still need to get past the Bias at line 12 message...

Basically I am gonna upload stuff of Bias and race file - I will not upload images of policy.

BIAS
Image

RACE TEXT FILE
Image

I have altered two things in this race file (copied from Ackdarian): Home System Name (Altair) and troop name (Alkari Infantry)(100strength).

Would someone be so kind to explain how I would approach and deal with the problem?

I have some questions that may be important:

1. Do I need only race, bias, policy (+raceimage if specified)?
2. How does the game know in the bias that I have added a race? Is there an index value I forgot to enter somewhere?
3. Am I missing a file(Policy folder, races folder, raceImages folder, biases.txt, alkari.txt, Alkari.txt (Policy), Race_22.png, Race_22a.png)
4. When the race.txt states that it should load shipImages from either core\sImages or theme\sImages, does it really mean

-if you are reading this race.txt file in the core game folders, you need ships in core\sImages.
-if you are reading this race.txt file in the theme game folders, you need to get the core\sImages into the theme\sImages!
Every man is a prisoner of his own mind
-me
dastuma
Posts: 9
Joined: Mon Jan 30, 2012 7:39 am

RE: Modding Assistance

Post by dastuma »

ORIGINAL: TomFrame

As far as I understand I only need to get the Policy, Bias and Race file of the race I'm adding correct. All else is loaded as default if missing - is this correct? If not I still need to get past the Bias at line 12 message...

You need to have all the races you want to use in your race folder inside your theme. Looking at your bias.txt that means you need 23 race-files. That will also solve the line 12 message, which basically means, that you don't have enough races in your theme.
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

RE: Modding Assistance

Post by TomFrame »

Thank you!
Does this mean I need all the corresponding Policy and Picture files IN the theme?

Tested it, got an error saying could not read bias value 24 at line 12 in bias - assuming there are too many race txt files.
Which is weird... I have 23 elements in the race folder (all races) and 0-22 bias values - why is it asking for a 24th value?


Every man is a prisoner of his own mind
-me
User avatar
Theluin
Posts: 189
Joined: Fri May 13, 2011 12:51 pm
Location: Europe, Terra

RE: Modding Assistance

Post by Theluin »

I don't think it's connected to your current problem, but from what the other modders here said you also have to add the character files for the races to your theme, and create a new one for the new race. (Idk if it can be empty but all the vanilla character files have 1 character in them)

Oh and I have an idea. Did you format the bias file in any way (like adding more tabs or spaces)? I did that once to make it more readable and it also resulted in errors.
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

RE: Modding Assistance

Post by TomFrame »

Hmm, I shall test this further by recreating the bias file (copy pasting again) and copy pasting the character stuff.

Thank you for the time taken to help me - I will upload the files for everyone once they're done!
Every man is a prisoner of his own mind
-me
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

RE: Modding Assistance

Post by TomFrame »

If you notice the bias file up, you can see that i have added a "," behind every value, linking to an upcoming race that does not exist!
Every man is a prisoner of his own mind
-me
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

RE: Modding Assistance

Post by TomFrame »

PROBLEM FIXED - ALL IS WELL THAAAAAAANK YOU SOOO MUCH ^^ HAPPYYYYYYYYYYYYY[&o]
Every man is a prisoner of his own mind
-me
TomFrame
Posts: 35
Joined: Mon Jan 30, 2012 8:56 pm

RE: Modding Assistance

Post by TomFrame »

The first problem I had was:

More bias values than races at line 12 (this means that the game can't find enough races)
The actual problem was caused by me only having the ADDED race in the races folder.
Fixing the problem was easy - copy&paste all the original races to the races folder then it is fixed.

The second problem:

Could not read bias value 24 at line 12 in bias(caused the game to look for a 24th race)
This was caused by me putting a "," behind each number (THE FINAL RACE SHOULD NOT HAVE A ",")
Fixing it was a mere deletion of those symbols.

So- hope me finding out the problem with some help will help others even faster.
Every man is a prisoner of his own mind
-me
telriche
Posts: 3
Joined: Tue Apr 24, 2012 1:52 pm

RE: Modding Assistance

Post by telriche »

I'm having a different problem with my bias file. When loading any theme except default, I get an error at line 33. It does not expand upon what the error is.
Post Reply

Return to “Design and Modding”