real time Debug
real time Debug
Hello dear robot constructors,
I've decided to start building a robot for Lux, I'm using windows XP system and using Eclipse as my IDE.
Can any of you share some info on how do I debug the robot on real time? (i.e. using "step in"/ "step out" and wathcing variables values while a game is running)
Thanks in advance
Inon
I've decided to start building a robot for Lux, I'm using windows XP system and using Eclipse as my IDE.
Can any of you share some info on how do I debug the robot on real time? (i.e. using "step in"/ "step out" and wathcing variables values while a game is running)
Thanks in advance
Inon
i have a tip for you (although im not a bot maker myself)
If you look through the forums u will notice that there are certain ideas that people had for what they would like a new bot to have. Many would like a vengeful bot, one that would send a large number of armies to hit you if you killed a set % of its armies. Do you know what i mean? If you are new, this might be beyond you, but if you can do it, try it.
If you look through the forums u will notice that there are certain ideas that people had for what they would like a new bot to have. Many would like a vengeful bot, one that would send a large number of armies to hit you if you killed a set % of its armies. Do you know what i mean? If you are new, this might be beyond you, but if you can do it, try it.
I'm using Windows
Thanks for the help, but the link you added explains how to work with Xcode (Mac Os).
Does anyone managed to debug in realtime in some windows based IDE ?
Does anyone managed to debug in realtime in some windows based IDE ?
the main class
I need to tell the eclipse which file inside the JAR contains the main function to be executed. Can you tell me which file is it ?
O.k !!!! problem solved.
For future viewers I'll just say that eclipse has a feature where it searches the external jars for main functions.
Let's start working now....
O.k !!!! problem solved.
For future viewers I'll just say that eclipse has a feature where it searches the external jars for main functions.
Let's start working now....
An updated version of Lux was just released today (detailed here). You should update to that since it changes the main class. From version 5.62 and on the main class inside the jar is com.sillysoft.lux.Lux
Oh, I just saw you solved it already, cool. If you could list out any steps you had to take it would surely be useful for more people in the future.
Oh, I just saw you solved it already, cool. If you could list out any steps you had to take it would surely be useful for more people in the future.
If anyone is interested, real-time debugging is easy to setup in the NetBeans IDE. This is what I use for all my java programming. Once you have climbed the initial learning curve, it is a joy to work with. It can be gotten from http://www.netbeans.info/downloads/all.php?b_id=2323
Here is an overview of the setup steps, once you have downloaded the Lux SDK and Netbeans. I use the Windows version, but it is supported in Linux and OS X.
Create a new project
Add the LuxSDK/src folder to the project
In the project properties, libraries tab, add LuxCore.jar as a compile-time library
In the project properties, run tab, set main class as com.sillysoft.lux.Lux, and set the Working Directory as the Lux folder (where you found LuxCore.jar)
From the main interface, project (or files) tab, select the src directory, drill down to com/sillysoft/lux/agent, creaty a new empty java file and copy another bot (like angry.java) into it
From the build menu, Build the main project (F11)
If you want, set breakPoints in your source (click to the left of any line), and from the Run menu, Debug Main Project (F5).
Here is an overview of the setup steps, once you have downloaded the Lux SDK and Netbeans. I use the Windows version, but it is supported in Linux and OS X.
Create a new project
Add the LuxSDK/src folder to the project
In the project properties, libraries tab, add LuxCore.jar as a compile-time library
In the project properties, run tab, set main class as com.sillysoft.lux.Lux, and set the Working Directory as the Lux folder (where you found LuxCore.jar)
From the main interface, project (or files) tab, select the src directory, drill down to com/sillysoft/lux/agent, creaty a new empty java file and copy another bot (like angry.java) into it
From the build menu, Build the main project (F11)
If you want, set breakPoints in your source (click to the left of any line), and from the Run menu, Debug Main Project (F5).
Cool, thanks for the steps Bertrand. I added them to (a subpage off of) the WritingYourOwnAI wiki page, and did a little bit of clean up there also.
Who is online
Users browsing this forum: No registered users and 52 guests