Changes between Version 1 and Version 2 of Sandbox


Ignore:
Timestamp:
Aug 24, 2011 12:45:06 AM (13 years ago)
Author:
jherwitz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Sandbox

    v1 v2  
    1515The sandbox is a useful tool for developers. It is implemented, as noted above, as a skeleton extension of the Scenario class. While this extension may be freely modified depending on the developers need, the simplest way to test code is by inserting code into
    1616
    17 ''Adding Maps''
     17'''Adding Maps'''
    1818
    19 ''Adding Code''
     19To add a newly created map:
     20 * First, place your created map .bsp and .aas files in the ioquake3/build/release*/quagents/3/maps directory. Alternatively, you may add the map .bsp and .aas to the pak map file located in the same directory.
     21 * Secondly, add the map to the Sandbox class. Do this by adding a new element, with the same name as your map, to the ''maps'' array located at the top of the file. E.g., if your map is defined by foo.bsp and foo.aas, you would add "foo" to the static array.
     22
     23'''Adding Code'''
     24For most intents and purposes, adding code to QuagentsSandbox.java will suffice for sandbox testing. Specifically, the constructor and the executeCode() function will automatically called by the sandbox scenario, so the developer may use these blocks to test code.