- My Agent AI isn't moving in the race!
This can be caused by a number of issues:
- In Eclipse go to the Java EE perspective and make sure there are no errors in the CodeRallyVehicles project. The most common issue is sometimes the Libraries aren't configured correctly preventing the code from compiling. To fix this right-click on the coderallyvehicles project>"configure build path". In that view click the "Add Library" button on the right hand side and select add runtime. From that menu select the Liberty Profile server from the list and click ok. This should now have fixed the compile error.
- If your code applies the brakes and reduces acceleration make sure you check to see if you aren't moving (getCar().getVelocity().Normalize()==0 will return true). The fix is to look carefully through your logic and to be careful on when you apply the brakes.
- You did not link your Agent AI to a Liberty Profile application server. When creating an Agent AI you need to make sure you select a Liberty server in the dropdown on the create/edit vehicle window. Before being able to select a Liberty server you need to have created it - the instructions to do so are on this page.
- The race is replaying really slowly.
This happens when you are racing as an Agent AI or against an Agent AI and the AI is not responding - the server will wait for a certain amount of time for the various AIs to decide what to do and communicate that to the server. If the AI does not respond at all then the server will wait the maximum amount of time per "tick" before advancing the race state. There's no fix you can do for this unless it is your AI not working (check the steps above for AIs not moving if you think it could be your AI).
- My race times are not appearing on the leaderboard on infoq's Code Rally challenge webpage!
Make sure you are racing on the correct server - in Eclipse go to the Code Rally perspective and click on the "server" tab in the left hand section (note not the "servers" area but the "server" tab above the list of AIs you have created). When there click the green "+" and make sure you have an entry for the correct server for your region:
- I can't create or start my Liberty Profile server
This is commonly caused if you have installed the game into a location in your file system that requires admin rights - close Eclipse and re-open it as admin to fix this issue.
- My AI is stuck on the edge of the track
There are 2 possible causes for this. Firstly is when your AI hits the edge of the race window it will be reduced to 10% of its maximum acceleration for 6 seconds -if you aren't accelerating heavily this will mean very low to no acceleration while this is in effect. The other issue is specific to the pond and challenge pond tracks - it is very easy for the insects to get stuck on the edge as their collision box is much bigger and has large, flat sides that can get stuck against the side of the track. The best solution is not to hit the side ;-)
- When trying to race I am told the server is offline - it doesn't look offline to me!
There are 2 causes for this issue. The first is that you sometimes see this error if you have not logged into a server before trying to race - on the enter race window please make sure that it says you are logged in at the bottom. If you don't see that, or see the login button at the bottom, please login before trying to race.
The second cause can a hiccup in the network when Eclipse tried to contact the server. If this happens please go to the code rally race servers window (the grey box next to the green "+" you press when creating an AI). In that view you will see a list of servers - find the one you want to race on, and click on it in the list. If you then click "test connection" it should succeed (if it doesn't then it is either a network issue preventing you from accessing the server, or the server is having difficulty). Once the connection test has been successful you should be able to close the window and enter a race.
- At the end of a race the replay window showed my place as "x" and a time of "00:00:00"
This sometimes happens if the race replay data was not completely received at the end of a race, and only makes the end time on the replay screen appear incorrect. If you re-watch the replay for the race, or go to the online leaderboard webpage, you will see the correct time is associated with your race.
If your problem isn't listed then feel free to ask on stac