Autonomous Characters

Fall 2003

Tuesdays 3:00-5:50pm

Location: HIB335

Directions for Compiling the Codebase

Note: These directions may not correspond exactly to the versions of software that you will be using.  Therefore, it is important that you follow the spirit of the directions, rather than the exact letter of them.  If you are having trouble, please ask any classmates who are nearby, or email me (wmt@uci.edu) and I will do my best to help.

  1. Make sure you are logged in as ACE_<usernumber>.
  2. Create a directory called c:\Files\ACE\ACE_<usernumber>\ on your machine.  If the c:\Files\ACE directory does not exist, please create it, then make your directory inside it.
  3. Locate the codebase zip file on the network drive in the lab – X:/ORIGINALS/source.zip.
  4. Copy the zip file to your directory.
  5. Right click it and “extract all” of the zip file into your directory (e.g., c:/Files/ACE/ACE_01).  (It may want to put them in a “source” subdirectory, but if you delete the word “source” from the directory name, it will put them at the proper level.)
  6. Start->Software Develop->Eclipse
  7. File->new ->project
  8. Java->Java Project->Next->
  9. Project name = AC
  10. Unclick use default
  11. Directory: c:/Files/ACE/ACE_<USERNUMBER>/code
  12. Click Finish
  13. It may chug away for a few minutes  It should create a directory called bin inside the code directory.  If the bin directory is anywhere else, you probably typed in the directory wrong (like I did the first time!), right click on the AC project in Ecplise (say no when it asks you to delete the content), then delete the bin directory. Then go back to # 6 and try it again, this time with the right directory.
  14. If asked, switch to the Java Perspective.
  15. It'll chug away for a bit, and the bottom window will eventually fill with a bunch of warnings.
  16. Change the filter settings by clicking on the small icon with three arrows at the top right of the Tasks window (bottom of eclipse screen). 
    1. Unclick task
    2. Click the box before "Where problem severity is" and click "error"
    3. Click okay, and the warnings should disappear.
  17. Turn on Window->Preferences->Java->Editor->Show Line Numbers
  18. Go to window->preferences-> Workbench->check "Save all modified resources automatically prior to manual build."
  19. The Tasks window should now be empty.  If not, we begin some compile-time debugging.
  20. ***Make the following changes to the code:  In content/ac/PersonACE_01.java, lines ~75 and ~85 (both of which read:

 

happinessSlider.setValue((int) (happiness * 1000));

 

need to have the following line inserted BEFORE them:

 

if (!Demo.fullScreen)

 

      Then save PersonACE_01.java, which should compile it.

  1. Go run the demo using “Directions for Running the Demo.”