.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   United Bot (http://forums.bots-united.com/forumdisplay.php?f=46)
-   -   UBotScript? (http://forums.bots-united.com/showthread.php?t=1780)

Magnus 26-05-2004 18:33

UBotScript?
 
Greetings.
I just had an idea, why not create a scripting language in United Bot? We need the bot to be Platform independent also in addition to game independence right? 9_9
So a very versatile scripting language with a very C-like syntax would be the order of the day.
It could be somthing like this:
BEGIN BOT_AI
Check(EnemyInSight)
if TRUE
{
Check(HavePrimGunAmmo)
if TRUE
{
String FiringMode=NonBurst
Check(BotSkill)
if >60
{
FiringMode=Burst
}
Fire(Enemy, FiringMode)
}
else
{
SwitchWeapon(Secondary)
}
}
END BOT_AI

This could increase the number of people able to work on United Bot enourmously and the sourece code would not have to be released. PLus the C++ code that works behind this could be written for multiple platforms and games and thus the scripts would work in all operating systems and maybe multiple games.

@$3.1415rin 26-05-2004 20:47

Re: UBotScript?
 
In general, Killaruna had this idea, too, and he already did some work on a similar system. he uses XML, which looked pretty nice.

maybe he'll pass by and describe the stuff :)

Killaruna 26-05-2004 22:58

Re: UBotScript?
 
Indeed, he will :D

I'd like to discuss the entire PIA (Portable Intelligent Agent) framework I have been designing after my experience with Parabot. Anyway, the only thing I need is a place to upload the stuff: It contains the base classes, some example functions for HL and HLDM and a running console application where a bot joins a console world and his perception/goalfinder pipeline gets executed. As @$3.1415rin said, all goals are scripted in XML, although the underlying functionalities are coded in C++. So it's basically a scripting of the higher AI levels... Anyway, if somebody of the admin sends me a PM on how to upload the zip (or if he offers to upload it if I email it to him :P ), you could have a look for yourselves...
EDIT: @$3.1415rin just told me that I could upload the file by myself, which I did - and you can get it here:
http://filebase.bots-united.com/pafi...on=file&id=138
I am just preparing a new thread for discussing the framework in this forum...

Pierre-Marie Baty 27-05-2004 00:22

Re: UBotScript?
 
Killaruna man! that would be so great to have you contribute to the United Bot =)

Uploading stuff to Bots United is not a problem for members! you can log in to the filebase and upload any file of your choice in one of the filebase's subfolders... everybody can upload, feel free to use it too :)

/me whispers "argh, C++... pipelines... classes... I feel I'm gonna have headaches reading this stuff again" :D

stefanhendriks 01-06-2004 18:31

Re: UBotScript?
 
yes, i have read it (the source & xml) but is it me or is it just a pain to read XML?

Pierre-Marie Baty 01-06-2004 18:58

Re: UBotScript?
 
I believe XML may not be the best language to use if we want to implement the top level AI in a scriptable fashion.

And as for data storage, INI files are better too...

I'd rather see a mix of INI files and a simple scripting language. Perhaps small ? The AMX compilers are open-source I think, no ?

stefanhendriks 01-06-2004 19:45

Re: UBotScript?
 
I don;t know about AMX, i know INI files are easy to read and to make an own INI parser is no big deal.

Perhaps a small scripting language is best, but we should either make our own or use some source elsewhere.

Pierre-Marie Baty 02-06-2004 02:07

Re: UBotScript?
 
That's what I mean, small is the name of the scripting language AMX uses :)
It's a very common scripting language, and relatively simple to master.

sfx1999 02-06-2004 03:22

Re: UBotScript?
 
http://www.flipcode.com/tutorials/tut_scr01.shtml

Are you sure you want to do this? I mean, you end up having to make your own compiler using Bison and Flex somehow, which can be found at http://gnuwin32.sourceforge.net/ (Windows binaries). The problem is that a scripting engine can be very slow...

sPlOrYgOn 02-06-2004 03:30

Re: UBotScript?
 
I think it'd be a great idea to use small scripting language as the UBotScript..
Since lots of people in the HL community probably know a little bit of small from making AMX and adminmod plugins.
It'd help people get used to and help make lots of plugins for it and therefore making this bot more popular.


All times are GMT +2. The time now is 14:02.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.