Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(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 ;-)