Is this kind of game possible on Spring:
Workers are not owned by players and are completely AI controlled. They go for jobs (construction, etc.) that give them the most money. The players set how much money workers get paid at their building constructions.
So for example, I place a factory and say that workers will get $0.01 per unit labour (workers generate labour for the buildings).
After exerting a certain amount of labour, workers must 'rest' at apartment buildings (and pay for rent, set by the player).
They must also consume 'consumer goods' at Shopping Complexes (paying the player for them).
I basically want to simulate economics on the Spring engine.
Corporation-States
Moderator: Moderators
Re: Corporation-States
http://assimp.sourceforge.net/polyfrag wrote:What's assimp?
If you are talking within the context of a short-term game (no persistent world) than what you are talking about is conceivable.polyfrag wrote:Is this kind of game possible on Spring:
Workers are not owned by players and are completely AI controlled. They go for jobs (construction, etc.) that give them the most money. The players set how much money workers get paid at their building constructions.
So for example, I place a factory and say that workers will get $0.01 per unit labour (workers generate labour for the buildings).
After exerting a certain amount of labour, workers must 'rest' at apartment buildings (and pay for rent, set by the player).
They must also consume 'consumer goods' at Shopping Complexes (paying the player for them).
I basically want to simulate economics on the Spring engine.
There is a "world" player (gaia I believe it is called) that can own neutral units and everything else you've described could conceivably be handled with Lua. I'll let real developers get into the nuts and bolts but essentially... yeah, sure, why not.
Re: Corporation-States
Rather than Gaia units, I would use player owned units with Spring.SetUnitNoSelect applied to them.
It's possible, but you'll obviously have to code the unit AI yourself. Couple thousands lines of Lua sould do it.
It's possible, but you'll obviously have to code the unit AI yourself. Couple thousands lines of Lua sould do it.
Re: Corporation-States
yes, possible to script such things.
http://springrts.com/wiki/Lua_Scripting
http://springrts.com/wiki/Lua_Scripting
Re: Corporation-States
Yes quite possible. I have a pet game idea with similar notions.
Hardest thing will be animating the workers
Hardest thing will be animating the workers

Re: Corporation-States
if you are kind of doing.. "research" with this, then i woudl very much recommend to wrtie your own simulation code. it will be like .. 10k times faster then what you cna get with spring, and do all you want, and only what you want.
if yo ureally want a game, and "fancy" 3D visualization and simulation as you would get wit with spring.. then ok, use spring. but ... i really can;t see the use of it.
it's not like spring would give you real life like simulation, just a very poor approximation of it, but still it would eat most CPU cycles doing stuff that is generally very much irrelevant to an economics simulation.
as an example:
pathing could be approximated to about the same extend, what matters for your logic, in a much more CPU friendly way.
if yo ureally want a game, and "fancy" 3D visualization and simulation as you would get wit with spring.. then ok, use spring. but ... i really can;t see the use of it.
it's not like spring would give you real life like simulation, just a very poor approximation of it, but still it would eat most CPU cycles doing stuff that is generally very much irrelevant to an economics simulation.
as an example:
pathing could be approximated to about the same extend, what matters for your logic, in a much more CPU friendly way.