Skip to content

Development options

tukkek edited this page Jul 2, 2016 · 22 revisions

There is a file called preferences.properties on Javelin's main folder. Alongside other user options you can enable some cheats there to help with testing the game. You can also edit this file from the game editor by pressing o outside of combat.

If you're on Windows try to avoid Notepad and use Wordpad, Notepad++ or any other decent text editor instead to change this file.

Ideally this file should become a more user-friendly option screen by the 2.0 release.

Note that some of these options can and will break certain aspects of the game if active. These are intended for development/testing purposes, not for cheating the gameplay - though certainly they can be used for that too at your own risk.

Each line contains a option.name=value pair and can be disabled by putting a hash character (#) at the very beginning. To re-enable that line just remove the hash.

Most of these should work by configuring them via the in-game options configuration, without restarting the game (though in some cases you may need to press a key for the screen to update or move once for the game world to update). If that doesn't work you may need to restart the application or start a whole new game (which should be fixed at some point).

Note that since this page is used for team coordination it may refer to some options that are already in the game, but on a version that hasn't yet been released to the public.

Debug mode

There are other tools that are not options but can help in testing the game. For this you need to add -Ddebug=true to your javelin.bat or command line when launching the game. Note that debug mode is intended for developing the game, not just testing so other behaviors may change as well and the game is going to be slower because more information is gathered, more sanity checks are made, etc.

  1. If you try to withdraw from battle while engaged with an opponent you can just automatically end the battle.

  2. You are always able to work (world action) even if you don't have Workers in your squad. This can help by letting you build inns for example to rest anywhere on the map.

Options list


cheat.combat=false

cheat.xp=9000

cheat.gold=9000

cheat.haxor=9000

cheat.labor=9000

cheat.world=show

cheat.garrison=clear

cheat.monster=orc

cheat.period=noon

cheat.map=forest.Dense

cheat.foes=1

cheat.weather=storm

cheat.season=summer


Below are descriptions for the less intuitive options:

cheat.world: when active will show the entire world screen.

cheat.garrison: when active will create a game world without defenses for fortifications. Makes it easier to test some of them and may break others.

cheat.monster: if active all random battles will feature one of these for easier testing.

cheat.period: will force a certain time of day during battles. Possible values are: morning, noon, evening, night.

cheat.map: all random battles will feature this map instead of choosing one based on current location. See Maps for the supported values.

cheat.foes: determines exact number of foes to appear on random encounters.

cheat.weather: determines amount of rain. Possible values are: dry, rain and storm.

cheat.season: accepts spring, summer, autumn and winter (obviously).

Clone this wiki locally