Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - apanx

Pages: [1] 2
Site News and Feedback / I enable new feature
« on: October 14, 2019, 11:48:29 AM »
Seems to work

fiverr is great for exploiting poor people! heck

Site News and Feedback / New admins
« on: January 19, 2019, 11:46:50 AM »
Since I am a doctor, I don't deal with people.

Welcome 090901, geese and Hoppin as our new admins. Ask them if you want to get baned from the site.

Modifications / AIBindingsPuker
« on: June 06, 2018, 02:15:39 PM »
Point at a directory containing Bots and it will puke out a file containing a binding template for all the bots.

Off-Topic Discussion / What is his name? Vote now!
« on: April 15, 2018, 11:20:49 AM »
What is his name? Vote now!

Other Tutorials / How to debug Python in RA2
« on: March 07, 2018, 12:03:21 PM »
Enable AI debugging in AI\ Replace plus.isDebugMode() with true.

Code: [Select]
class SuperAI(plus.AI):
    "Python base class of the C++ AI."
    name = "No Name"

    debugging = True #plus.isDebugMode()

Enable output of stdout and stderr to a log file by editing Scripts\
Replace this
Code: [Select]
class giScript_stdout:
    def write(self, s):

class giScript_stderr:
    def __init__(self):
        self.count = 0
    def write(self, s):
        self.count += 1
    def flush(self):
With this:
Code: [Select]
class giScript_stdout:
    def write(self, s):
        output = file("debug.txt", "a")

class giScript_stderr:
    def __init__(self):
        self.count = 0
    def write(self, s):
        self.count += 1
        output = file("debug.txt", "a")

    def flush(self):
Now all python errors will be logged to debug.txt

Add AIHelpers=1 to RA2.cfg to enable debugwindow for the console key (~)/key left to 1, above Tab.
Saves you from having to write plus.showFPS(0) in the Ctrl-F9 window.

All RA2 AI is created as objects in AI.running_ai, which means you can access other currently running AI object through this list.
The AI.SuperAI class is the parent for most AIs, it is a child of the plus.AI object, which is buried in the RA2 executable.

Arenas work mostly the same way, with the Arena.SuperArena being the parent, and a child of plus.Arena. The current arena is however accessed through Arenas.currentArena.

Also, lrn2python as it will make you understand how to do stuff instead of just doing cargo cult programming. Here is a guide

Site News and Feedback / New Bot Exchange
« on: September 27, 2017, 07:05:59 PM »
We have a new bot exchange. It generates auto previews for .bot files and zips them as well to save space and bandwidth. You can also delete your own bots.
All bots from the old exchange have been transferred.


Site News and Feedback / The great file and image purge has started
« on: September 19, 2017, 05:15:22 AM »

This is bad. Time to fix it.

Hotlinking to files from other sites than GTM is now blocked.
Any file or image not linked to in the forum will be purged.

Site News and Feedback / Life as admin...
« on: September 17, 2017, 05:49:45 PM »
>become admin
>GTM is 65GB, no simple auto backups...
>Can't upgrade to PHP 7.1 cuz SMF and Media wiki is too old
>MediaWiki version is 1.25.1, current is 1.29.1
>SMF is 2.0.13, with mods to really make upgrading to 2.0.14 a hassle
>Dreamhost can't make a backup of GTM, cuz it is 65GB
>Dreamhost limits number of SFTP connections, making manual backup real slow

How was your day?

Tournament Archives / Chewblade Master Showdown - SFTW Showdown DLC
« on: March 11, 2017, 08:25:03 PM »
As wakkydude didn't have time to do the bonus stuff before thread lock. Here is the DLC to SFTW Showdown you've all been waiting for.
The Chewblade Master Showdown.

Converts obj 3d models into RA2 bots. Models need to have triangular faces.
Takes first argument of command-line as file to convert. So just drag and drop the bot file on the program.
Post comments and feedback here

