Community

SCI Programming => SCI Syntax Help => Topic started by: hrvg on October 28, 2019, 12:31:08 PM

Title: Series Quest for Glory games
Post by: hrvg on October 28, 2019, 12:31:08 PM
Hi,

I have a problem to write the character's name.
I would like to translate Quest For Glory I and IV.
This problem is for Quest For Glory I, III and IV. (Same in French version of Quest For Glory III.)
At the beginning of game, we have to create our character.
We can not write name (nickname/pseudo) of character with signs or French letters (é, à, ç, -, etc.).
We can write that these letters of "a -> z and A -> Z" and the numbers "0 -> 9".
For example, if we write René. The é is not displayed. It does not come from the fontt, because I inserted it in the resource.
http://zupimages.net/viewer.php?id=19/44/bvd2.png
I opened the game with SCICompanion. I searched the files and I found these files: Script 203.scr, msg 203.msg, view 802v56, font 123.fon and pic 904.p56.
I did "Manage compilation." I searched in the script files. I found chAllo file. I guess my problem comes from this file because I have this:
(and (<= KEY_a pEventMessage) (<= pEventMessage KEY_z))               (and (<= KEY_A pEventMessage) (<= pEventMessage KEY_Z))
(and (<= KEY_0 pEventMessage) (<= pEventMessage KEY_9))

But if I change the z by ù, I have an error:
http://zupimages.net/viewer.php?id=19/44/tjqm.png
I would like to know if we can cancel these lines or change them.
Thank you for your help.
Title: Re: Series Quest for Glory games
Post by: gumby on October 28, 2019, 05:46:56 PM
I think the reason you are getting the error is that KEY_ù isn't defined.  I can't remember where the KEY_xxxx constants are defined, maybe in one of the header files (sierra.h? keys.h?) - something like that?

No idea what the impact would be if you didn't check at all and just removed that condition check.  Might be just fine.
Title: Re: Series Quest for Glory games
Post by: Daventry on October 29, 2019, 04:38:46 AM
hrvg
Hi.
You're thinking right. You need to change the script 203. Here is try, already changed.
Before starting the game, you need to run the national keyboard driver to switch to French input.
Title: Re: Series Quest for Glory games
Post by: hrvg on October 29, 2019, 11:19:45 AM
Hi,
I thank you for your answers.
@ Gumby,
I found other files (sci.sh, key.sh and other files). You can not edit these files.
@ Daventry, It is good, thanks.  It is incredible. You succeeded ! You were fast!
How did you do? Because I have other games that have problems : Quest For Glory III (French version), Quest For Glory IV, Mixed-Up Mother Goose.
Thanks.
Title: Re: Series Quest for Glory games
Post by: Daventry on October 31, 2019, 04:48:58 AM
Hi Hervé
Script for QFG3.
Title: Re: Series Quest for Glory games
Post by: hrvg on October 31, 2019, 05:28:18 PM
Hi Daventry,
I thank you for you 203.scr file for QFG 1. Your file will help translators (German, Spanish, Italian, etc.).
Title: Re: Series Quest for Glory games
Post by: hrvg on November 01, 2019, 11:30:58 AM
I tried your 140.scr file. The game crashes with French version. The problem is140.hep file (french) . If I delete 140.hep file. It works... But, we have this:
http://zupimages.net/viewer.php?id=19/44/vkga.png

With SCICompanion, I did "Manage decompliation" in "Script" tab... SCICompanion crashes.
Thank you for your help.
Title: Re: Series Quest for Glory games
Post by: Daventry on November 01, 2019, 03:14:57 PM
Yes. I used the wrong file. Here is the correct file.


Title: Re: Series Quest for Glory games
Post by: hrvg on November 01, 2019, 04:20:17 PM
Thank you very much for your help.
Because I extracted these files (msg.140, 141.v56, 145.v56 and 145.p56 ) of English version.
For msg.140, 141.v56 and 145.v56 files... It is good, not problem.
http://zupimages.net/viewer.php?id=19/44/mrx9.png
http://zupimages.net/viewer.php?id=19/44/jnel.png

But for 145.p56 file, I have big problem. This file freezes the game when it is extracted (without any modification on my part).
Hats off to you for your work!
you got me out of a difficult situation!
Thank you very muchh.
Title: Re: Series Quest for Glory games
Post by: Daventry on November 06, 2019, 03:33:22 AM
Hi Hervé.

Name hero for QFG4CD.
Title: Re: Series Quest for Glory games
Post by: hrvg on November 06, 2019, 04:31:22 AM
Hi Alex,
Thank you very much for your help.
Title: Re: Series Quest for Glory games
Post by: hrvg on November 06, 2019, 07:40:38 AM
PS:
It does not work. You can send me 140.hep file with which you made 140.scr file, please.
Title: Re: Series Quest for Glory games
Post by: Daventry on November 07, 2019, 01:39:50 AM
Hi Hervé.
Everything works. 140.hep file is not needed. I didn't change it.
Russian version.
English version.
Spanish version.
QFG4 translated into Spanish with incorrect encoding. To see the name of the hero (for test) you need to take the font files from QFG1.
The correct font from QFG1 spanish and incorrect font from QFG4 spanish.


Title: Re: Series Quest for Glory games
Post by: Daventry on November 07, 2019, 01:42:12 AM
Symbols from the extended part ASCII are placed on incorrect place at the bottom part of the table ASCII.
Title: Re: Series Quest for Glory games
Post by: hrvg on November 07, 2019, 04:32:43 AM
Hi Alex,
I am sorry but it does not work with my game.
(https://zupimages.net/up/19/45/gbx4.png) (https://zupimages.net/viewer.php?id=19/45/gbx4.png)
My fonts :
https://1fichier.com/?wegj6vom547ycd1sgrid
Title: Re: Series Quest for Glory games
Post by: Daventry on November 07, 2019, 06:37:14 AM
Hi Hervé.
The 999.fon is used to display the hero's name.
I can upload it or take it from the QFG1.

Check.
1. The file 140.scr should be placed in the patch directory ('patchDir' variable from resource.cfg).
2. Before starting the game, run the French keyboard driver (DOS).
Title: Re: Series Quest for Glory games
Post by: hrvg on November 07, 2019, 08:15:39 AM
Hi Alex,
I put your 140.scr, 999.fon and IBMKBD.DRV files in game folder (qfg4). I start the game... Not French letter
I tried inserting your 140.scr file into the game via SCICompanion.
I have this error:
https://zupimages.net/viewer.php?id=19/45/h93l.png

BUT...
I create "patch" folder.
I put these files: your 140.scr file and 999.fon and IBMKBD.DRV files in patch folder.
I write this: patchDir  = patch in "RESOURCE.CFG" file. I start the game... It is good ! I have French letters.
I do not understand ! It is weird.
Title: Re: Series Quest for Glory games
Post by: hrvg on November 07, 2019, 03:42:35 PM
Hi Alex,
I think I understood.
QFG4 is a CD and floppy game.
CD game does not have any corrective files in game folder. So, I must created a patch folder for your 140.scr file and for all the files to be translated. I can not insert translated files into the CD game.

I found floppy version. There are corrective files in game folder. Your 140.scr file is not compatible. This is logical because the structure of CD game is different from floppy game.
I thank you for your help and patience.