Commit graph

127 commits

Author SHA1 Message Date
Thomas Arp
eb650c2811
GitHub issues 78 79 81 num aff flags off by one (#82)
* 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.

* https://github.com/tbamud/tbamud/issues/79 typo

* https://github.com/tbamud/tbamud/issues/81 nullpointer crash on syntax check run

* NUM_AFF_FLAGS fix.

Now, consistently, the NUM_AFF_FLAGS is used in the same way as other
NUM_* variables. Specifically, the the number is consistent with
how others are defined - 1 above the highest in the list.

I would like to have removed the need to start from 1 instead of 0
as well, but the loading mechanism, and thus potentially a lot of
existing object files, use 0 as a marker for "no flags set", and
we can't easily fix that. So, the places we loop through the list,
we still need to make sure we're stying within the [1;NUM_AFF_FLAGS) interval.

Simultaneously, I've checked over the other flags, and it seems like
the usage is pretty consistent there.

Fixes https://github.com/tbamud/tbamud/issues/78
2020-02-25 18:39:29 -05: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
Kevin Fischer
14855c273a Fix string truncation warnings (Wstringop-truncation) (#53) 2018-07-15 17:23:26 -04:00
wyld-sw
bf941bc9b2 Removed dead stores. 2018-07-15 10:33:06 -04:00
Kevin Fischer
f9903c05b3 Fix several misleading indentation warnings on GCC 8.1.1 (#50) 2018-07-14 12:31:20 -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
Nauzhror
2a62eb3f4d Wizhelp (#39)
* 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.
2018-01-24 21:22:23 -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
cacd2c2dd2 Addressed warnings from -Wall. 2017-01-20 15:13:37 -05:00
wyld-sw
5119361f15 Migrated away from using asctime() and ctime() - in favor of strftime().
Added year to several datestamps. Unbounded dates are locale-specific.
- Minor re-formatting was needed for STAT PLAYER and SHOW PLAYER.
The 'slay' feature of do_kill now requires a GRGOD or higher.
'last *' and 'last all' are now synonyms.
2015-09-18 09:16:04 -04:00
wyld-sw
898e041431 Addressed bugs:
# 71: whirlwind now does not function in peaceful rooms.
 #108: basic functionality of 'last' is now not limited by level.
2015-08-10 16:41:58 -04:00
wyld-sw
258faf2fa4 Standardized pronoun usage for some commands. 2015-06-19 14:25:08 -04:00
Rumble
027eec89fc Updated world and files for release. 2015-01-18 20:55:01 -06:00
Rumble
ecd268e4cd Function AddRecentPlayer would cause a crash if someone connected then dropped link before putting in a name.u 2013-11-13 17:01:57 -06:00
Rumble
55253bdf61 Fixed several warnings and a little cleanup. 2013-10-20 19:01:57 -05:00
Rumble
c255d299bb Changes to compile under Windows (thanks Fade) 2013-08-24 17:56:48 -04:00
Rumble
7db9bf5858 Added color parsing to wiznet --Rumble 2013-04-11 00:29:29 +00:00
Rumble
1c091df6cc Another wiznet fix to add returns for add_history --Rumble 2013-04-10 22:30:15 +00:00
Rumble
c779af0eea Fixed wiznet so it is visible in OLC again --Fizban 2013-04-10 22:02:38 +00:00
Rumble
727bb9213c Reverted. Still can't see OLC in wiznet, have to do some digging to fix this. --Rumble 2013-04-08 00:07:23 +00:00
Rumble
d27f03899f Fixed color bleed and made wiznet viewable in OLC --Rumble 2013-04-07 23:45:32 +00:00
Rumble
bec211195b Fixed typos, updated help --Rumble 2013-04-07 23:09:19 +00:00
Rumble
2cfae9ff43 Added color to poofs --Rumble 2013-04-03 00:57:51 +00:00
Rumble
238a6d18c6 One last update to remove TBA specific code (do_cheat, helpfiles level check, advance). --Rumble 2013-03-02 21:29:48 +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
Vatiken
58ec913b46 Just some cosmetic code cleanup 2012-06-19 21:11:14 +00:00
Vatiken
5847a57d7f Allocated Lists merged into one functions for extra expandability 2012-04-09 17:53:13 +00:00
Vatiken
5c317f6863 Some small formatting changes, and some stray @ symbols cleaned up 2012-03-24 14:41:24 +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
0fd579d3d4 Fixed a crash bug in oset related to editing unique objects. 2012-03-03 03:36:21 +00:00
Vatiken
2939a3d507 The basis for 'oset' 2012-03-03 00:10:32 +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
6240083445 Comment fixes, clarification, and warning cleanup. (thanks Kyle) --Rumble 2011-08-25 02:35:28 +00:00
Fizban
4b1ea25b58 Added various protocols. 2011-08-12 02:02:32 +00:00
Fizban
19766c1be6 Added hitroll and damroll fields to DG, and made Triggers attached to players show on stat 2011-07-18 03:12:29 +00:00
Rumble
231a1a2dcd Minor updates. --Rumble 2011-03-18 23:29:38 +00:00
JamDog
b06cf00639 Bug fixes for new house system and levels command 2010-12-07 15:44:21 +00:00
JamDog
143364cbc9 zlist update and a few bug fixes 2010-12-05 16:28:00 +00:00
JamDog
2914b2d474 Added zone checks for load and purge for Imms 2010-12-02 01:03:21 +00:00
JamDog
8f586bdd2a Changed do_cheat so only ID 1 gets admin level and flags changed 2010-12-02 00:13:59 +00:00
JamDog
3fa8ebe048 New house system, ASCII hcontrol file and hsedit house OLC 2010-12-01 18:40:34 +00:00
JamDog
4892b22a51 Added increase_gold/bank funcs to prevent cash overflow 2010-11-26 14:08:54 +00:00
JamDog
a95ac76ef7 Added admin levels to who list, and minor bug fixes 2010-11-25 20:34:26 +00:00
JamDog
5acbfd29eb Added diagonal directions, hidden exits flag and bug fixes 2010-11-25 16:24:53 +00:00
JamDog
7531e92f64 Minor update to fix bug in new admin system 2010-11-24 21:17:56 +00:00