Community

SCI Programming => SCI Syntax Help => Topic started by: hrvg on May 22, 2018, 05:34:22 PM

Title: Problem of "PIC" files and French letters.
Post by: hrvg on May 22, 2018, 05:34:22 PM
Hi,
I do not know if I write in the right place. I start on this forum. Be indulgent. Thank you.
My English is bad, sorry.
I am looking for a game to translate.
I thought about these games:
Police Quest 1 VGA
Castel Of Dr. Brain
Quest For Glory 1 VGA
I have a problem with all these games:
Police Quest 1 VGA and Castel Of Dr. Brain.
I can not edit (modify) the "PIC" files.

For Quest for Glory:
We can not write his "nickname" (pseudo). And the problem is present in Quest For Glory 3. This game is released in French version.
For example:
My nickname is: Sébastien. I will have: Sbastian. The "é" disappears.
The problem is when I type (hit) "é" the code is E9. Also, in Sierra games and other games, the code is: 82.
You have found a solution to this problem?
Thank you.
Title: Re: Problem of "PIC" files and French letters.
Post by: Collector on May 22, 2018, 05:57:51 PM
Have you tried to open the games with SCI Companion? You should be able to edit using Companion's Pic editor.

As to diacritics, perhaps you can take the fonts from an existing French SCI game. Don't forget that there is a "language" flag for the CFG file.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 22, 2018, 07:04:16 PM
Hi Collector,
Thank you for your answer.
Quote
Have you tried to open the games with SCI Companion? You should be able to edit using Companion's Pic editor.
Yes, I tried to edit 1 pixel only. the game crashes.
I tried to import a "BMP" file ... Same, the game crashes.
I tried with SCIStudio... I can not.
I tried with FotoSCIhop... I can not.
You are my last hope.

Quote
As to diacritics, perhaps you can take the fonts from an existing French SCI game. Don't forget that there is a "language" flag for the CFG file.
I have more than 50 fonts Sierra games (with or without French letters).
The problem is that the game (in itself) does not recognize the "AZERTY" keys for French letters. The game recognizes translation of game's sentences that have been written with a hexadecimal editor with a modified Police (font).
http://zupimages.net/viewer.php?id=18/21/q8nr.png
As my example, a simple hexadecimal editor the code of "é" is E9. So, that is 82 code for  "FONT" Sierra and other games.
And I do not find the solution.
Title: Re: Problem of "PIC" files and French letters.
Post by: Collector on May 23, 2018, 08:41:13 AM
I just edited that same Pic in Companion with no issue. As far as the AZERTY keyboard goes, did you try using the keyboard driver from an SCI1.1 game that does work with AZERTY?
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 23, 2018, 09:34:39 AM
Quote
I just edited that same Pic in Companion with no issue.

You did manage to modify a PIC file of game: Police Quest 1 VGA (or Castel Of Dr. Brain)?
I edit 4.p56 file (of Police Quest 1 VGA). I modify 1 pixel. I save. I start game. The game crashes.


Quote
As far as the AZERTY keyboard goes, did you try using the keyboard driver from an SCI1.1 game that does work with AZERTY?

No, I do not know this keyboard driver. Where I can download this keyboard driver, thank you?
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 23, 2018, 12:52:37 PM
Aside from that white bar on the bottom, this quick test worked fine for me. Find pic, export to PNG, open and edit in a program I can trust not to mess with my palette, import back in SCI Companion, save as patch file.

This is in Castle of Dr. Brain btw. I'mma try PQ1 4.p56 now.

Edit: that went even better. Attaching the results...
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 23, 2018, 01:28:43 PM
Hello Kawa,
I thank you for answer.
It is incredible...
I recognize that I am not good in computer.
I modified PIC file with SCICompanion.
And I had exported the PIC file to BMP..
Then imported this BMP file.
It is no good.
I will do what you explain to me.
Thank you.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 23, 2018, 03:42:32 PM
Hi Kawa,
For Castel Of Dr. Brain.
I did this:
I opened SCI Companion...
I opened the file "resource.map"...
"PIC" tab...
I editfile "n520" (double-click on picture)...
In "Pic tab" of SCI Companion...
I click on "Export 8-bit pic bitmap"...
I choose "PNG files (*.png)...
I name file "520"...
I open my graphic editor (GraphicsGale)...
I modify "520.png" file...
I save...
In SCI Companion...
In "Pic tab"...
I click on "Import bitmap to pic"...
I click on "Browse"...
I select "520.png" file...
I click on "Accept".
I click on "Save as":
Package 0
Resource number 520...
I click on "Ok"...
SCI Companion Message: "A Resource Already Exits for this Number." Overwrite? "...
OK...
I start the game...
Game crashes.


