Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

manpower production mysteriously through the roof

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> WarPlan >> MODS and Scenarios >> manpower production mysteriously through the roof Page: [1]
Login
Message << Older Topic   Newer Topic >>
manpower production mysteriously through the roof - 7/12/2020 4:04:28 PM   
Nachtmahr667

 

Posts: 24
Joined: 11/1/2019
Status: offline
Hello dear MOD forum members,

I am trying to "create" new European minors countries in the editor (I just rename and edit the values of Asian minors countries, lol), but I have encountered a problem: Sometimes I set the manpower production value at e.g. "6", but ingame it's turned into something ludicrous, like "120". I have tried to compare what I have done differently from countries where everything works fine, but I couldn't find any differences. Does anybody have any idea what the reason for this mess-up could be?

Thanks!^^
Post #: 1
RE: manpower production mysteriously through the roof - 7/12/2020 7:04:49 PM   
AlvaroSousa


Posts: 9123
Joined: 7/29/2013
Status: offline
120 per turn?

You got to settings one which is how many they got four turn and one which is how many they currently have in their pool.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to Nachtmahr667)
Post #: 2
RE: manpower production mysteriously through the roof - 7/13/2020 3:42:41 AM   
Nachtmahr667

 

Posts: 24
Joined: 11/1/2019
Status: offline
Yes, 120 per turn.
I'll upload screenshots.




Attachment (1)

(in reply to AlvaroSousa)
Post #: 3
RE: manpower production mysteriously through the roof - 7/13/2020 3:43:15 AM   
Nachtmahr667

 

Posts: 24
Joined: 11/1/2019
Status: offline
ingame




Attachment (1)

(in reply to Nachtmahr667)
Post #: 4
RE: manpower production mysteriously through the roof - 7/13/2020 12:29:52 PM   
AlvaroSousa


Posts: 9123
Joined: 7/29/2013
Status: offline
Why does your country have no morale? It needs some locations with morale and production to calculate the manpower production.

Could be because you have none the formula gets all whacko. I gotta check.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to Nachtmahr667)
Post #: 5
RE: manpower production mysteriously through the roof - 7/13/2020 12:51:30 PM   
Nachtmahr667

 

Posts: 24
Joined: 11/1/2019
Status: offline

quote:

ORIGINAL: Alvaro Sousa

Why does your country have no morale?


I wanted to create a sort of Vichy Poland, so the country starts out with no territory, like Vichy France.

quote:

ORIGINAL: Alvaro Sousa

I gotta check.


Thanks!^^

(in reply to AlvaroSousa)
Post #: 6
RE: manpower production mysteriously through the roof - 7/13/2020 3:12:13 PM   
AlvaroSousa


Posts: 9123
Joined: 7/29/2013
Status: offline
I think you might be able to do this.

unlock the country making it active. Make it an alliance. Place the unit on the map. Now force the country to surrender. It should keep the unit on the map. But now that unit won't get reinforced.

So it will show up surrendered with their unit on the map. I think that will work. The code is dynamic in weird ways.

When I did my mod for SC2 I got real creative on using the logic of the code.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to Nachtmahr667)
Post #: 7
RE: manpower production mysteriously through the roof - 7/14/2020 6:42:27 PM   
AlvaroSousa


Posts: 9123
Joined: 7/29/2013
Status: offline
These are the two lines of code that determine manpower

c = country ID
manpower = what they currently have stockpiled

Game.M.country[c].manpower += ((Game.M.country[c].manpowerProduction * Game.M.country[c].politics.moral) / Math.Max(1, Game.M.country[c].politics.maxMoral));


In this case it's (6 * 0) / 1 = 0 manpower.


This makes sure you don't go over the limit.
Game.M.country[c].manpower = Math.Min(Game.M.country[c].manpower, Game.M.country[c].maxManpower);


This might be some float bizarre division error.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to AlvaroSousa)
Post #: 8
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> WarPlan >> MODS and Scenarios >> manpower production mysteriously through the roof Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219