drsingh Posted March 16, 2017 Share Posted March 16, 2017 How can I modify which building becomes available in which phase. And build limits for the building. Also is it possible to limit a building according to number of Civic centre? Link to comment Share on other sites More sharing options...
Imarok Posted March 16, 2017 Share Posted March 16, 2017 There is a file called player.xml: https://github.com/0ad/0ad/blob/48a50668e4296c653d8d02e108038d6714b5dcf3/binaries/data/mods/public/simulation/templates/special/player.xml 2 Link to comment Share on other sites More sharing options...
drsingh Posted March 16, 2017 Author Share Posted March 16, 2017 thanks!! I found it 1 Link to comment Share on other sites More sharing options...
fatherbushido Posted March 17, 2017 Share Posted March 17, 2017 You need also to add a TrainingRestrictions / BuildRestrictions Category to the limited unit (The one you will use in EntityLimits). That http://svn.wildfiregames.com/entity-docs/ will help you. (not up to date). 2 Link to comment Share on other sites More sharing options...
drsingh Posted March 17, 2017 Author Share Posted March 17, 2017 Thanks.. That page is very helpful. I got most of the stuff worked out. But I have run into a problem trying to add a tech eg phase_town as a Limit changer. There was only example of it being used as limit remover. Also I want to know how to add a way to count the number of CC owned by a player. To use it as Limit changer. Link to comment Share on other sites More sharing options...
fatherbushido Posted March 17, 2017 Share Posted March 17, 2017 Yes currently, Class are used for changed limit. Techs are used as limit remover. In fact, using a tech as a limit changer could (perhaps) be replaced by enabling techs to modify entity limits perhaps. Currently it's not yet implemented iirc. See http://trac.wildfiregames.com/wiki/TechModifications (and also http://trac.wildfiregames.com/wiki/Technology_Templates and http://trac.wildfiregames.com/wiki/Aura_Templates) 1 Link to comment Share on other sites More sharing options...
drsingh Posted March 17, 2017 Author Share Posted March 17, 2017 Has this been tried.. I tried using the modification- { "value": "EntityLimits/Limits/House", "add": 8, "affects": "Player" } but to no effect. Also tried variations with trying to use- Limitchangers. Is there a way to implement this ? Link to comment Share on other sites More sharing options...
fatherbushido Posted March 17, 2017 Share Posted March 17, 2017 Yes, but that should be done in the JS code (carefully :p). Link to comment Share on other sites More sharing options...
drsingh Posted March 17, 2017 Author Share Posted March 17, 2017 { "value": "BuildRestrictions/Category", "replace": HouseT, "affects": "House" } Alright this type of code also doesn't work. But would be good to implement in future. Thanks for help. 1 Link to comment Share on other sites More sharing options...
Servo Posted April 24, 2017 Share Posted April 24, 2017 On 3/16/2017 at 6:42 PM, Imarok said: There is a file called player.xml: https://github.com/0ad/0ad/blob/48a50668e4296c653d8d02e108038d6714b5dcf3/binaries/data/mods/public/simulation/templates/special/player.xml If I want to limit defense tower numbers to 5 all I have to do is change the number from 30 to 5 for example? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now