Quest For Glory: Shadows of Darkness.

This is a public forum, where you can find out everything you wanted to know about making games. Please don't use this forum as a place to recruit new members.

Moderators: adeyke, VampD3, eriqchang, Angelus3K

Post Reply
Message
Author
Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Quest For Glory: Shadows of Darkness.

#1 Post by Kocta » Mon Jul 06, 2009 5:17 pm

Hello, my foreign friends :)

Maybe my topic is illegal, or criminal, but...

I have a dream to translate a QFG4 on a Russian language for my children can play it freely. But I'm not a hacker or programmer or some kind.
I can not disassembler, decompile or doing something of that kind.

But I think here is some people of that talent.

And I want to ask some things:
- How to redraw QFG4 fonts?
- Is it possible to add cyrillic symbols, or I can only replace latin symbols? Cyrillic alphabet consists 33 symbols instead of 26 latin.
- How to extract text and graphic information out of the game?
and finally,
- How to pack it back in the game?

Thank You,
Kocta

DrJones
Trusty Riding Saurus
Posts: 1100
Joined: Mon Sep 24, 2007 10:02 pm

Re: Quest For Glory: Shadows of Darkness.

#2 Post by DrJones » Mon Jul 06, 2009 9:35 pm

If it were easy (in a you-can-do-it way), some people would have already done that.

There's a tool that does the third step called Sierra SCI studio VGA or so, it was never finished but allows you to view the resources. Probably you can only replace the letters on the second step, that's too bad for cyrillic unless you have the luck of having unused characters like @ or $ in the font, in that case you could replace them for cyrillic letters.

To redraw QFG4 fonts, you need to know the font format (i.e. how is it stored internally). If it stored outside the executable, you might be able to alter it by hand - they are usually pretty simple, even when they have some form of anti-aliasing. If it's stored inside the executable, that's way harder for you to alter.

The last step is totally impossible for you to do without knowing the format of the resource files. Directly modifying the text with an hex editor will have you end with a corrupt file that won't load, and there's no tool to insert back the text/graphics.

MusicallyInspired
The Master of All Things Musical
Posts: 4031
Joined: Tue Aug 20, 2002 8:57 pm
Location: Manitoba, Canada

Re: Quest For Glory: Shadows of Darkness.

#3 Post by MusicallyInspired » Tue Jul 07, 2009 5:40 pm

Unfortunately, development of engine-hacking programs that do the things you mentioned stopped short as interest decreased in the SCI community. I wish those who were once interested in developing such programs were still interested today but there just aren't any around anymore. Even SCI Companion (developed by troflip and based on Brian Provinciano's SCI Studio code) has been abandoned for a while now. If I knew how to program as easily as those did I'd be doing things myself. But my experience in programming is rather limited and I haven't had much time to devote to really progressing my knowledge.

Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Re: Quest For Glory: Shadows of Darkness.

#4 Post by Kocta » Tue Jul 07, 2009 7:08 pm

Three first steps done. I found how to make it ;)

Final task left: how to pack it all back... I need resource remapper...

MusicallyInspired
The Master of All Things Musical
Posts: 4031
Joined: Tue Aug 20, 2002 8:57 pm
Location: Manitoba, Canada

Re: Quest For Glory: Shadows of Darkness.

#5 Post by MusicallyInspired » Tue Jul 07, 2009 7:52 pm

If you've already done all the steps but the last one, you don't actually need to repack them in. Just drop the files in the game directory (or wherever resource.cfg points to the specific folders it requires) and the game will load them in place of the files embedded in the resource file.

Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Re: Quest For Glory: Shadows of Darkness.

#6 Post by Kocta » Wed Jul 08, 2009 6:18 pm

Really? Thanks, I will try it!

[added]
No. It doesn't work... Or I do something wrong.

I extract a text file (.msg), changed you on YOU. Not working.

MusicallyInspired
The Master of All Things Musical
Posts: 4031
Joined: Tue Aug 20, 2002 8:57 pm
Location: Manitoba, Canada

Re: Quest For Glory: Shadows of Darkness.

#7 Post by MusicallyInspired » Wed Jul 08, 2009 9:41 pm

Must handle it differently for SCI32 and up then.

Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Re: Quest For Glory: Shadows of Darkness.

#8 Post by Kocta » Thu Jul 09, 2009 8:34 pm

Where to get SCI32? I got only SCI30.

MusicallyInspired
The Master of All Things Musical
Posts: 4031
Joined: Tue Aug 20, 2002 8:57 pm
Location: Manitoba, Canada

Re: Quest For Glory: Shadows of Darkness.

#9 Post by MusicallyInspired » Fri Jul 10, 2009 12:44 am

There is no SCI30. There's SCI0, SCI01, SCI10, SCI11, SCI32, and LSCI.

Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Re: Quest For Glory: Shadows of Darkness.

#10 Post by Kocta » Fri Jul 10, 2009 5:28 am

SCI Studio
Version 3.0.1.29 - March 16th, 2003
By Brian Provinciano
Copyright © 1999-2003 Brian Provinciano

Web: http://www.bripro.com

DrJones
Trusty Riding Saurus
Posts: 1100
Joined: Mon Sep 24, 2007 10:02 pm

Re: Quest For Glory: Shadows of Darkness.

#11 Post by DrJones » Fri Jul 10, 2009 11:57 am

He is not talking about the SCI studio version, but the Sierra's Creative Interpreter version. That was the "engine" used by Sierra in their games, and SCI32 was the one used in Shadow of Darkness.

I would have been totally surprised if, like MusicallyInspired says, you only had to put the extracted images and text on the folder for the game to run, because if that were true, the coder of SCI studio wouldn't have needed to program a resource inserter at all.

Edit: It looks like the FreeSCI project includes some tools to work with SCI resource files, take a look at it because it looks like it can insert back things you previously extracted, though it might be limited to just SCI0 games (and for what I've read, only inserts back audio if you have installed GNU libc, which is the C library used by Linux)

MusicallyInspired
The Master of All Things Musical
Posts: 4031
Joined: Tue Aug 20, 2002 8:57 pm
Location: Manitoba, Canada

Re: Quest For Glory: Shadows of Darkness.

#12 Post by MusicallyInspired » Fri Jul 10, 2009 1:44 pm

You definitely need an inserter for SCI Studio because there would be waaaaay too many files otherwise. It doesn't require them to be inserted, though (it does require a RESOURCE.MAP file, however, which is generated when you compile resources). This is how Sierra themselves patched their games. By simply dropping replacement resources in the game folder. It works for SCI0 games up to SCI11, anyway.

Kocta
Peasant Status
Posts: 8
Joined: Mon Jul 06, 2009 5:02 pm

Re: Quest For Glory: Shadows of Darkness.

#13 Post by Kocta » Fri Jul 10, 2009 3:22 pm

Wow! Thanks!
"Babies, we have new toys here for supper!" :D

Post Reply