Corporation-States

Corporation-States

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
polyfrag
Posts: 6
Joined: 16 Aug 2012, 05:54

Corporation-States

Post by polyfrag »

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.
polyfrag
Posts: 6
Joined: 16 Aug 2012, 05:54

Re: Corporation-States

Post by polyfrag »

What's assimp?
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Corporation-States

Post by SinbadEV »

polyfrag wrote:What's assimp?
http://assimp.sourceforge.net/
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.
If you are talking within the context of a short-term game (no persistent world) than what you are talking about is conceivable.

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.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Corporation-States

Post by zwzsg »

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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Corporation-States

Post by knorke »

yes, possible to script such things.
http://springrts.com/wiki/Lua_Scripting
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Corporation-States

Post by FLOZi »

Yes quite possible. I have a pet game idea with similar notions.

Hardest thing will be animating the workers :wink:
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Corporation-States

Post by hoijui »

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.
Post Reply

Return to “Game Development”