Problem running MOD using modified rules.js has no effect

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
REZ
Trained
Trained
Posts: 93
Joined: 16 Dec 2009, 11:49
Location: Pattensen, Germany

Problem running MOD using modified rules.js has no effect

Post by REZ »

Hello,

I do want to limit the amount of certain structures, that each player can build.
I do use WZ 3.1
So I did inclunde the rules.js file for skirmish games in the following folders inside my test07 MOD-folder:
( I took for comparison the Enhanced_SitRep_Mod to locate it at the right folderstructure and place)

Z:\WZ Modding\...\test07\multiplay\skirmish

Then I did change one line (for testpurposes I chose the research facilities for 5 to 2)

Code: Select all

setStructureLimits("A0ResearchFacility", 5, playnum);
to

Code: Select all

setStructureLimits("A0ResearchFacility", 2, playnum);
I do run my MOD, but the changes do have no effect since I am allowed to build still 5 of this research facilities.

Later on I do want to limit different structures.

Does anyone might have a hint, what went wrong, or what I do have to change?

Have a nice day,

C.U. R.E.Z.
Last edited by REZ on 09 Sep 2013, 23:56, edited 2 times in total.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Problem running MOD using modified rules.js has no effec

Post by NoQ »

Afaik in 3.1 structure limits are still controlled through multilim.slo and multilim.vlo.
REZ
Trained
Trained
Posts: 93
Joined: 16 Dec 2009, 11:49
Location: Pattensen, Germany

Re: Problem running MOD using modified rules.js has no effec

Post by REZ »

Hello NoQ,

thank You.
That helps me. :-) :-) :-)

C.U. R.E.Z.