| 2 | This client implements a subset of the features found on the Clojure client. All commands in this client block until completion. |
| 3 | |
| 4 | To run the client, open up a terminal and cd to the top level directory and type |
| 5 | |
| 6 | {{{ |
| 7 | bash-4.2$ sh run |
| 8 | irb(main):001:0> |
| 9 | }}} |
| 10 | |
| 11 | This script will load core.rb and start the ruby interpreter. To open up a map use the 'ioquake' function with a mapname. |
| 12 | |
| 13 | {{{ |
| 14 | irb(main):001:0> ioquake 'sat' |
| 15 | }}} |
| 16 | |
| 17 | ioquake should now be running in a separate process. Set the fullscreen option to false in setup if ioquake is maximized. Now hit ` to free the cursor from ioquake. A new quagent can be added by calling Quagent.new (this may take several tries): |
| 18 | |
| 19 | {{{ |
| 20 | irb(main):007:0> q1 = Quagent.new |
| 21 | => #<Quagent:0xb7696538 @conn=#<TCPSocket:0xb76964d4>> |
| 22 | irb(main):008:0> Quagent connected at socketfd 30. |
| 23 | loaded skill 1 from bots/default_c.c |
| 24 | loaded skill 1 from bots/sarge_c.c |
| 25 | loaded bots/sarge_i.c |
| 26 | loaded bots/sarge_w.c |
| 27 | loaded sarge from bots/sarge_t.c |
| 28 | ev jo 1 quagent |
| 29 | }}} |
| 30 | |
| 31 | |
| 32 | |