Logo Platform
logo amplifiers simplified

Modding Player Limits

Reply
Copied to clipboard!
10 years ago
Jan 6, 2015, 12:49:53 AM
Hey all.



I would like to be able to do two things.

-Play with the full 8 players on a small map.

-Play with more then 8 players on larger maps.



Any ideas where the lines to mod are?



The first one should be easy enough by changing/removing current limits, the second one might be harder.



Some other things i want to try:

-Disable production (set industry to zero and stop quick-build) when city on rebellion.

---- Any idea on where the quick build costs are??? What is the variable name?



-Change Expansion Approval to be a formula instead of flat rate. I want the formula to be calculated off the number of cities the user haves. IE: Will have no expansion approval for first couple cities, but it grows non-linearly afterwards.

--- What is the variable name for city count?





-Stop units from getting hurt after fortification is gone.

--- Any ideas where to look to edit?

-Increase empire wide penalties for expansion (you take over a base, entire empire becomes slightly less happy).

--- Any ideas where to look to edit?



Edit:

I would also like to edit the roads so that they actually work. I cant seem to find this though...

Where is TechnologyRoadSpeedBonus1 defined so i can edit it?
0Send private message
10 years ago
Jan 6, 2015, 4:28:57 AM
I would like most of these too. Off the top of my head, PathfindingRules.xml has

[CODE]



[/CODE]



Not sure if that works as I haven't edited it.
0Send private message
10 years ago
Jan 6, 2015, 5:17:00 AM
Thanks Elucidus.



I think that one works (not sure). I was more interested in the one modified when the technology Endless Mechanisms was used. It is supposed to make movement on roads 50% cheaper (on top of the original road that you posted)... but it actually increases it.
0Send private message
10 years ago
Jan 6, 2015, 4:51:01 PM
Continuing on about the roads, here is what ive found so far.

Inside DepartmentOfScience+Constructibles[Era4Technology]:

[code]















$Property(EmpireTypeMajor/ClassResearch:TechnologyCost)* $Property(EmpireTypeMajor/ClassResearch:Era4CostMultiplier)

EmpireTypeMajor/ClassResearch,TechnologyEra4



[/code]



and... I think this is where the value is edited in SimulationDescriptiors[Technology]:



[code]









TargetProperty="CostIncreaseFromEra"/>









[/code]

edit: on second thought this one doesn't look right so maybe here?



[code]



[/code]





But where is this applied? Its not clear. Im not sure where to track it next.
0Send private message
10 years ago
Jan 7, 2015, 4:44:10 AM
I figured out the roads to some degree.





Another question. I want to have the garrison affect happiness. If there is not 2 units in garrison the city is unhappy. As units in garrison increase above 2, a positive net approval is achieved.



[code]





































[/code]



So for example in the code before, i want to do very similar things to what is affecting the fortification regen. Can I use the InGarrisonRegenModifier and have it apply to satisfaction? Where do i find classcity? I assume i want a different path to modify?
0Send private message
10 years ago
Jan 7, 2015, 6:35:50 AM
Caotico09 wrote:
I figured out the roads to some degree.





Another question. I want to have the garrison affect happiness. If there is not 2 units in garrison the city is unhappy. As units in garrison increase above 2, a positive net approval is achieved.



[code]









Edit: Scratch that. See this first line here?

[CODE]



[/CODE]



Adding the second line under it adds 10 approval per garrison.



Try creating a new variable like unitslotcount - 2 instead of plain unitslotcount, that should do the trick.
0Send private message
0Send private message
10 years ago
Jan 8, 2015, 4:32:38 AM
The player restrictions for each map size are at the top of the WorldGenerator/WorldGeneratorOptionDefinitions.xml file. The variable for the number of players is NumberOfMajorFactions, and is defined in Options/GameOptionDefinitions.xml.



I've played with 8 players on smaller maps than tiny, and it works. I haven't tried above 8 players yet though, on any size.
0Send private message
10 years ago
Jan 8, 2015, 4:42:55 AM
mindthirst wrote:
The player restrictions for each map size are at the top of the WorldGenerator/WorldGeneratorOptionDefinitions.xml file. The variable for the number of players is NumberOfMajorFactions, and is defined in Options/GameOptionDefinitions.xml.



I've played with 8 players on smaller maps than tiny, and it works. I haven't tried above 8 players yet though, on any size.




Thanks mindthirst. I really appreciate the help. Awesome advice.
0Send private message
10 years ago
Jan 8, 2015, 6:48:52 AM
Samanie:



Im really having some issues.



-Issue #1:

I defined a variable called CMGuCount; i want to assign it the garrison unit count, do some operations to it, then apply it to 'Approval'.



This works, so i know i have defined CMGuCount correctly:

[code]



[/code]



However, this does nothing, and i dont understand why it wouldnt work.:

[code]





[/code]





-Issue #2

Similarly, i want to use the Population of each city as a modifier. However, something like this doesnt work:

[code]



[/code]



I saw it defined it the ClassCity earlier in the class section....



What am i doing wrong with these path's?
0Send private message
10 years ago
Jan 9, 2015, 3:56:26 PM
Everything looks ok to me. You tried adding priorities to them, so that they are calculated in the correct order?
0Send private message
10 years ago
Jan 10, 2015, 12:04:15 AM
I hadnt tried priorities... but i added them and it didnt help.

Here is the latest, definitions and all. Nothing happens.



[code]







[/code]

and

[code]







[/code]
0Send private message
0Send private message
10 years ago
Jan 12, 2015, 7:22:49 PM
Dude, this xml thing is a mess. I tried to make WW faction to move through forests with no penalty, i was going nuts. Some things seem to not work for no reason.







And the "Left" should be "value" here i think.
0Send private message
10 years ago
Jan 13, 2015, 12:47:59 AM
Samanie wrote:
Dude, this xml thing is a mess. I tried to make WW faction to move through forests with no penalty, i was going nuts. Some things seem to not work for no reason.







And the "Left" should be "value" here i think.




I know. This XML is killing me.



Thats so weird. That sorta-works (after switching the first line to multiplication as well...). But i loaded up some of my previous attempts.. they use the 'value'.

I feel dumb for not catching the "left" earlier.... but i had tried value before and it didnt work without any other major changes that i can see.

So i dont know whats different now...





Thanks for the help!





Edit: Interestingly enough the whether it works or not seems to depend on how i use it. Before i was adding the lines into that place where you showed me. Moving them into ClassCity seems to work.
0Send private message
?

Click here to login

Reply
Comment