/tw-devtool-console.app

Modding Devtool Console for Total War games as a Desktop application

Primary LanguageJavaScriptMIT LicenseMIT

TW Modding Devtool Console

An electron application for Total War games that lets you execute LUA code while the game is running.

It aims to provide a basic REPL (read eval print loop) to assist in mod scripting.

Supports Troy and Warhammer 2.

Modding Console App

Install

Windows 7+ platforms are supported (64-bit only).

Windows

Download the .exe file.

Features

This application is basically an enhanced version of the Modding DevTool Console mod for Warhammer 2

  • Better editing with syntax highlighting and proper multiline support (Press Enter to execute, Shift+Enter to insert a new line)
  • History of commands (navigate through them with Up / Down arrow while on the command prompt)
  • _0 special variable is a reference to the last UIComponent clicked within the game
  • Use print() to debug variables
  • Implicit return on the last statement
  • Inspect variables and tables like cm or core

Possible improvements: auto-completion, log files panel, support for more games (Three Kingdoms, Thrones of Britannia, ...)


Dev

Built with Electron.

Run

$ npm install
$ npm start