Skip to content

Commit

Permalink
More little improvments in examples
Browse files Browse the repository at this point in the history
Former-commit-id: 82177fe
  • Loading branch information
mwydmuch committed Apr 18, 2016
1 parent 836d8e7 commit 3c3529e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Also, for Java binding JAVA_HOME environment variable must be set.

###Windows

We are providing compiled runtime binaries and development libraries for Windows [here](https://github.com/Marqt/ViZDoom/releases/download/1.0.0-rc/ViZDoom-1.0.0-rc-Win-x86_64.zip)
We are providing compiled runtime binaries and development libraries for Windows [here](https://github.com/Marqt/ViZDoom/releases/download/1.0.0/ViZDoom-1.0.0-Win-x86_64.zip).

####Dependencies
* CMake 3.0+
Expand Down
2 changes: 1 addition & 1 deletion examples/java/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void main (String[] args) {
DoomGame game = new DoomGame();

// Sets path to vizdoom engine executive which will be spawned as a separate process. Default is "./vizdoom".
game.setViZDoomPath("../../bin/vizdood");
game.setViZDoomPath("../../bin/vizdoom");

// Sets path to doom2 iwad resource file which contains the actual doom game-> Default is "./doom2.wad".
game.setDoomGamePath("../../scenarios/freedoom2.wad");
Expand Down
7 changes: 5 additions & 2 deletions examples/java/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
Use CMake to generate Makefile or project or build it using:
```bash
javac -classpath "../../bin/java/vizdoom.jar" Example.java
jar cf ../../bin/examples/example.jar Example.java
jar cf ../../bin/examples/example.jar Example.class
```

Examples will be build in ``vizdoom_root_dir/bin/examples``.
To run example use:
``java -Djava.library.path="../java" -classpath "../java/vizdoom.jar:example.jar" Example``
```bash
java -Djava.library.path="../java" -classpath "../java/vizdoom.jar;example.jar" Example
```


To run the examples, [freedoom2.wad]( https://freedoom.github.io/download.html) should be placed in the ``scenarios`` subdirectory.

Expand Down
4 changes: 2 additions & 2 deletions examples/java/Seed.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public static void main (String[] args) {
DoomGame game= new DoomGame();

// Choose scenario config file you wish to be watched by agent.
// Don't load two configs cause the second will overwrite the first one.
// Multiple config files are ok but combining these ones doesn't make much sense.
// Don't load two configs cause the second will overwrite the first one.
// Multiple config files are ok but combining these ones doesn't make much sense.

//game.loadConfig("../../examples/config/deadly_corridor.cfg")
//game.loadConfig("../../examples/config/defend_the_center.cfg")
Expand Down
2 changes: 1 addition & 1 deletion examples/java/Spectator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void main (String[] args) {

DoomGame game= new DoomGame();
// Choose scenario config file you wish to watch.
// Don't load two configs cause the second will overrite the first one.
// Don't load two configs cause the second will overwrite the first one.
// Multiple config files are ok but combining these ones doesn't make much sense.

//game.loadConfig("../../examples/config/basic.cfg");
Expand Down
2 changes: 1 addition & 1 deletion examples/python/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
To run the examples, [freedoom2.wad]( https://freedoom.github.io/download.html) should be placed in the ``scenarios`` subdirectory.
Furthermore, you need to have ``vizdoom.so`` present (or symlinked) in the ``examples/python`` directory (on Linux it should be done automatically by the building process).
Furthermore, you need to have ``vizdoom.so/vizdoom.pyd`` present (or symlinked) in the ``examples/python`` directory (on Linux it should be done automatically by the building process).

---
##Examples
Expand Down

0 comments on commit 3c3529e

Please sign in to comment.