reduce size scripting ?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

reduce size scripting ?

Post 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...)
Last edited by Drakkan on Sun Feb 17, 2013 9:42 pm, edited 1 time in total.
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: reduce size scripting ?

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: reduce size scripting ?

Post 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....)
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: reduce size scripting ?

Post by Neikun »

Yeah. This is inevitable if you built your dungeon in the same folder you put all the community assets.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: reduce size scripting ?

Post 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.
Finished Dungeons - complete mods to play
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: reduce size scripting ?

Post 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 :P
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: reduce size scripting ?

Post by msyblade »

that is an AWESOME idea!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply