SOF2SDK Setup, by narc
This tutorial assumes you have installed the full retail version of sof2 in the default location, and have backed up any files before altering them. This may or may not be the officially recommended way to setup the sdk, but will be updated as necessary.
*** UPDATED 02-07-2003 ***
1. Install the Soldier of Fortune II full version game in it's default location on the C drive. This tutorial will be assuming you did just this. If you have not, either uninstall it and reinstall it in its default location, or be sure to make note of the differences as you go through this tutorial.
2. Install the SOF2SDK by running the sof2sdk-101.msi file and install the contents to the C:\SoF2SDK folder which is the default location. Installing into a different directory WILL CAUSE ERRORS. If you are unable to run the msi installer program download this windows update.
note: installing to other drive letters is permitted, as long as it is the default location -- such as F:\SoF2SDK
however, if you install to a drive letter other than C: you will need to edit your .qe4 files in a text editor. just use the find and replace feature to replace all occourances of C: with the appropriate drive letter. the 3 .qe4 files you will need to edit are located in SoF2SDK\bin, edit them after you have completed step5 then continue to step6.
3. unzip sof2sdk-101a.zip into C:\SoF2SDK\bin -- when prompted to overwrite files choose yes.
4. unzip sof2sdk-101b.zip into C:\SoF2SDK\bin -- when prompted to overwrite files choose yes.
5. run sof2_1_2sdk.msi and install the contents to the C:\SoF2SDK folder which is the default location. Installing into a different directory WILL CAUSE ERRORS.
note: did you install to C:? if not, edit your .qe4 files now. SoF2SDK\bin\sof2.qe4 SoF2SDK\bin\sof2mp.qe4 SoF2SDK\bin\sof2SP.qe4 6. Extract the textures supplied with the game by opening the textures0.pk3 using winzip. The pk3 file can be found in the C:\Program Files\Soldier of Fortune II - Double Helix\base folder. Be sure that when you unzip it, you use folder names and that winzip is in classic mode. Choosing Actions > Extract... this will bring up the window pictured here. Enter the path to your base directory. My path would be : C:\SoF2SDK\base Check the box to "use folder names" Click the extract button
7. Extract the shaders that are used by the textures the same as you did the textures above. The shaders are located in the therest.pk3. This will create a large number of folders in your base folder which is normal. Also you should extract the models located in the models.pk3.
8. Open windows explorer and go to the C:\SoF2SDK\base folder. Here, we are going to do some folder cleanup.
Delete these folders: configs fffx fonts inview scalability scripts video Delete these files: autoexec.cfg ayal_sp.cfg beck_sp.cfg Cygnus.cfg default.cfg Fatty_Quarles.cfg jerseydevilSP.cfg obus_sp.cfg Pagan.cfg productid.txt safe.cfg Sparks.cfg subsonic_sp.cfg tinysp.cfg To the right is a list of the folders you should have remaining.
9. Run the program RadiantMP.bat found in the C:\SoF2SDK\bin folder. This will set your project file for the program.
10. You now need to setup the Project Settings within Radiant. They can be found in the menu under File > Project Settings. These settings will determine where Radiant will look for the necessary files to run correctly. basepath: C:\SoF2SDK\base mapspath: C:\SoF2SDK\maps rshcmd: This folder does not need to be defined. remotebasepath: C:\SoF2SDK\base entitypath: C:\SoF2SDK\bin\entities.def texturespath: C:\SoF2SDK\base\textures 11. Open the preferences menu in Radiant by pressing the p key or by accessing it through the menu Edit > Preferences. You want to make sure your preferences match the image provided here.
Change the default scale to 0.125 don't check the box for texture toolbar, it doesn't work properly adjust the Game path to reflect where your SOF2MP.exe file is located such as C:\Program Files\Soldier of Fortune II - Double Helix\SoF2MP.exe raise the number of undo levels to a higher setting such as 15. You can go higher, but it could effect the computers memory usage where all those undo's are stored. later, if your radiant crashes upon loading a texture set, texturing quality should be lowered here. This error has been known to occur for some users.
12. Close Radiant to make sure the above settings took place, this completes setup for the multiplayer radiant editor.
13. open C:\SoF2SDK\bin\sof2SP.qe4 in a text editor, you want to add these 2 lines into it then save and close the file.
"confusedpath" "C:\SoF2SDK\base\confusEd\*.*" "npcpath" "C:\SoF2SDK\base\npcs\*.*"
14. Run the program RadiantSP.bat found in the C:\SoF2SDK\bin folder. This will set your project file for the program.
15. You now need to setup the Project Settings within Radiant. They can be found in the menu under File > Project Settings. These settings will determine where Radiant will look for the necessary files to run correctly. basepath: C:\SoF2SDK\base mapspath: C:\SoF2SDK\maps rshcmd: This folder does not need to be defined. remotebasepath: C:\SoF2SDK\base entitypath: C:\SoF2SDK\bin\entitiesSP.def texturespath: C:\SoF2SDK\base\textures 16. Open the preferences menu in Radiant by pressing the p key or by accessing it through the menu Edit > Preferences. You want to make sure your preferences match the image provided here.
Change the default scale to 0.125 don't check the box for texture toolbar, it doesn't work properly adjust the Game path to reflect where your SOF2.exe file is located such as C:\Program Files\Soldier of Fortune II - Double Helix\SoF2.exe raise the number of undo levels to a higher setting such as 15. You can go higher, but it could effect the computers memory usage where all those undo's are stored. later, if your radiant crashes upon loading a texture set, texturing quality should be lowered here. This error has been known to occur for some users.
17. Close Radiant to make sure the above settings took place, this completes setup for the singleplayer radiant editor.
18. Your custom maps will be found in the C:\SoF2SDK\base\maps folder when you save them and after you compile them.
You may wish to create a folder in the C:\Program Files\Soldier of Fortune II - Double Helix\base folder called maps. This is where your custom maps (and others custom maps) will be need to be placed after compiling them with the bsp process in order to be recognized by the game. This step is not necessary to get radiant up and running properly.
note: now you need to configure your other sdk tools.
19. create the directory C:\SoF2SDK\bin\SourceForBehavEd -- now copy these 2 files into it.
C:\SoF2SDK\spcode\channels.h C:\SoF2SDK\spcode\IGInterface.h
20. run C:\SoF2SDK\bin\BehavEd.exe click "Prefs" click "set all options to SOF2 default"
type in these path locations script path: C:\SOF2SDK\base\scripts sourcesafe script path: erase anything here, leave it blank sourcesafe ini file location: erase anything here, leave it blank location of ibize.exe: C:\SOF2SDK\BIN\IBIze.exe command description file: C:\SOF2SDK\BIN\behavEd.bhc source files path: C:\SOF2SDK\BIN\SourceForBehavEd click "OK" and close the program, this finishes setting up behavEd.
21. open C:\SOF2SDK\bin\animatEd.ini in a text editor. erase the existing text in it and replace it with the proper path to your sdk:
C:\SOF2SDK
save and close the file, this finishes setting up animatEd.
22. open C:\SOF2SDK\bin\sklview.ini in a text editor. erase the existing text in it and replace it with the proper path to your sdk:
C:\SOF2SDK
save and close the file, this finishes setting up sklview.
23. copy the text below into an empty text file, save it as C:\SOF2SDK\bin\striped.cfg -- this will complete the setup for stripEd: CONFIGTABLE { $spdir "C:\SoF2SDK\base\strip\" $sourcesafe_ini "\\RAVEND\VSS_PROJECTS\Sof2\SRCSAFE.INI" $sourcesafe_prj "$/base/" }
// do NOT change these strings' order, do not delete any, only add new ones to the end LANGUAGETABLE { English German French British Spanish Italian Russian Taiwanese Japanese Chinese }
// Use NULL to show a slot is empty // so far, only "Centered" & "MightNotBeTranslated" is used. // Do NOT delete any flags without checking they're not used, // and remember that all the values above the deletion will shift down one!! FLAGTABLE { Centered MightNotBeTranslated Type-a-matic Blink Captioned Credits Layout Always SameInAllWestern } |