Number of dwars - help please

Feel free to ask any question.
We hope that we can help you, as we are a german-speaking community.
Antworten
sedygrizly
Beiträge: 2
Registriert: Sa 30. Nov 2013, 12:42

Number of dwars - help please

Beitrag 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?
Benutzeravatar
Arthur
Zwerg
Zwerg
Beiträge: 197
Registriert: So 1. Mai 2011, 16:10

Re: Number of dwars - help please

Beitrag 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
sedygrizly
Beiträge: 2
Registriert: Sa 30. Nov 2013, 12:42

Re: Number of dwars - help please

Beitrag 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.. :?
HSB66691
Raupe
Raupe
Beiträge: 34
Registriert: Mi 3. Feb 2016, 18:31
Wohnort: Neumünster
Kontaktdaten:

Re: Number of dwars - help please

Beitrag 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.
Benutzeravatar
cech12
Zwerg
Zwerg
Beiträge: 242
Registriert: Di 9. Jun 2015, 12:18
Kontaktdaten:

Re: Number of dwars - help please

Beitrag 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! :D

Chris
Antworten