I translate Sierra games. I like Sierra games. I do not have problem with the files: SCR, TEX, FONT and VIEW. But I can not with PIC files.
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 23, 2018, 05:48:39 PM
I open SCI Companion, open the game, open the pictures tab, find the one I want, export it to PNG, open the PNG in Aseprite, shit all over it, and save. I then go back to SCI Companion with the picture still open, click Import, select the edited PNG file, pick "Map to current palette", select all but the last color, click the refresh button, confirm the preview is correct, and hit Accept. Then I do File, Export as patch file, and save as in the case of PQ1, 4.p56, in the PQ1 folder.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 24, 2018, 08:46:34 AM
Quote
pick "Map to current palette", select all but the last color, click the refresh button

How I do to select all colors, please?
Title: Re: Problem of "PIC" files and French letters.
Post by: MusicallyInspired on May 24, 2018, 09:07:50 AM
Click and drag over the range of colours in the displayed palette to utilize.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 24, 2018, 09:26:21 AM
Hi MusicallyInspired,
Thank you for your answer.
I click on 0 and  I drag my cursor at 254. I click on "Press refresh..."  I have one color 0 only.
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 24, 2018, 12:57:40 PM
That's because you actually have to click #0, hold shift, and then click #254. You can't drag.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 24, 2018, 01:26:08 PM
Hi Kawa,
Thank you for your help.
It is good, thanks.
I will try to modify PIC files.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 24, 2018, 02:00:43 PM
I do not modify 520.png file
I do this (I to V):
https://zupimages.net/up/18/21/nvvp.png

It is not good.


PS:
I have: SCICompanion version 3.0.1.7 // Copyright (C) 2016
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 24, 2018, 06:09:14 PM
That particular pic is an overlay that does use #255. Adjust your settings accordingly.
Title: Re: Problem of "PIC" files and French letters.
Post by: MusicallyInspired on May 25, 2018, 08:10:10 AM
That's because you actually have to click #0, hold shift, and then click #254. You can't drag.

I apologize. Guess I was thinking of something ele.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 25, 2018, 08:52:01 AM
I tried palette 0 --> 255. It does not work. I tried with a other PIC: 260.p56 (Castel of the Dr. Brain) with 0 --> 254. It does not work. I have this:
http://zupimages.net/viewer.php?id=18/21/v2z4.png

@ MusicallyInspired
No problem. Thank you for your help.
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 25, 2018, 11:00:32 AM
Try a more recent SCI Companion, maybe? Here's one I built myself: http://helmet.kafuka.org/sci/SCICompanion.exe (http://helmet.kafuka.org/sci/SCICompanion.exe)
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 25, 2018, 11:38:35 AM
Hi Kawa,
I thank you very much for your help. And thank you for your tool.
It works perfectly. It's only a test:

http://zupimages.net/viewer.php?id=18/21/gtn8.png
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 25, 2018, 01:06:38 PM
Your tool works perfectly:

http://zupimages.net/viewer.php?id=18/21/h9vx.png


Now, I can translate these games. A lot of work...
You have created a great tool.
Thank you for your help.
Title: Re: Problem of "PIC" files and French letters.
Post by: Kawa on May 25, 2018, 02:46:54 PM
Your tool works perfectly:

You have created a great tool.
Phil made it. I only compiled it.
Title: Re: Problem of "PIC" files and French letters.
Post by: hrvg on May 25, 2018, 03:16:15 PM
Thank you to people who took time to answer me.
You had patience to explain to me. Thank you.
Congratulations, because your tool will allow translators from all countries of to translate Sierra games.
Thanks to whole team.