Vorticons Levels: RLEW on the header?

Tools, assembly, and file formats.
Post Reply
Dr. Kylstein
Posts: 120
Joined: Wed Dec 16, 2009 5:20 pm

Vorticons Levels: RLEW on the header?

Post by Dr. Kylstein »

Does the RLEW apply to the entire file after the size, or is the header always uncompressed? Is there a definitive answer?
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post by Fleexy »

FleexCore doesn't support RLEW in the header and it's handled every level I've thrown at it, so I'm going to say that the header is always uncompressed.
Dr. Kylstein
Posts: 120
Joined: Wed Dec 16, 2009 5:20 pm

Post by Dr. Kylstein »

Fleexy wrote:FleexCore doesn't support RLEW in the header and it's handled every level I've thrown at it, so I'm going to say that the header is always uncompressed.
My current code unRLEW's the header, and it also works with all the existing levels I've tried. If no repeated values or 0xFEFE's occur, the data would be the same in either mode.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

The entire level is\can be RLEW compressed, it is decompressed into memory *before* the header is read. Possibly I should have noted this on the modding wiki page.
User avatar
CommanderSpleen
Posts: 1017
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Post by CommanderSpleen »

I recall Keen 2-3 levels often having compression in the header for a series of eight or so bytes. Always safest to apply it to the entire file.
User avatar
ckguy
Posts: 465
Joined: Tue Oct 14, 2003 11:20 am
Location: Wakefield, RI, US
Contact:

Post by ckguy »

I seem to recall that later versions of my Mindbelt level editor compresses the whole file - header + tile data + sprite data - as one contiguous thing, and keen can load the levels fine.
Post Reply