Page 1 of 2

[THUG1] [PC] Run THUG1 on QB Scripts

Posted: Fri Jan 28, 2011 4:14 am
by quazz
Method 1
Using a hex editor you can edit the game to run on QB script files instead of the default PRE file. To mod the game you need to edit the QB scripts containing the game's code. With the game running on QB Scripts you can have the game run your mods. Make sure you have a hex editor, such as Hex Workshop or HxD.

P.S. "Dummying or Deleting" the pre file does not work for THUG1.

Steps:

1. Download the THUG1 individual QB script files here:
http://thps-mods.com/scripts.php

2. Go the game/data/scripts folder of your THUG1 installation

3. Copy the entire contents of thug1scripts.rar into the Scripts folder of your THUG1 installation

4. Make a copy of your THUG1 exe file, name it something such as "Quazz's THUG"

5. Make a copy of your THUG1 qdir file (it is located in data/scripts/ and is named "qdir.txt", give it a new name such as "qzqb.txt"

6. Search for "q.dir.txt" as a text string using a hex editor on your EXE.

7. We will change the "qdir.txt" to something like "qzqb.txt" Save the change to the exe.

8. Now, the game will simply load only QB's that you have made actual changes to if you edit your new qdir.

An old method was previously here that was noobish, and has been removed.

If you need help, just ask!

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Fri Jan 28, 2011 8:48 am
by Eraser
Looks very simple and I'm glad that it is.

P.S. I changed the title, if you want you can change it again but leave [PC] there.

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Fri Jan 28, 2011 6:01 pm
by quazz
Its fine. :)

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Sun Jul 22, 2012 9:57 pm
by Enki
I tried a lot of times and game doesnt start changing "qb.pre" by "se.pre". I tried second method too and nothing ... and other things. Any help? :D

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Mon Jul 23, 2012 4:47 am
by WhoElseButMe
Make sure you have all the scripts in the scripts directory

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Mon Jul 23, 2012 12:44 pm
by Enki
I have all the scripts in the Scripts directory with a modified version of physycs.qb (i tried with normal physics.qb too). I was doing mods in thps3 modifying the physics.qb and having fun. Now I want to do it in thug and thug2. But this do not work to me. why?. (windows 7).

Other question. I downloaded 666 mod and game load modified qbs like scalingmenu1.qb with THUG.exe (no 666mod.exe) just adding addresses in qdir (mod´s qdir). Why load these qbs from Scripts folder and copied qbs no?

PS: Im spanish. My english isnt good. :roll:

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Tue Jul 24, 2012 12:30 am
by WhoElseButMe
This is an alternate method to the rename method typically used when modifying THUG1.
If this method isn't working for you than you should try using the method described below.

In qdir.txt rename the file that you modified, so find the physics.qb in the list and rename to anything that doesn't clash with another script. Add your file to the directory from the name , inside scripts/ with the name you gave it in qdir.txt.
You only need your modded scripts and should call on a working qb.pre through the exe.

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Thu Jul 26, 2012 4:54 pm
by Enki
Works but now the problem is.... . I use thqbeditor 0.2.3 RC1. I open the file, edit and save. THUG not start. For THPS3 and THUG2 work perfectly.

Another editor?. :)

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Thu Jul 26, 2012 5:31 pm
by Demo
thqb is written for thps3 only. for other th games you have to use roq compiler

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Fri Dec 07, 2012 1:38 am
by Sk4tE1337
Yes when I do that it want load the exe. In Hex Workshop I use the search and replace feature. If that helps?

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Fri Dec 07, 2012 2:44 am
by WhoElseButMe
Sk4tE1337 wrote:Yes when I do that it want load the exe. In Hex Workshop I use the search and replace feature. If that helps?

Then you replaced the wrong thing or replaced more than you were supposed to.

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Sat Dec 08, 2012 9:43 am
by Sk4tE1337
I only replaced "qb.pre with se.pre". Does it work with the cracked exe? Because thats what I am using.

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Sat Dec 08, 2012 9:57 am
by ZurePitchmen83
Unfortunately the first method doesn't work, but the second method works, However, You can use the first method when you're finished with your mod after building a *.pre that contains your scripts (Renaming qb.pre into yourmodscripts.pre) when done

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Thu Dec 20, 2012 9:13 am
by quazz
The first method does work. I used that for a long time.

Re: [THUG1] [PC] Run THUG1 on QB Scripts

Posted: Sun Jul 05, 2015 12:17 am
by _ENunn_
quazz wrote:The first method does work. I used that for a long time.


Doesn't work for me. It just crashes the game. :/