I didn't see a thread for this, but it might make a cool sticky? if other modders have anything they want. Don't know if Firaxis would care.. but if they don't know what we want they can't be blamed for not providing it. I realize the SDK will make a lot of stuff easier.. but it would be cool to flesh out the Python API anyway.
I'd like:
Per-city:
A python-only(not used by the rest of the game code) variable per yield type that gets added in before bonuses are calculated. This way, modders who want to add hammers to base production, food, or commerce can do so without ugly python workarounds like invisibly resetting the production numbers. As it stands, there's no visual feedback for anything we do, so if we make a change the player may get confused as to why 5 hammers got added this turn, when his total production only shows in the mouseover as 3..
A python-only variable per yield type that is a percent bonus (ie Organized Religion etc). The production mouseover could just call it Miscellaneous Bonuses or something.. it would allow modders to keep their changes more visible.
A SetYield function added to CyPlot to allow direct manipulation of a plot's output. I realize you don't want to add new data to plots so they don't take up a huge amount of memory, but you could create a linklist of Plot*, Yield override, and use an empty flag (if there is one) in the plot class. I haven't seen the codebase, so naturally that's conjecture.
Anyone else have something they want to do in Python and can't??
I'd like:
Per-city:
A python-only(not used by the rest of the game code) variable per yield type that gets added in before bonuses are calculated. This way, modders who want to add hammers to base production, food, or commerce can do so without ugly python workarounds like invisibly resetting the production numbers. As it stands, there's no visual feedback for anything we do, so if we make a change the player may get confused as to why 5 hammers got added this turn, when his total production only shows in the mouseover as 3..
A python-only variable per yield type that is a percent bonus (ie Organized Religion etc). The production mouseover could just call it Miscellaneous Bonuses or something.. it would allow modders to keep their changes more visible.
A SetYield function added to CyPlot to allow direct manipulation of a plot's output. I realize you don't want to add new data to plots so they don't take up a huge amount of memory, but you could create a linklist of Plot*, Yield override, and use an empty flag (if there is one) in the plot class. I haven't seen the codebase, so naturally that's conjecture.
Anyone else have something they want to do in Python and can't??
Comment