Errors of beginners

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
dirzi1
Posts: 4
Joined: Sun Aug 27, 2017 10:01 am
Contact:

Errors of beginners

Post by dirzi1 »

Good day, ladies and gentlemen.
The Modding Guide says, that "MOST ITEMS OPTIONAL". So, logically, if I want to add a new race, I need to place in my mod (theme) folder the following...

- /characters/MyNewRace.txt
- /designTemplates/MyNewRace/(I have just copied the humans template file so far)
- /images/units/races (2 png-files, race_22 and race_22a)
- /images/units/ships/family22 (all we need is there)
- /images/units/troops (Troop_22.png, ect.)
- /Policy/MyNewRace.txt
- /races/MyNewRace.txt
- raceBiases.txt

And that's all, as I understand?
O'kay, but I have an error "More bias values than races at line 12 file (...) raceBiases.txt". Here is a file:

Code: Select all

'#, Name,	 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22
 
  0, Ketarov,	10, 10,  0,  0,  0,  0,  0,  0,  0,  0,  5,  5,  0,  0,  0,  5,  0,  0,  0, 10,  0,  0,	 0
  1, Atuuk,	10, 10,  0,  0,  0,  0,  0,  0,  0,  0,  5,  5,  0,  0,  0,  5,  0,  0,  0, 10,  0,  0,	 0
  2, Gizurean,	 0,  0, 10, 10,-10,-10,  5,-10,  5,  5,-10,-10,-10, 10,  5,  0,-10, 10,-10,  0, 10,-10,-10
  3, Dhayut,	 0,  0, 10, 10,-10,-10,  5,-10,  5,  5,-10,-10,-10, 10,  5,  0,-10, 10,-10,  0, 10,-10,-10
  4, Human,	 0,  0,-10,-10, 10,  0,  0,  0,  0,  0,  0,  0,  0,-10,  0,  0, 10,-10, 10,  0,-10,  0, 10
  5, Quameno,	 0,  0,-10,-10,  0, 10,  0, 10,  0,  0,  0,  0, 10,-10,  0,  0,  0,-10,  0,  0,-10,  0,	 0
  6, Mortalen,	 0,  0,  5,  5,  0,  5, 10,  5, 10, 10,  0,  0,  5,  5, 10,  0,  0,  5,  0,  0,  5,  0,  0
  7, Ackdarian,	 0,  0,-10,-10,  0, 10,  0, 10,  0,  0,  0,  0, 10,-10,  0,  0,  0,-10,  0,  0,-10,  0,  0
  8, Haakonish,	 0,  0,  5,  5,  0,  5, 10,  5, 10, 10,  0,  0,  5,  5, 10,  0,  0,  5,  0,  0,  5,  0,  0
  9, Naxxilian,	 0,  0,  5,  5,  0,  5, 10,  5, 10, 10,  0,  0,  5,  5, 10,  0,  0,  5,  0,  0,  5,  0,  0
 10, Zenox,	 0,  0,-15,-10,  0,  0,  0,  0,  0,  0, 10, 10,  0,-15,  0, 10,  0,-15,  0,  0,-15,  0,  0
 11, Teekan,	 0,  0,-10,-10,  0,  0,  0,  0,  0,  0, 10, 10,  0,-10,  0, 10,  0,-10,  0,  0,-10,  0,  0
 12, Wekkarus,	 0,  0,-10,-10,  0, 10,  0, 10,  0,  0,  0,  0, 10,-10,  0,  0,  0,-10,  0,  0,-10,  0,  0
 13, Boskara,	 0,  0, 10, 10,-10,-10,  5,-10,  5,  5,-10,-10,-10, 10,  5,  0,-10, 10,-10,  0, 10,-10,-10
 14, Shandar,	 0,  0,  5,  5,  0,  5, 10,  5, 10, 10,  0,  0,  5,  5, 10,  0,  0,  5,  0,  0,  5,  0,  0
 15, Ugnari,	 0,  0,-10,-10,  0,  0,  0,  0,  0,  0, 10, 10,  0,-10,  0, 10,  0,-10,  0,  0,-10,  0,  0
 16, Kiadian,	 0,  0,-10,-10, 10,  0,  0,  0,  0,  0,  0,  0,  0,-10,  0,  0, 10,-10, 10,  0,-10,  0, 10
 17, Sluken,	 0,  0, 10, 10,-10,-10,  5,-10,  5,  5,-10,-10,-10, 10,  5,  0,-10, 10,-10,  0, 10,-10,-10
 18, Securan,	 0,  0,-10,-10, 10,  0,  0,  0,  0,  0,  0,  0,  0,-10,  0,  0, 10,-10, 10,  0,-10,  0, 10
 19, Ikkuro,	10, 10,  0,  0,  0,  0,  0,  0,  0,  0,  5,  5,  0,  0,  0,  5,  0,  0,  0, 10,  0,  0,  0
 20, Shakturi,	 0,  0, 10, 10,-10,-10,  5,-10,  5,  5,-10,-10,-10, 10,  5,  0,-10, 10,-10,  0, 10,-10,-10
 21, Mechanoid,	 0,  0,-10,-10, 10,  0,  0,  0,  0,  0,  0,  0,  0,-10,  0,  0, 10,-10, 10,  0,-10,  0, 10
 22, MyNewRace, 	 0,  0,-10,-10, 10,  0,  0,  0,  0,  0,  0,  0,  0,-10,  0,  0, 10,-10, 10,  0,-10,  0, 10

...And I do not understand at all, for Sunwell sake, what exactly is wrong in line 12 ("0, Ketarov...")!

Help me please to sort it out.
Sorry, but I'm from Mordor...
darkriot
Posts: 32
Joined: Sat Jul 05, 2014 1:56 am

RE: Errors of beginners

Post by darkriot »

If the name of your race is mynewrace than #22 should be labeled mynewrace too, not myrace
dirzi1
Posts: 4
Joined: Sun Aug 27, 2017 10:01 am
Contact:

RE: Errors of beginners

Post by dirzi1 »

ORIGINAL: darkriot

If the name of your race is mynewrace than #22 should be labeled mynewrace too, not myrace
Sorry, the misspelling; this name - MyNewRace - is for for example; the real name is quite another.
Sorry, but I'm from Mordor...
darkriot
Posts: 32
Joined: Sat Jul 05, 2014 1:56 am

RE: Errors of beginners

Post by darkriot »

Oh then that is weird because other than that it should work. Maybe try to run it through Sabrans modding tool
dirzi1
Posts: 4
Joined: Sun Aug 27, 2017 10:01 am
Contact:

RE: Errors of beginners

Post by dirzi1 »

ORIGINAL: darkriot
Oh then that is weird because other than that it should work. Maybe try to run it through Sabrans modding tool
May be... But it does not start on my computer at the moment (win 8.1)
Sorry, but I'm from Mordor...
Sabranan
Posts: 474
Joined: Wed Feb 24, 2016 4:05 pm

RE: Errors of beginners

Post by Sabranan »

The game works the same way as my tool in this regard, it'll use a mod's race folder if one is present, otherwise it'll just use the default races folder. But it is one or the other, it doesn't read from both and combine them (you wouldn't be able to release a mod that removes the default races otherwise).

From your description I'm guessing you "only" have the one race file in the mod's races folder, so it's loading your one race and getting confused at the first race bias entry for obvious reasons.

Easy fix though, just copy the default races into your mod's races folder.
dirzi1
Posts: 4
Joined: Sun Aug 27, 2017 10:01 am
Contact:

RE: Errors of beginners

Post by dirzi1 »

Easy fix though, just copy the default races into your mod's races folder.
You're right, thank You for advice.

And I'll append - the cause of the slashes was also a mistake in the coding of bonus resources ("New Modding Guide for Distant Worlds: Shadows" led me astray); I corrected the values according to the current manual and all's ok.
Sorry, but I'm from Mordor...
Post Reply

Return to “Design and Modding”