Commit Graph

828 Commits

Author SHA1 Message Date
David Anderson
48cf71877b fixed a bug where the menu watch processor removed the wrong index from its list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40831
2007-05-21 05:00:38 +00:00
David Anderson
314e7097f8 added request amb285
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40828
2007-05-21 01:54:17 +00:00
David Anderson
459a9d41ba added request amb278
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40827
2007-05-21 01:28:38 +00:00
David Anderson
1049600e99 disallowed pagination of 1
fixed pagination setting bugs in valve style

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40826
2007-05-21 01:18:55 +00:00
David Anderson
daceab19cd added key selection setting
fixed amb309

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40825
2007-05-21 01:11:37 +00:00
David Anderson
2cad3c3424 fixed capitalization on uint64 keyvalues natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40822
2007-05-19 21:36:14 +00:00
David Anderson
6328445043 vm errors from dynamic natives will now be explained more clearly to the calling plugin
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40811
2007-05-16 21:53:47 +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
Scott Ehlert
727e15b5a3 Yikes, fixed HookEventEx()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40808
2007-05-16 05:04:28 +00:00
Scott Ehlert
4ed2d6e515 Implemented amb296 - Added HookEventEx() which does not generate a runtime error if the event does not exist and returns false instead.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40807
2007-05-16 04:09:31 +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
David Anderson
82e07a9bf0 fixed a visual spacer being added to radio menus when no control options existed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40803
2007-05-15 02:23:12 +00:00
David Anderson
a03caa9120 fixed makefile for radio menus being excluded
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40801
2007-05-14 22:10:18 +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
663906c60e Fixed amb289 - Crash on SourceMod shutdown when hooking events as post in Linux.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40798
2007-05-14 06:45:27 +00:00
David Anderson
2af178229d fixed linux build for menu natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40797
2007-05-14 04:48:03 +00:00
David Anderson
49369d07bc redid API yet again - IMenuHandler is now bound to an IBaseMenu instance
implemented MOST natives
removed broadcasting/voting handlers for the time being
fixed a crash bug in basecontext when i didn't obey the api
moved radio displays to a caching stack

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40796
2007-05-14 04:46:06 +00:00
David Anderson
d1dea716a6 Added a re-entrancy check to Handles so the destructor won't fire twice in certain cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40795
2007-05-13 22:36:22 +00:00
David Anderson
0b45984017 changed IMenuDisplay/CreateDisplay to IMenuPanel/CreatePanel
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40793
2007-05-13 18:55:59 +00:00
Borja Ferrer
ae8b06194f fixed bug in amb275
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40792
2007-05-13 17:23:42 +00:00
David Anderson
f76a2b4e07 finished radio menus
added a new item flag so radio menus could ignore disabled control items due to a bug where 0 is always white in Valve menus
fixed a bug where ClientPressedKey() did not account for the max page items in a style
fixed some pagination drawing bugs with control items

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40791
2007-05-13 17:12:16 +00:00
Scott Ehlert
8a9b5b7d41 amb283 - Renamed IsPlayerInGame() to IsClientInGame()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40790
2007-05-13 07:48:36 +00:00
David Anderson
d417dea968 external menus time out now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40788
2007-05-13 05:59:06 +00:00
David Anderson
32a472fccf exposed the interface since the API is almost stable
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40787
2007-05-13 05:53:36 +00:00
David Anderson
94c0783d5c initial import of radio message - UNTESTED, DO NOT EVEN TRY LOL
added supported mods for radio messages into core gameconf
various internal fixes/improvements for menus

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40786
2007-05-13 05:51:30 +00:00
David Anderson
530a5aad80 fixed various linux compilation problems
added menus to the makefile

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40784
2007-05-13 04:43:52 +00:00
David Anderson
d9b06e298c some minor fixups
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40782
2007-05-13 04:41:10 +00:00
David Anderson
5aabd81406 moved a whole crapload of code into a BaseMenuStyle so I can keep my precious sanity
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40781
2007-05-13 03:38:36 +00:00
David Anderson
c07bfbe9bd fixed some re-entrancy bugs
removed debug commands

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40780
2007-05-13 00:42:39 +00:00
David Anderson
0eae31dd4a fixed this file not having our header
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40779
2007-05-13 00:19:05 +00:00
David Anderson
abb434f63a fixed an issue with fastlink iterators not working right
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40778
2007-05-13 00:18:04 +00:00
David Anderson
e3b3d89bc8 test of properties
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40777
2007-05-12 23:50:04 +00:00
David Anderson
d7b2f9a721 behold with your eyes and view upon what are MENUS
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40775
2007-05-12 23:45:52 +00:00
David Anderson
e76b4cd255 whoa, added a new template function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40773
2007-05-12 22:52:25 +00:00
Scott Ehlert
a11f687f2a Oh, wow, removed some debug messages. Nice going DS.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40772
2007-05-12 04:49:40 +00:00
Scott Ehlert
a9abbed7dc User message functions now fallback on IServerGameDLL::GetUserMessageInfo() if SourceMM was unable to get the message list for some reason.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40771
2007-05-12 04:47:58 +00:00
Scott Ehlert
1274c0b8bd Fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40769
2007-05-11 20:00:29 +00:00
Borja Ferrer
4ae67c9213 added debug code for leak detection on plugins
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40768
2007-05-10 22:51:56 +00:00
Scott Ehlert
ec13f1b998 Fixed an issue where unloading and then reloading a plugin that creates convars would make it's convar list blank
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40765
2007-05-09 20:14:56 +00:00
Borja Ferrer
9d9369079a fixed bug for amb266
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40762
2007-05-08 22:26:30 +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
David Anderson
3493467771 small rewrite of how keyvalues iterator and get deleted. phew!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40759
2007-05-07 02:58:58 +00:00
David Anderson
ca7ebffc8a oops
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40757
2007-05-07 00:03:37 +00:00
David Anderson
e69edf05eb added amb260
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40756
2007-05-07 00:02:33 +00:00
David Anderson
eb5b94ec44 more string natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40754
2007-05-06 23:12:54 +00:00
David Anderson
ffe0867d1a fixed amb254
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40753
2007-05-06 19:52:00 +00:00
David Anderson
7013072236 added request amb251
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40749
2007-05-06 06:15:48 +00:00
Scott Ehlert
a994857444 Couple of random of things
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40747
2007-05-06 03:24:54 +00:00
Scott Ehlert
1205de4e67 Normal daily and error logs now use YYYYMMDD date format in their file names (like AMXX 1.8 will)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40744
2007-05-04 21:21:55 +00:00
Scott Ehlert
cc7a4904c5 Added missing return...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40743
2007-05-04 20:52:35 +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
Borja Ferrer
d8c7af77a3 exposed the sourcepawn and JIT interfaces with pointers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40739
2007-05-04 01:28:08 +00:00
David Anderson
01b0432776 changed LANG_ENGLISH to CORELANG_ENGLISH
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40738
2007-05-03 05:27:22 +00:00
David Anderson
44d1ea5f09 added LANG_ENGLISH define
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40737
2007-05-03 05:26:10 +00:00
Scott Ehlert
dc6a5fc4d9 This averted my eyes...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40736
2007-05-03 03:54:44 +00:00
Scott Ehlert
de9dc9ed99 Various pointless things of no importance:
- Renamed ISourceMod::GetModPath() to GetGamePath()
- Renamed ISourceMod::GetModFolderName() to GetGameFolderName()
- Various spelling corrections (why did I do this?)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40735
2007-05-03 03:45:53 +00:00
David Anderson
39110a7a51 added a translation helper
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40734
2007-05-02 22:49:28 +00:00
David Anderson
b8d3ea5196 attempted fix for amb243, timers now simulate ticks if gameframe doesn't give changed curtimes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40733
2007-05-02 22:35:51 +00:00
David Anderson
9219fbb96c fixed a bug where KvJumpToKey did not obey the internal path stack
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40732
2007-05-02 21:00:13 +00:00
David Anderson
2489044d8b oops, we can reference this implicitly now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40730
2007-05-02 20:46:21 +00:00
David Anderson
a5c018724a added amb217 (server.cfg forward)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40729
2007-05-02 20:44:35 +00:00
David Anderson
f498af0190 removed debug code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40728
2007-05-02 20:30:29 +00:00
Scott Ehlert
3cdd3c0d0d Added GetGameFolderName() native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40727
2007-05-02 19:33:51 +00:00
David Anderson
5c6ba68e4b userid cache gets repopulated now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40726
2007-05-02 19:20:34 +00:00
David Anderson
4f66cfbf9f fixed issue amb235
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40725
2007-05-02 19:14:26 +00:00
David Anderson
3c3906b494 added request amb234 (OnMapEnd)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40724
2007-05-02 17:49:23 +00:00
David Anderson
d57f543820 renamed OnServerLoad to OnMapStart
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40723
2007-05-02 17:45:09 +00:00
Scott Ehlert
41e473a60c - Removed GetConVarMin/Max() and replaced them with GetConVarBounds()
- Added SetConVarBounds() to set convar constraints after convar has already been created

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40720
2007-05-01 05:29:37 +00:00
Scott Ehlert
523e3d042d Added paramater to CreateEvent to determine whether or not creation should be forced even if nothing is hooking/listening to the event.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40719
2007-04-30 22:53:27 +00:00
Scott Ehlert
473e1d4135 Removed flags from FireEvent()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40718
2007-04-30 22:03:28 +00:00
Scott Ehlert
1b5bcc4836 Fixed amb238 - BuildPath native didn't accept format arguments properly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40717
2007-04-30 18:02:28 +00:00
Borja Ferrer
ba17aafb8a synced linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40716
2007-04-27 11:25:30 +00:00
David Anderson
d7cf6dbba9 fixed a bug where typedescription_t searching could crash
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40715
2007-04-27 01:51:34 +00:00
Borja Ferrer
b0e21c9da0 added game config file natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40709
2007-04-22 18:25:10 +00:00
Scott Ehlert
7ce1ef6ea1 Wow, how did I forget this - exported IMemoryUtils interface
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40708
2007-04-21 17:03:28 +00:00
Scott Ehlert
199d839122 Made libPtr param const. Doesn't get modified so why not.
Also removed some unneccessary code (for now)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40707
2007-04-20 18:50:52 +00:00
Scott Ehlert
efa6067669 Basic signature scanning has arrived!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40706
2007-04-20 18:32:33 +00:00
David Anderson
5811c5b29f fixed a re-entrancy bug
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40705
2007-04-16 16:53:48 +00:00
Scott Ehlert
43856e7dc4 User message functions now use SourceMM 1.4's new API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40704
2007-04-15 05:43:43 +00:00
Scott Ehlert
93be4e29b8 Oh forgot this - QueryClientConVar returns 0 on bots now.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40703
2007-04-14 04:49:08 +00:00
Scott Ehlert
77e49c855f Added client convar querying :o
Also added ISourceMod::GetModFolderName() for returning the name of the mod directory by itself

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40702
2007-04-14 04:27:47 +00:00
Scott Ehlert
c8f507561c Empty strings can now properly be passed via PushString and StringToLocal
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40701
2007-04-14 04:19:58 +00:00
Borja Ferrer
b56de5d546 added entity string natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40700
2007-04-14 02:24:23 +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
David Anderson
3f25c99653 fixed a corruption bug when toggling debug mode
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40698
2007-04-13 17:12:25 +00:00
David Anderson
c7db185400 function names now follow convention
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40697
2007-04-13 07:17:52 +00:00
Scott Ehlert
ab4f11e4f5 Fixed linux build... GCC likes to complain.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40696
2007-04-13 05:07:01 +00:00
David Anderson
f3da8efe10 fixed amb193
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40694
2007-04-12 20:18:24 +00:00
Scott Ehlert
7b74745ceb CancelCreatedEvent actually does what it is supposed to do now...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40693
2007-04-12 19:49:49 +00:00
David Anderson
ccdddc16fb fixed using newer engine functions on The Ship because Valve can't version properly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40691
2007-04-12 16:28:29 +00:00
Scott Ehlert
4e6834a7a4 Fixed amb190 - Crash with Mani's spawn protection and GetEvent (which exposed re-entrancy problems in EventManager)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40690
2007-04-12 07:51:05 +00:00
Scott Ehlert
3b8864193d Fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40689
2007-04-12 02:16:09 +00:00
Borja Ferrer
21923d7871 added datamap property offset native
added clientofuserid native for fast userid to client id translation
fixed a memory leek (some tries weren't being deleted)
added createdialog native
added 2 million inetchannelinfo wrappers

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40688
2007-04-12 00:45:53 +00:00
David Anderson
4ecb7a985f renamed another native, fixed backwards compat
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40687
2007-04-11 20:07:20 +00:00
David Anderson
e42773b07d added strncmp
renamed StrCompare to strcmp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40686
2007-04-11 16:24:50 +00:00
David Anderson
e3b3180099 moved another CBaseEdict helper to HalfLife2.cpp
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40684
2007-04-11 15:28:08 +00:00
David Anderson
c889515263 fixed amb186 (state changing crashes)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40683
2007-04-11 15:05:56 +00:00
Scott Ehlert
4c3d5673e6 Added VSP listening and a function to SMGlobalClass
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40681
2007-04-08 18:19:06 +00:00
David Anderson
b6e9922394 fixed a linux build problem
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40680
2007-04-07 04:01:24 +00:00
David Anderson
dee3a2b3cf added some levelchange functions to SMGlobalClass to get rid of some messy crap
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40679
2007-04-07 03:58:20 +00:00
Scott Ehlert
a99089b518 Can't do anything right... removed debug message
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40677
2007-04-05 11:01:12 +00:00
Scott Ehlert
385a4408da Oh. This variable was no longer used.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40676
2007-04-05 10:59:26 +00:00
Scott Ehlert
e677d5d5de Various things:
- Fixed inline translations when using %T
- "Improved" caching of server language
- Renamed Translator::GetServerLanguageCode() to GetServerLanguage()
- Added some more comments to sm_globals.h
- Natives folder in project file mysteriously was moved inside Interfaces, so moved it back o_O
- DS hates empty if statements :o

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40675
2007-04-05 10:55:40 +00:00
David Anderson
58ad1932c2 added file headers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40673
2007-04-05 07:09:17 +00:00
David Anderson
7263533fe5 initial import of skeletal DBI code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40672
2007-04-05 07:08:39 +00:00
David Anderson
eb006bb665 fixed various retarded errors
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40671
2007-04-05 05:45:35 +00:00
David Anderson
2cb7b5a06a whoops
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40670
2007-04-05 05:28:44 +00:00
David Anderson
f93711bd82 changed the API around a bit to be more flexible
removed some ghastly unneeded stuff from the Translator
added Logger::LogFatal, experimental

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40669
2007-04-05 05:25:11 +00:00
Scott Ehlert
ddfe6d84d6 Ugh, initial import of core config file stuff
Warning: This is positively terrible code.
It works, but needs A LOT of work still :\

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40667
2007-04-05 03:02:00 +00:00
Borja Ferrer
708a3a9a5c oh one native for the hat man teame
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40665
2007-03-29 19:48:54 +00:00
Borja Ferrer
daeb5a7dba added iplayerinfo natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40664
2007-03-28 23:35:12 +00:00
Scott Ehlert
22dd1ba592 Couple of quick things...
- Changed SourceMod logtag from SRCMOD to SM
 - ConVars dynamically created by convar manager now can properly be set on srcds command line

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40663
2007-03-28 20:28:42 +00:00
Borja Ferrer
fd1e3c4e97 added precache natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40662
2007-03-25 22:25:45 +00:00
Borja Ferrer
5c7381f11a synced linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40661
2007-03-25 21:18:50 +00:00
Borja Ferrer
08ec195e27 initial implementation of KV natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40660
2007-03-25 20:20:43 +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
862f25b223 fixed possible overflow cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40657
2007-03-19 19:19:41 +00:00
David Anderson
1bb6f90d2e apparently I can't change a single line of code these days
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40655
2007-03-19 05:39:11 +00:00
David Anderson
ec0e0dca63 whoops, tee hee, broke OnClientAuthorized
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40654
2007-03-19 01:50:03 +00:00
David Anderson
c6c4de1f75 fixed a potential bug with kicking players during authorization
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40653
2007-03-19 01:44:09 +00:00
David Anderson
c6375166a1 added auth ident type creation
fixed some spacing issues

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40652
2007-03-19 01:29:29 +00:00
David Anderson
49c9ab6e25 added a playerinfo function to kick this off
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40650
2007-03-17 23:03:44 +00:00
David Anderson
88eae4ad1e added a new forward for OnServerActivate
included timers from sourcemod.inc

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40649
2007-03-17 20:25:08 +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
b89b932f15 fixed a bug where ReadFileLine could return true when no data was read
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40644
2007-03-16 22:38:24 +00:00
David Anderson
62bd9ee7f8 fixed various file operations using Path_SM instead of Path_Game
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40642
2007-03-16 22:09:07 +00:00
David Anderson
bb40b22125 fixed a bug where GetCmdArgString() would crash on 0 parameters
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40639
2007-03-16 20:10:34 +00:00
David Anderson
19cfb041aa added StrBreak from AMX Mod X, with various improvements
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40637
2007-03-16 20:10:13 +00:00
Borja Ferrer
d5ca9a3872 synced and fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40635
2007-03-16 18:05:47 +00:00
Scott Ehlert
c9f81b9b11 Changed this for the better...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40634
2007-03-16 18:02:00 +00:00
Scott Ehlert
ccc1dde76d Fixed minor bug...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40633
2007-03-16 17:30:36 +00:00
Scott Ehlert
19728377f1 Minor stuff, no need to look
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40632
2007-03-16 17:29:05 +00:00
Scott Ehlert
5fa53bfc68 Dear me, I should have committed this long ago...
1) Added natives to create and manipulate global and private forward
2) Added natives to call forwards and functions
3) Added an IChanageableForward::RemoveFunction overload for convenience or something
4) Added test suite plugins for functions and forwards
5) Some random touch-ups to some include files

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40627
2007-03-16 06:54:24 +00:00
David Anderson
0aadfbdfab added natives for iterating plugins and retrieving plugin info
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40624
2007-03-15 20:10:25 +00:00
David Anderson
dc9f6e405e fixed two spelling mistakes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40623
2007-03-15 04:45:33 +00:00
David Anderson
2c70ec1a8c refactored singleton class names
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40622
2007-03-15 04:45:17 +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
David Anderson
0bbb4670fc my easter egg. if you're wondering, this only took an hour.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40620
2007-03-15 04:23:46 +00:00
Borja Ferrer
df2d234b06 oh forgot to delete killed timers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40619
2007-03-14 15:32:28 +00:00
Borja Ferrer
971cb8f7e7 implemented timer natives
fixed some design issues in the timer manager

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40618
2007-03-14 11:34:03 +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
Scott Ehlert
c4a677df79 Made this define consistent with AMXX
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40615
2007-03-14 02:58:12 +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
8e4a59a4e0 This assertion is no longer correct because of sm_trie_delete()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40610
2007-03-12 20:11:54 +00:00
David Anderson
b3d3b30855 updated Makefile to have all the .cpp files - we need to keep better track of this
various gcc whinings fixed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40609
2007-03-12 17:42:44 +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
7ab8e2027b fixed spacing on headers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40606
2007-03-12 00:07:54 +00:00
David Anderson
2aa8810021 used a better error number
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40605
2007-03-12 00:06:20 +00:00
Borja Ferrer
f64945b2aa implemented the bf_read natives
message hooks now receive the bf_read handle

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40604
2007-03-11 21:09:05 +00:00
Borja Ferrer
95dcffc972 user messages tested and working
fixed some floating point casts

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40603
2007-03-11 19:26:47 +00:00
David Anderson
d8c02c294f fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40602
2007-03-11 18:37:55 +00:00
David Anderson
c2f106d4c6 added request amb80 (system time)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40601
2007-03-11 18:30:29 +00:00
Borja Ferrer
d51ea0695f HAHA estoy usando el internet!!!11!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40600
2007-03-11 03:25:28 +00:00
Borja Ferrer
f78b3fa086 rewrite of user messages
fixed possible iterator corruption

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40599
2007-03-11 03:04:39 +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
David Anderson
5228c86e2c reorganized this a bit
--HG--
rename : core/CMsgListenerWrapper.h => core/smn_usermsgs.h
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40596
2007-03-10 21:12:40 +00:00
David Anderson
38c94838b9 IPluginFunction implementation is re-entrant across native calls, as heap allocations are delayed until execution
removed ICallable::GetAddressOfPushedParam
removed phys_addr from ICallable::PushArray
fixed a bug where sp_context_t::n_idx was overwritten upon re-entrant calls

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40595
2007-03-10 21:02:40 +00:00
Borja Ferrer
f592744d87 NULL'ed this or something
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40594
2007-03-10 13:36:38 +00:00
Borja Ferrer
5fe8bed256 Added timer system implementation
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40593
2007-03-10 13:16:19 +00:00
David Anderson
bda756f3ff fixed a really dumb bug - shouldn't compilers be checking this?
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40592
2007-03-10 05:52:51 +00:00
Scott Ehlert
949b83c99b Reverted change where flags param was removed on PushCellByRef and PushFloatByRef. Instead set the param to a default value of SM_PARAM_COPYBACK. (DS, how dare you!)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40591
2007-03-07 18:37:41 +00:00
Scott Ehlert
dfed71eb28 Breakage alert :\
ThrowNativeErrorEx now returns 0 for convenience
PushCellByRef and PushFloatByRef no longer have a flags parameter because it was almost pointless

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40590
2007-03-07 18:24:09 +00:00
David Anderson
876e3da8e3 fixed the build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40589
2007-03-07 16:41:12 +00:00
Scott Ehlert
0b25b6d667 Many things:
1) General code clean-up in convar manager
2) Fixed bug where convar handles were not being cached for pre-existing convars
3) Fixed bug where a convar's old value and new value were switched in the ConVarChanged hooks
4) Made convar and concmd listings more consistent, I think
5) Alphabetized convar listing
6) Minor clean-up in event manager

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40588
2007-03-06 23:59:25 +00:00
Scott Ehlert
e6a127ac17 Redid case on some error messages
Really minor things in EventManager

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40587
2007-03-06 07:38:19 +00:00
Scott Ehlert
c256741488 Renamed CConVarManager to ConVarManager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40586
2007-03-06 06:49:35 +00:00
Scott Ehlert
70ec3db66c Commands with the same name as an existing convar can no longer be created
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40585
2007-03-06 06:15:19 +00:00
Scott Ehlert
ac9051ab71 Oh, this isn't needed anymore
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40584
2007-03-06 04:53:14 +00:00
Scott Ehlert
dbb74a612d Creating/Firing/Canceling events now use CStack to avoid the need to use new when possible
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40583
2007-03-06 04:50:30 +00:00
Scott Ehlert
68f40e96f2 Initial import of event stuff: Natives to hook and fire game events
Also made some minor internal changes to convars

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40582
2007-03-04 04:05:03 +00:00
David Anderson
ddfb56c34d new versioning stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40572
2007-03-03 07:50:01 +00:00
Borja Ferrer
4499f4df75 exposed the message interface
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40571
2007-03-03 00:56:01 +00:00
David Anderson
fd5c410153 aligned header spaces properly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40568
2007-03-02 19:11:29 +00:00
David Anderson
791cbc985f added entity functions and stocks for send props
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40567
2007-03-02 19:11:04 +00:00
David Anderson
66b244011e added ThrowError() a la amxmodx's abort()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40566
2007-03-02 19:10:44 +00:00
Scott Ehlert
9de900d3eb Made this const for great justice
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565
2007-03-02 09:15:54 +00:00
David Anderson
de588c77b9 added state change function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40564
2007-03-02 08:34:13 +00:00
David Anderson
ec62fb6892 added initial private offset functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40563
2007-03-02 08:00:45 +00:00
David Anderson
bbb373297f fixed some bugs with edicts and players
added classname retrieval functions

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40562
2007-03-02 01:56:56 +00:00
David Anderson
a0ae2a5b16 added a few new entity natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40561
2007-03-02 01:21:43 +00:00
David Anderson
16eab8a091 internal reorganization
renamed edict to entity where appropriate

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40560
2007-03-02 00:52:55 +00:00
Borja Ferrer
3b207f2cc9 implemented GetUserMessageName native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40559
2007-03-01 23:44:27 +00:00
Borja Ferrer
7ebe3f33cd initial implementation of message hooks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40558
2007-03-01 22:49:08 +00:00
David Anderson
f7df18f6fd fixed crash when gamedata is missing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40557
2007-03-01 16:35:06 +00:00
David Anderson
124f9ba049 slight reorganization for future expansion
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40555
2007-03-01 04:18:23 +00:00
David Anderson
d893af2ea4 added keys to game config files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40554
2007-03-01 03:58:18 +00:00
David Anderson
8d29b2c02e initial import of game compatibility backend
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40553
2007-03-01 01:02:47 +00:00
David Anderson
3fec219433 fixed bug where Plugin_Handled didn't block commands
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40552
2007-02-27 23:51:38 +00:00
Scott Ehlert
5cccd9a242 Added hex format specifier (%X and %x)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40550
2007-02-27 21:30:04 +00:00
David Anderson
09887584f4 added functions for target immunity testing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40546
2007-02-27 03:32:14 +00:00
David Anderson
52de18813c fixed stupid export
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40545
2007-02-26 09:21:08 +00:00
David Anderson
38532ccdad removed redundant float native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40543
2007-02-26 08:50:25 +00:00
David Anderson
78eb5b7747 removed Handle:myself from OnPluginStart
added GetMyHandle to get handle now, but there's no use...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40542
2007-02-26 08:32:20 +00:00
David Anderson
5cb299014a added sorting natives (phew)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40541
2007-02-26 08:21:09 +00:00
David Anderson
1cc70a46eb added a crapload of random natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40538
2007-02-26 05:26:54 +00:00
David Anderson
95e92b25aa added a gameframe hook
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40537
2007-02-26 04:36:15 +00:00
David Anderson
bb69a9f0d2 added random number natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40536
2007-02-26 04:24:06 +00:00
David Anderson
0b8874e5ec fixed a series of crash bugs related to CreateForward() with a NULL typeset
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40535
2007-02-26 02:51:14 +00:00
David Anderson
e4fdaede32 added per-handle security (untested)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40534
2007-02-26 02:47:03 +00:00
David Anderson
8567d140d2 re-added this back, it was a good idea after all
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40533
2007-02-22 02:20:15 +00:00
David Anderson
81a6bc3288 removed unnecessary code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40532
2007-02-22 02:09:46 +00:00
David Anderson
8553f12d59 Corrected an API design flaw with pausing. Contexts can now be flagged as paused, and IsRunnable() is moved from IBaseContext to IPluginFunction. While this allows for per-function pausing, it is not intended that way.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40531
2007-02-22 02:05:50 +00:00
David Anderson
3de592d387 added replicated version cvar
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40530
2007-02-21 22:09:05 +00:00
David Anderson
dc06ac6501 added server command functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40528
2007-02-21 22:05:25 +00:00
David Anderson
ae5dfd0966 added helper a core translation helper to the translator
regadmincmd is now officially done and tested, as are overrides
printtoplayers now prints to the server on id==0 as a convenience
fixed a crash bug in the admin system
fixed up console.inc a bit

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40526
2007-02-17 19:03:18 +00:00
David Anderson
3be7988cd1 fixed printtoconsole crashing on fake clients
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40525
2007-02-17 17:35:09 +00:00
David Anderson
03e70ebe16 reverted project file for now
moved printing natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40524
2007-02-17 17:25:50 +00:00
David Anderson
43051a0571 added functions for getting arguments
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40523
2007-02-17 09:12:21 +00:00
David Anderson
2ba612fed7 clientconnect now blocks properly when needed
removed cruft

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40522
2007-02-17 09:02:22 +00:00
David Anderson
b9451b6cc9 exposed global translation file for core
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40521
2007-02-17 09:00:14 +00:00
David Anderson
9d0e33a71f added admin access checking
added syncing between overrides
(note: denial message is a todo)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40520
2007-02-17 08:59:52 +00:00
David Anderson
6b28bec27f rewrote console command implementation internally
admin commands on the way but still not done
removed weird restriction

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40519
2007-02-17 07:54:20 +00:00
Scott Ehlert
49d96d4322 Added GetUserMessageName() native spec to usermessages.inc
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40518
2007-02-17 07:31:14 +00:00
Scott Ehlert
e7759cabea Initial fixes to ensure static strings passed to new convars
Also fixed minor warning in smn_bitbuffer.cpp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40517
2007-02-17 05:33:31 +00:00
Borja Ferrer
0fbb38ef8e initial user message implementation with its natives and such
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40511
2007-02-16 18:47:16 +00:00
Scott Ehlert
c91542fbe8 Moved this... for now
Also added missing header

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40510
2007-02-16 07:48:38 +00:00
David Anderson
eb2afc8c56 fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40509
2007-02-16 04:43:48 +00:00
David Anderson
165b8ed893 fixed a serious potential bug with swapping plugins to debug mode, leaving stale function pointers without plugin removal
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40508
2007-02-16 04:16:31 +00:00
David Anderson
76903cd919 added client-based console commands
extended console command functions to have an argument number
renamed Result to Action

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40506
2007-02-16 02:17:41 +00:00
David Anderson
dcb10ee3a2 added per-plugin command listing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40505
2007-02-16 00:04:14 +00:00
David Anderson
165b705354 implemented+tested RegServerCmd()
renamed internal project console stuff

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40504
2007-02-15 22:17:01 +00:00
David Anderson
745375f393 added engine callclass
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40502
2007-02-15 20:35:17 +00:00
Scott Ehlert
06b9b09ea6 Plugin forwards for convar changes are no longer called if the new and old values are the same
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40500
2007-02-14 23:44:40 +00:00
David Anderson
12b9e2750e made these names more consistent, except for authorized, since only players get authids
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40498
2007-02-14 17:48:49 +00:00
Borja Ferrer
911a333957 updated makefile
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40497
2007-02-14 17:03:54 +00:00
Borja Ferrer
3287dc1442 forgot to add the headers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40496
2007-02-14 11:29:59 +00:00
Borja Ferrer
5fadb86664 removed debug code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40495
2007-02-14 11:07:22 +00:00
Borja Ferrer
8f9a0706bf improved data pack type checking
added readmemory member

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40494
2007-02-14 11:03:03 +00:00
Scott Ehlert
bb79b1e6a9 Removed convar stuff from CPlugin, now uses plugin properties for convar listing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40493
2007-02-14 01:25:45 +00:00
David Anderson
20441b70d3 added plugin properties
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40492
2007-02-13 19:20:48 +00:00
Borja Ferrer
3b151e1790 new lines for linux
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40491
2007-02-13 16:39:47 +00:00
Borja Ferrer
1ff370b91d initial implementation of data packs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40490
2007-02-13 16:11:04 +00:00
Scott Ehlert
d5a7ba694c Changed "sm cvars" to "sm convars" in the name of consistency I guess
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40488
2007-02-13 06:12:33 +00:00
David Anderson
89716abdcf fixed error code being off by one
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40484
2007-02-12 18:25:16 +00:00
David Anderson
afd3d3dc88 fixed a silly bug in translation
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40480
2007-02-12 08:28:35 +00:00
Scott Ehlert
c83b9236b0 Fixed return value on UnhookConVarChange
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40478
2007-02-12 07:11:00 +00:00
Scott Ehlert
ce7f2ae23b More error message fix-ups: removed periods from single sentence native errors - did I miss any? Probably...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40476
2007-02-12 05:53:49 +00:00
Scott Ehlert
dd9b575853 Fixed up some error messages...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40475
2007-02-12 05:46:00 +00:00
Scott Ehlert
efff395182 Fixed Linux build...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40472
2007-02-11 11:20:38 +00:00
Scott Ehlert
0d54b19b8e More convar insanity
1) Added natives: HookConVarChange(), UnhookConVarChange(), and GetConVarName()
2) Fixed bug(s) where ConVar handles were being created when they didn't need to be
3) Fixed bug where convars not created by SourceMod would be unregistered

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40471
2007-02-11 11:09:38 +00:00
David Anderson
682e7d4ab6 fixed build on linux problems
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40470
2007-02-11 00:17:54 +00:00
Scott Ehlert
09236c2d7a Fixed native errors not being logged - hope I did this correctly...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40468
2007-02-10 10:38:23 +00:00
David Anderson
57c1f0dd4d added and tested admin authentication. WOOT. only steam-based works for now.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40466
2007-02-09 04:41:03 +00:00
David Anderson
1c80875ea3 initial import of binding user admin ids to players in game
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40464
2007-02-09 01:08:59 +00:00
Scott Ehlert
fdba3e1f66 Initial import of convar stuff
1) Natives to create, find, set, and get convars
2) "cvars" option added to sm menu
3) Some internal additions to CPlugin to store a convar list
Still some things left to do...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40463
2007-02-08 21:41:28 +00:00
David Anderson
471da79fa5 added a wrapper for getclientconvarvalue
fixed a bug in the player manager

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40462
2007-02-08 20:37:24 +00:00
Scott Ehlert
1300048946 Typo fix and removal of a semicolon in the name of consistency?
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40461
2007-02-08 04:56:08 +00:00
David Anderson
67c76a9380 added gameevents to the publicly available interfaces
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40459
2007-02-08 01:11:45 +00:00
David Anderson
7a29aad6fa removed an old todo
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40458
2007-02-08 01:11:09 +00:00
David Anderson
6908858807 fixed a bug where mapupdated plugins would not get unloaded on deletion
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40456
2007-02-07 19:34:58 +00:00
David Anderson
4ad7f36207 fixed auth string being returned as true if not available
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40455
2007-02-07 19:30:53 +00:00
David Anderson
03fd3139c5 added steamid auth functions
added better bot detection
added gameframe hook for timer
renamed more playermanager stuff

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40454
2007-02-07 08:44:48 +00:00
David Anderson
085264e837 Execute result pointer is now optional
fixed a bug where result could be filled with no executions

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40453
2007-02-07 08:42:48 +00:00
David Anderson
e9204c0bf4 added interface spec for data packs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40446
2007-02-06 19:00:58 +00:00
David Anderson
8860ff6224 changed how the admin cache is rebuilt
renamed the plugin and fixed compilation errors

