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.

Donate!

pls donate


#1 2019-04-27 13:59:47, last edited by LukeM (2019-05-01 20:06:37)

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

EELVL parser

EELVL parser:

A few people were having trouble parsing the eelvl world export format, so I thought I'd quickly make a library to help.

This is a small library which can input either a file stream or a file name and returns a read only Level which contains all the data that was in the eelvl file in an easily usable format. Once you've created a Level object, you can also modify it and when you're done re-serialise it back to an .eelvl file, which will be openable with the EE Offline client when it is released.

This library has two versions, the main version is using C#7/8 features so you'll need one of the latest .net libraries to use it, I'd advise .net core 3.0 (which requires Visual Studio 2019, and can be downloaded from the SDK link found here)
If you want to use this with an older framework version, the legacy build supports down to .net framework 4.5 (and is found just under the full release on the repository's releases page)

There is an example of how to use the library in the repo, which is linked below.


Install:

This library has been published to NuGet, so if you're using Visual Studio you can install it automatically by going to "Project -> Manage NuGet Packages... -> Browse" and searching for EELVL.

Raw dll download: https://gitlab.com/LukeM212/EELVL/releases


Usage:

Example usage: https://gitlab.com/LukeM212/EELVL/blob/ … Program.cs

Source: https://gitlab.com/LukeM212/EELVL

Online

Wooted by: (4)

#2 2019-04-27 23:00:33, last edited by capasha (2019-04-27 23:05:34)

capasha
Member
Joined: 2015-02-21
Posts: 3,814

Re: EELVL parser

Something is wrong with the reader. I get error that I can't load the file.
I have tried from OpenFileDialog, to hardcoded directory + file.
Still get the Error. It doesn't tell me much, just that your DLL can't read files.

Could it be because you use Stream file? in the function?

Offline

#3 2019-04-28 02:17:24, last edited by LukeM (2019-04-28 02:17:49)

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

capasha wrote:

Something is wrong with the reader. I get error that I can't load the file.
I have tried from OpenFileDialog, to hardcoded directory + file.
Still get the Error. It doesn't tell me much, just that your DLL can't read files.

Could it be because you use Stream file? in the function?

Could you send me the code you're using as well as the file it can't read and any inputs / error messages when you run it? (And are you using version 1.0 or 1.1?)
It's definitely working for me, so I'm not sure what the problem would be...

Online

#4 2019-04-28 12:40:05

XxAtillaxX
Member
From: Canada
Joined: 2015-11-28
Posts: 3,987

Re: EELVL parser

>when you can't parse the format you wrote


signature.png

Offline

#5 2019-04-28 12:54:36, last edited by LukeM (2019-04-28 12:57:08)

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

LukeM wrote:

Update on this:
It seems like the problem was because Capasha was using .net core 2.2 and the library was built using C#8 which requires .net core 3.0, I've added a line to the OP explaining what you need to do to get it running //forums.everybodyedits.com/img/smilies/smile

XxAtillaxX wrote:

>when you can't parse the format you wrote

?

Online

#6 2019-04-28 15:05:00

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

Another update:
I've added a legacy build with all the C#7/8 features replaced so that it supports down to .net framework 4.5, if you want to use this version then you can download it from the "vX.X-legacy" release in the repository's releases page.

Online

#7 2019-04-28 15:15:20

Anatoly
Guest

Re: EELVL parser

XxAtillaxX wrote:

>when you can't parse the format you wrote

I believe C# is parseable on every computer. When I wrote my first EEBot I didn't had to install any library (though I don't use windows)

#8 2019-04-28 15:57:33

PiotrGrochowski
Member
From: Poland (born in 8 №v 2004)
Joined: 2016-04-27
Posts: 904

Re: EELVL parser

will it also convert to the .eelevel format used in EEditor?


I'm known as "haslo" in EE.

Offline

#9 2019-04-28 16:00:16

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

PiotrGrochowski wrote:

will it also convert to the .eelevel format used in EEditor?

This is just for our .eelvl format, but once I've implemented the re-serialisation, Capasha is free to add the .eelvl serialiser to EEditor so that it can convert them //forums.everybodyedits.com/img/smilies/smile

Online

#10 2019-04-29 15:15:32

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

I've just released version 2, which now supports modification of Levels and re-serialisation (and I've updated the example project accordingly)

Online

Wooted by: (2)

#11 2019-05-01 20:07:29

LukeM
Dev Team
From: England
Joined: 2016-06-03
Posts: 2,872
Website

Re: EELVL parser

I've just published this library to NuGet, so you should now be able to install it directly through Visual Studio by going to "Project -> Manage NuGet Packages... -> Browse" and searching for EELVL //forums.everybodyedits.com/img/smilies/big_smile

Online

LukeM1556737649748266

Board footer

Powered by FluxBB

[ Started around 1571042528.0362 - Generated in 0.037 seconds, 10 queries executed - Memory usage: 1.38 MiB (Peak: 1.52 MiB) ]