Jump to content

Welcome to Omni-bot Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Most Liked Content


#21475 "Scripting" 2.0

Posted by DrEvil on 21 March 2015 - 02:50 PM

Can you believe this bot has been around about 10 years now? I started this bot just before I left my game dev school in Florida in 2004 to exercise my passion and to build up experience that would help me get into the game industry. Not only was did this bot account for the primary demonstration that got me both of my industry jobs, it was fun as hell to work on(and still is really).

 

I know the community may by dwindled down to almost nothing these days given the age of these games and such, but as a developer who still has that passion, I am still working feverishly behind the scenes on the bot. Primarily this work has been in integrating the fantasic recast navigation system that is available on github, and pulling together and writing code that extracts map geometry from the bsp files and props of the map so that the raw collision geometry may be used automatically to build a properly automatic navigation mesh for the bot in real time. This includes rebuilding tiles of it when the location of things change and such. For some examples of this, see

 

 

This work has not been without major refactoring of many areas of the bot. After all, I'm 7-10 years more experienced(depending on which code) than I was when i wrote most of this code initially, so as I go I'm trying to simplify many areas of it as well.

 

Other than getting a nice automatically built navigation mesh(outside of possibly needing to set up tricky custom traversal links manually), my eye would then turn to the scripting system. In the domain of scripting I have an itch to take a radically different approach than what we've seen on the bot thus far. I wanted to air these ideas to get a feel about how the community(if there's anyone left), feels about this possibility.

 

Why?

Game Monkey script is still probably my favorite scripting language, syntactically and feature wise. The issue for me is that I suppose I've 'out grown' the appeal of interpreted scripting languages. The binding is often at least a bit annoying to maintain and interpreted languages in general are frankly very slow. In the history of Omni-bot itself, nearly all of the persistent crash bugs we've had over the years have been attributed to the garbage collection of the scripting language. Those types of bugs are hard to debug.

 

Option 1

One obvious option to at least address the performance aspect might be to switch to Lua JIT(just in time). This version of lua is actually JIT compiled, rather than interpreted, so that its performance is generally much better. My issue with this option is that frankly I'm not a big fan of lua, and performance isn't really my primary motivation anyhow.

 

Option 2

The preferred options in my mind are to stick with C++ code and use it for 'scripting'. MSVC 2013 community edition is free these days, and although it's not a small tool compared to like notepad++ or whatever you use to script with now, using 'native' code solves the performance issue, the binding complexity issue, and greatly simplifies the debugging by taking advantage of the high quality debugger that the tool already has. If I went this direction, I would do so still with coroutines/fibers(what GM calls threads) that still provide the great benefits of being able to write top down serial code, yield, wait, sleep, block for events, etc.

 

Hurdles

The biggest hurdle to work out with going to native c++ 'scripting' would be whether or not I can sandbox it enough where people cant code malicious stuff. That's one benefit of a scripting system that isn't so easily solvable in native scripting. If I can make the bot responsible for compiling the code(such as with http://runtimecompil...s.blogspot.com/), I could perhaps secure the code by disallowing linking with anything not provided with the bot(not even the c standard library)

 

Anyways I wanted to see if there was any feedback on the topic, especially from scripters themselves. To users the changes would basically invisible. The bot would load dlls or obj files rather than .gm scripts, to users any noticeable benefit would likely be in a significant cpu reduction.

 

Scripters would feel the brunt of this change. They would be writing and debugging their scripts in C++ using interfaces provided by the bot. 

 

This change is pretty far out, but I want to spark a discussion in the mean time. I plan to get the navigation improvements to a stable state first.

 

Thoughts?

 


  • Niek, Mateos, Gramp and 2 others like this


#21975 Raid final

Posted by Magic on 17 April 2016 - 02:32 PM

A final version of Raid is done...a big thanks to d00d for all the help with the final version.

Have also made a movie from the map...a thank you to all that helped me with it :)

 

Download link for the map and to see the movie - visit my site :

 

http://magics-territory.com/

 

thanks again for all the help.

 

Magic


  • d00d, Niek, Mateos and 1 other like this


#21941 Requesting Waypoints for twc paintball

Posted by palota on 02 February 2016 - 11:24 PM

