hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.01k stars 2.15k forks source link

Qix++ (Japan) (v1.02) Crash on now loading screen #9466

Closed Cibomatto2002 closed 3 years ago

Cibomatto2002 commented 7 years ago

Qix++ (Japan) (v1.02) will crash on now loading screen. here is a video.

MD5: E696DEAAF6738895A0B99FFA2F418585 CRC32: 41212697 SHA1: A442BD2D575D76C4D93F345940FCBC58E8C86A7E

https://www.youtube.com/watch?v=JyX6ytV0C3k&feature=youtu.be

unknownbrackets commented 7 years ago

Is this after you save, or before #8214? Can you try an older version? It would help to know if an older version worked, and if so, what the most recent build that worked was, and which build first started crashing.

If you try an older version from #8214 and it doesn't crash, you can go by half way in between and narrow it down fairly quickly. If the one half way in between works, try halfway again to a newer build, otherwise try halfway the other direction to an older build. Even if they are 2000 builds apart, you could find almost exactly when it started breaking by trying 11 builds.

-[Unknown]

unknownbrackets commented 7 years ago

Ah, then perhaps a duplicate of #2788, unfortunately?

-[Unknown]

Cibomatto2002 commented 7 years ago

I had no idea you had to use fonts to get some games to work.

hrydgard commented 7 years ago

It's unfortunate, and the free fonts we do have work "ok" in some games, but could really use improvement - as this example shows (and several where it's just ugly) they aren't good enough.

sum2012 commented 7 years ago

@hrydgard jpcsp just fix this game by real psp value of maxGlyphBaseYI ,maxBitmapWidth ,maxBitmapHeight in https://github.com/jpcsp/jpcsp/commit/48cb223da4cfb031fbce5e12ff068e0709860efc So that we are possible to fix in ppsspp too. I reopen this issue

hrydgard commented 7 years ago

Did a quick attempt, please test!

sum2012 commented 7 years ago

@hrydgard Well done,fixed. Log: https://gist.github.com/sum2012/d3340a5aeeb73c305abfd9c7684fe7d2

hrydgard commented 7 years ago

Well, "worked around", the real fix would be fixing the font files, as Unknown correctly says in #9672.

nassau-tk commented 3 years ago

@hrydgard @unknownbrackets @sum2012 @benderscruffy @Cibomatto2002 @shenweip @Panderner

I tested v1.10.3-700 on Windows10(64-bit) and 2 type font.

Case1: All of Real PSP Font installed.(PSP-2000) QIX++(NPJH50199)_Win10_All RealPSPFont_01

It's not glitched and don't happen Invalid Memory Access Error.

Case2: All of PPSSPP Original Font installed. QIX++(NPJH50199)_Win10_All PPSSPPFont_01

It's glitched and happen Invalid Memory Access Error.

Installed Real Font below. RealPSPFont

I understanding that Android Device is not use font of "Font folder Files". But,Android is not happen glitch and Invalid Memory Access Error. I don't know why.

Panderner commented 3 years ago

@hrydgard @unknownbrackets @sum2012 @benderscruffy @Cibomatto2002 @shenweip @Panderner

I tested v1.10.3-700 on Windows10(64-bit) and 2 type font.

Case1: All of Real PSP Font installed.(PSP-2000) QIX++(NPJH50199)_Win10_All RealPSPFont_01

It's not glitched and don't happen Invalid Memory Access Error.

Case2: All of PPSSPP Original Font installed. QIX++(NPJH50199)_Win10_All PPSSPPFont_01

It's glitched and happen Invalid Memory Access Error.

Installed Real Font below. RealPSPFont

I understanding that Android Device is not use font of "Font folder Files". But,Android is not happen glitch and Invalid Memory Access Error. I don't know why.

@nassau-tk This is why Qix++ needs an all PSP fonts to be installed because the texts in menus are glitched and it's crash when i started the game without the real PSP fonts. and same happens to Jeanne d'Arc needs a real PSP fonts to render the text correctly in dialogue.

shenweip commented 3 years ago

Yeah, this game need real PSP fonts for now, you can replace the font files in PSP with ppsspp font files(pay attention to backup your original PSP fonts), and then PSP will crash too, so as @hrydgard and @unknownbrackets say above, the real fix would be fixing the font files.

nassau-tk commented 3 years ago

@shenweip @Panderner

Yes,I understand about this issue. Thank you for your teaching!!

nassau-tk commented 3 years ago

I tested finding important "ltn_X.pgf". I found this. Install only "ltn8.pgf" Real PSP Font to PPSSPP default fonts. And I was able to through the invalid memory access error. And,I tested other font that converted from ttf to pgf. But,It was not able to through the error.

This game needs a "correct ltn8.pgf" for playing. What is "Correct ltn8.pgf "??? Um...I don't know...

nassau-tk commented 3 years ago

I was able to understand the why text glitch will happen.

[ltn0.pgf] Gothic Type Font about 24point [Base Font1] [ltn1.pgf] Antique Type Font about 24point [Base Font2] [ltn2.pgf] "ltn0.pgf" + Italic shape [ltn3.pgf] "ltn1.pgf" + Italic shape [ltn4.pgf] "ltn0.pgf" + Bold shape [ltn5.pgf] "ltn1.pgf" + Bold shape [ltn6.pgf] "ltn0.pgf" + Italic&Bold shape [ltn7.pgf] "ltn1.pgf" + Italic&Bold shape [ltn8.pgf] Gothic Type Font about 14 to 16point [Base Font3] [ltn9.pgf] Antique Type Font about 14 to 16point [Base Font4] [ltn10.pgf] "ltn8.pgf" + Italic shape [ltn11.pgf] "ltn9.pgf" + Italic shape [ltn12.pgf] "ltn8.pgf" + Bold shape [ltn13.pgf] "ltn9.pgf" + Bold shape [ltn14.pgf] "ltn8.pgf" + Italic&Bold shape [ltn15.pgf] "ltn9.pgf" + Italic&Bold shape

These ltn[x].pgf is Real PSP font inforomation. And,PPSSPP's fonts are not match specification these font.

I tested some patern of convert from ttf font. But,"ttf2pgfj" will not convert "ltn1.pgf" ~ "ltn15.pgf" correctly. It's can't be create characters margin (right & left) and bottom clearance.

font_ltn_RealPSP

I will just Report!!

nassau-tk commented 3 years ago

Hello every one!!

I'm testing for ltn8.pgf making. And,It will working on QIX++. (Character Balance is not tuned yet.) https://drive.google.com/file/d/1fYpmrc8eDlokvdDn-_URR7hSxQFT6D1H/view?usp=sharing

The number of characters was squeezed and made. image

It was adjusted so that the following item might become same as the original. ""max glyph width : 16"" ""max glyph height : 14"" image

[Result] image

image

image

image

image

Possibility coming? I will continue to try.

hrydgard commented 3 years ago

Definitely looks like an improvement! Weird with those question marks though in "Hi?Score" etc.

nassau-tk commented 3 years ago

Weird with those question marks though in "Hi?Score" etc.

Yes,The reason is deleted many characters from TTF file.:smiling_imp: So,Maybe I deleted needed file.:laughing:

nassau-tk commented 3 years ago

Help!!

13718

nassau-tk commented 3 years ago

@Cibomatto2002 @hrydgard @unknownbrackets @sum2012

This issue will solved.

v1.10.3-1268-gb5e230077 Change ltn x font (#13721) * Modified ltn8~15.pgf (Small Latin) This modified fonts will solved #9466.(QIX++) And,It will solved the few part of #2788 too.(Example:LUNAR)

hrydgard commented 3 years ago

Great!