Commit Graph

563 Commits

Author SHA1 Message Date
peelz fb1005d255 Clean up dependencies 2022-08-09 17:50:00 -04:00
peelz 08836088fb Refactor hooking API
This completely changes how method patching works under the hood. Unlike
the previous API (`Hook.HookMethod`), the new API (`Hook.Patch`)
generates a Harmony patch method at runtime, using IL generation.

This fixes methods with ByRef (out/ref) parameters getting silently corrupted
due to the ByRef semantics being lost when passed through the `object[] __args`
parameter.

This new API also makes it possible to:
  - modify parameters (including ByRef params)
  - change the return value to `null` (old API would use `return nil`
    for Harmony control flow)
  - prevent execution of the original method (and other harmony
    patches), independently of modifying the return value
2022-08-09 17:50:00 -04:00
EvilFactory 0948c6dc35 added Quality.SetValue 2022-08-08 17:36:50 -03:00
EvilFactory 31b0bbd3d9 fix jobsAssigned hook not working for respawn shuttles 2022-07-16 11:28:33 -03:00
Evil Factory c5860d13d5 Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git 2022-07-14 12:25:44 -03:00
Regalis11 4a03ee5ab2 v0.18.15.0 2022-07-14 16:54:36 +03:00
Markus Isberg 497045de7e Build 0.18.13.0 2022-07-01 12:16:36 +09:00
Evil Factory 33efc519a3 fix talents not updating (forgor to make the type nullable) 2022-06-23 19:48:08 -03:00
Evil Factory 814870d80c whoops 2022-06-22 19:54:31 -03:00
Evil Factory 9fec4e378f add hook character.updateTalent 2022-06-22 19:53:39 -03:00
Evil Factory 64c81146fb added PerformanceCounter 2022-06-19 11:50:51 -03:00
Evil Factory 349cf89eb5 Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git 2022-06-17 10:33:06 -03:00
Regalis11 631e59e8b8 Hotfix v0.18.12.0 2022-06-17 16:10:25 +03:00
Evil Factory 66c97ad100 re-add satellite resource language 2022-06-15 15:40:53 -03:00
Evil Factory c647295ccb fix projects 2022-06-15 15:28:02 -03:00
Evil Factory 7a09711296 Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git 2022-06-15 13:26:49 -03:00
Markus Isberg 8e6c601162 Build 0.18.11.0 2022-06-16 01:03:48 +09:00
Markus Isberg 856f894203 Build 0.18.9.0 2022-06-14 04:14:47 +09:00
Markus Isberg 4f5a3bf8b9 Build 0.18.7.0 2022-06-08 21:52:38 +09:00
Evil Factory 7354e3fab2 when installing cl lua via workshop, create LuaDedicatedServer.bat 2022-06-04 13:39:30 -03:00
Markus Isberg 5a10b444ee Build 0.18.6.0 2022-06-04 00:34:02 +09:00
Markus Isberg 6be757a45b Build 0.18.5.0 2022-06-03 22:29:04 +09:00
Markus Isberg 64db1a6a44 Build 0.18.4.0 2022-05-31 23:13:05 +09:00
Evil Factory c9ad6efb54 re-enable the lua command in public servers 2022-05-30 12:43:32 -03:00
Evil Factory 6922900bf1 Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git 2022-05-30 12:29:28 -03:00
Juan Pablo Arce f74787cd10 v0.17.16.0 2022-05-30 10:25:24 -03:00
Evil Factory 3218f0a55b disable usage of lua execute commands in public servers 2022-05-24 14:53:57 -03:00
Markus Isberg 077917fa5d Build 0.18.2.0 2022-05-19 23:43:21 +09:00
Evil Factory cf500081d1 renamed hooks (with compatibility), added new hook: character.giveJobItems (because of how often its used) and updated hook docs 2022-05-17 12:24:52 -03:00
Evil Factory fd6b833c98 misc doc fixes 2022-05-16 13:53:39 -03:00
Evil Factory 003aeb2cec Update Harmony (fixes patch hooks being randomly removed) 2022-05-14 00:09:17 -03:00
Markus Isberg d4f6f4cf88 Build 0.18.1.0 2022-05-13 22:55:07 +09:00
Markus Isberg 7547a9b78a Build 0.18.0.0 2022-05-13 00:55:52 +09:00
Evil Factory 789d728f7a prevent access error if you do workshop cl install but its already installed 2022-05-07 13:16:33 -03:00
Oiltanker f5b2268150 doxygen cs documentation 2022-05-06 22:35:47 +03:00
Evil Factory bbea195e7d fix formatting in lua require and better error handling with dofile,loadfile,etc 2022-05-04 08:50:17 -03:00
Evil Factory b322ba53be fix naming 2022-05-04 07:56:54 -03:00
Evil Factory c5b6cc5f0d made it possible to change the round summary traitor results 2022-05-03 20:06:34 -03:00
Evil Factory af47136bbd use cs package from backup packages 2022-04-29 14:00:53 -03:00
Oiltanker f1c7be0b4c install_cl_lua custom dependency fix 2022-04-29 05:07:08 +03:00
Evil Factory 36a2dafbd5 fix broken Mac project 2022-04-28 13:32:42 -03:00
Evil Factory 4277dd447c Merge branch 'master' of https://github.com/Regalis11/Barotrauma.git 2022-04-28 12:36:24 -03:00
Markus Isberg 15d18e6ff6 Build 0.17.15.0 2022-04-27 23:32:17 +09:00
Markus Isberg 6e38444fc4 Build 0.17.14.0 2022-04-27 07:44:37 +09:00
Evil Factory 60ddfb831b Added so you can increase the amount of packets per update in file sender 2022-04-25 16:45:05 -03:00
Evil Factory 910118303a fix clientWriteList Hook 2022-04-23 11:30:25 -03:00
Markus Isberg 7a09cf3260 Build 0.17.13.0 2022-04-22 21:48:04 +09:00
Evil Factory fd0c3ba19d Merge branch 'unstable-tests' 2022-04-21 11:21:30 -03:00
Evil Factory 9e03779f2d added detection of a special file called "usecurrentdirectoryforsaves" for shady hosting providers 2022-04-20 22:42:28 -03:00
Evil Factory 0aa2976697 only allow cs commands if cs package present 2022-04-20 20:04:49 -03:00