dfhack/library
Tachytaenius b9c36c1e63
Added custom-raw-tokens utility (#2038)
* Added (chain) for [CHAIN_METAL_TEXT] armours in gui/materials.lua used by gui/create-item-- again (oops)

* Added customRawData utility

* Oops, whitespace

* Revised rawStringsFieldNames

* Dialed down on lua trickery and fixed wrongly formatted changelog entry

* Fixed changelog in wrong place and made customRawData a proper module

* Fixed not caching not-present tags, revised examples and fixed error

* Fixed whitespace. Changing settings in editor!

* customRawData docs

* Added getCreatureTag for respecting caste tags, "fixed" bizarre caching error (quotes because I don't even know what was causing it) and updated docs

* Added line limiting for docs, I guess

* Added missing string convert argument

* docs indent fix, code block fix, and revision

* Major revision

* gdi, docs error

* Another? But... huh.

* ...

* Made requested changes

* Whoops

* Rearrange docs lines

* Followed example, should fix linter issues

* fix typo. linted offline this time......

* Make it so that last instance of tag is what is read from

* Added requested change

* eventful key change

* i to lenArgs

* change eventful key

* add test for broken caste selection

* Major redesign

* tags --> tokens

* Added plant growth behaviour and did some requested changes

* More error handling

* fix docs

* Added basic error suppression

* Docs clarification.

* Docs registering example and fix error

* Strip errors on frame after onWorldLoad, not on map load

* Revert "Strip errors on frame after onWorldLoad, not on map load"

This reverts commit e20a0ef8d3743f79d961077f46910b77b16f36b9.

* Revert "Docs registering example and fix error"

This reverts commit 9c848c54c3f84e0ecc1dc421137c8a8b4a52280d.

* Revert "Docs clarification."

This reverts commit 6b4b6a1aa40c50398504f37ecf1ff0f93d6459b1.

* Revert "Added basic error suppression"

This reverts commit d11cb1438cf1e56ff700469e944f0b9af64651d7.

* Use more eventful key more consistent with other files

* use onStateChange instead of eventful and remove redundant utils require

* Code review stuff

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update docs/Lua API.rst

committing a suggestion

Co-authored-by: Alan <lethosor@users.noreply.github.com>

* Prepend examples with DFHACK_

* Remove unused parameters

* Use new ensure_key global

* Named a couple of unnamed arguments (untested)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alan <lethosor@users.noreply.github.com>
2022-04-29 08:39:59 -07:00
..
DataStaticsFields Split DataStaticsFields into multiple compilation units 2016-03-22 17:34:25 -04:00
include Adds consistent interface signatures for Maps module 2022-04-21 19:40:58 -07:00
lua Added custom-raw-tokens utility (#2038) 2022-04-29 08:39:59 -07:00
modules Adds consistent interface signatures for Maps module 2022-04-21 19:40:58 -07:00
proto Remove execute permission on files that are not executables. 2018-07-03 15:37:16 -05:00
xml@b8d48430aa Auto-update submodules 2022-04-19 07:17:48 +00:00
.gitignore Use configure_file to optimize incremental builds for git-describe.h 2018-07-13 16:07:46 +03:00
CMakeLists.txt Improves support for dfhack as a sub-project (#2058) 2022-03-29 10:28:52 -07:00
ColorText.cpp Fix crash in vprinterr due to va_list misuse 2016-07-03 23:33:07 -04:00
CompilerWorkAround.cpp Allow unloading plugins that use std::regex 2018-07-03 15:23:46 +03:00
Console-posix.cpp Enable -Wunused-variable and fix most errors 2021-09-07 01:16:21 -04:00
Console-windows.cpp Make lineedit() fail sooner when another lineedit() call is active 2020-12-03 22:04:00 -05:00
Core.cpp [core] Debug logging facelift (#2060) 2022-03-30 14:46:09 -07:00
DFHackVersion.cpp Add support for DFHACK_BUILD_ID 2018-07-11 11:47:55 -04:00
DataDefs.cpp tagged union support for lua (#1818) 2021-03-30 15:55:06 -05:00
DataStatics.cpp don't crash if the path to an instance-vector contains a null pointer 2020-04-18 20:40:17 -05:00
DataStaticsCtor.cpp Header changes/cleanup. 2011-12-31 12:48:42 +01:00
DataStaticsFields.cpp Remove Core.h include from DataDefs.h 2018-12-30 17:08:42 -05:00
Debug.cpp [core] Debug logging facelift (#2060) 2022-03-30 14:46:09 -07:00
Error.cpp Add function names to NullPointer and InvalidArgument exceptions 2018-05-11 09:49:27 -04:00
Hooks-darwin.cpp Fix some warnings on macOS 2021-09-07 11:58:44 -04:00
Hooks-egg.cpp Fix bug #188, eggy hook 2013-04-24 17:50:34 +02:00
Hooks-linux.cpp Fix some warnings on macOS 2021-09-07 11:58:44 -04:00
Hooks-windows.cpp fix a return statement in FirstCall 2018-07-14 12:15:52 -07:00
LuaApi.cpp Add functions reverse-engineered from ambushing unit code (#1992) 2022-03-13 17:19:35 -07:00
LuaTools.cpp only enable luacov for the core context 2021-03-10 23:31:30 -08:00
LuaTypes.cpp tagged union support for lua (#1818) 2021-03-30 15:55:06 -05:00
LuaWrapper.cpp tagged union support for lua (#1818) 2021-03-30 15:55:06 -05:00
MiscUtils.cpp Use a string and .reserve for normalizing instead of stringbuf 2020-09-24 15:22:58 -07:00
PlugLoad-posix.cpp Support dlsym loading from libgraphics vtables 2018-07-10 17:08:23 +03:00
PlugLoad-windows.cpp Add an error message when LoadLibrary fails 2021-01-01 15:35:59 +01:00
PluginManager.cpp Flush plugin warning messages 2020-08-06 22:45:46 -04:00
PluginStatics.cpp move xlsxreader identity statics to dfhack lib 2020-08-11 14:51:17 -07:00
Process-darwin.cpp Fix some warnings on macOS 2021-09-07 11:58:44 -04:00
Process-linux.cpp Enable -Wunused-variable and fix most errors 2021-09-07 01:16:21 -04:00
Process-windows.cpp More usage of smart pointers throughout core and version info. 2018-07-14 19:55:25 -07:00
RemoteClient.cpp Enable -Wunused-variable and fix most errors 2021-09-07 01:16:21 -04:00
RemoteServer.cpp fix some warnings 2020-02-10 19:35:17 -06:00
RemoteTools.cpp Refactor CoreSuspender to fix Console::lineedit exit hangs 2018-06-22 17:57:37 +03:00
TileTypes.cpp Remove Core.h include from DataDefs.h 2018-12-30 17:08:42 -05:00
Types.cpp update structures 2020-03-02 23:12:03 -06:00
VTableInterpose.cpp Fix follow_jmp for 64-bit code - skip REX prefix if found 2016-09-25 18:29:57 -05:00
VersionInfoFactory.cpp More usage of smart pointers throughout core and version info. 2018-07-14 19:55:25 -07:00
binpatch.cpp Fix the error message produced by binpatch when a mismatch is detected. 2012-10-27 15:35:11 +04:00
dfhack-run.cpp allow dfhack-run to output colors. 2020-03-06 15:02:03 -06:00
git-describe.cmake.in git-describe: fail earlier if git fails to run or doesn't exist (#2061) 2022-03-30 14:49:18 -07:00