News: 11 March 2016 - Forum Rules

Author Topic: Play Novel - Silent Hill  (Read 9571 times)

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Play Novel - Silent Hill
« on: March 28, 2019, 06:32:01 pm »
Now that the project is nearing its completion, I have decided to make some information public.

The following features have been implemented:
  • Disassembly and assembly of the game's script. This is required because the original Japanese text is about three times more dense; the translated text of a single frame typically actually spans multiple frames in game.
  • Embedding of UTF-8 English and Russian strings into ROM
  • Offline text formatting to ensure readability in game (inserting proper line breaks, splitting frames etc.)
  • Text renderer support for English and Russian texts

The end goal is to create an English and Russian translation of the ROM. So far, I have extracted and embedded the translation from VBA_SH into the game.
This is actually easier to do than for the English text, as there is a one-to-one mapping from strings in VBA_SH to in-game ones. Unfortunately, this is much
harder for the English translation; I'm planning to do this in a semi-automated way. I'll have to see to what extent I can automate the process.

The game uses 16x16 sprites for glyphs. I have implemented variable-width font rendering, but have not modified the built-in fonts in any way. There are
English and Russian fonts, so adding support for other languages would require creating and embedding new glyphs. Furthermore, SJIS is used for
text encoding, which, apparently, cannot encode many Latin scripts.

I would be interested in some feedback on text rendering. Does the rendered text look good, or is there anything in your opinion that can be improved?

Here's a few screenshots:



Vanya

  • Hero Member
  • *****
  • Posts: 1914
    • View Profile
Re: Play Novel - Silent Hill
« Reply #1 on: March 29, 2019, 12:14:35 am »
Nice! I've been wanting to play this in English FOREVER.
If anyone ever does a remake of Silent Hill 1, I hope they use this version as a basis for it.
« Last Edit: January 19, 2020, 04:32:42 pm by Vanya »

Zanemato

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Re: Play Novel - Silent Hill
« Reply #2 on: March 29, 2019, 04:06:07 am »
I remember there was an English translation with the game ported on PC through emulation.

But it was some years ago, and I don't know if the game was fully translated.

I hope this game will come to English someday. I'll be glad to make a repro out of it  :)

Thanks for this great work !

ShadowOne333

  • Hero Member
  • *****
  • Posts: 1671
    • View Profile
Re: Play Novel - Silent Hill
« Reply #3 on: March 29, 2019, 10:24:36 am »
Oh man, this is such a jewel for sure.
I remember way back in the early 2000s that I was kinda bumped I never got to experience this game in English.
Guess with your work, now it will be possible almost 15 years later.
Thank you so much! I can't wait to give this one a go in English :)

Arty

  • Jr. Member
  • **
  • Posts: 29
    • View Profile
Re: Play Novel - Silent Hill
« Reply #4 on: March 29, 2019, 06:09:01 pm »
I remember there was an English translation with the game ported on PC through emulation.

But it was some years ago, and I don't know if the game was fully translated.

I hope this game will come to English someday. I'll be glad to make a repro out of it  :)

Thanks for this great work !
Both scenarios got an obscure homebrew genesis port with both an english and russian translation, that's probably what you're thinking of. I'd linkto the site it's hosted on, but it's full of porn vn's so that's not happening.
It also didn't have any music or sound, and I can't speak for the actual quality of the translation cause when I found out it had no sound I dropped it pretty quick

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Play Novel - Silent Hill
« Reply #5 on: April 03, 2019, 05:43:39 pm »
A proper PC port would require not only script decompilation, but also understanding the exact operation
of every single command in the script. On the other hand, the ROM can be translated with knowledge only
about a few commands.

Curiously enough, the scenario selection code loads Andy scenario icon into memory, but never displays it.
I was also not able to find any other script in the ROM besides Harry and Cybil (they share a specific
pattern of bytes). It would be great if someone dumped Andy script back when the server was up, but this
is very unlikely, given that the official manual states that the scenario must be paid for and downloaded every
time the game is reset (so almost certainly it was downloaded to RAM rather than Game Pak SRAM).


Googie

  • Hero Member
  • *****
  • Posts: 1073
  • Keepin' ROM Hacking gangsta since 2003, baby!
    • View Profile
    • My work in progress ROM Hacking site
Re: Play Novel - Silent Hill
« Reply #6 on: April 10, 2019, 03:36:24 pm »
I have some Silent Hill games emulated, the PS1 version and the PSP games, but I never heard of this one. I'll be looking forward to playing in English when it's done. Thanks for doing this.  :thumbsup: 

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Play Novel - Silent Hill
« Reply #7 on: January 18, 2020, 09:14:03 am »
Unfortunately, I haven't had time to return to the project since March last year, so I decided to at least make the code public: https://github.com/07151129/shpn_tool

