David Anderson
3f49d29274
merged trunk back into 1.1.0 branch for "safety"
...
--HG--
branch : sourcemod-1.1.0
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.1.0%401721
2007-11-23 05:10:33 +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
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
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
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
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
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
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
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
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
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
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
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
Borja Ferrer
8a8e6ef594
added experimental optional natives (part 1)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401095
2007-07-12 02:57:43 +00:00
David Anderson
271a8b5b56
- sourcemod can now unload properly without crashing
...
- extensions now unload, dependencies are resolved
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401024
2007-06-26 17:08:07 +00:00
David Anderson
254fc2557a
- removed OnServerCfg in favor of OnConfigsExecuted
...
- added AutoExecConfig() which automates safe config execution
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40984
2007-06-18 07:04:22 +00:00
David Anderson
00e9d047c7
added sm_dump_handles command for tracking down Handle leaks... more to come someday
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40906
2007-06-07 02:36:54 +00:00
David Anderson
e334e5f7e7
-initial import of database natives + config
...
-initial import of completed database layer
-CreateIdentity now requires a non-optional second pointer. This breaks backwards compatibility for CreateIdentity(), however, this is not a function extension authors are supposed to be calling
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40874
2007-06-01 02:30:29 +00:00
Scott Ehlert
1dffe2e648
Fixed linux build *sigh*
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40867
2007-05-29 22:05:52 +00:00
Scott Ehlert
8bd6bf1b57
Implemented amb20 - 'sm plugins info' now shows when plugin will be reloaded
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40866
2007-05-29 20:18:53 +00:00
David Anderson
196a665d51
implemented request amb302 (onservercfg and onmapstart are now called if a plugin is late loaded)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40854
2007-05-23 17:54:45 +00:00
David Anderson
caab299d3e
Added request amb231 (OnPluginStart errors cause load failures)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40844
2007-05-23 01:59:58 +00:00
David Anderson
f3b3ca6b22
jit errors will now get passed upwards
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40809
2007-05-16 18:30:43 +00:00
David Anderson
c9bc46e770
core will now ignore missing natives starting with '@'
...
the compiler will now resolve aliased natives to single references and export '@' natives for each redundant entry
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40804
2007-05-15 04:59:24 +00:00
Scott Ehlert
515be43896
Implemented amb286 - .smx extension no longer required with "sm plugins load"
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40800
2007-05-14 21:29:17 +00:00
Scott Ehlert
3851dc9243
Renamed err_max to maxlength. Yes, I am crazy.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40761
2007-05-08 00:21:44 +00:00
Borja Ferrer
b91f1b21ba
fixed bug in amb249
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40742
2007-05-04 20:03:51 +00:00
David Anderson
f335c318bf
Fixed a bug where natives were not rebound on debug toggle
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40699
2007-04-13 17:18:41 +00:00
Scott Ehlert
bb92fc06a6
More consistency of some sort...
...
Oh god, what has possessed me to do this?
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40659
2007-03-22 21:50:20 +00:00
Scott Ehlert
5b3a3cef27
Made this more consistent or something...
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40658
2007-03-22 21:12:17 +00:00
Borja Ferrer
6e78ac6302
fixed several memory leaks
...
fixed plugin listeners being removed before a OnPluginUnloaded Call_AskPluginLoad
removed some virtuality
all cached ptrs using the Stack system are freed now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40647
2007-03-17 00:55:46 +00:00
David Anderson
043b8f255f
removed const from most apis. it was pointless since there were no actual const pointers.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40621
2007-03-15 04:34:42 +00:00
Scott Ehlert
62aa55b23b
Global forwards created after all plugins have been loaded now properly get filled with IPluginFunction pointers.
...
Added CPluginManager::AddFunctionsToForward() to help do this...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40617
2007-03-14 07:54:54 +00:00
David Anderson
8867fb1ce7
fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40612
2007-03-13 05:55:58 +00:00
David Anderson
21ed05048f
dynamic native providers can now be unloaded safely
...
fixed an api naming typo :(
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40611
2007-03-12 20:40:30 +00:00
David Anderson
7c06d89b00
initial import of dynamic native code for both the JIT and plugins
...
note: dependency resolution is not done yet!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40607
2007-03-12 07:08:05 +00:00
David Anderson
5b1f1d19c1
part 2 of singleton renaming
...
--HG--
rename : core/CGameConfigs.cpp => core/GameConfigs.cpp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40598
2007-03-10 21:26:04 +00:00
David Anderson
749ddc8c15
part 1 of singleton renaming
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40597
2007-03-10 21:18:07 +00:00