Skip to content

Commit 0e113a7

Browse files
committed
editor: Only store used LOD details
Save up to 25 KB per map file by only including LOD data for used model IDs.
1 parent 821d5bd commit 0e113a7

File tree

5 files changed

+272
-222
lines changed

5 files changed

+272
-222
lines changed

[editor]/editor_main/client/mapEditorScriptingExtension_c.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- FILE: mapEditorScriptingExtension_c.lua
22
-- PURPOSE: Prevent the map editor feature set being limited by what MTA can load from a map file by adding a script file to maps
3-
-- VERSION: RemoveWorldObjects (v1) AutoLOD (v2) BreakableObjects (v1)
3+
-- VERSION: RemoveWorldObjects (v1) AutoLOD (v3) BreakableObjects (v1)
44

55
function setLODsClient(lodTbl)
66
for model in pairs(lodTbl) do

[editor]/editor_main/server/dumpxml.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ function dumpMeta ( xml, extraNodes, resource, filename, test )
208208
xmlNodeSetAttribute(scriptNode, "src", scriptName)
209209
xmlNodeSetAttribute(scriptNode, "type", "server")
210210
end
211-
fileCopy("server/"..scriptName, ":"..getResourceName(resource).."/"..scriptName, true)
212211

213212
scriptName = "mapEditorScriptingExtension_c.lua"
214213
foundScriptInMeta = false

0 commit comments

Comments
 (0)