copilot-swe-agent[bot]
2e0668d4f8
docs: add unit test documentation to README.md and doc/testing.md
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/dd8af74a-9ecb-485b-851a-96b38b3cfc79
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 22:31:37 +00:00
copilot-swe-agent[bot]
13c6f6291c
fix: add time attributes to JUnit XML to eliminate NaNms in test reporter
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/8d948e86-1d59-496f-a317-7fd9294fcad8
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 21:53:27 +00:00
copilot-swe-agent[bot]
73bda79fe6
CI: produce JUnit XML from Unity tests for GitHub test reporting
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/0bc0c851-36e7-4d13-a393-517477e66c73
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 21:41:53 +00:00
Thomas Arp
d810782392
test run
2026-04-22 23:32:35 +02:00
copilot-swe-agent[bot]
063bd86a69
Use working-directory for build and test steps
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/02b27398-2736-4f5c-bbd9-b212340323f8
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 21:29:01 +00:00
copilot-swe-agent[bot]
2ef139a7d4
Add test step to CI build workflow
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/88e8bf39-a94e-440e-835a-0bb9c62fe95d
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 21:22:17 +00:00
copilot-swe-agent[bot]
04a99b3ebf
Add tests/Makefile to .gitignore and untrack generated file
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/ff469e4b-880b-4326-85fd-1abc76bd80bc
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-22 20:55:59 +00:00
Thomas Arp
b77f4ad3ca
Propagate failure to calling shell
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-22 22:48:56 +02:00
Thomas Arp
9343e38860
Comment should match code
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-22 22:47:51 +02:00
Thomas Arp
48030f3c2f
Only set flags on compilers that recognize them
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-22 22:47:17 +02:00
Thomas Arp
83d109e7ae
Do not include crypt when not available
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-22 22:45:41 +02:00
copilot-swe-agent[bot]
6566ad5164
Add test binaries to .gitignore and untrack them
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/d5b86db2-e5ab-4729-b8b1-2ca7cf01c6b9
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-21 22:20:58 +00:00
copilot-swe-agent[bot]
fff58ccab3
Add Unity-based unit test infrastructure (Phase 1: 117 tests passing)
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/d5b86db2-e5ab-4729-b8b1-2ca7cf01c6b9
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-21 22:19:11 +00:00
Copilot
552461df51
Fix all compiler warnings in build output ( #176 )
...
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/d031438d-2711-4447-b3df-9819d95d4058
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-21 23:50:55 +02:00
Thomas Arp
10251814f6
Potential fix for code scanning alert no. 55: Call to alloca in a loop ( #175 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:20:23 +02:00
Thomas Arp
d4089c58e8
Potential fix for code scanning alert no. 73: Potential use after free ( #168 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:15:35 +02:00
Thomas Arp
a465860553
Potential fix for code scanning alert no. 70: Incorrect return-value check for a 'scanf'-like function ( #169 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:14:48 +02:00
Thomas Arp
b9f49478a3
Potential fix for code scanning alert no. 1: Workflow does not contain permissions ( #170 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:14:01 +02:00
Thomas Arp
171381f0ea
Potential fix for code scanning alert no. 5: Redundant null check due to previous dereference ( #174 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:13:20 +02:00
Thomas Arp
dbd6bfc103
Potential fix for code scanning alert no. 4: Redundant null check due to previous dereference ( #173 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:12:55 +02:00
Thomas Arp
1dfbe0fa83
Potential fix for code scanning alert no. 3: Redundant null check due to previous dereference ( #172 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:10:46 +02:00
Thomas Arp
039e45c5ef
Potential fix for code scanning alert no. 2: Redundant null check due to previous dereference ( #171 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-21 23:10:26 +02:00
Thomas Arp
862c887b54
Better naming in do_drink. An unlimited source is never empty. ( #167 )
...
* Better naming in do_drink. An unlimited source is never empty.
* Add guard for negative amount when drinking from infinite source
* Allow drinking from unlimited containers with current value of 0
* Fix unlimited drink container definition to allow negative current values
Tested manually on localhost.
Fixes #156
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-21 22:36:56 +02:00
Copilot
8548bbea99
Fix questmaster holding items: extract object after AQ_OBJ_RETURN quest completion ( #165 )
...
* Initial plan
* Fix questmaster holding items: call extract_obj after AQ_OBJ_RETURN quest completion
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/f860d259-a59a-4c9b-a2b2-1f7a3a51990a
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: welcor <357770+welcor@users.noreply.github.com >
2026-04-19 02:05:31 +02:00
Thomas Arp
28622d9fe2
Add initialization and build instructions to AGENTS.md ( #166 )
...
Added instructions for initializing and building the repository for agents
2026-04-19 02:03:34 +02:00
Thomas Arp
ce423e919f
Fix for code scanning alert no. 74: Potential use after free ( #164 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-04-19 01:37:10 +02:00
Thomas Arp
6b2d800c53
Add CodeQL analysis workflow configuration ( #163 )
...
* Add CodeQL analysis workflow configuration
* Change CodeQL build mode from autobuild to manual
* Fix exit code in CodeQL workflow
Remove exit code 1 to allow successful completion of the job.
2026-04-19 01:07:22 +02:00
MBourne
0d5d2bc435
Cedit Player Kill and Player Thief ( #160 ) -- WhiskyTest
...
* cedit configuration for player kill and steal
* tidy up pk_allowed
2026-02-04 00:55:59 +01:00
Thomas Arp
4e1680db1a
KAIZEN remove webster from CMakeLists.txt ( #158 )
2025-11-07 23:53:23 +01:00
Thomas Arp
f6339b495e
Feature/clang tidy ( #154 )
...
* First cmake list file, simple docs.
TODO: utils folder.
* Support for building utils
* All fields except HAVE_DOPRNT in place
* Now builds and runs :)
* Added support for clang-tidy, if available.
2025-07-02 22:34:57 +02:00
Thomas Arp
3e0c1ccc18
Support cmake ( #153 )
...
* First cmake list file, simple docs.
TODO: utils folder.
* Support for building utils
* All fields except HAVE_DOPRNT in place
* Now builds and runs :)
2025-07-02 22:23:10 +02:00
Thomas Arp
b9d84fc325
Make sure %target% also works in act triggers and code cleanup ( #152 )
...
* Make sure %target% works in act triggers
* code cleanup. Remove inline block, make variable names more understandable.
Ref https://www.tbamud.com/forum/4-development/4525-confused-over-piece-of-code-in-parse-room
2025-07-02 22:22:36 +02:00
Thomas Arp
bdaca46e79
Added a new trigger type for mobs, called "Damage", that triggers every ( #151 )
...
time the mob is harmed, through any means.
Valid return values:
-1: prevents damage from occurring. Will also prevent a fight from
starting.
0: forces a miss.
>0 : the damage the mob will endure.
Available variables:
%actor%: the one doing the damage
%victim%: typically the same as %self% - the one being attacked
%damage%: the damage inflicted. Always a non-negative number.
%attacktype%: The attack type. Will be UNDEFINED when hitting with a
weapon.
2025-07-02 22:22:17 +02:00
Thomas Arp
f1794521cf
Feature/issue 141 immort where ( #142 )
...
* perform_immort_where and print_object_location rewritten to handle paging.
Fixes #141
* A little more info in immort where now we have more space for output.
Fixes #141
* Added PRF_VERBOSE for toggling long output in where command.
Fixes #141
* Also toggle headers in `where x` depending on verbose-pref.
Fixes #141
2025-07-02 22:21:14 +02:00
Thomas Arp
89eb009c4f
Remove webster lookup since it no longer works ( #99 )
...
* removed useless util/webster.c and fixed a couple of potential buffer overruns in the util functions
* removed stray utf-8 error chars. I guess someone has used an editor with fancy 's
* removed last webster integrations
2025-07-02 22:18:40 +02:00
Thomas Arp
9a0a096f85
Merge remote-tracking branch 'refs/remotes/origin/master'
2025-07-02 21:27:07 +02:00
Thomas Arp
ba7dc7bf6f
convert docs files to utf-8
2025-07-02 21:26:19 +02:00
Thomas Arp
558e71eed8
ignore .idea from clion IDE
2025-07-02 21:25:34 +02:00
Marthammor
a4af23538f
Add MTTS support ( #150 )
...
MTTS support - thanks to marthammer for the patch
2025-06-28 23:58:14 +02:00
Thomas Arp
b471ff195e
avoid freeing obj_proto[].name. ( #149 )
...
fixes #148
2025-05-06 23:15:06 +02:00
Rumble
392f3d90b8
Staying ahead of the power curve
2025-04-16 12:24:37 -07:00
Thomas Arp
be8de64cf8
fix buffer overrun act.informative.c ( #146 )
...
Ref https://www.tbamud.com/kunena/4-development/5636-bug-in-do-toggle-in-act-informative-c#10540
Thanks to Ironfist for the fix
2025-02-19 21:18:39 +01:00
Rumble
5024dd8e66
Updated for 2025 release
v2025.0.0
2025-01-09 23:57:59 +00:00
Thomas Arp
69888a5d89
Update aedit.c ( #145 )
...
fixes #144
Thanks to @gbstott for the bug report
2025-01-08 22:57:39 +01:00
haloway13
1ccb6adaee
Update dg_olc.c ( #143 )
...
Better auto-formatting of dg_scripts. Thanks to haloway13 for the patch.
2025-01-01 11:05:54 +01:00
Thomas Arp
d3227f1300
Fix bug in process_output ( #140 )
...
Based on error report from JTP in the tbamud forums. If an attacker was able to start a session and then break the connection, the process_output function would fail. This would trigger two calls to close_socket on the same descriptor. This in turn results in a double free on the character struct.
https://www.tbamud.com/kunena/4-development/5617-another-core-dump-not-long-after-the-one-earlier
Thanks to JTP for the bug report.
2024-12-30 12:30:29 +01:00
Thomas Arp
88b3027ec6
Bugfix/135 while freezes the mud ( #138 )
...
* Added loop counter per while instead of global. fixes #135
* Revert "Added loop counter per while instead of global. fixes #135 "
This reverts commit 59cf6a1fb2 .
* Remove extraneous reset of loop var.
Fixes #135
Thanks to bylins for the fix - https://github.com/bylins
2024-09-28 20:29:11 +02:00
Victor Augusto Borges Dias de Almeida
7036a15782
Changes to make the code compile normally on macOS. ( #137 )
...
Changes in configure to set crypt lib dynamically depending on the OS
2024-09-22 11:15:28 +02:00
welcor
e59420363a
Merge branch 'master' of git@github.com:tbamud/tbamud.git
2024-09-16 22:26:44 +02:00
Thomas Arp
c838a513dd
Added loop counter per while instead of global. fixes #135 ( #136 )
2024-09-16 22:25:29 +02:00