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.


Messages - apanx

Pages: 1 [2] 3 4 5 6 7 8 9 10
21
Off-Topic Discussion / Re: Jay's sh**ty cartoon reviews
« on: May 11, 2018, 05:49:18 PM »
This show is clearly racist
My_Little_Pony_Email_PMO.jpg

22
Off-Topic Discussion / BREAKING NEWS
« on: April 18, 2018, 10:13:39 AM »
A new contender enters the fray.
 
nutloss.png

23
Site News and Feedback / Re: New Staff
« on: April 18, 2018, 01:49:37 AM »
Can Avalanch Be Staff?

Sure, He can be part of the Special Task Force Unit, with the purpose of transforming GTM into ARC.

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

25
Site News and Feedback / Re: Why is ACAMS such a closet brony?
« on: April 15, 2018, 10:45:18 AM »
(Image removed from quote.)

I see. Many men do find that one to be their god and true saivour .


I am a big boy! Girl stuff is icky and has cooties.
 [ Quoting of attachment images from other messages is not allowed ]  
Silly microinfant, ponies are not for little grils sweetie. Ponies are for grown men with exquisite taste in refined culture.
tbf i think little girls would enjoy the taste too, its a pretty lean meat

YUMMY



26
Site News and Feedback / Re: Why is ACAMS such a closet brony?
« on: April 13, 2018, 12:10:49 PM »
(Image removed from quote.)

I see. Many men do find that one to be their favorite stupid girl show character .


Ha!
twaggles_boop.png

Silly microinfant, ponies are not for little grils sweetie. Ponies are for grown men with exquisite taste in refined culture.

27
Off-Topic Discussion / Re: Asbestosstar's Browser Floppy Edition
« on: April 07, 2018, 08:03:47 PM »
Hey this doesn't fit on a floppy, it's 23MB. I've been bamboozled.

28
Contests / Re: BOTM MAY 2018
« on: April 03, 2018, 01:15:46 AM »
I dunno why the people of GTM do not want me to host. Is GTM becomeing the next ARC?

Yes.

29
Site News and Feedback / Re: Why is ACAMS such a closet brony?
« on: April 02, 2018, 12:43:43 PM »
unknown (1).png

:really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think::cancer::really_makes_you_think:

30
Discussion / Re: HELP ME
« on: April 01, 2018, 01:53:46 PM »
Now it did get rid of the ponies now didn't it? :cancer:

31
Discussion / Re: HELP ME
« on: April 01, 2018, 01:18:33 PM »
Press Ctrl-W to activate the gun sight for the gunz

33
Discussion / Caring about Rep in 2018
« on: March 26, 2018, 03:50:36 AM »
Don't fret too much about rep. Don't do stupid stuff and everything will be fine, even if you have -65535 rep, like this guy.

34
Good thing racist farmer hicks won't be a part of the next Gen
SHIIEEEEEET.png

35
Other Tutorials / How to debug Python in RA2
« on: March 07, 2018, 12:03:21 PM »
Enable AI debugging in AI\__init__.py. 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\Main.py
Replace this
Code: [Select]
class giScript_stdout:
    def write(self, s):
        giScript.debug_stdout(s)

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

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

    def flush(self):
        pass
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 https://www.learnpythonthehardway.org/


37
Off-Topic Discussion / Re: GTM Signing Card 2018 - 15 Years of RA2
« on: February 12, 2018, 08:55:04 AM »
ApnaxSigthing2018.png

38
General Support / Re: 'House Robots'??
« on: February 11, 2018, 08:18:54 PM »
Just change this
Code: [Select]
if not plus.isHuman(enemy): weighted_dist += 3to something like this
Code: [Select]
if plus.isHuman(enemy): weighted_dist += 9999
For the actioncam, make it look like this. id is a player id between 0-3. Also, there are more than one place where the code is used, so make sure you change it everywhere. Observe the indentation.
Code: [Select]
        for p in self.players:
            if plus.isEliminated(p) or plus.isDefeated(p):
                if p in self.expiration:
                    if self.expiration[p]  <= plus.getTimeElapsed():
                        self.players.remove(p)
                        self.playerCount -= 1
                else:
                    self.expiration[p] = plus.getTimeElapsed() + self.defeatedDelay
        self.players.remove(id)
        self.playerCount -= 1
I haven't tried any of these, but it should work, so: :cancer::cancer::cancer::cancer::cancer:

39
General Support / Re: Walk me through AI for a meltybrain?
« on: February 11, 2018, 08:11:55 PM »
Higher spinspeed = slower translational movement,
Modification of accuracy and ticks is usually not needed.

Get all your AI stuff here
https://github.com/apanx/RA2_AI

40
General Support / Re: 'House Robots'??
« on: February 07, 2018, 02:45:39 PM »
in init.py for the SuperAI-class
Code: [Select]
    def GetNearestEnemy(self):
        closest = None
        min_dist = 9999
        min_weighted_dist = 9999

        enemies = self.GetEnemies()

        # target human players first
        for enemy in enemies:
            dist = self.GetDistanceToID(enemy)
            weighted_dist = dist
            if not plus.isHuman(enemy): weighted_dist += 3
            if weighted_dist < min_weighted_dist:
                closest = enemy
                min_weighted_dist = weighted_dist
                min_dist = dist

        return closest, min_dist

Invert the weighted_dist modifier.

For action cam, in actioncam.py
Code: [Select]
        for p in self.players:
            if plus.isEliminated(p) or plus.isDefeated(p):
                if p in self.expiration:
                    if self.expiration[p]  <= plus.getTimeElapsed():
                        self.players.remove(p)
                        self.playerCount -= 1
                else:
                    self.expiration[p] = plus.getTimeElapsed() + self.defeatedDelay
Add a line after to remove robots you want to ignore
Code: [Select]
        self.players.remove(id)

Pages: 1 [2] 3 4 5 6 7 8 9 10