Page 1 of 1

Extension API?

Posted: Tue Aug 02, 2016 2:28 am
by I1066
Is there any extension API available? Like, for example, MEF?

Or any other API for that matter?

RE: Extension API?

Posted: Tue Aug 02, 2016 3:13 am
by wqc12345
It's all lua methods. These are made and exposed by the game developers. They are pretty useful in scripting events along with traditional lua. Lua has a rich set of libs that are part of the standard lua console or can be loaded as script actions and be used as functions in your scripts.

There are no other exposed APIs that I know of outside this.

RE: Extension API?

Posted: Tue Aug 02, 2016 4:06 am
by I1066
Yeah, I know about the LUA scripting support, but it is not really the same thing as, for example, MEF.

MEF is more for extending the game, while LUA is for scenario design.

With MEF you could, for example, allow extensions to add commands to context menus, extend/modify the AI, integrate/communicate with external services and so on.

For example, you could with MEF create an extension that adds the possibility to move weapons and other resources between bases with aircraft with appropriate loadouts.

RE: Extension API?

Posted: Tue Aug 02, 2016 6:15 am
by Dimitris
Something similar to this is being worked on the professional version (http://www.warfaresims.com/?page_id=3822). If you have a specific need please contact us in private.

Thanks!

RE: Extension API?

Posted: Sat Aug 06, 2016 2:09 pm
by hawkeye_de
So, you only make this available for government customers ? That's a pity :(

RE: Extension API?

Posted: Sat Aug 06, 2016 2:17 pm
by thewood1
What would you do with access to an SPI...just curious what ideas people had. I have seen several systems allow this, but no one ever does anything with it.

RE: Extension API?

Posted: Sat Aug 06, 2016 2:24 pm
by hawkeye_de
the topic owner has given some examples: AI, altering the game engine...
But sure, only a minority would play with that, that's true

Probably the benefits of a complete moddable game are greater when you have a very large community like Civilization ...

RE: Extension API?

Posted: Sat Aug 06, 2016 3:38 pm
by mikmykWS
We need to see value in what we're doing as every minute doing something else is stealing time from what is.

Show us value.

Thanks!

Mike

RE: Extension API?

Posted: Sat Aug 06, 2016 5:12 pm
by thewood1
But can't you do his main example today with lua?

RE: Extension API?

Posted: Sat Aug 06, 2016 5:40 pm
by hawkeye_de
you mean full control of the AI for instance ?

Now, you can't ... you would need to plug into the game/simulation loop and have full access to the object model (access to all units with 'all' of their properties)

GCBlue 2 ( unfortunately discontinued, open source now) https://github.com/gcblue/gcblue ) had such an approach(although it was not fully implemented)...you had access to the game loop via a python API...I've written a wiki page there how to attach a python debugger to the game...was quite fun...

RE: Extension API?

Posted: Sat Aug 06, 2016 5:48 pm
by hawkeye_de
ORIGINAL: mikmyk

We need to see value in what we're doing as every minute doing something else is stealing time from what is.

Show us value.

Thanks!

Mike

Mike, my initial comment was just a reflex ;)...you're right, it would be a major effort for you and I would not make much use of it, since I'm occupied with my own project.

Maybe you could think about to evolve the Lua approach: So that it is somewhat closer integrated into the game loop (not every tick of course) so that a scen designer could control more aspects of the AI during 'runtime' and not only during 'design time'

RE: Extension API?

Posted: Sat Aug 06, 2016 6:10 pm
by thewood1
"was quite fun" for both people that did it.

No, I meant moving loadouts and aircraft around.

RE: Extension API?

Posted: Sat Aug 06, 2016 6:30 pm
by mikmykWS
ORIGINAL: hawkeye_de
ORIGINAL: mikmyk

We need to see value in what we're doing as every minute doing something else is stealing time from what is.

Show us value.

Thanks!

Mike

Mike, my initial comment was just a reflex ;)...you're right, it would be a major effort for you and I would not make much use of it, since I'm occupied with my own project.

Maybe you could think about to evolve the Lua approach: So that it is somewhat closer integrated into the game loop (not every tick of course) so that a scen designer could control more aspects of the AI during 'runtime' and not only during 'design time'

ok thanks

RE: Extension API?

Posted: Sat Aug 06, 2016 6:31 pm
by mikmykWS
ORIGINAL: thewood1

"was quite fun" for both people that did it.

No, I meant moving loadouts and aircraft around.

Exactly.[:)]

Mike