--HG--
rename : plugins/admin-flatfile/admin-base.sp => plugins/admin-flatfile/admin-flatfile.sp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40444
2007-02-06 05:13:24 +00:00
David Anderson
4e5311d9f2 added+implemented the rest of the admin natives so far
fixed a bug where flags could not be unset

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40442
2007-02-06 01:14:32 +00:00
David Anderson
b596e10304 heavily cleaned up the player API
exposed player API as an interface
added client event listeners to API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40441
2007-02-05 20:32:34 +00:00
David Anderson
6858d12ad9 added some access helper functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40440
2007-02-05 10:34:58 +00:00
David Anderson
b018cd9d3a initial import of the new admin api restructuring
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40439
2007-02-05 09:14:40 +00:00
Scott Ehlert
6a7f216615 Worst commit ever, but I have removed some unnecessary things
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40438
2007-02-05 08:58:03 +00:00
Borja Ferrer
c21bfe57c1 Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40436
2007-02-04 22:41:44 +00:00
Scott Ehlert
02ffffe05a Oi, consistency...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40432
2007-02-02 22:47:14 +00:00
Scott Ehlert
3efb158754 Code clean-up on aisle nana! Well, barely any code was touched here actually...
1) Fixed a few minor warnings
2) Removed MM build configs from geoip
3) Made sure that every project and build config had its Character Set set to Multi-Byte and that Detect 64-Bit Portability Issues was set to No.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40431
2007-02-02 11:27:22 +00:00
David Anderson
66e9205ab5 fixed typo
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40429
2007-01-30 18:34:43 +00:00
Borja Ferrer
5c90acd7be finalized translation routines and formatting
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40428
2007-01-30 18:04:53 +00:00
David Anderson
d52aaa81d9 oh god I hate GNU make so much hate hate hate
yes I hate
HATE
what a sucky system
who designed this anyway, a squirrel
a radioactive squirrel?
I tihnk it was a dead radioactive squirrel

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40425
2007-01-30 02:38:12 +00:00
David Anderson
afd52e1611 fixed a crash bug from not initializing properly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40419
2007-01-29 22:37:37 +00:00
David Anderson
8db394c85d Added VFormat() native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40417
2007-01-29 22:34:53 +00:00
David Anderson
4299828211 whoot, broke the build >:\
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40413
2007-01-29 07:01:26 +00:00
David Anderson
af651e15f3 finished implementing admin interface
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40411
2007-01-29 05:02:44 +00:00
David Anderson
c66632776f initial import of finished admin api
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40410
2007-01-29 04:19:14 +00:00
David Anderson
aea1073d13 added autoloading of extensions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40403
2007-01-27 04:50:33 +00:00
David Anderson
b3b1978d10 exposed translation natives and fixed build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40402
2007-01-27 04:21:11 +00:00
David Anderson
8f64370954 updated core's makefile
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40399
2007-01-27 03:46:48 +00:00
Borja Ferrer
aa8bf86dc1 added %T format support
added a new lang native

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40395
2007-01-27 03:25:34 +00:00
David Anderson
7f44c014ae added build tool
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40394
2007-01-27 03:10:31 +00:00
David Anderson
1ada31ad1e added version info
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40392
2007-01-27 02:25:23 +00:00
David Anderson
d72eef6196 changed how versioning is done
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40390
2007-01-27 00:06:21 +00:00
Borja Ferrer
21123f4c74 fixed plugins being loaded twice if they were loaded previously
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40389
2007-01-27 00:03:34 +00:00
David Anderson
326ac67c68 changed around translation API a bit
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40388
2007-01-26 22:37:54 +00:00
Borja Ferrer
b489378b9c nearly finished my exams!!! :D
library table is no longer needed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40387
2007-01-26 19:35:33 +00:00
David Anderson
4bea89f6e7 removed IThreader.h from the project file
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40385
2007-01-26 04:35:38 +00:00
David Anderson
676a6ea760 Filled out more license headers
Completed lots of missing documentation
Fixed /** on one-liners, must be /**<

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40377
2007-01-26 01:55:06 +00:00
David Anderson
e281a27c14 renamed relevant areas to SorucePawn
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40376
2007-01-25 22:39:12 +00:00
David Anderson
21fb4856e0 added license headers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40375
2007-01-25 22:36:38 +00:00
David Anderson
eaa989cb6b fixed a build error
renamed SMC_CreateParse to SMC_CreateParser

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40369
2007-01-25 21:50:45 +00:00
David Anderson
3e936bbd88 initial import of linux support
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40356
2007-01-25 09:19:38 +00:00
David Anderson
2129bb6d92 changed the API - funcid_t is now index only rather than a code address
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40353
2007-01-25 06:21:20 +00:00
David Anderson
f9a5920e5b added an easier format string Function
changed normal log names to be more consistent
added logging natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40352
2007-01-25 06:19:17 +00:00
David Anderson
e506745890 Added more path building stuff
Addeed text parsing API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40350
2007-01-25 04:37:23 +00:00
David Anderson
aeb512c444 Non-public function addresses are no longer accepted
Added a new VM function for pcode addresses (unused right now)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40349
2007-01-25 04:36:48 +00:00
David Anderson
ef2bc1aa60 changed the two init/unload forwards to have easier names
added text parsing natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40345
2007-01-25 02:10:43 +00:00
David Anderson
c656a1343b fixed a bug in how functions were retrieved
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40344
2007-01-25 01:59:37 +00:00
David Anderson
e596003b94 added admin natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40342
2007-01-25 00:17:32 +00:00
David Anderson
0b8b26042e Added initial admin system natives
Added a few API changes to the admin system
Exposed more interfaces

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40341
2007-01-24 23:43:31 +00:00
David Anderson
ffd308f42c Initial import of admin system (groups and overrides done)
Added a "clear" function for Tries

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40340
2007-01-24 21:51:49 +00:00
Borja Ferrer
2046bb0e14 tiny mistakes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40339
2007-01-20 02:51:30 +00:00
Borja Ferrer
ba1daf3142 plugins get updated on map change
maponly plugins get unloaded on map change

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40338
2007-01-20 02:12:53 +00:00
David Anderson
ec93a3eb80 cleanup
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40333
2007-01-19 08:24:11 +00:00
David Anderson
cd735aec71 finished massive reorganization - IPluginFunction is now part of the VM, NOT the plugin system! This is how it should have been in the first place...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40332
2007-01-19 08:22:44 +00:00
David Anderson
cc977859d6 More reorganizations
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40330
2007-01-19 05:45:45 +00:00
David Anderson
8a46219d96 reorganized SourceMod for the public SDK
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40329
2007-01-19 05:33:04 +00:00
David Anderson
f3eedff775 added an unimplemented member to IShareSys
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40328
2007-01-19 05:25:43 +00:00
David Anderson
5c6eebcebf added new path format functions
exposed helpers as ISourceMod

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40322
2007-01-19 02:14:50 +00:00
David Anderson
c5d0848177 finished most of the extension system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40320
2007-01-18 23:28:14 +00:00
David Anderson
3bba8d6a2a --HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40319
2007-01-18 21:07:10 +00:00
David Anderson
c6b77c8cc1 This is now const
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40318
2007-01-18 20:56:41 +00:00
David Anderson
232e027137 Quick commit of ShareSys API change
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40317
2007-01-18 20:30:45 +00:00
David Anderson
4ac5297d11 fixed a dep bug
fixed a plugin unload iterator bug
extension unloading now works

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40316
2007-01-18 09:14:20 +00:00
David Anderson
1efdacd69b added [SM] to direct responses of menu cmds
began adding the extension menu

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40315
2007-01-18 00:17:36 +00:00
David Anderson
3597a8b1fe Finished porting the "plugins" command to the new menu system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40314
2007-01-17 18:22:00 +00:00
David Anderson
35d0c555fa Redesigned how server commands work. The "plugins" command will be back soon.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40313
2007-01-17 06:49:59 +00:00
David Anderson
55ab150bd8 Changed [SOURCEMOD] to [SM]
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40312
2007-01-17 06:49:40 +00:00
David Anderson
2bbcd57b9e Changed [SOURCEMOD] to [SM]
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40311
2007-01-17 06:48:52 +00:00
David Anderson
7b8c36cb79 Added plugin dependencies to extensions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40310
2007-01-17 06:48:11 +00:00
David Anderson
1857f29efc Added extension loading/unloading
Extended SDK for interface sharing
Completed Metamod extension support

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40309
2007-01-17 03:01:38 +00:00
David Anderson
aec325b19c test of svn rev id
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40307
2007-01-16 20:40:00 +00:00
David Anderson
0182ef0d5f fixed log tag
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40306
2007-01-16 20:38:22 +00:00
David Anderson
4a1c111350 fixed up bad includes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40305
2007-01-16 20:36:09 +00:00
David Anderson
03277707b5 initial import of extension API and SDK as well as auto-loading
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40303
2007-01-16 19:41:21 +00:00
David Anderson
f7545a848f Fixed an off-by-one bug in the handle system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40302
2007-01-16 19:34:32 +00:00
David Anderson
5366d05ce2 Fixed a serious potential corruption bug
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40301
2007-01-16 19:03:29 +00:00
David Anderson
9331fe2a5c small notice to srvcommands
preparation for extension system import

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40299
2007-01-15 22:33:50 +00:00
David Anderson
f4cd98191e small optimization, fixed a corruption bug
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40298
2007-01-15 22:09:11 +00:00
David Anderson
d74e35f1d5 changed default logging method
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40297
2007-01-15 22:08:43 +00:00
Borja Ferrer
9f2c0e370e forwards are now really unregistered
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40296
2007-01-15 03:28:55 +00:00
Borja Ferrer
89350a1785 Added capability to toggle debug state in plugins at runtime
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40295
2007-01-15 00:56:39 +00:00
Borja Ferrer
e13c228c5a SMGlobalClass unloads now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40294
2007-01-13 04:28:13 +00:00
Borja Ferrer
eea576cb52 Added new debugger logger
Added format errors
Paused plugins now have their forwards blocked
Fixed bug where pausing a plugin wouldnt make any effect

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40293
2007-01-12 23:56:02 +00:00
David Anderson
efd3a8ab5f Handle system can now unload identities safely. when an identity is removed, all handles owned by it are removed in a chain.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40288
2007-01-11 07:29:09 +00:00
David Anderson
09b01f7950 removed a few TODOs and filled out some PluginSys stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40287
2007-01-11 01:13:34 +00:00
Borja Ferrer
f30dfedeeb logger gets initialized now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40286
2007-01-11 01:11:24 +00:00
Borja Ferrer
8ec61eecbf added some console natives
more consts here and there in the logger

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40285
2007-01-10 23:49:22 +00:00
David Anderson
951e942ed6 PLATFORM_LINUX -> PLATFORM_POSIX
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40284
2007-01-07 08:55:02 +00:00
David Anderson
95368e57cd initial import of translator code (tested)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40281
2007-01-07 08:47:38 +00:00
Borja Ferrer
45baab94a6 Added a bunch of new file natives.
Fixed possible corruption in snprintf when input buffer was bigger than output buffer and relaying on its retval.
Fixed all cases when the above situation happened.
Fixed _PrintToHL2Log not taking va_list in.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40279
2007-01-07 01:30:28 +00:00
David Anderson
7bb52e67f3 compiles again
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40278
2007-01-06 19:35:25 +00:00
David Anderson
43005abc2f added API for getting error messages
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40277
2007-01-06 07:53:56 +00:00
David Anderson
814007df49 since these two functions are implemented separately, API calls are now divided
got rid of ARRAYSIZE warning

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40276
2007-01-06 07:53:34 +00:00
Borja Ferrer
ac50163647 added console cmd list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40275
2007-01-05 13:23:25 +00:00
Borja Ferrer
c4d8d30a39 whoa this caused a memory LEEK
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40274
2007-01-05 00:58:28 +00:00
Borja Ferrer
d899b7a32a Fixed CPlayer init, it was called too early.
nothing important on the logger

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40273
2007-01-05 00:42:22 +00:00
Borja Ferrer
35896b6eb3 forgot this
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40272
2007-01-04 23:43:01 +00:00
Borja Ferrer
6a0ddf78d4 Initial import of the logger
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40271
2007-01-04 23:41:51 +00:00
David Anderson
ab004f5ce5 cleaned up some handle code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40270
2007-01-04 23:32:46 +00:00
David Anderson
7bbe099cea fixed a bug causing mapchanges to crash
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40269
2007-01-04 23:30:54 +00:00
David Anderson
4bd40d69e1 restructure of HandleSys admin permissions and interface
removal of HandleSys helper functions
removed useless BaseContext stuff from Engine
put SourceMod specific stuff in BaseContext
cleaned up broken Handle code

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40267
2007-01-04 02:08:27 +00:00
Borja Ferrer
5c6bc80f20 Registered player and float natives.
Added error strings to these natives.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40265
2007-01-02 02:40:32 +00:00
David Anderson
32a2aa75e3 fixed various issues in the handle system with cloning
fixed plugins being able to free each other's handles

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40264
2007-01-02 01:44:46 +00:00
David Anderson
929957643f tested file natives and handle system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40260
2007-01-01 21:18:56 +00:00
David Anderson
f072110a44 temporarily disabled binary search code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40259
2007-01-01 21:18:35 +00:00
David Anderson
2fc806542a added usage of the Handle System to begin experimenting
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40257
2007-01-01 19:50:16 +00:00
David Anderson
80b75f2196 added note for player natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40254
2007-01-01 10:36:29 +00:00
David Anderson
271fba7b50 updated project file
added todo for floats

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40253
2007-01-01 10:35:15 +00:00
David Anderson
9f7c852c77 initial import of handle natives and a few minor API changes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40252
2007-01-01 10:33:51 +00:00
David Anderson
f8c88a75df implemented debugger
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40251
2007-01-01 03:40:29 +00:00
Borja Ferrer
86f9be5714 Added CPlayer class
Added new player natives
Fixed floatround returning a float instead of an int
Added new float.inc file
Added OnClientSettingsChanged forward

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40247
2007-01-01 03:33:14 +00:00
David Anderson
378e4d20f3 initial import of new debugger API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40245
2007-01-01 01:09:53 +00:00
Borja Ferrer
cf15783eb0 fixed atcprintf counting the null terminator for the return value
added format and formatex natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40241
2006-12-31 03:02:40 +00:00
Borja Ferrer
8c09e0c50d removed radix stuff from trig natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40240
2006-12-30 22:16:53 +00:00
David Anderson
388c062c96 added automatic native registration
added string include file
renamed typeutil and its functions
redid a bunch of the string natives
string natives now register

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40238
2006-12-30 07:23:17 +00:00
David Anderson
17af34bba5 unmanaged forwards need to be pruned for dead plugins too
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40237
2006-12-30 06:07:32 +00:00
David Anderson
307d5b20c2 updated project file
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40236
2006-12-30 00:18:06 +00:00
Borja Ferrer
4153221ca8 fixed a "-1" bug in atcprintf
moved string functions to the stringutils file
added strncopy

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40235
2006-12-29 23:28:44 +00:00
David Anderson
f068587ecc initial import of sharesystem (unfinished)
final revision of handle system (I hope!)
initial import of plugin handles

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40234
2006-12-29 23:18:13 +00:00
Borja Ferrer
5b331ca858 added atcprintf
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40233
2006-12-29 03:29:17 +00:00
Borja Ferrer
6e7e89e9cf added atcprintf
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40232
2006-12-29 03:21:09 +00:00
Borja Ferrer
5e75d0928c Added PlayerManager basic hookings
Moved ftoc and ctof to an utility file
Added some more string natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40231
2006-12-28 00:48:09 +00:00
Borja Ferrer
aba273f93d IPlugin context pointer is passed now to natives
Added basic string natives
Added floating point natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40230
2006-12-23 02:20:53 +00:00
Borja Ferrer
2fb3501e0d recommited this, hi
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40229
2006-12-17 20:33:31 +00:00
David Anderson
7af40128a3 Clarified states a little
Fixed include order and double include prevention

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40228
2006-12-17 09:59:01 +00:00
David Anderson
352b15c1b7 Added Handle cloning and reference counting in preparation for IShareSys
Made the internal code a bit more flexible and improved access security structures

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40227
2006-12-17 09:56:45 +00:00
Borja Ferrer
1e573fe0d0 fixed null string condition being always true
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40226
2006-12-17 02:51:35 +00:00
David Anderson
522a1f605f these should compile now
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40225
2006-12-16 22:31:32 +00:00
David Anderson
77ca28b8a3 each plugin must have its own identity.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40224
2006-12-16 22:30:58 +00:00
David Anderson
c189dfa991 implemented and finalized initial HandleSystem API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40223
2006-12-16 22:27:18 +00:00
Borja Ferrer
a4737a2808 added status strings
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40222
2006-12-16 02:48:58 +00:00
Borja Ferrer
c9002c2011 Added initial console commands for plugins
fixed crash in plugin destructor
fixed compilation not being freed causing a crash
fixed small issues in plugin system
fixed plugin iterator not being reseted when freed and not being initialized it's current pointer.
fixed a bug where insertion of a prefixed string would not check whether a value could be set.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40221
2006-12-16 02:16:21 +00:00
David Anderson
e0bd4f9782 i have changed some letters in these files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40220
2006-12-16 01:51:45 +00:00
David Anderson
649b96ac9d added global class initializers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40219
2006-12-15 13:58:22 +00:00
David Anderson
a9087b13dd added second pass function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40218
2006-12-15 13:53:58 +00:00
David Anderson
90d1f4495e Added global class initialization automation
Finalized basics of plugin loading
Began redoing how dependencies will be tracked
Renamed some bad names
Finished some stuff in ForwardSys

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40216
2006-12-15 13:38:04 +00:00
David Anderson
a93faa3cbf exposed new pathformat function to ILibrarySys
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40215
2006-12-13 11:19:46 +00:00
David Anderson
23a91de75c !Added MOSTLY UNTESTED plugin loading
Fixed a match bug in TestAliasMatch()
Removed pointless implementation of context switching in CPlugin
Redesigned how CPlugins are allocated, deallocated, and instantiated.
Added a basedir function so all code can reference relative paths.  This may be redesigned.
Various other changes

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40214
2006-12-13 11:16:20 +00:00
David Anderson
dc60ae49de Fixed a bug where EOS/EOF was interpreted as a stream error
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40213
2006-12-13 11:14:25 +00:00
David Anderson
e2935a2ae4 added path separator chars
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40212
2006-12-13 11:14:04 +00:00
David Anderson
36312e9779 Added path formating to LibrarySystem so we don't have to rely on g_SMAPI
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40211
2006-12-13 11:13:50 +00:00
David Anderson
36dc72cf04 Fixed bug with info database not reading back table properly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40210
2006-12-13 11:10:02 +00:00
David Anderson
1ffa6eac9f Fixed silly crash bugs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40209
2006-12-13 11:09:43 +00:00
David Anderson
a1e58aa9ef initial import of plugin database (UNTESTED)
added file pattern matching routine (TESTED)
added memtable caching (UNTESTED)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40208
2006-12-10 09:19:59 +00:00
David Anderson
bd3effc315 removed debug code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40203
2006-12-08 20:59:25 +00:00
David Anderson
89c75b1940 committed shiny new SMC parser (really Valve XML or whatever)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40202
2006-12-08 20:54:49 +00:00
David Anderson
ef296710c6 added a few debug checks and a fix for deallocation
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40200
2006-12-07 19:10:26 +00:00
David Anderson
5fc2918377 fixed a series of addressing bugs where the indexer could reach past basearray bounds
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40199
2006-12-07 08:17:19 +00:00
David Anderson
eabc33b4d2 fixed a problem causing the string table to never grow
fixed growth and zeroing of the base array (was corrupting)
fixed parent being set wrong resulting in node access corruption
fixed a really retarded loop bug
fixed base array growth invalidating cached pointers
fixed insertion of similar strings which both had valid arc paths but no terminators

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40198
2006-12-06 23:35:51 +00:00
Borja Ferrer
f3ad0f5b67 rewritten PushStringEx in Forward and Function systems
fixed PushCellByRef and PushFloatByRef in the varargs case where it wouldn't set the pushed type
fixed the BindNatives functions not setting the BOUND flag thus making the JIT not exec the natives
done the rest of tests with forwards, only left to do string varargs

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40197
2006-12-06 14:52:11 +00:00
David Anderson
73e1d4b9cc removed debug code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40195
2006-12-06 00:09:46 +00:00
David Anderson
f3bb90924d added experimental trie API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40194
2006-12-05 23:52:43 +00:00
Borja Ferrer
a42fa24ef5 fixed string pushing
fixed CFunction::_PushString not counting the null terminator

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40193
2006-11-17 23:22:32 +00:00
Borja Ferrer
34097b1dba tested some forwards
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40192
2006-11-16 22:37:37 +00:00
David Anderson
13d61ec39f added implementation to the forward manager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40191
2006-11-14 08:45:21 +00:00
Borja Ferrer
cda9c6952d iface comment fixes and sync
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40190
2006-11-13 13:55:44 +00:00
Borja Ferrer
2943111703 fixed StringToLocalUTF8 evaluating invalid chars
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40189
2006-11-12 13:13:12 +00:00
David Anderson
bad69571b6 rewrote forward API to use cached parameter pushing instead of immediate pushing
removed copy back cruft since it's no longer needed
removed PushCells() from API requirements, not needed
adjusted documentation and added TODO list to ForwardSys.cpp
various internal improvements

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40188
2006-11-12 09:51:39 +00:00
David Anderson
94dc5ca298 fixed copy backs so they work properly
NOTE: heap fails, working on a rewrite

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40186
2006-11-12 02:24:45 +00:00
David Anderson
6bef3c2c5a Initial import of forward system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40185
2006-11-12 01:06:17 +00:00
Borja Ferrer
4d89283924 string functions in the VM are now compatible with packed strings
added a StringToLocal UTF-8 version to the VM

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40184
2006-11-12 00:40:58 +00:00
David Anderson
adc1475b76 Fleshed out forward system and extensively documented its design considerations
Implemented and did basic tests on new IPluginFunction type
Split function types into a separate file

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40182
2006-11-11 11:10:24 +00:00
David Anderson
c25cc64024 Implemented a lot more of the plugin system
added aggressive caching O(1) function object retrieval

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40181
2006-11-11 05:49:52 +00:00
David Anderson
50e5307d32 initial import of proposed forward API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40179
2006-11-11 01:19:46 +00:00
David Anderson
30956eae5b added plugin sys initial import
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40178
2006-11-10 18:08:13 +00:00
David Anderson
ac761f61ce initial import of plugin loading code
little fixes to API
temporarily commented dependency iface until final

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40177
2006-11-10 07:49:38 +00:00
David Anderson
e060af14b4 updated all api to use new function id system
fixed a codegen bug in function ids
removed extra native status, simplified native binding

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40169
2006-11-08 08:41:18 +00:00
David Anderson
f55a7a5663 added some trivial comments
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40167
2006-11-08 07:44:26 +00:00
David Anderson
9141ae103e began JIT integration
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40165
2006-11-08 07:32:44 +00:00
David Anderson
65026ef57e finalized new structure and imported newly proposed plugin system API
added zlib to source tree
added VM API to source tree

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40164
2006-11-08 06:30:20 +00:00
David Anderson
89b125f6c1 added and tested UTF-8 support for ini files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40155
2006-11-07 00:53:06 +00:00
Borja Ferrer
ba9b4f4211 what
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40153
2006-11-06 22:30:59 +00:00
David Anderson
739bad1912 OH MY GOD REMOVED THIS TEST CRAP IT IS LATE AND I AM TIRED WHY AM I YELLING OH WELL
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40151
2006-11-06 11:04:20 +00:00
David Anderson
f19fbac013 renamed mm_api, I don't like short names!
finished and tested the INI parser and its API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40150
2006-11-06 10:57:37 +00:00
David Anderson
5c6f81cb25 clarified text parsing a bit, improved interface.
i am eating a dumpling, it is very tasty!

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40148
2006-11-05 08:36:59 +00:00
David Anderson
1682417afa Added ITextParsers interfaces
Initial import of admin configuration (proposed)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40147
2006-11-05 07:19:23 +00:00
David Anderson
f83a597e49 began platform support
initial import of platform library code
tested on win32

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40146
2006-11-05 02:47:13 +00:00
David Anderson
c63d26e1c5 initial import of the first four core interfaces
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40145
2006-11-05 00:29:44 +00:00
David Anderson
8402d79760 initial import of project file and a few files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40142
2006-11-04 19:27:20 +00:00