pacman-python icon indicating copy to clipboard operation
pacman-python copied to clipboard

Error in maze editor

Open chayleaf opened this issue 11 years ago • 5 comments

Run-time error '13': Type mismatch 1 2 3 4 paint

chayleaf avatar Nov 06 '14 13:11 chayleaf

Any solution for this?

jonbesga avatar Jul 18 '15 10:07 jonbesga

@jonbesga @pavlukivan Were you able to use it at all, or did it immediately show the error?

Incidentally, I've been trying to recover the maze editor source code, so there's some chance of solving (assuming it's a bug).

greyblue9 avatar Apr 18 '18 06:04 greyblue9

@pavlukivan It looks like the tiles and/or crossrefs.txt file aren't where the maze editor expects. The left panel should be populated with walls, etc. (I believe this is why it crashed for you).

Where is the crossrefs.txt file relative to your maze_editor.exe? The 'res' folder should be at the same level as the maze editor, and there should be a crossref.txt file inside 'res'. I think it was broken by some later changes to the game graphics organization.. you might try an older file layout like in this original version:

http://pinproject.com/pacman/pacman.zip

greyblue9 avatar Apr 18 '18 06:04 greyblue9

it was a long time ago so i dont even have access to that pc, but i believe it could be caused by cyrillic characters or spaces in path

chayleaf avatar Apr 19 '18 13:04 chayleaf

I found the reason!! The reason is the different of 'end of line unix and window'. This issue is occurred, even you only use window system.

Check the newline type of txt files in this project. (crossref.txt, levels/*.txt...etc )

If you faced this problem. convert newline type to window

exam) vim crossref.txt :se ff=dos

wollala avatar Sep 06 '18 05:09 wollala