Skip to content
rictic edited this page Sep 13, 2010 · 7 revisions

Welcome to the Mario-AI-Competition-2009 wiki!

SERVER INTERFACE

A server can be started with “pcmoritz@earth:~/download/svn/trunk/classes$ java ch.idsia.scenarios.MainRun -server on”. I first had to set the server up like this:
1.) grab “http://marioai.googlecode.com/svn/”
2.) change according to “http://groups.google.com/group/mariocompetition/browse_thread/thread/a6fdcf3529f37372#”
3.) run “ant” in the directory “svn”.

If you want to improve the TCP-Interface: that can be found in /src/ch/idsia/tools/tcp/. Right now, there are two possibilities to connect to the server: TCP_MODE.SIMPLE_TCP and TCP_MODE.FAST_TCP, but none of the two gives full information (like floating-point coordinates of the mario).

MOVEMENT OF THE MARIO

From the IRC:
> has anybody figured out how the mario moves?
> for non-speedmode, vecocity seems to be approx. 5.4544067
> are there exact numbers?
> how does the engine calculate that?
> or do you use the engine in any way to get these numbers (what would happen if i do a jump in this frame, etc.)?
pcmoritz: his speed is damped by xa = 0.89 every frame. xa += 0.6 for walking, 1.2 for running. by geometric series, the asymptote is speed0.89/(1-0.89) or 4.854 walking, 9.709 for running
read src/ch/idsia/mario/engine/sprites/Mario.java for the craziness of how he moves

Clone this wiki locally