1.5.1 Disband manpower bug? (Full Version)

All Forums >> [Current Games From Matrix.] >> [World War I] >> Commander - The Great War >> Tech Support



Message


jrone -> 1.5.1 Disband manpower bug? (8/4/2014 4:14:19 PM)

Searched forums but did not find anything on this so maybe it is intended.
Anyways if you disband a unit Mp is calculated using .costPP as base (see code below).
For exemple if Austria disbands their BB they get 124 Mp. If you disband a garrison you get 10 Mp back etc.



function GetDisbandRefund(unit)
local PPrefund
local MPrefund
if unit.type ~= Unit.NAVAL then
if unit.hex.originalFaction.alliance.id == unit.faction.alliance.id then
if unit.hex.originalFaction.id == unit.faction.id then
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
else
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 25 / 10000)
end
else
PPrefund = 0
end
if unit.hex.originalFaction.alliance.id == unit.faction.alliance.id then
if unit.hex.originalFaction.id == unit.faction.id then
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 100 / 10000)
else
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
end
else
MPrefund = 0
end
else
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 100 / 10000)

return PPrefund, MPrefund
end




Vyper -> RE: 1.5.1 Disband manpower bug? (8/4/2014 7:34:44 PM)

I don't think getting MP back from disbanding is currently working. I actually got through my first single player campaign this weekend, and in the end game the CP powers started to disband the massive armies I had returning from Russia....and 0 MP increases (Except for a very small seasonal increase in MP, which I'm guessing is just a part of the game).

Seems like bad bait though...doesn't the game messages say disbanding a BB flotilla cost 30% National Morale?




jrone -> RE: 1.5.1 Disband manpower bug? (8/4/2014 8:05:48 PM)

It is working but...
If your unit is inside its original country borders you get 100% refund of MP and 50 % of PP.
If your unit is inside orginal alliance borders but outisde its own country you get 50% refund of MP and 25 % of PP.
Any other case and you get 0.

Naval units don't have these restrictions they just need to be in a port and always yield 100% of MP and 50% of PP.

The bug lets you trade PP for manpower if you wish though. You can build artillery for 50 PP and 5 MP and disband it for 25 PP and 50 MP as long as it stays inside its original country border. Or build a submarine for 22 PP and 1 MP and disband it for 11 PP and 22 MP. I agree that disbanding the BB is not a smart move though [;)] .




kirk23 -> RE: 1.5.1 Disband manpower bug? (8/4/2014 8:07:21 PM)

This has been rectified in the next Game Play patch I'm working on now cheers.when it should have been returning MP it has been returning addition PP.[;)]




jrone -> RE: 1.5.1 Disband manpower bug? (8/4/2014 8:11:46 PM)

Thanks, good to know.
Though it is returning MP and not extra PP. Just alot of extra MP [:)].




kirk23 -> RE: 1.5.1 Disband manpower bug? (8/4/2014 8:17:36 PM)

The disband problem was discussed in this thread a couple of weeks back,you can read about it here.[:)]

http://www.matrixgames.com/forums/tm.asp?m=3659671




jrone -> RE: 1.5.1 Disband manpower bug? (8/4/2014 8:22:03 PM)

Oh sorry I must have missed that thread somehow when I did a search.
Nevermind then nothing to see here [8|].




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.953003