Wayward

Wayward

Not enough ratings
Using the Wayward Console & Developer Tools
By Drathy
A guide on how to use the console and developer tools in Wayward.
   
Award
Favorite
Favorited
Unfavorite
Overview
Wayward is built using web technologies and distributed with Electron, which uses Chromium, the open-source project that Chrome is based on. Because of this, you are able to modify the game in real-time using the console and other developer tools available normally within Chromium.

You can additionally edit the game in many ways using the Debug Tools mod available on the Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=474819610
Opening the Developer Tools
To open the developer tools in Wayward, you can do one of the following:

1. Set the "devtools" option to true within the launch_options.json. You can get more information on how to do this within the Reporting Bugs & Debugging for Wayward located here: http://steamcommunity.com/sharedfiles/filedetails/?id=798938225 and navigating to the “Opening and editing the launch_options.json” section.

2. Open Wayward and navigate to the Options menu. At the very bottom under "Developer Options", you will see a button to "Toggle Developer Tools".



If the "Developer Mode" is enabled (bound to F9 by default), you can also toggle the developer tools with F10 by default while in-game.

You can detach the developer tools to it's own window, change its position, navigate through the tabs: Elements, Console, Sources, etc. to access anything you wish internally.
Console Examples
Editing Your Character

Through the use of the localPlayer property, you can change many aspects of your character, including things like stats, skills, weight, and even inventory items.

Typing localPlayer in the console input section (near the bottom) and hitting enter will output the localPlayer object which you can expand and navigate. Clicking the values will allow you to edit them. Hitting enter after editing a property value will save it.



Some properties need to be set via console to take effect, like editing your strength.

localPlayer.stat.set(11, 100);

After hitting enter, you will have 100 strength (which will increase your health and carrying limit).

Adding Items to Your Inventory

itemManager.create(1, localPlayer.inventory);

You can replace the “1” with any number between 1 and 633 (the current amount of items in Wayward).

Changing the Game Mode

game.difficulty = 0; game.difficulty = 1;

0 is hardcore, and 1 is casual mode.
More Console Examples
You can get as complex or long as you want with writing console commands. You are able to copy and paste one or more of the following:

Remove All Items/Creatues/Doodads/Etc.

for (item of localPlayer.island.items) { if (item) { itemManager.remove(item); } } for (doodad of localPlayer.island.doodads) { if (doodad) { doodadManager.remove(doodad); } } for (creature of localPlayer.island.creatures) { if (creature) { creatureManager.remove(creature); } } for (event of localPlayer.island.tileEvents) { if (event) { tileEventManager.remove(event); } } for (corpse of localPlayer.island.corpses) { if (corpse) { corpseManager.remove(corpse); } }

Randomize All Growing Doodads

for (doodad of localPlayer.island.doodads) { if (doodad) { doodad.setGrowingStage(Math.floor(Math.random() * 4 + 1), true); } }
Saving Your Console Logs
Sometimes it’s more efficient to save your current game’s log, instead of the full log available in your Wayward folder (since that keeps of every game you’ve ever played). To do this, simply right click anywhere within the console and choose “Save as…”.
Modding
If you want more freedom and permanence with customizing and editing Wayward, a good place to start would be the Modding Guide available here: https://github.com/WaywardGame/types/wiki

With modding, you will no longer be restricted to the console and guessing at properties to change or alter. Not everything is possible to edit with the console (at least with not a lot of effort), but with modding, most of these things are exposed for you to explore.
1 Comments
Anketam Feb 20, 2021 @ 11:29am 
Is it possible to use the developer console to determine what items for Collector, tiles for Explorer, creatures for Huntsman & Pacifier or actions for Operator milestones the one has already collected/done?