Closed yoshisuga closed 11 months ago
@yoshisuga I have some time to look into this. In the meantime, it looks like Git LFS could be a culprit causing the error in the png.js module. Do you have Git LFS installed? https://github.com/pngjs/pngjs/issues/235
Hi! Thanks, no I don’t use git LFS. I also tried this on a windows 10 machine and got the same result. Is it the node version maybe?
On Sat, Sep 30, 2023 at 12:26 PM Lucas Scharenbroich < @.***> wrote:
@yoshisuga https://github.com/yoshisuga I have some time to look into this. In the meantime, it looks like Git LFS could be a culprit causing the error in the png.js module. Do you have Git LFS installed? pngjs/pngjs#235 https://github.com/pngjs/pngjs/issues/235
— Reply to this email directly, view it on GitHub https://github.com/lscharen/iigs-game-engine/issues/25#issuecomment-1741872390, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEJ4JQVGDTKEKX7YXAKQ4DX5CMA5ANCNFSM6AAAAAA4S6LN5M . You are receiving this because you were mentioned.Message ID: @.***>
Just checked my node version and it's v18.17.1
Spent a little more time on this, and I was able to run the npm run build:map
command if I ran it more than once. I think the problem could be something with the file handle (maybe it was still open?) such that it can't read it, because it can read the same image file (the tiles image file) in npm run build:tiles
.
Hi there @lscharen ! I've watched your KFest presentations on the IIGS Game Engine and have been really interested in it over the past couple years, and got just barely started building enough background on GS assembly to have a sense of what's going on :sweat_smile:
I checked out your repo and started trying to build the kfest2022 demos since I thought they would be a good starting point. It looks like some preliminary steps are to create the assets in Tiled, and use your JS scripts to convert them to Merlin assembly data that can be referenced in the main source files. It totally makes sense to do it this way instead of hand-coding them - I had written a rudimentary PNG image converter to Merlin assembly in Swift when I was figuring out how to draw SHR graphics on the screen.
When generating the assets in
kfest2022/demo-1
(and also trieddemo-2
), I ran into an issue where the pngjs library couldn't read the tile image supplied in the repo:My node/npm info:
I'm running this on my M1 Macbook and not sure if it only just works on Windows, but wanted to see if you ran into this before. Thanks so much for all your work!