From 46eb299a2ccb7dfb0fc8e6eae0e551bcde51f9eb Mon Sep 17 00:00:00 2001 From: Fernando Rocha <34967844+Fernando-A-Rocha@users.noreply.github.com> Date: Mon, 28 Nov 2022 13:47:42 +0000 Subject: [PATCH 1/7] Fix outputDebugString in removeExternalMod(id) newmodels server.lua --- newmodels/server.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newmodels/server.lua b/newmodels/server.lua index 0aede09..5dd4647 100644 --- a/newmodels/server.lua +++ b/newmodels/server.lua @@ -690,7 +690,7 @@ function removeExternalMod(id) -- [Exported] for k,mod in pairs(mods) do if mod.id == id then - outputDebugString("Removed "..elementType.." mod ID "..id.." located in: "..mod.path, 0, 211, 255, 89) + outputDebugString("Removed "..elementType.." mod ID "..id, 0, 211, 255, 89) modList[elementType][k] = nil @@ -716,4 +716,4 @@ function removeExternalMod(id) -- [Exported] end return false, "No mod with ID "..id.." found in modList" -end \ No newline at end of file +end From 139c335b39be5b9ae3dc86c16730aeee5daf1a2a Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Wed, 11 Jan 2023 03:44:35 +0000 Subject: [PATCH 2/7] Major significant improvements (read description) - newmodels example resource versions in meta.xml now match newmodels version they are compatible with - new addExternalMods_CustomFileNames used by sampobj_reloaded to send list instead of calling exports a million times for each mod - added support for 'download="false"' in meta.xml; newmodels will only download the mod files when needed (on try set element data) !!! - fixed unefficient isDefaultID function - fixed server startup checks not allowing new "paths" format in mod_list.lua --- [examples]/newmodels-example/meta.xml | 14 +- [examples]/sampobj_reloaded/meta.xml | 8606 +++++++++-------- [examples]/sampobj_reloaded/readme.txt | 2 +- [examples]/sampobj_reloaded/server.lua | 2902 +++--- .../sampobj_reloaded/testing_server.lua | 3 +- [examples]/unittest_newmodels/meta.xml | 11 + newmodels/client.lua | 360 +- newmodels/meta.xml | 36 +- newmodels/mod_list.lua | 12 +- newmodels/server.lua | 100 +- newmodels/shared.lua | 26 +- 11 files changed, 6168 insertions(+), 5904 deletions(-) diff --git a/[examples]/newmodels-example/meta.xml b/[examples]/newmodels-example/meta.xml index 6778533..f46610e 100644 --- a/[examples]/newmodels-example/meta.xml +++ b/[examples]/newmodels-example/meta.xml @@ -1,8 +1,14 @@ - - + + + + diff --git a/[examples]/sampobj_reloaded/meta.xml b/[examples]/sampobj_reloaded/meta.xml index 555a3b3..ef03b67 100644 --- a/[examples]/sampobj_reloaded/meta.xml +++ b/[examples]/sampobj_reloaded/meta.xml @@ -1,4306 +1,4316 @@ - - + + + +