Commit graph

89 commits

Author SHA1 Message Date
kinther
b9acbbba9f Fix syserror messages on start related to msave 2025-09-25 09:13:24 -07:00
kinther
648085d41f Rename action_desc to main_desc 2025-09-07 16:11:05 -07:00
kinther
7fafc7f6ea Only save room contents if something changed 2025-09-07 08:47:57 -07:00
kinther
9d54d7d1a6 Room save flag functions 2025-09-07 08:29:04 -07:00
kinther
542b01d71d Add mob equipment save function 2025-08-31 15:55:00 -07:00
kinther
17d6221510 Update skills for 5e system 2025-08-28 10:47:05 -07:00
kinther
dbf38a2c38 Remove holler command 2025-08-17 11:34:46 -07:00
kinther
9ce2340f7d Remove happy hour 2025-08-13 15:41:29 -07:00
Noah Cunningham
547c7ddccf
Fix for pointer in fread() db.c to fix Raspberry Pi load issue (#97)
This corrects an issue encountered when loading world information on the Raspberry Pi. Sometimes, there is a ~ stored in the memory location in front of tmp char array. The for loop will decrement below the starting memory address, making it read the ~ and think it's at the end of the room, causing an error and preventing the MUD from loading.

This change checks the memory address of tmp, ensuring it is > the starting memory address before decrementing it in the for() loop. Then, the if/else checks to ensure the carriage return and newline are properly placed to prevent duplication.
2020-11-16 12:36:04 -05:00
Thomas Arp
c0fb6f8a71
Correct log message for strange room flags (#88)
Thanks to Cunning on the tba board for the bug report
https://www.tbamud.com/forum/4-development/4548-db-c-typo-in-parse-rooms#8633
2020-04-16 20:12:34 -04:00
Thomas Arp
7f0acefcb4 Confusing code fix (#76)
* Make sure all followers are free'd before freeing the character list

Otherwise, the followers structs will point to free'd memory and
the stop_follower call will attempt to dereference a free'd
characters' followers list.

* 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
2020-01-26 16:19:10 -05:00
Thomas Arp
1ab51a0545 Make sure all followers are free'd before freeing the character list (#75)
Otherwise, the followers structs will point to free'd memory and
the stop_follower call will attempt to dereference a free'd
characters' followers list.
2020-01-19 08:44:21 -05:00
Thomas Arp
29f19f9ce5 Fixes for w-format-truncation. Also, export of zones work again on linux 2020-01-11 01:05:32 +01:00
Rumble
674fbfddf1 Updated for 2019 release 2019-01-19 23:25:38 +00:00
Kevin Fischer
3cb8e52043 Fix error in "last all" command and several -Wunused-result compiler errors (#55)
* Add build generated files to .gitignore

* Fix error in "last all" output and resolve Wunused-result warnings

- Check return value of several standard library calls that could
return error states.
- Fix issue with "last all" command (it sent tabs for alignment
that were reinterpreted as colors).

* Fix buffer overflow in do_export_zone command
2018-07-21 19:37:18 -04:00
wyld-sw
bf941bc9b2 Removed dead stores. 2018-07-15 10:33:06 -04:00
Paul Clarke
41da68bdb0 DG Scripts bug fixes (#44)
* Increase ID space

DG Scripts uses tiny idspace that results in wacky bugs when the mud is
running too long.

* Overhaul script ids

All references to GET_ID(ch/obj) were removed and replaced by
char_script_id() and obj_script_id(), which don’t assign ids until they
are needed. The ch->id and obj->id variable names were changed to
script_id to prevent accidental errors for future programmers. This
change greatly increases how long the mud can run before it runs out of
ID space.

* Fix extraction count

This prevents an error log where it has over-counted the extractions
pending. It now behaves correctly when the same mob is %purge%’d or
extract_char()’d twice.
2018-02-15 14:06:35 -05:00
Nauzhror
79e7ab10ea Mostly Mudlog (#42)
* Added %log%, and made %send%, %echo%, etc. not force capitalization.

* Fixed Previous Commit

* Really fixed this time.

* Fixed look 2.mail

Also reverted CMMAND_TERMS, was increased in previous commit when it didn't need to be due to the removed of marena.

* Fixed add_to_lookup_table

Fixed as per  Welcor https://www.tbamud.com/forum/2-general/4307-crash-bug-need-assistance-with-gdb?start=20#7390

* Fixed two crash bugs

Fixed tw crash bugs Welcor found here https://www.tbamud.com/forum/4-development/4300-simple-list-forced-to-reset-itself

* wizhelp changes

Cleared buf in columns_list that was getting garbage data in it. Removed wizhelp subcommand from do_commands, and removed buf and sprintf line that were never sent to anyone and replaced it with a send_to_char. Removed arg capability from do_commands as it's no longer useful without the wizhelp subcommand. Replaced wizhelp subcommand with separate do_wizhelp command that sorts commands by their level and shows all imms all imm commands regardless of their level.

* Fix

Fixed previous commit

* Trigedit Mostly

Changed attributes to persist across logout when changed in trigedit. Made strength now loer for GRGOD and above when wearing equipment. Added npcflag field to trigedit. Fixed %actor.vnum()%

* Log Files

Fixed Farbled Data in Logfiles. Fix from Prool on forums.

* Mudlog, Trigedit, New Pref Toggle

Skimmed every call of mudlog for missing GET_INVIS_LEV and other obvious inconsistencies. Added affect_total() cals to dg_variables so stats adjust properly. Added zoneresets toggle to prefedit because syslog complete is super spammy as a result of zone resets so tey're now separate from other syslog options.
2018-02-15 10:55:18 -05:00
mcclure
fc4c64c782 Addressed several compiler warnings. 2017-10-09 13:03:48 -04:00
wyld-sw
4590ba16d6 Addressed warnings from -Weverything subset:
-Wconditional-uninitialized
-Wshadow
-Wswitch-enum
-Wunreachable-code-break
-Wunused-macros
2017-01-20 15:59:11 -05:00
wyld-sw
1e8dd801e3 Resolved bug #89: Identical defines in codebase.
- GET_OBJ_PERM has been removed in favor of GET_OBJ_AFFECT.

Implemented idea #55: Mail stamp cost.
- Postmaster no longer mentions stamp price for immortals.
2015-08-05 12:48:22 -04:00
WyldTBA
4f5c220759 Altered previous truncation fix and added OLC setting for the HUH message. 2015-04-26 12:33:28 -04:00
WyldTBA
68fcdb73bf Prevent compiler warnings and potential OLC setting string truncation.
- Prevented compiler warnings when using
’-Wtautological-pointer-compare’ on development system (Darwin)
- Prevented possible string truncation when adding a newline to an OLC
setting string.
2015-04-23 08:49:48 -04:00
Rumble
55253bdf61 Fixed several warnings and a little cleanup. 2013-10-20 19:01:57 -05:00
Rumble
9af6630ea2 Fixed new players with improper quest setting. 2013-06-08 11:44:38 -03:00
Vatiken
f0d34e6cd6 Object Events and some formatting corrections. 2013-02-26 06:01:26 +00:00
Vatiken
a2aaab144f New Group System, Room Events, and Event System Efficiency Upgrade... and a couple bug fixes. 2013-02-15 03:54:25 +00:00
Rumble
5d7226fdf3 Moved cedit load_config of no_mort_to_immort to its proper place. --Rumble 2012-08-22 22:59:57 +00:00
Vatiken
60d5836959 Message Editor, Debugger Toggle, Hedit Fix, Code Cleanup, MUD Colour Adjustment 2012-07-07 04:43:10 +00:00
Vatiken
debf92811f Fixed a client issue that was causing duplicate new lines 2012-06-27 02:14:22 +00:00
Vatiken
2c0cca1f50 Cedit Toggle for enabling colour codes in the comm channels 2012-06-10 19:44:44 +00:00
Vatiken
5847a57d7f Allocated Lists merged into one functions for extra expandability 2012-04-09 17:53:13 +00:00
Vatiken
24018d145b MAJOR: 3.63 Pre-Release: Cedit Toggle for prot system, new skill, updated documentation, and more. 2012-03-31 17:03:54 +00:00
Vatiken
5c317f6863 Some small formatting changes, and some stray @ symbols cleaned up 2012-03-24 14:41:24 +00:00
Vatiken
8852c83abf A couple small tweaks to ProtocolOutput() 2012-03-19 03:22:28 +00:00
Vatiken
f0a80caaa3 This update includes the transition to protocoloutput while maintaining backwards compatibility with all MUDs still using proc_colors 2012-03-16 01:26:00 +00:00
Vatiken
db5b776326 Couple more gcc warnings killed, fixed a bug within protocol.c, and added initial colour detections based on protocol findings. 2012-02-29 05:54:24 +00:00
Vatiken
bf26d79323 Bug Fix: Fixed major leak with the history system, as well as added a few more memory cleanups to make zmalloc happy. 2012-02-21 06:13:45 +00:00
Vatiken
ad3bb8bc64 some small additions to the event and list system, and some retractions of previously changed code. 2012-02-19 22:02:25 +00:00
Vatiken
dd280c1b58 Added protocols,lists and events, and fixed some bugs... refer to changelog. 2012-02-12 22:07:50 +00:00
Vatiken
479dbb6cbd Major: Backport to rvn 241, with the addition of all previously found bug fixes. 2012-02-06 19:13:03 +00:00
Rumble
bc95dfe20e Backfilled the changelog, several fixes. --Rumble 2011-03-31 02:09:33 +00:00
Thomas Arp
bf0539a425 cedit command for toggling autosave for bugs, typos and ideas 2011-03-10 23:09:53 +00:00
Rumble
0955ee8864 Added max_mortal_level and Admin Poison check --Rumble 2011-02-13 00:17:48 +00:00
JamDog
d2b4faf1c9 olist expanded, happyhour script vars and buildwalk update 2010-12-08 01:35:41 +00:00
JamDog
e068bfd5c0 New mail system, with inbox OLC, index rebuilder and initial mail 2010-12-06 18:40:28 +00:00
JamDog
5acbfd29eb Added diagonal directions, hidden exits flag and bug fixes 2010-11-25 16:24:53 +00:00
JamDog
dcba9d6441 MAJOR UPDATE: Admin Levels split from Mortal Levels 2010-11-24 20:07:22 +00:00
JamDog
88fb85b126 Added happyhour feature and game_info function 2010-11-06 18:14:07 +00:00
JamDog
222be04ec5 Bug Fix: Cured preceeding spaces in IBT notes 2010-11-04 16:47:09 +00:00