Population limit

User avatar
Anakey
- Honorable Old Guard -
Posts: 115
Joined: Sat Jun 21, 2008 16:57 pm

Re: population limit

Post by Anakey »

i guess this shows how complex the AC is and also why it was promoted so much
Image

Thanks to Henry for making the animation
User avatar
Adder
- Honorable Old Guard -
Posts: 85
Joined: Thu Oct 09, 2008 18:16 pm
Location: München
Contact:

Re: population limit

Post by Adder »

I changed the code if you look, because in:

Code: Select all

iRealMaxUnits = pxPopNode^.GetValueI("Max",66);
The 66 really does nothing if the value Population.Max is set somewhere else, for example in the map.
And you also need to change it in the other file you found which contains how many per level you can have.
Image
User avatar
Adder
- Honorable Old Guard -
Posts: 85
Joined: Thu Oct 09, 2008 18:16 pm
Location: München
Contact:

Re: Population limit

Post by Adder »

Here is what I tried. I didn't work, but I found some more places to change.
Attachments
popmod.zip
(39.76 KiB) Downloaded 509 times
Image
User avatar
Kharg
- Honorable Old Guard -
Posts: 406
Joined: Mon Jan 12, 2009 14:37 pm
Location: Italy - Sicily - Palermo
Contact:

Re: Population limit

Post by Kharg »

Thank you i will take a look :P
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓
• Creator of the: • Current Projects:
  • SEASMOD
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓

Code: Select all

Kharg: I'll go to Nottingham on Monday for a 15 days trip! :D
AyCe: Make some screenshots!
demetrius
Posts: 30
Joined: Wed Apr 29, 2009 8:47 am

Re: Population limit

Post by demetrius »

did you manage to increase pop limit??i give up.
User avatar
Kharg
- Honorable Old Guard -
Posts: 406
Joined: Mon Jan 12, 2009 14:37 pm
Location: Italy - Sicily - Palermo
Contact:

Re: Population limit

Post by Kharg »

demetrius wrote:did you manage to increase pop limit??i give up.
no, sorry i don't have much time but you can try this:

D:\igre\paraworld\Data\Base\Scripts\Server\misc-RequirementsMgr




var array int aiMaxUnits;
aiMaxUnits.AddEntry(50);
aiMaxUnits.AddEntry(30);
aiMaxUnits.AddEntry(16);
aiMaxUnits.AddEntry(6);
aiMaxUnits.AddEntry(2);

var int iRealMaxUnits = 104;
if(pxCharsNode!=null)then
var ^CPropDB.CNode pxPopNode = pxCharsNode^.Get("Population");
if(pxPopNode!=null)then
iRealMaxUnits = pxPopNode^.GetValueI("Max",104);

and

D:\igre\paraworld\Data\Base\Scripts\Server\misc-player

var ^CLevelInfoHost pxLevelInfo=^(CSrvWrap.GetCurLevel()^.GetLevelInfo());
var ^CPropDB pxGenericDB=^(pxLevelInfo^.GetGenericData());
var ^CPropDB.CNode pxCharsNode = ^((pxGenericDB^)["PlayerSettings/Player_"+GetID().ToString()+"/Restrictions/Chars"]);

var int iRealMaxUnits = 104;
if(pxCharsNode!=null)then
var ^CPropDB.CNode pxPopNode = pxCharsNode^.Get("Population");
if(pxPopNode!=null)then
iRealMaxUnits = pxPopNode^.GetValueI("Max",104);
endif;
endif;

this should work and of course you should modify value in map too ^^
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓
• Creator of the: • Current Projects:
  • SEASMOD
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓

Code: Select all

Kharg: I'll go to Nottingham on Monday for a 15 days trip! :D
AyCe: Make some screenshots!
demetrius
Posts: 30
Joined: Wed Apr 29, 2009 8:47 am

Re: Population limit

Post by demetrius »

i did as you said of course nothing changed,52 is still max,

1why regular maps are opens so slow i never open any regular map with sdk editor??

i download this map

http://forum.para-welt.com/viewtopic.php?f=76&t=1229

and open it easily
options-player info

Image
chars-i cant go above this numbers 25,15,8,3,1 and population mx 52.

have to find where this number can be changed??

is it posible to put camera more higher to see more battlefieald??
User avatar
Kharg
- Honorable Old Guard -
Posts: 406
Joined: Mon Jan 12, 2009 14:37 pm
Location: Italy - Sicily - Palermo
Contact:

Re: Population limit

Post by Kharg »

Original maps are protected you can't open them :( but there some some unprotected :D and uhm we can try to take Map editor camera ^_^

About the units limit we must modify more values :P
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓
• Creator of the: • Current Projects:
  • SEASMOD
▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓▒▒▓

Code: Select all

Kharg: I'll go to Nottingham on Monday for a 15 days trip! :D
AyCe: Make some screenshots!
demetrius
Posts: 30
Joined: Wed Apr 29, 2009 8:47 am

Re: Population limit

Post by demetrius »

any ideas which one and were???
Post Reply

Return to “English”