Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2021-06-03 09:46:45, last edited by N1KF (2021-06-03 09:49:18)

N1KF
Wiki Mod
Joined: 2015-02-15
Posts: 10,323
Website

how do i decompress eelvl with python

Somehow I managed to decompress eelvl with JavaScript but now I wanna do it with Python. (I forgot where I put that so I can't use it for reference right now.)

I don't have much time right now so here is the code, now figure it out yourself my peasants and report back to me via carrier pigeon or a forum post

import gzip
with gzip.open('OOGLYBOOGLY.eelvl', 'rb') as f:
    file_content = f.read()

I get a gzip.BadGzipFile error. The eelvl file loads fine in Everybody Edits Offline. I assume the problem is that it isn't a typical compressed file; instead of compressing computer files it just compresses a bunch of C# variables mashed together. I don't know how this would be handled.


everybody edits FOREVER

Offline

#2 2021-06-03 10:49:32, last edited by LukeM (2021-06-03 10:50:32)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 2,988
Website

Re: how do i decompress eelvl with python

An EELVL file is a raw Deflate stream, not a full gzip file. A gzip file expects a bunch of metadata that isn’t provided by default by Flash.

I’m not sure how you’d handle this in Python, but a quick Google comes up with this, which seems like it might work:

https://stackoverflow.com/questions/108 … mentations

Offline

Wooted by:
LukeM1622713772790500

Board footer

Powered by FluxBB

[ Started around 1624335087.6781 - Generated in 0.046 seconds, 12 queries executed - Memory usage: 1.3 MiB (Peak: 1.39 MiB) ]