Map Database  •  FAQ  •  RSS  •  Login

How Does Serfs Per 10 Houses Work?

<<

Vatrix

User avatar

Council Member

Posts: 410

Joined: 19 Apr 2013, 20:30

KaM Skill Level: Veteran

Location: Czech Republic

Post 16 Nov 2014, 14:07

How Does Serfs Per 10 Houses Work?

When I was fixing TSK campaign, I found this:

Nevolníci/10 domů = Serfs per 10 Houses
ImageImage

How can I find out how many serfs will AI have?
I fixed The Shattered Kingdom and The Peasants Rebellion here!
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 16 Nov 2014, 14:45

Re: How Does Serfs Per 10 Houses Work?

So the AI has 12 houses. For every 10 houses, you've said that the AI will have 20 serfs. So for every 1 house they will have 2 serfs. Therefore for 12 houses they have 2*12 = 24 serfs.

It would probably be clearer if we called it: "Serfs per house" and made the range 0.1 to 5.0. Just divide the number by 10 to know how many serfs there will be per house.
<<

pawel95

Castle Guard Swordsman

Posts: 1912

Joined: 03 Oct 2008, 22:00

KaM Skill Level: Skilled

Location: "Pawel95" on Youtube.com

Post 19 Nov 2014, 13:05

Re: How Does Serfs Per 10 Houses Work?

I see you are using the ingame editor to fix the campaigns? I forgot totaly, but I used Lewin´s 0.3 Mission editor only. If I´m correct, some lines will be ignored by newer (Lewins or INgame) Editors and deleted?!
<<

Vatrix

User avatar

Council Member

Posts: 410

Joined: 19 Apr 2013, 20:30

KaM Skill Level: Veteran

Location: Czech Republic

Post 19 Nov 2014, 15:51

Re: How Does Serfs Per 10 Houses Work?

I see you are using the ingame editor to fix the campaigns? I forgot totaly, but I used Lewin´s 0.3 Mission editor only. If I´m correct, some lines will be ignored by newer (Lewins or INgame) Editors and deleted?!
I don't know how it exactly works. Version 0.3 is just a text editor for it I think, I use it for changing BGR colors in Remake. Newer versions change the mission code somehow. (For example instead of market there's inn)

I haven't found any problems using in-game editor, maybe I just didn't look enough for minor changes...
I fixed The Shattered Kingdom and The Peasants Rebellion here!
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 20 Nov 2014, 10:42

Re: How Does Serfs Per 10 Houses Work?

I see you are using the ingame editor to fix the campaigns? I forgot totaly, but I used Lewin´s 0.3 Mission editor only. If I´m correct, some lines will be ignored by newer (Lewins or INgame) Editors and deleted?!
I don't know how it exactly works. Version 0.3 is just a text editor for it I think, I use it for changing BGR colors in Remake. Newer versions change the mission code somehow. (For example instead of market there's inn)

I haven't found any problems using in-game editor, maybe I just didn't look enough for minor changes...
It's fine to use the in-game editor for editing original KaM campaign scripts as long as the mission is thoroughly tested. Theoretically it shouldn't cause any changes, but occasionally re-ordering can cause unexpected results like different AI behavior. Testing will spot issues like that.
<<

Ben

User avatar

Former Site Admin

Posts: 3814

Joined: 08 Jan 2009, 23:00

Location: California - Pacific Time (UTC -8/-7 Summer Time)

Post 20 Nov 2014, 21:31

Re: How Does Serfs Per 10 Houses Work?

As far as I know, it's been a while since Pawel worked on this missions anyway, so the Remake, itself, has changed. In my opinion, the changes in the Remake are more relevant than nitpicking about what changes the ingame editor would make.
I used to spam this forum so much...
<<

Vatrix

User avatar

Council Member

Posts: 410

Joined: 19 Apr 2013, 20:30

KaM Skill Level: Veteran

Location: Czech Republic

Post 21 Nov 2014, 10:20

Re: How Does Serfs Per 10 Houses Work?

I can also redo whole missions, so I will know exactly all scripts.
I fixed The Shattered Kingdom and The Peasants Rebellion here!
<<

Vatrix

User avatar

Council Member

Posts: 410

Joined: 19 Apr 2013, 20:30

KaM Skill Level: Veteran

Location: Czech Republic

Post 21 Nov 2014, 21:24

Re: How Does Serfs Per 10 Houses Work?

Another problem, everytime I set serfs per 10 houses to 43 in mission 1 TSK, after saving it gets back to 50. What's the cause?
I fixed The Shattered Kingdom and The Peasants Rebellion here!
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 22 Nov 2014, 00:14

Re: How Does Serfs Per 10 Houses Work?

Another problem, everytime I set serfs per 10 houses to 43 in mission 1 TSK, after saving it gets back to 50. What's the cause?
That's because of the way it is stored underneath in KaM missions. It's actually called "Worker Factor", and it's calculated like this:
Serfs per house = 10 / Worker Factor

Obviously this makes "worker factor" a very confusing number to use (higher number = less serfs?!), and nobody would understand it. Therefore I changed it to "serfs per 10 houses" for the KaM Remake map editor because that's easy to understand. However, you don't get the same precision, so 43 rounds to 50:

Worker Factor (WF) = 10 / Serfs Per House
50 serfs per 10 houses: WF = 10 / (43 / 10) = 2.32 (rounds to 2)
43 serfs per 10 houses: WF = 10 / (50 / 10) = 2

It was probably a bad decision to make KaM Remake missions backwards compatible with KaM missions since it means we have stupid conversions like this. On the other hand it means KaM missions/campaigns can be run in KaM Remake which is nice...
<<

Ben

User avatar

Former Site Admin

Posts: 3814

Joined: 08 Jan 2009, 23:00

Location: California - Pacific Time (UTC -8/-7 Summer Time)

Post 22 Nov 2014, 18:50

Re: How Does Serfs Per 10 Houses Work?

I think it is time to make plans to ditch static scripts and have dynamic scripts work in the editor ;)
I used to spam this forum so much...
<<

Krom

User avatar

Knights Province Developer

Posts: 3281

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 22 Nov 2014, 19:21

Re: How Does Serfs Per 10 Houses Work?

Static scripts are good for static things, so they are set once on mission load and mapmaker does not need to code them in PascalScript by hand ;-)
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de

Return to “General / Questions”

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest