Coder Social home page Coder Social logo

IGPatch vertical font fix about fuckgalengine HOT 13 CLOSED

inori avatar inori commented on July 23, 2024
IGPatch vertical font fix

from fuckgalengine.

Comments (13)

BillStark001 avatar BillStark001 commented on July 23, 2024 1

Scripts are not only text, those hex codes within the text are controllers.
btw. this h scene is exhilarating:D

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024 1

wow, congratulations :D

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

I had not modified the direction of the text, but IG's all displayments depend on scripts parsed by the engine. You may parse and modify the scripts using https://github.com/lennylxx/IG_tools. The repo doesn't directly provide a parser still it consists of the analysis of the format.

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

Yep, each 4-hex-code-group(maybe longer) is a control statement, e. g. 0822 0100 0000 0500 bgm04 and 0400 3000 [talks]. You can open several script files (in both horizontal and vertical text direction) in debug mode and compare them to find any differences.
I believe the control statement of text direction switching is 04B6 0001. It appears in file as 00 B6 04 01 and appears pairly for the first time it switches the directon to vertical and the second time horizontal. I've tested my ideas on FLOWERS.
You may delete those statements and the text will be horizontal.

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

I'm sorry, I'm busying with university application....

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

maybe the next April......

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

Theoretically just open the file with a hex editor like 010 Editor, search 00 B6 04 01, 00 B6 04 00 and remove them.
However, IG used a simple encoding after CureGirl. The encoding way is to minus the original bit from 255(0xFF) for each bit, so you should remove FF 49 FB FE and FF 49 FB FF.

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

Well...what is the game's name? I'll try to fix it at my leisure.

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

Seems like your charset in the apis are correct, but you're still editing the texts in Shift-JIS charset.

from fuckgalengine.

BillStark001 avatar BillStark001 commented on July 23, 2024

The charsets of text file and dll should be the same, and since you've assigned the arguments to RUSSIAN_CHARSET, you'd better save in RUSSIAN_CHARSET(both utf8 is also ok, but it may be a little larger).

from fuckgalengine.

Inori avatar Inori commented on July 23, 2024

The direction of the rendered font is controled by the @ char before font name.

from fuckgalengine.

Inori avatar Inori commented on July 23, 2024

Maybe you should have a look at this:
https://github.com/Inori/FuckGalEngine/blob/master/InnocentGrey/IGKit/IGPatch/IGPatch.cpp#L109

from fuckgalengine.

Inori avatar Inori commented on July 23, 2024

well...I remember I just changed the country name and add a @ in front of the font name, then I got correct text rendering.

from fuckgalengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.