Author Topic: Probably has an obvious answer  (Read 1561 times)

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Probably has an obvious answer
« on: August 29, 2010, 10:48:23 AM »
How do you execute commands from the F9 python window. I type it in, but then don't know what to press. Enter does nothing.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #1 on: August 29, 2010, 11:09:52 AM »
what commands you be talking bout? the FB f9 cheat thing? Theres a few steps before you can do the commands. Try reading the readme.
You got my vote for RA2 Wizard. Always and forever.

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #2 on: August 29, 2010, 11:16:00 AM »
Not cheating, but I was trying to do this:

If you would like to test it, all you need to do is use this python code: plus.getHitpoints(BotID, CompID)

And when I typed the command in and pressed enter, nothing happened.

My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #3 on: August 29, 2010, 12:11:44 PM »
you sure you did BOTID and COMPID correct?
You got my vote for RA2 Wizard. Always and forever.

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #4 on: August 29, 2010, 12:12:41 PM »
Is (1,3) correct?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #5 on: August 29, 2010, 12:20:58 PM »
I think your running into four somewhat related problems:
1. If you want text to be returned, you need to add the "AIHelpers=1" line to "RA2.cfg" (anywhere inside of the 'RA2 Config' section). Doing this sometimes causes problems (especially in DSL) but its really handy IMO and you can always set it to 0 when your done.

2. If you install Firebeetle's Cheat Menu mod, his other modification to RA2.cfz allows you to press the tilda (~) key instead of pressing F9. By using the tilda key instead F9, you don't need to "turn off" refreshing (by typing "showFPS(0)" into the debug window). If you want to manually add this feature, all you have to do is add this to "RA2.cfg":
Code: [Select]
[Begin Input Config]
device0 = guid a5e224e0 9cd4 11d7 80 1 44 45 53 54 0 0; deadzone 500
device0 = guid 4cb8b0d0 9e7a 11d7 80 1 44 45 53 54 0 0; deadzone 500
[End Input Config]

3. The debug window automatically imports the plus module as "from plus import *" so you don't need to have "plus." before "getHitpoints." If you want to use the same syntax as Arenas and AI then type "import plus" before typing "plus.getHitpoints(BotID, CompID)"

4. Replace BotID with the position that the bot is taking up (0-3 depending on which starting position they were assigned at the start of the battle). Replace CompID with the ID number of the component that your looking at (0=chassis, 1=first component attached, 2=second component attached, etc.)

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #6 on: January 02, 2011, 05:07:33 AM »
BUMP:

I've got to step 3, but once I type the command in, I find no way of executing it. What key am I supposed to press?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #7 on: January 02, 2011, 01:09:39 PM »
You may either press Enter after each command or have a semicolon separating each command.

For something like this, I would just type something like: print getHitpoints(0,2)
(with slightly different parameters)
before hitting Enter.

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Probably has an obvious answer
« Reply #8 on: January 02, 2011, 01:26:37 PM »
ah, thanks
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)