David Anderson
a9017a8291
AutoExecConfig() protects against double-call bugs now (amb 1356)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401852
2008-01-13 02:08:40 +00:00
David Anderson
6e09aacd98
fixed amb1355 - optional extensions did not work properly
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401841
2008-01-07 04:00:47 +00:00
David Anderson
c3456b8804
moved errno.h to top of platform includes
...
fixed bug where FormatMessage() did not ignore inserts
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401820
2007-12-22 19:35:54 +00:00
David Anderson
f261c2e756
fixed the global ock error message having too many punctuation marks
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401790
2007-12-10 23:32:32 +00:00
David Anderson
d78d7ab960
- rewrote internal convar hooking mechanism to prevent crashes and potential "race conditions"
...
- sharesys is now the first thing to run, so g_pCoreIdent is valid EVERYWHERE
- added internal convar hooking funcs for timersys
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401776
2007-12-06 03:28:02 +00:00
David Anderson
5ae2a5c4fe
sm_dump_handles now shows memory usage
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401772
2007-12-05 18:07:18 +00:00
David Anderson
a8ecd7fea4
- added beefy new ReadMapList() native
...
- admin menu now uses ReadMapList()
- added UTIL_TrimWhitespace() to stringutils
- moved GetFileTime() implementation to ILibrarySys
- cleaned up sorting include a bit
- removed adminmenu_maplist.ini, since it's specified by maplists.cfg
- added maplists.cfg
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401744
2007-12-02 02:10:37 +00:00
David Anderson
a79a169384
added a quick experimental system for overriding core natives
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401695
2007-11-17 04:31:01 +00:00
David Anderson
ecbd1f5e36
added amb1169 - dumping handles to game logs
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401693
2007-11-17 01:43:25 +00:00
David Anderson
ca0da2559d
fixed bugs in the external extension system
...
import of external SDK that's been sitting around for a while
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401674
2007-11-10 05:46:09 +00:00
David Anderson
172f28d676
fixed a number of memory complaints from valgrind. most of these were minor, but there was a rather disturbing memory over-read error in the SMC text parser. correcting this brought about a rewrite of its API. this change is BACKWARDS INCOMPATIBLE for C++ extensions, but it was sorely needed, and the API is now both future-extensible and much easier to work with. plugins didn't need any changes, but they will probably get the better API changes in a future release. as a special bonus, the RawLine() hook is now much less expensive since the entire stream buffer won't be shoved through it like before!
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401662
2007-10-31 05:04:07 +00:00
David Anderson
f60369a005
added experimental extension interface for loading external extensions from mm:s
...
hard-bumped the extension api
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401654
2007-10-28 08:02:24 +00:00
David Anderson
fe8594a96a
fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401645
2007-10-22 16:48:54 +00:00
David Anderson
af68caaf85
- sourcemod now intelligently unloads plugins which are leaking insane amounts of handles. these unloads get logged to sourcemod_fatal.log
...
- unloading is now delayed if a plugin is in the middle of a callstack
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401644
2007-10-22 08:53:15 +00:00
David Anderson
8172560f39
- added "war mode" options to config menu cfg
...
- fixed a regression bug where OnConfigsExecuted() wouldn't get executed. oops!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401637
2007-10-22 05:53:38 +00:00
David Anderson
b6e33a575f
- fixed a bug where OnConfigsExecuted() could be ran before OnAllPluginsLoaded()
...
- added new commands for amb1036, war mode
- fixed a bug in the admin menu
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401636
2007-10-22 05:35:31 +00:00
David Anderson
02e8977ea0
- added ShowActivity2() which has a more convenient display algorithm
...
- added commandfilters.inc and ProcessTargetString(), an extensible API for processing a command target and getting back formatted replies + player lists. This makes SearchForClients() look paltry, and base plugins will slowly be moved to support the new functionality
- removed IsPlayerAlive() from SDKTools, added it to Core
- fixed a small bug in re-entrant translations
- core.games.txt is now automatically added to all plugins
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401627
2007-10-21 20:06:30 +00:00
David Anderson
e08b4cdf1e
- LibraryExists() now works on extensions
...
- geoip and cstrike now work as libraries
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401579
2007-10-15 04:27:56 +00:00
David Anderson
c803eb8328
fixed an overall deficiency where libraries did not include extensions. extensions can now mark themselves as libraries, and they thus become fully optional just as plugins do. additionally, a bug was fixed where plugins could be accidentally marked as required instead of optional. these changes resulted in a bcompat API bump to the extension/sharesys interface.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401578
2007-10-15 04:06:57 +00:00
David Anderson
4de4797b8b
extensions can now be built for multiple engines, and will autoload from auto.X.Y folders
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401574
2007-10-15 00:38:25 +00:00
Borja Ferrer
b7d9d487cc
ported SM's core to Orange Box
...
build is broken now in purpose
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401547
2007-10-14 00:04:21 +00:00
David Anderson
4c4b89a403
- fixed a bug where CS:S Tools could be loaded more than once on mapchange
...
- fixed a bug where Core did not interpet some file paths properly
- fixed a crash bug where SourceMod could pass invalid data to ISmmAPI on shutdown
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401514
2007-10-01 18:04:37 +00:00
David Anderson
0059d92b61
fixed a bug where double dependencies could cause a crash on unload
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401462
2007-09-23 06:51:21 +00:00
David Anderson
167c1d0a31
added request amb948 - blocking of plugin loads
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401442
2007-09-18 17:44:17 +00:00
David Anderson
017da078ef
header movement #1 - reduced usage of TextParsers.h
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401412
2007-09-11 15:10:18 +00:00
David Anderson
e5d81cf621
mirrored earlier core native binding optimization to extensions as well. clarified note about pointer lifetime in AddNatives(), as it will be gaining a second version soon
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401397
2007-08-29 05:44:29 +00:00
David Anderson
80452fb3ec
fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401394
2007-08-29 02:43:07 +00:00
David Anderson
97196e70be
fixed some build issues from last commit
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401389
2007-08-29 02:36:41 +00:00
David Anderson
f145178fc0
greatly optimized the process of mapping plugin natives from Core
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401388
2007-08-29 00:47:05 +00:00
David Anderson
6bb7b3a1f8
added a layer for autoloading per-game extensions
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401386
2007-08-29 00:27:54 +00:00
Borja Ferrer
1df2ab5b8b
added amb374, reload plugin command
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401354
2007-08-18 17:15:22 +00:00
David Anderson
da0a160371
SourceMod will now spit out errors for scripts that become corrupt and would otherwise be crashing Core. if you get these errors contact the dev team.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401345
2007-08-15 20:18:15 +00:00
Scott Ehlert
a1009aed38
Updated license headers on virtually all files with extremely minor changes in the name of some sort of strange consistency.
...
All plugin and include file headers also have been changed to say about GPL3 instead of GPL2.
(This day shall henceforth be known as the Eighty Column Massacre of '07)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401336
2007-08-15 06:19:30 +00:00
David Anderson
6053dff454
fixed a bug where sm_dump_handles reported some freed handles incorrectly
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401327
2007-08-13 19:41:15 +00:00
Scott Ehlert
005f49947a
Implemented amb506 - plugin file name can now be used with "sm plugins unload"
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401258
2007-08-02 17:41:59 +00:00
David Anderson
2bd5170e33
stupid gcc... what is it with you and newlines (fixes linux build)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401238
2007-08-01 02:18:19 +00:00
David Anderson
38ddbb37b9
updated more header files (mostly internal now)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401237
2007-08-01 02:12:47 +00:00
Borja Ferrer
b0a96e69c1
added amb567, new OnAllPluginsLoaded forward
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401227
2007-07-31 22:34:52 +00:00
David Anderson
2f3c518eb1
fixed a bug where extensions were forwarded their unload call AFTER being dropped as an identity
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401208
2007-07-29 01:05:58 +00:00
Phong Dang
f2630470c4
Fixed AskPluginLoad would still allowed plugin to load even if it returned false.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401206
2007-07-29 00:26:18 +00:00
David Anderson
1154b20fc9
added a new function to ILibrarySys
...
added define in SDK for LIBRARYSYS
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401198
2007-07-27 18:24:09 +00:00
David Anderson
c3cd2ac4a3
added amb670 (exposed IDBThreadOperation to extensions)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401163
2007-07-24 02:24:37 +00:00
David Anderson
30b475ef35
fixed bug amb659 (unloading parent extensions)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401156
2007-07-23 20:20:45 +00:00
Scott Ehlert
d7512156e8
Fixed amb667 - Forward called twice when returning Plugin_Stop in ET_Hook
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401146
2007-07-21 21:48:26 +00:00
Scott Ehlert
387ac70d1e
Fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401131
2007-07-16 04:22:16 +00:00
David Anderson
4ce48512b1
- added callbacks for libraries becoming available
...
- fixed MarkNTVOptional requring native to exist
- fixed a bug where it looks like plugins could not be paused
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401130
2007-07-16 02:06:02 +00:00
David Anderson
399fb8a8e8
fixed a bug where __pl_*_SetNTVOptional could not be called
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401129
2007-07-15 22:34:30 +00:00
David Anderson
a80d38f799
- reloading now refreshes weak native binds
...
- fixed a crash bug when unloading a plugin being pointed to by weak ntvrefs in another plugin
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401128
2007-07-15 21:29:49 +00:00
David Anderson
430e63d6cd
fixed crash bug when unloading a plugin with a weak ntvref
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401127
2007-07-15 20:27:11 +00:00
Borja Ferrer
fe8ebeae89
added amb292, optional natives
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401118
2007-07-15 01:04:34 +00:00