Open AI Championship

Local runner

Project

Sandbox

Round 1

Round 2

Finals

Recent comments

1 september 19:55: cheeser wrote comment on post The closing of the Russian AI Cup 2018
28 august 22:00: AXLL wrote comment on post Sandbox
28 august 22:00: AXLL wrote comment on post Sandbox
28 august 21:58: AXLL wrote comment on post Sandbox
28 august 21:57: AXLL wrote comment on post Sandbox
19 february 23:14: karloid wrote comment on post The closing of the Russian AI Cup 2018
19 february 13:38: tyamgin wrote comment on post The closing of the Russian AI Cup 2018

VK Group

Telegram chat

 

You have an option to run simple test games locally on your computer. To do so, download the Local runner utility. Use of that utility will allow you to test your strategy in an environment similar to the environment of a testing game on the site, but without any restrictions on the number of games created.

By default, runner waits for your strategy client to connect on port 31001. This is also the default port used by any language pack. To connect your strategy to the runner, first start the runner, and then start your strategy (run compiled program or run Runner.<ext> file in scripted languages)

Last version: January 11, 2019 - v1.1.1

Links:

Possible arguments for runner (you can also see this in ./codeball2018 --help):

  • --team-size <size> — team size (default is 2).
  • --p1 <player1> — First player (default is tcp-31001). Possible values are tcp-<port>, keyboard, helper, empty
  • --p2 <player2> — Second player (default is helper). Possible values are tcp-<port>, keyboard, helper, empty
  • --p1-name <player_name>/--p2-name <player_name> — Player names for showing in scores table
  • --nitro <true/false> — Turn nitro on/off (default is false)
  • --duration <ticks> — Game duration in ticks, by default is 5 * 60 * 60 = 18000.
  • --log-file <path> — Path to file to save game log
  • --replay <path> — Path to game log file to replay
  • --noshow — Turn off visualization
  • --start-paused — Start paused
  • --no-countdown — Turn off countdown in the beginning of the game and after each goal
  • --until-first-goal — Finish game when first goal is scored
  • --fast-forward <tick> — Start viewing from specified tick
  • --seed <int> — Specify game seed
  • --vsync — Turn vertical synchronization on
  • --export-arena <path> — Export arena model to the specified file in obj format

Also, runner allows you to show some debug information on the screen (shown when you select schematic rendering). To do so, override custom_rendering/customRendering method of MyStrategy. The method is called once per tick after calling act method for all of your robots.

This method should return string that will be shown on the screen. Debug information is saved in runner for each tick, so it works with rewinding.

Also, if the returned string can be correctly parsed into a special JSON, you can also show spheres/lines/text. JSON is a list of objects to show. For example (here r,g,b,a — red/green/blue/alpha components of color):

[
  {
    "Sphere": {
      "x": 2.0,
      "y": 5.0,
      "z": 15.0,
      "radius": 0.1,
      "r": 1.0,
      "g": 0.0,
      "b": 0.0,
      "a": 0.5
    }
  },
  {
    "Text": "Debug text #0"
  },
  {
    "Line": {
      "x1": 0.0,
      "y1": 0.0,
      "z1": 0.0,
      "x2": 10.0,
      "y2": 20.0,
      "z2": 30.0,
       "width": 1.0,
       "r": 1.0,
       "g": 1.0,
       "b": 1.0,
       "a": 1.0
    }
  }
]


alkozel

alkozel

Калужский филиал ГУ СДА при Спецстрое России

Please tell me as a runner to change the settings. Thank you.

Dec 17, 2018 11:25:48 AM
qwertyiop
alkozel

alkozel

Калужский филиал ГУ СДА при Спецстрое России

Please tell me as a runner to change the settings. Thank you.

Via the command line

Dec 17, 2018 2:19:15 PM
JAMES_HARDEN

JAMES_HARDEN

Nizhny Novgorod

at vin7 adpet local runner INFO - Waiting for client on port 31001 INFO - Guessed window DPI factor: 1 INFO - GL version: “3.1.0 - Build 8.15.10.2559” thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: ShaderCompilationError { log: “ERROR: 0:1: '' : Version number not supported by OGL driver\nERROR: 0:2: 'the precision' : syntax error parse error\n\n\u{0}” }’, libcore\result.rs:1009:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

Dec 17, 2018 3:52:49 PM
Scarlet

Windows 7 HP x86: “The version of this file is incompatible with your version of Windows. Using the information about the system define the required version (32 - bit or 64-bit) and contact the software publisher.” Where can I get for x86?

Dec 17, 2018 8:01:25 PM
wall-e

wall-e

Buy 'n' Large Megacorp.

Windows 7 HP x86: “The version of this file is incompatible with your version of Windows. Using the information about the system define the required version (32 - bit or 64-bit) and contact the software publisher.” Where can I get for x86?

similar to the java local runners was more practical… but there reversity been easier

Dec 17, 2018 8:02:55 PM
Alexyz

Alexyz

Университет ИТМО

How to start localrunner with custom arena options? Or guaranteed that they always constant?

Dec 17, 2018 8:40:53 PM
DukeKan

DukeKan

Samara

INFO - Guessed window DPI factor: 1 thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: NoAvaila blePixelFormat’, libcore\result.rs:1009:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

when you run LR on Windows 7 x64

Dec 17, 2018 10:45:25 PM
pandafas

pandafas

Minsk

Tell me, please, what do you mean helper ? (when you put 2 players - both of them just standing there, when –helper p2, then the first player plays the rules) Thanks in advance.

Dec 18, 2018 1:42:49 AM
mixei4

mixei4

КГУ

pandafas

pandafas

Minsk

Tell me, please, what do you mean helper ? (when you put 2 players - both of them just standing there, when –helper p2, then the first player plays the rules) Thanks in advance.

helper - this is probably a simple AI, and everything is local runner.

Dec 18, 2018 2:37:15 AM
sigmadial

sigmadial

СПб ГЭТУ (ЛЭТИ)

Hi Organizers, please add links to LocalRunner for x86 architecture, 32bit for windows and linux. Here page zip only with x64. Thank you.

Dec 18, 2018 6:25:43 AM
mixei4

mixei4

КГУ

Really want to debug local runner was waiting for a strategy, not turn it off after 20 seconds.

Dec 18, 2018 7:50:56 AM
AlexKol

AlexKol

BB

mixei4

mixei4

КГУ

Really want to debug local runner was waiting for a strategy, not turn it off after 20 seconds.

Support

Dec 18, 2018 8:16:56 AM
Flutter

Flutter

Nitka Technologies

AlexKol

AlexKol

BB

Support

Yeah, like before the synchronous mode can be enabled.

Dec 18, 2018 2:03:04 PM
ALN

ALN

Ukraine

That would be another local runner to enable vsync, 1.5 fps nobody wants to check like with this case when watching the game on the website in the browser. z.s. Local runner can be saporiti vsync via the driver, but in the browser XS.

Dec 18, 2018 2:34:51 PM
aplayt

aplayt

Moscow

Please add to the command line or to the display settings were preserved(full/simplified view) and then to switch to simplified on my Mac 1фпс and to switch we still have 10-20 seconds to spend and extra steps to produce, which can be easily automated

Dec 19, 2018 10:12:04 AM
Adler

Adler

Dzyarzhynsk

aplayt

aplayt

Moscow

Please add to the command line or to the display settings were preserved(full/simplified view) and then to switch to simplified on my Mac 1фпс and to switch we still have 10-20 seconds to spend and extra steps to produce, which can be easily automated

+1

still hunting to have the camera at the start was on top and the whole playing field is placed in the screen. or at least to be able just by clicking one button to switch to this form.

Dec 19, 2018 12:50:40 PM
NanoBones

NanoBones

Kaliningrad

does not send the blank line at the end of the match, or c# the client will not accept it. After the match strategy hangs until you close lokalbaner, and then crashes with the exception “the remote host broke the connection”

Dec 19, 2018 1:04:35 PM
JIo6cTep

JIo6cTep

Samara

It’s not like the version under macOs updated. At least –fast-forward is not working and –help old.

Dec 19, 2018 10:59:35 PM
and0

and0

Netcracker

DukeKan

DukeKan

Samara

