Suggestions For The 0 A.d. Scripting Language
Started by
Cougar
, Sep 26 2003 01:25 AM
9 replies to this topic
#1
Posted 26 September 2003 - 01:25 AM
I would appreciate it if any future 0 A.D. scripters would throw in their ideas regarding our future scripting language. In order to prompt discussion I have posted a few questions. Feel free to post as often and as much as you want.
1) What scripting languages do you prefer and what do you like about them? What do you dislike about them?
2) What specific features/functions would you like to be available in the 0 A.D. scripting language?
1) What scripting languages do you prefer and what do you like about them? What do you dislike about them?
2) What specific features/functions would you like to be available in the 0 A.D. scripting language?
Brian: Okay, insert rod support A into slot B.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
#2
Posted 06 October 2003 - 04:28 PM
Well, I suggest we use a scripting language similar to the one of AoK. It had a very basic syntax based on if-else-statements.
In addition to that we need some calculation functions of course.
Since ally-coorperation is what makes a good AI we will need a set of functions like "help_ally(&location, &units, &how_long)". Also a function like an advanced town_under_attack -function would be cool: In addition to TRUE and FALSE it returns the location, which units, player_handle (which can be used as parameter to other player-specific-functions like players_age()).
That's those that come off at first glance. Will postm ore later.
In addition to that we need some calculation functions of course.
Since ally-coorperation is what makes a good AI we will need a set of functions like "help_ally(&location, &units, &how_long)". Also a function like an advanced town_under_attack -function would be cool: In addition to TRUE and FALSE it returns the location, which units, player_handle (which can be used as parameter to other player-specific-functions like players_age()).
That's those that come off at first glance. Will postm ore later.
Tim Koschuetzki [ aka DarkAngelBGE ]
Wildfire Games Community Administrator, Webmaster, Human Resources Manager
Contact me: tim@wildfiregames.com
My website: tim-koschuetzki.com
Recent work: PHP Design Patterns | PHP Coding Practices | Stop the Smoking! | My Services | My Blog
Support Wildfire Games!
Wildfire Games Community Administrator, Webmaster, Human Resources Manager
Contact me: tim@wildfiregames.com
My website: tim-koschuetzki.com
Recent work: PHP Design Patterns | PHP Coding Practices | Stop the Smoking! | My Services | My Blog
Support Wildfire Games!
#3
Posted 10 October 2003 - 12:23 AM
We are going to use Lua as the scripting language so all of the language features will be available (things like branching, looping, standard operators, etc.). We will be adding special functions to send/retrieve data to/from the game and those are the items I would like suggestions for.
The reference manual for Lua can be found at http://www.lua.org/manual/5.0, but we will provide a condensed version for people who would like to write AI scripts.
The reference manual for Lua can be found at http://www.lua.org/manual/5.0, but we will provide a condensed version for people who would like to write AI scripts.
Brian: Okay, insert rod support A into slot B.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
#4
Posted 12 January 2004 - 05:11 PM
Cougar, on Oct 10 2003, 12:23 AM, said:
We are going to use Lua as the scripting language...
Lua is a solid choice, but you seem to lack a Lua programmer. Might I recommend Python? Apart from being a powerful language, it has a simple syntax and is easy for any programmer to learn - once he gets over the whole whitespace thing. The Python interpreter is also part of the Python language (the exec statement and eval function can execute arbitrary Python code as a new process or part of the current process respectively), which gives a lot of power to mods and configuration and extension scripts.
I need the practice (been out of game programming for about 2 years), so I'd be willing to work with you to resolve all your Python issues and to implement many/most of your scripts - even integrate it with the toolset...
As for DarkAngelBGE's concerns per high-level constructs, the SDK would provide those interface.
Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke
#5
Posted 13 January 2004 - 07:49 AM
When deciding on the language we examined both Lua and Python and came to the conclusion that Lua was a better choice for our project. Right now we're debated whether or not to stick with Lua or switch to Ferite.
Brian: Okay, insert rod support A into slot B.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
Peter: That's what...
Brian: If you say "that's what she said" one more time, I am gonna pop you.
#6
Posted 13 January 2004 - 08:02 AM
Cougar, on Jan 13 2004, 07:49 AM, said:
When deciding on the language we examined both Lua and Python and came to the conclusion that Lua was a better choice for our project. Right now we're debated whether or not to stick with Lua or switch to Ferite.
I have no explicit desire to learn Lua intimately, though I probably wouldn't mind contributing in a less involved role under those circumstances - discussing efficient ways to implement features, etc with your Lua programmer.
CheeZy's emailed me and he suggested I get in touch with Wijitmaker on this while Wijitmaker suggests I get in touch with Acumen, so Acumen it is.
Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke
#7
Posted 13 January 2004 - 08:02 AM
Oluseyi, any chance you could meet us on IRC for the programmers meeting we when we will decide this issue?
It would be 10:30 EST... yeah kind of early for us Americans, but we need to catch those Europeans before they go to bed
It would be 10:30 EST... yeah kind of early for us Americans, but we need to catch those Europeans before they go to bed
Jason Bishop [ aka Wijitmaker ]
Wildfire Games CFO, retired artist
Contact me: jason@wildfiregames.com
Support Wildfire Games!!!
Wildfire Games CFO, retired artist
Contact me: jason@wildfiregames.com
Support Wildfire Games!!!
#8
Posted 13 January 2004 - 08:05 AM
Wijitmaker, on Jan 13 2004, 08:02 AM, said:
Oluseyi, any chance you could meet us on IRC for the programmers meeting we when we will decide this issue?
It would be 10:30 EST... yeah kind of early for us Americans, but we need to catch those Europeans before they go to bed
It would be 10:30 EST... yeah kind of early for us Americans, but we need to catch those Europeans before they go to bed
Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke
#9
Posted 13 January 2004 - 08:07 AM
Yeah I'll PM to you also just a sec...
Thanks much
Yeah that works out to 15:30 GMT, but your to fast for me
Cool, we would really appreciate some more input on this subject. I'll see if I can scrounge up some previous meeting logs for you to read if your interested in some more background on the on-going discussion.
Thanks much
Yeah that works out to 15:30 GMT, but your to fast for me
Cool, we would really appreciate some more input on this subject. I'll see if I can scrounge up some previous meeting logs for you to read if your interested in some more background on the on-going discussion.
Jason Bishop [ aka Wijitmaker ]
Wildfire Games CFO, retired artist
Contact me: jason@wildfiregames.com
Support Wildfire Games!!!
Wildfire Games CFO, retired artist
Contact me: jason@wildfiregames.com
Support Wildfire Games!!!
#10
Posted 28 February 2004 - 06:14 AM
Come on guys, what do you want to have ?
Tim Koschuetzki [ aka DarkAngelBGE ]
Wildfire Games Community Administrator, Webmaster, Human Resources Manager
Contact me: tim@wildfiregames.com
My website: tim-koschuetzki.com
Recent work: PHP Design Patterns | PHP Coding Practices | Stop the Smoking! | My Services | My Blog
Support Wildfire Games!
Wildfire Games Community Administrator, Webmaster, Human Resources Manager
Contact me: tim@wildfiregames.com
My website: tim-koschuetzki.com
Recent work: PHP Design Patterns | PHP Coding Practices | Stop the Smoking! | My Services | My Blog
Support Wildfire Games!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











