Author Topic: Police Quest 1 VGA  (Read 702 times)

0 Members and 1 Guest are viewing this topic.

Offline Kawa

Re: Police Quest 1 VGA
« Reply #30 on: November 11, 2018, 04:27:34 PM »
Look man. I don't know what to tell you. I changed the key constants from D to S, pressed Compile... made the intro go from the Sierra logo to the computer interface because I'm not gonna go through all that...

I run the game, watch the Sierra logo go straight to the computer interface... I press S and got the DMV interface.

Video proof:

Offline hrvg

Re: Police Quest 1 VGA
« Reply #31 on: November 11, 2018, 05:09:04 PM »
I do not understand... It works with you... And it does not work with me!!! I am amazed.
I know I am bad at IT (computer)... But I am not stupid (though, I am wondering). I am sending you my decompiled game as I make the changes.


Tomorrow, I am doing a clean game.
« Last Edit: November 11, 2018, 11:24:09 PM by hrvg »

Offline hrvg

Re: Police Quest 1 VGA
« Reply #32 on: November 11, 2018, 05:36:33 PM »
Ok, I just made a "new" clean game with the game that I translate... And it works. I do not understand anything... Why the game did not work with the old game!!
Thank you for your help.

Offline Kawa

Re: Police Quest 1 VGA
« Reply #33 on: November 11, 2018, 06:06:02 PM »
I'd say with all the random, ill-informed attempts to get it to work, you may have ended up with a copy of 200.scr in the game directory, still set to respond to D presses. Its presence would overrule any other versions of script 200 in the main resource file.

And that's why a new, clean game has it work correctly right away.

But that's just a theory.

Offline Charles

Re: Police Quest 1 VGA
« Reply #34 on: November 11, 2018, 11:43:49 PM »

I made "Export as patch file" in game folder.

I think this step was your problem. It sounds like you “Export[ed] as patch file” before compiling. That extracted the original script 200 from the resource.000 and saved it as a 200.scr “patch” file.

When you later compiled the script it updated within resource.000, but Sierra games always give priority to external “patch” files if they exist. So the game was always loading the original script it found in the exported 200.scr ignoring the updated script in resource.000, exactly like Kawa described.

By the way, I think the effort you’re putting into your translation work is awesome, and I wish you all the best for it.

Offline hrvg

Re: Police Quest 1 VGA
« Reply #35 on: November 12, 2018, 04:24:31 AM »
200.scr file was not in the "new" game folder, because I had removed it to try 200.scr Deutsch file.
I did not extract the files in Deutsch game. That may be why the hotkeys worked.
When I read your messages. I looked in the "new" game folder and 200.scr file was not there. So I handed the 200.scr file.. And it did not work anymore. It was my error.
Thank you for your help.

@ Charles, I thank you for your encouragement.

Offline hrvg

Re: Police Quest 1 VGA
« Reply #36 on: November 12, 2018, 12:32:38 PM »
Ok, finish. Thank you for your help. How I can to have modified .scr files? Because I put "resource.000" file in my game folder... My game does not start. I put "resource.001, resource.002, resource.003 and resource.004" files in my game folder... My game does not start. Thank you.


PS:
I did "Rebuild resources". Then I made "Extract all resources" in a blank folder. And I take the files: 200.scr, 201.scr, 202.scr, 203.scr, 204.scr, 205.scr and 255.scr. I put these files in my game folder (translation). It is good. It works. I would like to know if I made a mistake?
« Last Edit: November 12, 2018, 01:36:14 PM by hrvg »

Offline Kawa

Re: Police Quest 1 VGA
« Reply #37 on: November 12, 2018, 02:34:45 PM »
When you save an edited resource, it's added onto the end, leaving the original version behind. Those would be the ones marked "unused" in the list. "Rebuild resources" takes all the latest resources from all volumes (each resource.### being a separate diskette, and a single resource.000 usually being a CD release) and builds a fresh new resource.000 file with them. resource.map tells which resources there are and on which volume they can be found.

For example, in Space Quest 3, you'll see there's three separate copies of Roger's regular sprite, all view.000, marked as being on volume 1, 2, and 3. As it happens, SQ3 came on three diskettes and Roger can be seen walking around on all three. View 7, the shadow he casts in the red tunnel at the beginning, is only on volume/disk 1. That comes out to 251 view resources spread out over three volumes, including duplicates. Altogether, SQ3's resource volumes are 1.82 MB in size. If I were to click "Rebuild resources", this would be reduced to 186 views across one single volume file that's only 1.30 MB. You can see that all the system scripts (everything >900) is also duplicated on all volumes/diskettes.

If your game uses separate heap resources, you really want to extract and include the hep resources for each scr you changed or its proper functionality can't be guaranteed.

Offline hrvg

Re: Police Quest 1 VGA
« Reply #38 on: November 12, 2018, 03:10:05 PM »
Quote
If your game uses separate heap resources, you really want to extract and include the hep resources for each scr you changed or its proper functionality can't be guaranteed.

I did "Rebuild resources" to get .scr files (200.scr, 201.scr, 202.scr, 203.scr, 204.scr, 205.sc and 255.scr) for the changes in my game. It works, but I'm at the beginning of the game. If I understand you, I did something that makes the game unstable?

« Last Edit: November 13, 2018, 02:08:38 PM by hrvg »

Offline troflip

Re: Police Quest 1 VGA
« Reply #39 on: November 12, 2018, 03:37:32 PM »
"Rebuild resources" doesn't make .scr files. .scr files are created when you extract a compiled script resource.

(does not apply if you're using "Manage resources as patch file" in the "Game properties" dialog, but I don't think that's available in the official SCI Companion release).

Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline hrvg

Re: Police Quest 1 VGA
« Reply #40 on: November 12, 2018, 04:15:50 PM »
I did "Rebuild resources"... Then I did "Extract all resources" to have 200.scr, 201.scr, 202.scr, 203.scr, 204.scr, 205.sc and 255 .scr files. For the moment, my game works.

Quote
(does not apply if you're using "Manage resources as patch file" in the "Game properties" dialog, but I don't think that's available in the official SCI Companion release).
Yes, I have this function. But my brain is overheating. I will watch tomorrow because I broke more than 10 games today... I have recovered everything, but it is getting late.


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.395 seconds with 22 queries.