Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hello CodeSlayerYT!

Thanks for your interest in the level editor! I have tinkered around with it a bit and it may just be, that it doesn't recognize 'level' or 'segment' as a type. Try typing 'l' or 's' instead and see, if that works and report back to me. Also, make sure you use the most recent version, as I recently updated the editor.  (see end note)

However, you should not get your hopes up in regards to expansions of the editor. It is a tool I created for myself and it is a mess, which makes it hard to expand. However, I will definitely fix the loading bug either way :-)


Further note: I tried to load your custom levels, but it resulted in this error. Can you tell me the steps you took to create your customLevels.dat file? Perhaps the issue is a wrong formatting in the files. I will look into this issue :-)

Hello MaxwellSalmon!

Thank you for replying! I have tried the ‘trick’ you provided and it works! I have downloaded DUGA only recently so I am sure I have the updated editor.

About the expansions, that is fine as I understand that you have been working on a new project, so, please don’t worry about expanding the editor as it is a mere request, not a demand. Thank you in advance for updating the editor!

Finally, Thank you for taking a look at my custom levels! As for the steps that I took in order to make it, I just played around in the editor, then once I finished making a subpar level, I then clicked export, went through the saving/exporting process and after that is finished, I send it to Pastebin.

But I can not test the file now as I have overridden the slot with a new level, if you don’t mind, would you try with the updated level and see if the ‘trick’ works, because for me it does.

Here is the link: https://pastebin.com/cxXr4mFW

Note: Only the first level is done, even then it still needs a few tweaks and then there is the second level which is actually the second level I ever made in the level editor.

(3 edits)

Hello MaxwellSalmon!

Before I start, sorry for the lengthiness!!!

After I send my reply, I decided to do a few tests on my own as I am intrigued by the problems that both of us have encountered and I forgot that I put my test level on Pastebin which is the reason I wrote that last paragraph.

I run notepad++ as administrator(this is because I had put my DUGA folder in program files) and press ‘edit in notepad++’ on customLevels.dat.

Next, I go to my Pastebin account and then open the test levels paste. Before I copied the test levels, I decided to copy my customLevels.dat file and put it somewhere on my laptop. Then I copied the test levels data by pressing the copy button on top of the text area and then selecting all of the text by pressing Ctrl + A and then clicking Ctrl + V on the customLevels.dat file in notepad++ and clicking save.

Instead of opening the file in the Level Editor, I decided to play the custom level in DUGA; but I then got an error before the game even run. I have put the crash log here: https://pastebin.com/YfnMaeDD. Intrigued, I then tried to load the levels in the Level Editor using the ‘trick’ and I got the same bug: ‘there are no saved maps of this kind’.

I then decided to copy the new levels that I made from Pastebin (using the same method that I mentioned in paragraph 4) and paste them into the customLevels.dat file and then try to run DUGA again, I did this because I had a hunch of where things go wrong and… DUGA crash again with the aforementioned crash log.

Now, as a final test, I delete the customLevels.dat file in the data folder and then took the customLevels.dat file that I saved earlier in a different folder and put it back in the data folder.

and…

It Works!!!! It ran and I was able to play both levels with no errors or crashes whatsoever.

This means that my hunch was correct. The root of all problems here is Pastebin. Perhaps it’s because Pastebin decided to format the binary data by putting them on different lines or something similar, I don’t have a lot of knowledge in Binary(other than the basics) and the likes so I don’t know what else could be the cause.

Of course, I am not a professional developer such as you so I don’t know if there is something else I’m missing but I thought that if I could help you to find the problem faster it would certainly be easier for you as I don’t want to trouble you.

Well, that is all from me!

Oh! and this is a picture of the crash:

Regards,
CodeSlayerYT.

(1 edit)

Very nice work! It seems you are right. Pastebin is to blame here. Maybe it converts binary text to unicode, making Python read it incorrectly when loading it. The easiest solution here of course, would be to use another service to share maps.

Do you have any suggestions for such a service? Unfortunately, Itch doesn't allow uploading files.