Using this tool, ROM script and strings can be extracted and embedded back. There's also patches for the text renderer in the ROM (need to be applied by hand).

Code-wise, some things still need to be done:

1. ShowText calls with long strings need to be split into multiple calls so that the English lines do not get broken abruptly, or disappear at the end of the screen.
2. Menus, savefile loading and puzzle (script offset 0x47d2) uses different text rendering code than the script; needs to be looked into.

Vanya

  • Hero Member
  • *****
  • Posts: 1914
    • View Profile
Re: Play Novel - Silent Hill
« Reply #8 on: January 19, 2020, 04:35:27 pm »
Thank you for releasing the source.
Too often these projects just end up dead.

holden

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Play Novel - Silent Hill
« Reply #9 on: November 01, 2020, 01:35:07 am »
Is this still being worked on??

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Play Novel - Silent Hill
« Reply #10 on: November 04, 2020, 10:53:17 am »
Is this still being worked on??

Occasionally. I've added automated frame splitting in August, which used to be a major blocker for translation, but some more ROM patching work is needed.

Ashura Mage

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Play Novel - Silent Hill
« Reply #11 on: November 11, 2020, 11:21:41 pm »
I really hope this get finished some day, keep up with the good work! :thumbsup:
« Last Edit: November 12, 2020, 12:45:29 pm by Ashura Mage »

emart756

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Play Novel - Silent Hill
« Reply #12 on: November 16, 2020, 08:53:42 am »
Just bought this game loose in Japan assuming that a fan translation exists. Now I'm anxiously waiting for any progress on this! God speed

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Play Novel - Silent Hill
« Reply #13 on: December 27, 2020, 03:45:27 pm »
I've finally found some free time to work on the project during the holiday season and thought it'd be nice to report on the progress.

The script embedding tool now supports long text splitting for almost every script command. This means that most strings in a translation will not need any manual work to make them fit on screen.

The engine patches can now display the translated text for almost every operation that uses strings. However, I am not planning to work on graphics extraction/repacking for the first release. This means:

- In some menus the translated text will not fit nicely as the font is too large. I've experimented a bit with downscaling the text using an affine transformation, but that resulted in a completely ineligible mess, so it is really needed to redraw the fonts by hand if we want to provide a smaller version.
- We can only render Latin or Russian alphabets at the moment as that's what the built-in fonts include.
- Some menu elements are using graphics rather font, so we can't translate them.

Finally, the mapping of the English translation is nearly complete. The textual translation by Toby Normoyle is using a relatively consistent text format. I've written a script that takes the textual translation and the Japanese script from the ROM, represents those two as graphs, and computes a mapping between those two graphs, resulting in automated translation of the Japanese strings. As a result I am saving a lot of time by not having to go over the translation by hand.

I can't say for sure when the first release will land (hopefully in January 2021), but it will include the complete EN and RU translations for Harry and Cybil scenarios. The translation flow will be documented, and the source scripts will also be published.

Vanya

  • Hero Member
  • *****
  • Posts: 1914
    • View Profile
Re: Play Novel - Silent Hill
« Reply #14 on: December 28, 2020, 11:03:41 am »
Nice!! That's pretty impressive automation.

ShadowOne333

  • Hero Member
  • *****
  • Posts: 1671
    • View Profile
Re: Play Novel - Silent Hill
« Reply #15 on: December 28, 2020, 11:12:03 am »
Fantastic news about the progress!
Surely 2021 is looking better and better by the day :p

Ashura Mage

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Play Novel - Silent Hill
« Reply #16 on: December 29, 2020, 09:57:02 am »
yeahhhhhhh! These are some fantastic news! :laugh:

93f582c0800ee17439c9ba6b4

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: Play Novel - Silent Hill
« Reply #17 on: January 08, 2021, 07:16:01 pm »
The first (testing) release is available at https://github.com/07151129/shpn_tool/releases/tag/v0.1

I will look into creating a submission...

marioxb

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Play Novel - Silent Hill
« Reply #18 on: May 20, 2021, 07:19:04 pm »
I'm actually friends with Toby. I know he's probably not played the game in ages, but I can ask him if you have any questions.

Vanya

  • Hero Member
  • *****
  • Posts: 1914
    • View Profile
Re: Play Novel - Silent Hill
« Reply #19 on: May 28, 2021, 06:36:19 pm »
The first (testing) release is available at https://github.com/07151129/shpn_tool/releases/tag/v0.1

I will look into creating a submission...

Cool! I'm really looking forward to trying this out.