User avatar
MikeV
Sergeant
Posts: 83
Joined: Tue Jul 14, 2009 11:13 pm
Location: Sunny Melbourne FL USA

Scripting language questions

Sat Aug 08, 2009 4:14 pm

I've looked at the various event files, and consulted the online information at http://www.ageod.net/aacwwiki/Modding_events, but I'm still puzzled by a few things:
  1. What are the valid syntax/semantics of these commands:

    Code: Select all

    EvalRgnOwned = $Ft Jefferson, FL
    SelectRegion = $Ft Jefferson, FL
      EvalControl = >=;75

    SelectRegInArea  ;;;CondSkip
  2. Is there any way to refer to "current national capital", rather than using a hard-coded region ID?
  3. Are there any conditions to detect whether the player has selected Draft, Volunteers, Taxes, etc. rather than hard-coding fixed dates?

Thanks for your help.

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Wed Aug 12, 2009 6:39 am

deleted

User avatar
Pocus
Posts: 25669
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Wed Aug 12, 2009 10:08 am

ActorEnabled = GameActorUID [;SubType]
ActorDisabled = GameActorUID [;SubType]

Allow you to test if some options can be used or not by the player.

ActorUnderUse = GameActorUID [;NOT]
Indicates if an option is currently being used by the player (AACW only)

CheckOption = GameActorUID ; OptionUID ; Operator (=, >=, <=) ; Value
Indicates if an option has been requested by the player (All games but AACW)

Now my memory is fuzzy on the details, I don't think it has been ever used :)

Selecting a region with a criteria 'Is the Capital' is a cool idea. No promise though!
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Wed Aug 12, 2009 11:28 am

deleted

User avatar
MikeV
Sergeant
Posts: 83
Joined: Tue Jul 14, 2009 11:13 pm
Location: Sunny Melbourne FL USA

Working from the source M$ Excel spreadsheets

Thu Aug 13, 2009 1:51 am

Gray_Lensman wrote:You need to study the layout of the various .xls files and then utilize the informational content of the wiki link to "lay" the suggested syntax into the .xls database files themselves. Studying the game's "official" database files is a damn good way to understand the game's event syntax statements in their various usages.

OK, thanks for pointing me towards that. I can work with Excel spreadsheets (brain-dead VBA scripting language, though), and even grab a Java library to manipulate them.

I downloaded the batch at http://ageoddl.telechargement.fr/latest/AACW_DB.zip.

Is the source code for the [font="Courier New"]CSVSplitter.exe[/font] available anywhere (cvs or svn server URL, perhaps)? Might want something that emits wiki table syntax, to help update the wiki.

User avatar
MikeV
Sergeant
Posts: 83
Joined: Tue Jul 14, 2009 11:13 pm
Location: Sunny Melbourne FL USA

Scripting language semantics

Thu Aug 13, 2009 1:58 am

Pocus wrote:Selecting a region with a criteria 'Is the Capital' is a cool idea. No promise though!

Well, generally speaking, the GUI and the CLI are just two ways of getting at the same underlying engine. So, for consistency, it would be reasonable to offer the same objects and operations through both -- anything a user can manipulate via the GUI should be accessible (and current state queryable) via the CLI.

Otherwise, we end up with hard-to-explain inconsistencies ... :bonk:

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Thu Aug 13, 2009 7:29 am

deleted

User avatar
Pocus
Posts: 25669
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Thu Aug 13, 2009 2:34 pm

This is a sound remark Gray_Lensman, but alas I don't have much time to prepare, format and then put on the AGE wiki documentations. I would be willing to produce doc in word to be put in the Wiki though, but the Wiki has its own format and a copy-paste don't work. (I'm not asking you to do that, you are already busy enough).
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Pocus
Posts: 25669
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Thu Aug 13, 2009 2:37 pm

MikeV wrote:Well, generally speaking, the GUI and the CLI are just two ways of getting at the same underlying engine. So, for consistency, it would be reasonable to offer the same objects and operations through both -- anything a user can manipulate via the GUI should be accessible (and current state queryable) via the CLI.

Otherwise, we end up with hard-to-explain inconsistencies ... :bonk:


Civilization IV does a good job on that, with a lot of code doable with Python. Still, their team size and budget is light years from us, and this was simply not possible for us to goes this way and develop games in reasonable time.

Now if you are interested in scripting more low level stuff, like guiding the AI with additional commands, then I would be more than willing to ease your life here.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
MikeV
Sergeant
Posts: 83
Joined: Tue Jul 14, 2009 11:13 pm
Location: Sunny Melbourne FL USA

Sat Aug 15, 2009 1:50 pm

Pocus wrote:Now if you are interested in scripting more low level stuff, like guiding the AI with additional commands, then I would be more than willing to ease your life here.

Can do, depending on time available. If you can't release the source code, can you make the Javadoc/Doxygen API details available somewhere online?

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Sat Aug 15, 2009 6:59 pm

deleted

User avatar
Pocus
Posts: 25669
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mon Aug 31, 2009 2:37 pm

I'm back!

Gray_Lensman is mostly right indeed. For now I would like first to see someone use the available scripting commands in AACW as it was done in WIA, and then, if needed, on a per request basis, create new commands that you would manipulate.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
MikeV
Sergeant
Posts: 83
Joined: Tue Jul 14, 2009 11:13 pm
Location: Sunny Melbourne FL USA

Sun Sep 13, 2009 4:53 pm

Pocus wrote:This is a sound remark Gray_Lensman, but alas I don't have much time to prepare, format and then put on the AGE wiki documentations. I would be willing to produce doc in word to be put in the Wiki though, but the Wiki has its own format and a copy-paste don't work. (I'm not asking you to do that, you are already busy enough).


If you make the .doc file available, anyone who groks wiki syntax can update the wiki(s) -- especially since we have a nice template for the commands.

User avatar
Generalisimo
Posts: 4176
Joined: Wed Jun 07, 2006 10:03 pm
Location: Buenos Aires, Argentina
Contact: ICQ WLM

Mon Sep 14, 2009 3:31 pm

MikeV wrote:If you make the .doc file available, anyone who groks wiki syntax can update the wiki(s) -- especially since we have a nice template for the commands.

Am I reading this the right away? are you volunteering yourself to update the Wiki if Pocus sends his docs to you? :sourcil:
"History is the version of past events that people have decided to agree upon."
Napoleon Bonaparte


BOA-AAR: ¡Abajo el imperialismo Británico! (en español)

AGEOD Facebook Fanpage - news & screenshots about the upcoming games!

Return to “AACW Mods”

Who is online

Users browsing this forum: No registered users and 8 guests