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 2019-04-27 13:59:47, last edited by LukeM (2019-05-01 20:06:37)

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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

Offline

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: 4,066

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
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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...

Offline

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

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: EELVL parser

>when you can't parse the format you wrote


signature.png
*u stinky*

Offline

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

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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

?

Offline

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

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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.

Offline

#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: 1,118

Re: EELVL parser

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


I'm known as "haslo" in EE. Also, I refuse to play EEU.

Offline

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

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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

Offline

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

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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)

Offline

Wooted by: (2)

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

LukeM
Member
From: England
Joined: 2016-06-03
Posts: 3,009
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

Offline

LukeM1556737649748266

Board footer

Powered by FluxBB

[ Started around 1732187393.5768 - Generated in 0.053 seconds, 12 queries executed - Memory usage: 1.51 MiB (Peak: 1.67 MiB) ]