Page 1 of 1
reduce size scripting ?
Posted: Sun Feb 17, 2013 9:11 pm
by Drakkan
Hello all,
is there any way (script or mode) which could be used to find out, which objects / models are NOT used in particular dungeon from custom assets (made by other people)? I want reduce size of .dat file and I do not want to search it manulay one by one (which could be a mess in case you are using lots of custom assets located in differents directories etc...)
Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 9:39 pm
by Neikun
One thing you may want to consider before that is whether or not textures have been properly compressed.
1024x1024 files should usually be about 682kb.
512x512 is usually about 1.33kb
So if you have files with the same dimensions that are drastically larger, you know where to start.
Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 9:45 pm
by Drakkan
Neikun wrote:One thing you may want to consider before that is whether or not textures have been properly compressed.
1024x1024 files should usually be about 682kb.
512x512 is usually about 1.33kb
So if you have files with the same dimensions that are drastically larger, you know where to start.
good advice for my own custom assets, thanks. Neverthless, curently I am searching how to reduce assets made by community (like removing object I have not used from particular asset). But seems I will have to search each object and delete it one by one (from models, textures, lua definition....)
Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 9:55 pm
by Neikun
Yeah. This is inevitable if you built your dungeon in the same folder you put all the community assets.
Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 10:18 pm
by Komag
it would be great if someone would make a tool that analyzed the dungeon.lua and then figured what was used, then copied only the used things to a new dungeon directory tree, then we could go there and do the export.
Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 10:21 pm
by Drakkan
Komag wrote:it would be great if someone would make a tool that analyzed the dungeon.lua and then figured what was used, then copied only the used things to a new dungeon directory tree, then we could go there and do the export.
thats what i was talking about ! We can just hope somebody is boring enough (or wanna make it for community) to make such a converter /script

Re: reduce size scripting ?
Posted: Sun Feb 17, 2013 10:31 pm
by msyblade
that is an AWESOME idea!