.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > United Bot
United Bot The ultimate beast is being given birth right here! Half-Life 2

View Poll Results: Should UBotScript Be Created?
Yes 9 75.00%
No 3 25.00%
Voters: 12. You may not vote on this poll

Reply
 
Thread Tools
UBotScript?
Old
  (#1)
Magnus
Guest
 
Status:
Posts: n/a
Default UBotScript? - 26-05-2004

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.
  
Reply With Quote
Re: UBotScript?
Old
  (#2)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: UBotScript? - 26-05-2004

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


  
Reply With Quote
Re: UBotScript?
Old
  (#3)
Killaruna
Moderator
 
Status: Offline
Posts: 32
Join Date: Jan 2004
Location: Heidelberg, Germany
Default Re: UBotScript? - 26-05-2004

Indeed, he will

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 ), 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...

Last edited by Killaruna; 27-05-2004 at 00:25..
  
Reply With Quote
Re: UBotScript?
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: UBotScript? - 27-05-2004

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"



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: UBotScript?
Old
  (#5)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: UBotScript? - 01-06-2004

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: UBotScript?
Old
  (#6)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: UBotScript? - 01-06-2004

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 ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: UBotScript?
Old
  (#7)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: UBotScript? - 01-06-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: UBotScript?
Old
  (#8)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: UBotScript? - 02-06-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: UBotScript?
Old
  (#9)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: UBotScript? - 02-06-2004

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...
  
Reply With Quote
Re: UBotScript?
Old
  (#10)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: UBotScript? - 02-06-2004

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.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com