VriskaSerket51 / eastward.js

Library for export/import Eastward assets.
https://www.npmjs.com/package/eastward.js
GNU General Public License v3.0
1 stars 1 forks source link

Editing Image Files Including Text? #1

Open xoderal opened 1 month ago

xoderal commented 1 month ago

Could I ask for your help in editing the text written in images? Please take a look at the examples I've attached. Is it possible to extract such assets using your program? I actually extracted all the assets once and checked all the *.PNG files, but I couldn’t find the one corresponding to the example in the results I extracted. 스크린샷 2024-09-19 201620 스크린샷 2024-09-19 201730 스크린샷 2024-09-19 201803 스크린샷 2024-09-19 202021

VriskaSerket51 commented 1 month ago

Those files are deck_pack assets, which are not currently supported by eastward.js (but will be updated in some days). Anyway, the first one, 'HELLO GROCERY' is in deck/env/Sand/SandTownA.decks.psd, which is actually in gfx_main/8c73126dfa55463a08e828b1659a1a26. decks.hmg

I updated package to 0.0.48, which contains hmg2png and png2hmg options.

eastward unzip --out ./ ./gfx_main.g eastward hmg2png -r --in ./gfx_main --out ./gfx_main (ignore errors) ...do file edit... eastward png2hmg -r --in ./gfx_main --out ./gfx_main (also ignore errors) eastward zip --root ./gfx_main --out ./gfx_main.g

xoderal commented 1 month ago

20240920190728_1

스크린샷 2024-09-20 190913

It worked!

When I run the game with the .g file generated from the last command, the main screen appears, but trying to start or load the game causes it to freeze with a black screen. There were also error messages when I executed the last command (screenshot included). However, after compressing it with a different program (ConsoleProgram_Eastward.exe), the game runs without issues, and the changes I made are reflected. Everything went smoothly up to the step 4 out of 5. It might be an issue with my computer's environment.

Thank you. I've made significant progress. :)