INFO - Guessed window DPI factor: 1 thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: NoAvaila blePixelFormat’, libcore\result.rs:1009:5 note: Run with RUST_BACKTRACE=1 for a backtrace. when you run LR on Windows 7 x64

not fixed yet? the same problem

Dec 20, 2018 6:50:54 PM
jimor

jimor

Taganrog

Adler

Adler

Dzyarzhynsk

+1 still hunting to have the camera at the start was on top and the whole playing field is placed in the screen. or at least to be able just by clicking one button to switch to this form.

I would also like to clicking on buttons 1..6 camera switched to the robot with the id and showed it towards the ball. To tailor strategies for different players would be easier.

Dec 20, 2018 11:17:13 PM
AlexKol

AlexKol

BB

And somebody running output custom information, try a simple sphere and a segment display and nothing. Runner and version took a new

Dec 22, 2018 11:38:45 AM
Sneer

Sneer

Pushkino

AlexKol

AlexKol

BB

And somebody running output custom information, try a simple sphere and a segment display and nothing. Runner and version took a new

Works, you only need to give the correct JSON (check the brackets and commas) and switch to the simplified graphics in lokalbaner

Dec 22, 2018 12:06:06 PM
AlexKol

AlexKol

BB

Sneer

Sneer

Pushkino

Works, you only need to give the correct JSON (check the brackets and commas) and switch to the simplified graphics in lokalbaner

And what kind of change? What is a team?

Dec 22, 2018 12:10:13 PM
DistinGa

DistinGa

Krasnoyarsk

In the setting of the runner, underneath the speed the word “complete” is active. Click and switch to the simplified schedule.

Dec 22, 2018 12:13:03 PM
AlexKol

AlexKol

BB

Thank you very much. I do not even see. Really somewhere in the line the error is, because it simply displays the text of what I sent

Dec 22, 2018 12:19:29 PM
Proletariat

Proletariat

ЗАО