Perhaps pasting it here as code will work. (doesn't seem to work either)

€]q (}q(X   npcsq]qX    player_posq]q(KKeX    lvl_numberqK X   authorqX   mapqX   nameq    X   testq X   ground_colorqKÿKÿKÿ‡qX   arrayq ]q(]q(K KKKKK K K K K K KKKK e]q(KK K K K    KK K K K KKK KKe]q(KK K K K KKKKKKKKKK e]q(K KKKKKK    K K    K K K K K Ke]q(KK K K K KK K K K K K K K Ke]q(KK K K K KK K K K K K K K Ke]q(KK    K K K KKKKKKKKKKe]q(KK K K K KK K K KK K K K Ke]q(KK    K K K KK K K KK K K K Ke]q(KK K K K KK K K KK K K K Ke]q(KKK K K KK K K KK K K K Ke]q(K KKKKK KKKK KKKKK eeX   itemsq]q(KK†qK†qKK†qK†q KK†q!K †q"KK†q#K†q$KK†q%K†q&KK†q'K †q(KK    †q)K †q*KK    †q+K    †q,K K †q-K†q.eX   shadeq/‰(K K K K tq0K ‡q1X       sky_colorq2KÿKÿKÿ‡q3u}q4(X    lvl_numberq5KX       sky_colorq6K K K ‡q7X   ground_colorq8KdKdKd‡q9X   npcsq:]q;X   itemsq<]q=X    player_posq>]q?(KKeX   arrayq@]qA(]qB(KKKKKKe]qC(KKK K K Ke]qD(KK K K K Ke]qE(KK K K K Ke]qF(KK K K K Ke]qG(KKKKKKeeX   nameqHX   LvlEditorFixqIX   shadeqJ‰(K K K K tqKK ‡qLX   authorqMX    MaxwellSalmonqNu}qO(X    lvl_numberqPKX       sky_colorqQKÿKÿKÿ‡qRX   ground_colorqShRX   npcsqT]qUX   itemsqV]qW(KK†qXK†qYKK    †qZK†q[K    K †q\K†q]K K †q^K†q_KK †q`K†qaKK †qbK†qcK K †qdK†qeKK †qfK†qgKK†qhK†qiKK†qjK†qkKK †qlK†qmKK†qnK†qoeX    player_posqp]qq(KKeX   arrayqr]qs(]qt(K K K K K K K K K K K K K K K K K K K K K K K K K e]qu(K K K K K K K K K K K K K K K K K K K K K K K K K e]qv(K K K K K K K K K K K K K K K K K K K K K K K K K e]qw(K K K K K K K K K K K K K K K K K K K K K K K K K e]qx(K K K K K K K K K K K K K K K K K K K K K K K K K e]qy(K K K K K K K K K K K K K K K K K K K K K K K K K e]qz(K K K K K K K K K K K K K K K K K K K K K K K K K e]q{(K K K K K K K K K K K K K K K K K K K K K K K K K e]q|(K K K K K K K K K K K K K K K K K K K K K K K K K e]q}(K K K K K K K K K K K K K K K K K K K K K K K K K e]q~(K K K K K K K K K K K K K K K K K K K K K K K K K e]q(K K K K K K K K K K K K K K K K K K K K K K K K K e]q€(K K K K K K K K K K K K K K K K K K K K K K K K K e]q(K K K K K K K K K K K K K K K K K K K K K K K K K e]q‚(K K K K K K K K K K K K K K K K K K K K K K K K K e]qƒ(K K K K K K K K K K K K K K K K K K K K K K K K K e]q„(K K K K K K K K K K K K K K K K K K K K K K K K K e]q…(K K K K K K K K K K K K K K K K K K K K K K K K K e]q†(K K K K K K KK K K K K K K K K K K K K K K K K K e]q‡(K K K K K K K K K K K K K K K K K K K K K K K K K e]qˆ(K K K K K K K K K K K K K K K K K K K K K K K K K e]q‰(K K K K K K K K K K K K K K K K K K K K K K K K K e]qŠ(K K K K K K K K K K K K K K K K K K K K K K K K K eeX   nameq‹X   knivqŒX   shadeq‰(K K K K tqŽK ‡qX   authorqX   Nielsq'ue.

If a good alternative is not found, I should be able to fix the issue in code, though it would be nice to avoid it ;-)