some questions about ruleset development, some specific to the master branch of freeciv
Posted: Mon Jul 11, 2022 6:44 pm
i am developing a ruleset, as i have specific needs to my ruleset and i am planning to contribute code i am doing so on the master branch. i found and am expecting some problems that there may be solutions to and i have a few questions.
firstly my ruleset has a few tech trees but none of them are available to all nations but there are somethings i want to make available to all nations through research, in the case of things like governments for which i can't have multiple requirement vectors i have decided to create a unresearchable tech which is given to a nation through scripting when they get any of a list of techs. is there a better way? preferably one which doesn't use a limited ruleset resource, i thought of some alternatives but they all used something which has a limit lower than 250 of techs.
What is the parser.lua file for? Is it related to the luadata file? what are the planned use cases for a luadata file?
is there a limit to the number of effects, if yes how many? and if not, could we make techs also not have a limit?
the user effects are attached to what? according to the lua reference page on the wiki it is possible to acquire effect values for the world, for a player and for a city. Does that mean that tile or units requirements user effects are useless?if not, how do i use them?
regarding lua which builtins are available? i would like a list of all of them if possible.
how do i split lua code? if i want to have multiple files for lua scripting how would i go about doing that?
how can i control how often a extra appears if it isn't a resource?
firstly my ruleset has a few tech trees but none of them are available to all nations but there are somethings i want to make available to all nations through research, in the case of things like governments for which i can't have multiple requirement vectors i have decided to create a unresearchable tech which is given to a nation through scripting when they get any of a list of techs. is there a better way? preferably one which doesn't use a limited ruleset resource, i thought of some alternatives but they all used something which has a limit lower than 250 of techs.
What is the parser.lua file for? Is it related to the luadata file? what are the planned use cases for a luadata file?
is there a limit to the number of effects, if yes how many? and if not, could we make techs also not have a limit?
the user effects are attached to what? according to the lua reference page on the wiki it is possible to acquire effect values for the world, for a player and for a city. Does that mean that tile or units requirements user effects are useless?if not, how do i use them?
regarding lua which builtins are available? i would like a list of all of them if possible.
how do i split lua code? if i want to have multiple files for lua scripting how would i go about doing that?
how can i control how often a extra appears if it isn't a resource?