I modified twc_paintball.gm so that bots spawn randomly.


  • d00d, Mateos and MickyP[MW] like this


#21828 Where to put Waypoints? o0

Posted by d00d on 18 December 2015 - 05:58 PM

You need three files for each map if you want decent bot behavior, all of which should be put into the nav folder:

  • mapname.gm
  • mapname_goals.gm
  • mapname.way

mapname.script files have nothing to do with Omni-bot. They are part of the map itself, but they are already inside the map's .pk3 file. You can delete them unless you are interested in making maps.

 

But be warned that the UJE guys usually do a lousy job on bot scripts. Most of the bot scripts they provide with their maps are pretty much useless and do not enable the bots to play properly. At least this was true for 95 % of the UJE scripts I looked at some time ago. Maybe they have a better scripter now.


  • Mateos, palota and kino like this


#21355 How to keep Omni Bot files updated?

Posted by d00d on 06 December 2014 - 11:30 PM

Am I making any sense?.   :confused:

 

Yes, absolutely.

 

What you need is an SVN (Subversion) client, a dedicated program that synchronizes your local files with the ones on the Assembla server (called an SVN repository). If you are on Windows, you'll probably want to use the free TortoiseSVN as your SVN client. It is a shell extension that integrates with Windows Explorer and is very intuitive to use via the right-click context menu.

 

Once you have your SVN client set up, you have to choose a local target folder. You can either create a new empty folder or (more conveniently) use your existing Omni-bot install folder. Assuming you are using TortoiseSVN, right-click the folder icon in Win Explorer and choose "SVN checkout" from the menu. This will open a dialog window that asks for the checkout URL, which is https://subversion.a...om/svn/omnibot/

 

This process will create a subfolder structure in your destination folder if all goes well.

 

Once you're done downloading, you can right-click your destination folder's icon anytime in Windows Explorer and choose "Update SVN".


  • Mateos, Tardis and Gramp like this


#22139 Hilfe für Bot Einstellungen

Posted by MGS_Classic on 27 November 2016 - 03:18 PM

Hi,

geh mal auf dem server in deine omnibot.cfg, /omnibot/et/user

 

Current difficulty 3

AdjustAim 2

 

Moveskill 3

 

diese Werte kannst du  von 0 ( hyper leicht bis 4 oder 6 tierisch schwer ) einstellen.

 

3,   2,   3 sind spielbare Werte.

 Danach den Server neustarten. Viel Erfolg

 

Jenachdem welche Map, und sau gute waypoints kann es sein, dass die besser treffen.

 

Man merkt es, in dem man mal einfach an einem BOt vorbeiläuft, OHNE ihn zu beschiessen, was er macht. Ignoriert er dich, sind die Einstellung schwächer.  Steckst du jedoch aus dem Spawn deinen Kopf raus und liegst schon flach, stehen die Einstellungen auf Max.


  • d00d and fredo1 like this


#21543 Gold Rush waypoints

Posted by Mufaka on 17 May 2015 - 02:24 PM

I assume no Escort Tank goal was added because it's got a Mount Tank goal.


  • d00d and Mateos like this


#21320 Move repository to git

Posted by Radegast on 05 November 2014 - 12:46 AM

Looks like the OB team is content with Subversion, so I'll post here how I merge the changes from upstream to my git repo. I hope someone will find it useful.

 

  1. Convert their repo to git: 
    git svn clone http://omni-bot.googlecode.com/svn/trunk/ omni-bot-git
  2. It will take some time as it converts the complete repo history including commit metadata.
  3. Add the most up to date branch as remote: 
    git config --add svn-remote.svn.url http://omni-bot.googlecode.com/svn/branches/stable/0.83
    git config --add svn-remote.svn.fetch :refs/remotes/stable/0.83
  4. Now you can use this repo like you normally would with Git.
  5. When you want to sync the repos do this:
    git svn fetch
    git merge stable/0.83

  • Mateos and Dragon! like this


#22065 Waypoints request for Canyon Depths Final

Posted by Tardis on 01 August 2016 - 05:13 PM

I am working on them slowly so as soon as i get the bots to finish the map I will send some updates via svn


  • JohnDory, d00d and Mateos like this