Jump to content


Photo

Can I compress WED files?


  • Please log in to reply
11 replies to this topic

#1 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 19 January 2013 - 03:05 PM

Today I received a WEIDU error when trying to install a newly created (big) are file with the FILE TOO BIG FOR WEIDU error. This normally happens with tis files and is solved by compressing to tiz and uncompressing on install.

Now I have this error with a WED file. What can I do here?


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#2 Wisp

Wisp
  • Modder
  • 1346 posts

Posted 19 January 2013 - 04:20 PM

You use COPY_LARGE with all large files (and compressing TIS files is all about saving in on bandwidth).



#3 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 19 January 2013 - 11:09 PM

Thank you, yes, it does the trick.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#4 Sam.

Sam.
  • Modder
  • 1095 posts

Posted 19 January 2013 - 11:34 PM

If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .


"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

-- to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#5 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 20 January 2013 - 12:06 AM

If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .

Thanks, but I am content with the COPY_LARGE solution, after all it is just a single file out of more than 100 areas that has the issue. 


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#6 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 11 October 2015 - 12:56 PM

If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .

It has been some time since that problem occured and back then I could solve it with COPY_LARGE.

Today the issue has come up again while trying to upload a mod to github which has a limit for single file size. So a tool to compress a WED file from 136Mb to below 100 would be a valuable option.

Does such a thing exist?


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#7 dabus

dabus
  • Member
  • 1982 posts

Posted 11 October 2015 - 04:13 PM

Well using tools like 7zip would bring it down from 139.3 mb to around 31 kb. But since it does, I guess there's really something that might be squeezed out by using tools to create/modify wed-files -- another wed-files ratio was about 1/3 of the original size.
THINK! - It's not illegal.

#8 Sam.

Sam.
  • Modder
  • 1095 posts

Posted 11 October 2015 - 05:23 PM

If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .

It has been some time since that problem occured and back then I could solve it with COPY_LARGE.

Today the issue has come up again while trying to upload a mod to github which has a limit for single file size. So a tool to compress a WED file from 136Mb to below 100 would be a valuable option.

Does such a thing exist?

The largest WED file in any of my games is AR1800.WED from BGEE at 376 KB.  How (or maybe why) in the world did you need one ~3 orders of magnitude larger??


"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

-- to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#9 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 11 October 2015 - 10:33 PM


If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .

It has been some time since that problem occured and back then I could solve it with COPY_LARGE.

Today the issue has come up again while trying to upload a mod to github which has a limit for single file size. So a tool to compress a WED file from 136Mb to below 100 would be a valuable option.

Does such a thing exist?

The largest WED file in any of my games is AR1800.WED from BGEE at 376 KB.  How (or maybe why) in the world did you need one ~3 orders of magnitude larger??

I will investigate that with Argent77 help - I assume the big size is some error (although there is no problem in the game with that file) it probably contains some overhead that can be removed.

 

This is the questionable file

[attachment=28353:RTF166.rar]


Edited by Roxanne, 11 October 2015 - 10:56 PM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#10 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 12 October 2015 - 07:17 AM

If you really wanted to compress it, buried somewhere I have the code that can zlib compress any file in the same format that BAM and MOS files are compressed.  The game won't be able to use it until you uncompress it though, so it doesn't gain you much :P .

It has been some time since that problem occured and back then I could solve it with COPY_LARGE.

Today the issue has come up again while trying to upload a mod to github which has a limit for single file size. So a tool to compress a WED file from 136Mb to below 100 would be a valuable option.

Does such a thing exist?

The largest WED file in any of my games is AR1800.WED from BGEE at 376 KB.  How (or maybe why) in the world did you need one ~3 orders of magnitude larger??

I will investigate that with Argent77 help - I assume the big size is some error (although there is no problem in the game with that file) it probably contains some overhead that can be removed.

 

This is the questionable file

attachicon.gifRTF166.rar

Thanks to Argent77 the problem could be fixed. Thanks!!


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#11 Sam.

Sam.
  • Modder
  • 1095 posts

Posted 12 October 2015 - 07:26 AM

I'm curious to know what the issue was and what caused it...

"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

-- to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#12 Argent77

Argent77
  • Staff
  • 1075 posts

Posted 12 October 2015 - 07:37 AM

For some reason the polygon structure for "DOOR05" contained invalid data, which caused the WED parser (of NI, DLTCEP, ...) to use absurdly high values for polygon start index and count values. I guess the 140 MB bogus data (or more likely vertex indices) have been added by the WED editor because of it.