Seite 1 von 1
Number of dwars - help please
Verfasst: Sa 30. Nov 2013, 12:49
von sedygrizly
Hello. Greetings from Czech republic
.
Ive returned to wiggles after some time, and i need help with one problem. I forgot and i cant found where to edit max number of dwarfs. Ive already install some mode, and im really happy with it, number of dwarfs is last thing which makes game bad for me. Can you please help me with this? Editing scripts is quite easy, but i cant speak german at all, so no chance for me
. Ill be very very happy for answer.
Also if somebody answer.. do i need to restart current game and start from beginning?
Re: Number of dwars - help please
Verfasst: Sa 30. Nov 2013, 15:55
von Arthur
Hi,
can't remember, that someone posted about the max. dwarfs before.
I searched through the tcl-file but couldn't find any max-cap.
Do you have male and female dwarfs in sparetime at the same moment?
greets Arthur
Re: Number of dwars - help please
Verfasst: So 1. Dez 2013, 11:51
von sedygrizly
Yes, of course... In normal game number of dwarfs hardly reach 20...but i saw some video in youtube with many many dwars, and before few years i found this change somewhere and i played with 40-50 dwarfs. But totally forgot how to do it... I hoped this is known script change... Nevermind, dont waste much time for searching, i still hope somebody in community know this..
Re: Number of dwars - help please
Verfasst: Do 4. Feb 2016, 04:01
von HSB66691
Just read that you can change it in z_spare_main from 22 to another number. Tried that and will see if it works.
Re: Number of dwars - help please
Verfasst: So 3. Apr 2016, 12:25
von cech12
Hey!
You can find a way to change the number of dwarfs in this post:
viewtopic.php?f=2&t=207 (in german)
For short:
You have to open the file
\Data\Scripts\classes\zwerg\z_spare_main.tcl and search the lines (nearly at line 850):
Code: Alles auswählen
proc sparetime_get_popsoll {civ} {
if {$civ<0.15} {
return [expr {7.0+$civ*20.0}]
} elseif {$civ<0.4} {
return [expr {5.2+$civ*32.0}]
} else {
return [hmin [expr {10.0+$civ*20.0}] 22.0]
}
}
change them to:
Code: Alles auswählen
proc sparetime_get_popsoll {civ} {
if {$civ<0.15} {
return [expr {7.0+$civ*20.0}]
} elseif {$civ<0.4} {
return [expr {5.2+$civ*32.0}]
} else {
set max_population 50.0
return [hmin [expr {(54.0 - 2.0*max_population)+$civ*(5*max_population - 90)}] max_population]
}
}
Now the number of dwarfs is 50. You can change the number of dwarf easily, if you change the number at
set max_population 50.0.
You can also use the GameSettings-Mod of the DiggelsModManager (
GitHub,
Forum (german))
I hope this helps you!
Chris