thread main panicked at caledResult::unwrap()on anErrvalue: ShaderCompilationError { log: "ERROR: 0:1:\` : Version number not supported by OGL driver\n\u{0}" }`, libcore\result.rs:1009:5 Where to go? What to do?

Dec 22, 2018 1:57:12 PM
Flutter

Flutter

Nitka Technologies

Now if you stop local runner in the debugger, and then run on - starts running sho bad. I forgot the time counter to stop.

Dec 22, 2018 3:29:51 PM
Counterbalance

Counterbalance

Netherlands

Proletariat

Proletariat

ЗАО

thread main panicked at caled Result::unwrap() on an Err value: ShaderCompilationError { log: "ERROR: 0:1:\ : Version number not supported by OGL driver\n\u{0}" }, libcore\result.rs:1009:5 Where to go? What to do?

You probably need to upgrade your video card drivers. When starting local runner, it says something like this: INFO - GL version: “4.6.0 NVIDIA 398.11” I think your GL version is older than 2.0.0..

Dec 22, 2018 7:49:29 PM
lama

lama

Akademos Inc.

I have one in the latest version of the pause is triggered with a delay of a few seconds? Moreover, the icon on the button changes immediately. In the previous version everything was OK.

Dec 23, 2018 5:06:40 AM
tyamgin

tyamgin

Simferopol

lama

lama

Akademos Inc.

I have one in the latest version of the pause is triggered with a delay of a few seconds? Moreover, the icon on the button changes immediately. In the previous version everything was OK.

I have as well. As far as I noticed, the delay time is directly proportional to the brake strategy.

Dec 23, 2018 12:08:05 PM
Proletariat

Proletariat

ЗАО

I don’t have the opportunity to start in easy mode. Is it possible to add the appropriate command into arguments Rahner

Dec 24, 2018 4:43:58 PM
Wsl_F

Wsl_F

Google

you can do that would be during replay strategy podrujilis to lokal runner, but her actions were ignored? it would be very convenient debajit:)

Dec 25, 2018 5:01:57 PM
aj15

aj15

India

When I run my Runner.py file, I get the following error: TypeError: the JSON object must be str, not ‘bytes’

Can someone explain this?

Dec 26, 2018 12:13:38 PM
aj15

aj15

India

aj15

aj15

India

When I run my Runner.py file, I get the following error: TypeError: the JSON object must be str, not ‘bytes’ Can someone explain this?

Got it! https://github.com/fabienvauchelles/scrapoxy-python-api/issues/5

Dec 26, 2018 12:37:14 PM
Adhami

Adhami

Amman

You could download the log file of any match if you opened developer tools and then download the file that is big (it will start downloading when you run the game in the browser) and save it as .log and use local runner to replay it.

Dec 26, 2018 10:28:43 PM
Adhami

Adhami

Amman

Adhami

Adhami

Amman

You could download the log file of any match if you opened developer tools and then download the file that is big (it will start downloading when you run the game in the browser) and save it as .log and use local runner to replay it.

It’s type is xhr

Dec 26, 2018 10:40:21 PM
Dimon777

Dimon777

?? ????

–fast-forward not working can do that…Still would be nice to add an argument to the invoice output to a file

Dec 27, 2018 6:29:35 PM
tyamgin

tyamgin

Simferopol

Dimon777

Dimon777

?? ????

–fast-forward not working can do that…Still would be nice to add an argument to the invoice output to a file

The account is written in a –results-file res.txt

Dec 27, 2018 6:41:53 PM
Wsl_F

Wsl_F

Google

Tell, please, and seed in local runner and token classes Runner and RemoteProcessClient are the same or different?

Dec 27, 2018 6:51:52 PM
Dimon777

Dimon777

?? ????

tyamgin

tyamgin

Simferopol

The account is written in a –results-file res.txt

thank you

Dec 27, 2018 8:01:17 PM
mhmmdshirazi

mhmmdshirazi

Tehran

I have problem to run the local runner on mac 10.14!! Does anybody run it on 10.14?

Dec 27, 2018 9:34:51 PM
xoke

xoke

Japan

I’m trying to display information by customrendering. But I don’t understand the following description(from above Local Runner usage),
(shown when you select schematic rendering) What is the “schematic rendering”? Is there any related cli option? plz help me.

Dec 29, 2018 7:49:57 PM
Adler

Adler

Dzyarzhynsk

xoke

xoke

Japan

I’m trying to display information by customrendering. But I don’t understand the following description(from above Local Runner usage),        (shown when you select schematic rendering) What is the “schematic rendering”? Is there any related cli option? plz help me.  

What is the “schematic rendering”?

switches by pressing ‘V’ in Local Runner

Dec 29, 2018 7:54:59 PM
xoke

xoke

Japan

Adler

Adler

Dzyarzhynsk

switches by pressing ‘V’ in Local Runner

wow, I didn’t know that! thanks!
btw How did you notice it? Are there other resources about Local Runner? I only read this page and cli help.

Dec 29, 2018 8:26:08 PM
reireg

reireg

Russia

xoke

xoke

Japan

wow, I didn’t know that! thanks! btw How did you notice it? Are there other resources about Local Runner? I only read this page and cli help.

Clicking the button marked “?” in both the local and web runners will display a help overlay

Dec 29, 2018 11:06:58 PM
dbf

dbf

A

xoke

xoke

Japan

wow, I didn’t know that! thanks! btw How did you notice it? Are there other resources about Local Runner? I only read this page and cli help.

There is an (?) icon in right bottom corner with some keyboard shortcuts info.

Dec 29, 2018 11:12:58 PM
xoke

xoke

Japan

Thank you, men!

Dec 30, 2018 5:42:08 AM
Alkan

Alkan

МГУ им. М.В. Ломоносова

please tell me how to display the data on the robot in the tick, such as their height.

Dec 31, 2018 1:20:52 AM
Alkan

Alkan

МГУ им. М.В. Ломоносова

please tell me how to display the data on the robot in the tick, such as their height.

Dec 31, 2018 1:20:55 AM
Casey1984

Casey1984

Rybnoye

I localrunner under win32 crashes with APPCRASH, what to do?

Dec 31, 2018 12:45:50 PM
Volandpro

Volandpro

Moscow

Alkan

Alkan

МГУ им. М.В. Ломоносова

please tell me how to display the data on the robot in the tick, such as their height.

Through customRendering

Dec 31, 2018 12:46:48 PM
Casey1984

Casey1984

Rybnoye

Casey1984

Casey1984

Rybnoye

I localrunner under win32 crashes with APPCRASH, what to do?

It turns out I have very too a graphics card that does not support the required OpenGL version and driver under Windows it is not available with 2009. Solution: installed Mesa: https://github.com/pal1000/mesa-dist-win/releases

Dec 31, 2018 10:53:03 PM
Casey1984

Casey1984

Rybnoye

Casey1984

Casey1984

Rybnoye

It turns out I have very too a graphics card that does not support the required OpenGL version and driver under Windows it is not available with 2009. Solution: installed Mesa: https://github.com/pal1000/mesa-dist-win/releases

… too old…

Dec 31, 2018 10:53:45 PM
Dimon777

Dimon777

?? ????

When debugging I noticed such thing: when the coincidence of coordinates of the ball and sphere (with the same radius) visually they don’t match, and the match will be at the previous tick. This is how it should be or a bug?

Jan 3, 2019 12:13:38 AM
Dimon777

Dimon777

?? ????

Dimon777

Dimon777

?? ????

When debugging I noticed such thing: when the coincidence of coordinates of the ball and sphere (with the same radius) visually they don’t match, and the match will be at the previous tick. This is how it should be or a bug?

Yeah, wanted to add: the coordinates are checked using a custom field Text rendering c

Jan 3, 2019 12:15:26 AM
leloy

leloy

Organization::Ateneo de Manila

What is the coefficient of restitution used in collide_entities() when --disable-random is used?

Jan 3, 2019 9:47:58 AM
dbf

dbf

A

leloy

leloy

Organization::Ateneo de Manila

What is the coefficient of restitution used in collide_entities() when –disable-random is used?

MAX_HIT_E for collisions, robots sorted by id https://github.com/MailRuChamps/raic/blob/master/CHANGELOG.md

Jan 3, 2019 10:13:49 AM
leloy

leloy

Organization::Ateneo de Manila

dbf

dbf

A

MAX_HIT_E for collisions, robots sorted by id https://github.com/MailRuChamps/raic/blob/master/CHANGELOG.md

thanks!

Jan 3, 2019 10:37:33 AM
ALN

ALN

Ukraine

Small but comfortable wish. I wish pause could be turned on/off by pressing “q” for the local runner, and an online staring contest.

Jan 5, 2019 2:54:55 AM
leloy

leloy

Organization::Ateneo de Manila

ALN

ALN

Ukraine

Small but comfortable wish. I wish pause could be turned on/off by pressing “q” for the local runner, and an online staring contest.

You can pause/unpause by pressing “p”

Jan 5, 2019 3:28:16 AM
ALN

ALN

Ukraine

leloy

leloy

Organization::Ateneo de Manila

You can pause/unpause by pressing “p”

You can pause/unpause by pressing “p” Yes, I know, but “p” is far from “wasd” buttons, which rotates “viewangle”, the other hand controls “right” and “left” - these are the Tick rewind buttons. “P” is not comfortable. The space button would be convenient, but it is busy, so “q” ))

Jan 5, 2019 4:01:56 AM
leloy

leloy

Organization::Ateneo de Manila

ALN

ALN

Ukraine

Sounds reasonable but it’s also close to “0” which disentangles the camera from the ball. We should just leave the controls as is.

Jan 5, 2019 4:22:20 AM
MikeWazowski

MikeWazowski

Moscow

DukeKan

DukeKan

Samara

INFO - Guessed window DPI factor: 1 thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: NoAvaila blePixelFormat’, libcore\result.rs:1009:5 note: Run with RUST_BACKTRACE=1 for a backtrace. when you run LR on Windows 7 x64

same problem, win10, computer on C2Duo with on-board Intel card and native monitor resolution of 1680x1050

Jan 5, 2019 2:41:33 PM
MrDindows

MrDindows

Snap Inc.

The width parameter does not work with Line under Mac OS (10.13.6)

Jan 11, 2019 1:27:16 AM
tyamgin

tyamgin

Simferopol

MrDindows

MrDindows

Snap Inc.

The width parameter does not work with Line under Mac OS (10.13.6)

+1

Jan 11, 2019 11:06:41 AM