If anyone has any ideas for features that you would like included in the Lua Scenario Template, please ask for them here.
My reason for asking now is that I'd like to work on the documentation/how to program guide for the template, and I'd like the the template to be "finished" (for lack of a better word). When I've tried to document before, the template has changed rendering some work obsolete, so I just stopped. I don't need the template to be "completed" in the sense that I'll only ever make bugfixes, but I want it to be in a state where I can be confident that large portions of documentation won't be invalidated by future changes.
To this end, I would like to make a list of features to build into the template in the near future. If there is some feature (or features) that you want in the template, please let me know. If you're not sure if a feature is in the template, ask anyway. For those of you using the template already, if you think something is confusing or poorly organised, please say so (this is likely to be especially helpful).
To Do Before Documenting
Individual "cosmic" parameters
For example, different units can have different road/rail bonuses. (changeRules module makes this more feasible than before.)
Land/Air Cargo
Straightforward system for Land/Air units to carry cargo. Will use onEnterTile execution point.
Diplomacy Module Re-Work
I will want to look over the diplomacy module, especially the code for static treaties, since it seems to cause some confusion.
City Famine Detection
Already Exists in Template
Useful to do, Minimal Foreseen Documentation Impact
Help Key Module Rebuild
Update the help key module with better formatting, information about tile production, and visible enemy units on a square.
Multiple Use Airlift/Transporter
Add a simple setting (and the code behind it) to allow airports/transporters to be used more than once in a turn, or to forbid their use entirely.
Not Sure If I Want to Implement
(Feel free to make the case in the comments.)
Forbid Tile Entry
This would require creating a new execution point, and undoing any attempted moves into a tile before any other event happens (especially onEnterTile). It is unclear how the AI would handle such code either. I'm inclined to wait for TNO's return and ask for the game to be changed to forbid entry in the first place instead of implementing this.
Notes for Documentation Work
Working examples of functions/code are helpful.
My reason for asking now is that I'd like to work on the documentation/how to program guide for the template, and I'd like the the template to be "finished" (for lack of a better word). When I've tried to document before, the template has changed rendering some work obsolete, so I just stopped. I don't need the template to be "completed" in the sense that I'll only ever make bugfixes, but I want it to be in a state where I can be confident that large portions of documentation won't be invalidated by future changes.
To this end, I would like to make a list of features to build into the template in the near future. If there is some feature (or features) that you want in the template, please let me know. If you're not sure if a feature is in the template, ask anyway. For those of you using the template already, if you think something is confusing or poorly organised, please say so (this is likely to be especially helpful).
To Do Before Documenting
Individual "cosmic" parameters
For example, different units can have different road/rail bonuses. (changeRules module makes this more feasible than before.)
Land/Air Cargo
Straightforward system for Land/Air units to carry cargo. Will use onEnterTile execution point.
Diplomacy Module Re-Work
I will want to look over the diplomacy module, especially the code for static treaties, since it seems to cause some confusion.
City Famine Detection
Already Exists in Template
Useful to do, Minimal Foreseen Documentation Impact
Help Key Module Rebuild
Update the help key module with better formatting, information about tile production, and visible enemy units on a square.
Multiple Use Airlift/Transporter
Add a simple setting (and the code behind it) to allow airports/transporters to be used more than once in a turn, or to forbid their use entirely.
Not Sure If I Want to Implement
(Feel free to make the case in the comments.)
Forbid Tile Entry
This would require creating a new execution point, and undoing any attempted moves into a tile before any other event happens (especially onEnterTile). It is unclear how the AI would handle such code either. I'm inclined to wait for TNO's return and ask for the game to be changed to forbid entry in the first place instead of implementing this.
Notes for Documentation Work
Working examples of functions/code are helpful.
Last edited: