Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Extension API?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Extension API? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Extension API? - 8/2/2016 5:28:48 AM   
I1066

 

Posts: 77
Joined: 10/22/2013
Status: offline
Is there any extension API available? Like, for example, MEF?

Or any other API for that matter?
Post #: 1
RE: Extension API? - 8/2/2016 6:13:48 AM   
wqc12345


Posts: 250
Joined: 12/7/2015
From: San Francisco, CA
Status: offline
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.

< Message edited by wqc12345 -- 8/2/2016 6:14:27 AM >

(in reply to I1066)
Post #: 2
RE: Extension API? - 8/2/2016 7:06:00 AM   
I1066

 

Posts: 77
Joined: 10/22/2013
Status: offline
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.

(in reply to wqc12345)
Post #: 3
RE: Extension API? - 8/2/2016 9:15:22 AM   
Dimitris

 

Posts: 13282
Joined: 7/31/2005
Status: offline
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!

_____________________________


(in reply to I1066)
Post #: 4
RE: Extension API? - 8/6/2016 5:09:39 PM   
hawkeye_de

 

Posts: 51
Joined: 4/19/2009
Status: offline
So, you only make this available for government customers ? That's a pity :(

(in reply to Dimitris)
Post #: 5
RE: Extension API? - 8/6/2016 5:17:42 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
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.

(in reply to hawkeye_de)
Post #: 6
RE: Extension API? - 8/6/2016 5:24:31 PM   
hawkeye_de

 

Posts: 51
Joined: 4/19/2009
Status: offline
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 ...

(in reply to thewood1)
Post #: 7
RE: Extension API? - 8/6/2016 6:38:38 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
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

< Message edited by mikmyk -- 8/6/2016 6:42:31 PM >


_____________________________


(in reply to hawkeye_de)
Post #: 8
RE: Extension API? - 8/6/2016 8:12:15 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
But can't you do his main example today with lua?

(in reply to mikmykWS)
Post #: 9
RE: Extension API? - 8/6/2016 8:40:38 PM   
hawkeye_de

 

Posts: 51
Joined: 4/19/2009
Status: offline
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...

< Message edited by hawkeye_de -- 8/6/2016 8:42:16 PM >

(in reply to thewood1)
Post #: 10
RE: Extension API? - 8/6/2016 8:48:48 PM   
hawkeye_de

 

Posts: 51
Joined: 4/19/2009
Status: offline
quote:

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'

< Message edited by hawkeye_de -- 8/6/2016 8:50:19 PM >

(in reply to mikmykWS)
Post #: 11
RE: Extension API? - 8/6/2016 9:10:08 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
"was quite fun" for both people that did it.

No, I meant moving loadouts and aircraft around.

(in reply to hawkeye_de)
Post #: 12
RE: Extension API? - 8/6/2016 9:30:07 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline

quote:

ORIGINAL: hawkeye_de

quote:

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

_____________________________


(in reply to hawkeye_de)
Post #: 13
RE: Extension API? - 8/6/2016 9:31:46 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline

quote:

ORIGINAL: thewood1

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

No, I meant moving loadouts and aircraft around.


Exactly.

Mike

_____________________________


(in reply to thewood1)
Post #: 14
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Extension API? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.781