Commit graph

408 commits

Author SHA1 Message Date
FireSiku
b172d19f24 [Hooks] Make Travis happy about long error messages 2019-01-21 04:49:59 -05:00
FireSiku
04f49e995b [Hooks] Show readable strings in hook creation info logs. 2019-01-20 22:56:36 -05:00
FireSiku
89e88b41af [Hooks] Do not show unique ID address in info log 2019-01-20 22:53:10 -05:00
FireSiku
91a83e8cbc [Hooks] Set unique_id correclty if a second mod hooks the same function 2019-01-17 03:29:48 -05:00
FireSiku
fd5a3d3afc [Hooks] Removed unused variable. 2019-01-16 19:24:07 -05:00
FireSiku
630893203f [Hook] If someone tries to hook an internal hook function, redirect it to the corresponding original function 2019-01-16 19:02:56 -05:00
FireSiku
b409b9b01b [Hooks] Use a better unique identifier for registry tables.
Initially used the function reference of the original function, but this caused issues with inherited functions. This commit changes it so that we're using our own internal hook function reference as the identifier.
2019-01-16 01:25:45 -05:00
FireSiku
bf67d37ad8 [Hooks] Clean up code by making sure obj is never nil.
Set obj to _G for global functions.

This should reduces the headache of "if obj then [obj][method] else [method] end" and make code look cleaner and less confusing in the process.
2019-01-12 02:06:14 -05:00
Azumgi
9b00e6e66e [Chat Actions] Add numpad enter support (commands) 2019-01-04 14:36:06 +03:00
Azumgi
0dbbdce62e [Custom Views] Little style changes 2019-01-04 14:16:13 +03:00
Azumgi
845ba03527 [Custom View] Fix loading screen reloading crash 2019-01-04 14:15:19 +03:00
Azumgi
1f950de22e [VMF Options View] Fix clamping decimal numbers
Numeric widget no longer removes 0 at the end of decimal part.
2019-01-01 08:42:51 +03:00
Azumgi
79506289e3 [VMF Mod Data] Log workshop mod name and id 2019-01-01 07:51:18 +03:00
Azumgi
5ba8406b53 Move vanilla mod data init to another file 2019-01-01 07:07:21 +03:00
Azumgi
ff8ee7ee03
Wiki in mod workshop description (#35) 2019-01-01 06:44:41 +03:00
Azumgi
6ac6562743 Change link to VMF docs in workshop description 2019-01-01 06:21:52 +03:00
Azumgi
00be71b310 Remove applying for sanctioning 2019-01-01 06:14:57 +03:00
Azumgi
151a4f7c4c Remove 'copy_assets_for_whitelisting.bat' 2019-01-01 06:12:55 +03:00
Azumgi
1fd7125b4f [vmf.mod] Little style changes 2019-01-01 06:11:16 +03:00
Azumgi
d03316246b Add new line at end of all files 2019-01-01 06:08:51 +03:00
Azumgi
098c3eb007
Flexible mod resources (#34) 2018-12-27 20:39:10 +03:00
ManuelBlanc
27f594070e Fix mutators test error introduced in refactor 2018-12-27 18:31:18 +01:00
ManuelBlanc
ed738d48a0 Add the mod as the first arg to mod resource functs 2018-12-27 18:10:35 +01:00
ManuelBlanc
b3dfd788b8 Refactor mutator tests 2018-12-27 17:52:29 +01:00
ManuelBlanc
97bcc8de3e Allow defining mod resources as functions or tables 2018-12-27 17:52:12 +01:00
Azumgi
ddac387832 [Logging] Little style changes 2018-12-27 17:21:18 +03:00
Azumgi
39167dc3e0 [VMF Package Manager] Remove check for handle 2018-12-27 17:21:18 +03:00
Azumgi
2369dfbd96 [VMF Mod Manager] Add steam mod data to mod_data 2018-12-27 17:21:18 +03:00
Azumgi
5f5bf5bfdf [Legacy Options] Increase widget limit to 1024 2018-12-27 17:21:18 +03:00
Azumgi
dd23ba0e22
Add a file with all contributors (#33) 2018-12-22 20:06:31 +03:00
Manuel Blanc
19253a9f65
Sort contributors alphabetically (was by ASCII) 2018-12-22 18:05:42 +01:00
ManuelBlanc
1eef8c0b8e Add CONTRIBUTORS.MD; delete empty CONTRIBUTING.MD 2018-12-22 13:17:14 +01:00
Azumgi
34e9bed306 [VMF Mod Manager] Forbid creating mods in runtime 2018-12-17 19:04:19 +03:00
Azumgi
4154e86310 [VMF Mod Manager] Refactor error handling 2018-12-17 19:04:19 +03:00
Azumgi
f28c7a0c65 [VMF Mod Manager] Little style changes 2018-12-17 19:04:19 +03:00
Azumgi
58193d9cc0
Fix labels of some es strings (#31) 2018-12-17 15:28:19 +03:00
Manuel Blanc
debf5344a3
Fix labels of some es strings 2018-12-16 22:59:28 +01:00
Azumgi
640407a059
Merge pull request #30 from FireSiku/hook_fixes 2018-12-16 15:51:56 +03:00
FireSiku
8fd4dbbcef hooks: Do not log hook state for mods that do not hook anything. 2018-12-16 06:51:09 -05:00
FireSiku
d252e17229 hooks: Throw an error if obj is nil to avoid clusterfucks. 2018-12-16 06:51:09 -05:00
FireSiku
ce468164aa Fixed a conditional flaw in is_orig_hooked 2018-12-16 06:51:09 -05:00
FireSiku
8af6a1b91c Updated Comments 2018-12-16 06:51:09 -05:00
Azumgi
662effb590 [Logging] Fix infinite recursion in formatting
Could happen for strings with format specifier in the end.
2018-12-14 20:54:17 +03:00
Azumgi
f40685af6c [Mod Options] Update for new 'register_view' 2018-12-14 20:47:42 +03:00
Azumgi
71f3bc55af [Custom Views] Make 'register_view' accept table 2018-12-14 20:46:14 +03:00
Azumgi
e2111213d8 [VMF Package Manager] Remove unnecessary 'unload' 2018-12-14 20:29:29 +03:00
Azumgi
7ce06d5786 [Hooks] Split up string exceeding 120 chars
Travis will be finally happy yay.
2018-12-14 20:24:59 +03:00
Azumgi
2879193731 Unify indentation style
Except for hooks module.
2018-12-14 20:18:07 +03:00
Azumgi
7e2faac683
Implement VMF Package Manager (#29) 2018-12-11 19:22:28 +03:00
f113736db7 Fix package loading timing 2018-12-11 17:05:09 +01:00