Creativity Showcase / We are GTM
« on: January 21, 2017, 12:09:09 PM »
Courtesy of GTM Discord, some Cat Strangling Noises™ for your enjoyment;sa=view;down=312

Modifications / Widescreen and 4K UI fix
« on: December 18, 2016, 09:28:07 AM »
Tired of bot pic sticking out of the bottom when running game in widescreen?
Or not being able to use the whole chassis blueprint?

Presenting, the Widescreen UI fix

RA2 totally craps out when running it in higher resolution than 2048x1536?
Status indicators placed totally wonky, making match recording look like sh**?

Fixed that for you. 4K UI fix
Be prepared for squinting a lot.

Also fixed Interface to be usable for both High-res splashes and building

Tutorials and Tips / Capping RA2 fps [everyone else]
« on: November 05, 2016, 06:29:46 AM »
Get MSI Afterburner

Make sure you also install RivaTuner Statistics Server

Run RTSS, add RA2 exe

Set frame rate limit

Choose if you want FPS overlay

Check function using F9 to show FPS in RA2

Stock Showcases / Apanx builds stock, in the bot lab for once
« on: October 15, 2016, 04:11:25 AM »

Using the chassis of john the robbot
"Double" strength steel. (just ordinary steel)
329kg for just the chassis. Total 795.8 kg.

Discussion / Update to Bot Exporter
« on: October 14, 2016, 12:04:45 PM »
Updated the exporter to generate the list of weapons based on selected components. See screenshot below.

Get it at;sa=view;down=97
Or for installer version;sa=view;down=289

Modifications / plus.isDebugMode()
« on: September 29, 2016, 10:18:31 AM »
So, when is it true?

Tutorials and Tips / Robot Arena 2 AI Python repository on GitHub
« on: September 22, 2016, 05:36:31 PM »

So everyone can find the most recent version of everything.
Fork, improve, do pull requests.
End the confusion of differing files with the same name.

It has been 10 years since the first How is such a thing possible? (or OMG)
Exposing the wonders of BFE to the public.
Archive, page 8-10 Missing
Print mode

I have still kept all pics.
Enjoy the old pics for inspiration:
BFE-Bot 1

BFE-Bot 2 - Download

Oversized BFE-Bot - Download

Multilayered BFE-Bot - (No download avaliable, yet)

The mesh seem to be generated according to chassis points and not specified mesh triangles in bot file if Graphics Detail is set to High. Set to Low get game to follow 3D model in .bot-file

Over 16 point chassis BFE-Bot - Download

Over 7 components chain BFE-Bot - Download

Component position edited BFE-Bot - Download

High resolution texture bot - Download

Too small BFE-Bot - Download
Was replaced by MicroBot, which is half the volume ;)

Battleship - Download

More controllers through BFE - Download

Insanity Arena - Download

Melty Brain AI - Download

MG Tank AI - Rapid fire of 20 Cannons - The AI and The Bot

Discussion / Help needed with Python information consolidation
« on: December 16, 2009, 03:54:45 PM »
Winter break is approaching (technically a self-study period) and it seems that I will have time to start working on my RA2 Python guide. However, in order to ensure that I can spend the most time in probing currently less explored areas. I would like everyone to contribute with all the current knowledge in this thread. Which I then will compile and in the end will result in a guide giving a much clearer understanding of how Python is used in RA2. I will not be able to check this thread after the 21st of December, so it can be a bit tight.
Thanks in advance to everyone contributing

Add your tactic to your AI.

Like this
Code: [Select]
from __future__ import generators
import plus
import AI
from AI import vector3
import Arenas
import Gooey
import math
import Tactics

class HaltAndCatchFire(AI.Tactic):
    name = "HaltAndCatchFire"
    def Evaluate(self):
        self.priority = 170
    def Execute(self):
            return True
class FBS(AI.SuperAI):

Then instead of the usual self.tactics.append(Tactics.HaltAndCatchFire(self)), write this
Code: [Select]

Pages: [1] 2