J.A.C.K.

J.A.C.K.

View Stats:
Could somebody explain to me in details how to set up J.A.C.K for Return to Castle Wolfenstein?
I saw another thread from 2022, but I could not set up RtCW from the information provided there. Can somebody help me out? Help would be greatly appreciated!
Originally posted by tetoforever:
Hi, sorry I have taken a while for this.
Learning about this stuff is tough but I'll try to explain some things, and provide links to more information.


FGD is a file format created by Valve for Worldcraft (now called Hammer).
It tells the editor what kind entities the game has.
J.A.C.K. also uses this format.

You can read about the format here
https://developer.valvesoftware.com/wiki/FGD
This is specifically about Source's FGDs so it has a few things that don't exist in J.A.C.K.'s FGDs (such as inputs and outputs).

And a tutorial about adding an entity (for Half-life, but the FGD bit applies)
https://gamebanana.com/tuts/12874 ( skip to 2.3 "Additions to the FGD file" )



If you're going to create your own FGD, I would probably use the Quake 3 one that J.A.C.K. includes, as a base.
It's in the J.A.C.K. install directory, inside "quake3" (so like, for example "D:\Steam\steamapps\common\JACK\quake3" - it's in there called "quake3.fgd" and you can open it with Notepad but I would recommend something better like Notepad++ at least)
You should make a copy of the file and call it something like "rtcw.fgd". In your Game Configuration, you should add your newly copied FGD into J.A.C.K.

You might also want to see the Half-Life FGD included as well (in the halflife folder), just so you have more examples to look at.


Valve 220 format is Valve's map format they created for Worldcraft/Hammer, based on the Quake 1 map format.
The difference is in how texture co-ordinates are handled.

Quake 3 (and by extension RTCW)'s original compilers use a newer version of the Quake 1 format.
It's different from Valve's format, so compilers that expect Valve's format get upset when they see it, and compilers that want the Quake format get upset when they see Valve's format.

J.A.C.K. uses a weird little hybrid of Valve 220 and Quake's format, and it includes special versions of the compilers for Quake 3 (q3map2.exe) that are cool with it.
NetRadiant-custom's compilers also support it, which I recommend because they are actually still updated, but either will work okay.



q3map2 is the map compiler.
If you are at all familiar with Half-Life/Source, this is split across three/four programs (CSG (in HL1), BSP, VIS and RAD).

In Quake 3, it's one program which does everything, and uses command line parameters to tell it which one to do.

If it does not have "-vis" or "-light", then q3map2 will create the level geometry (the BSP file) from the map file.

"-vis" tells it to do visibility tests, so that parts of the map can be hidden when they aren't visible to the player, super important for having your framerate higher than a single digit.

"-light" tells it to make lights in the level, bounce the lighting around, tells the sun it should be welcomed and embraced with open arms, etc.

It has to do all of these things in that order as they depend on eachother.

You can read about Q3Map2 here, it tells you all about what other parameters (or switches as it calls them) you can use.
https://en.wikibooks.org/wiki/Q3Map2




Return to Castle Wolfenstein's original release has a weird bug where it really likes to get to the menu first before doing anything.
Because J.A.C.K. tells it to go directly into the map, it gets very upset with you, which causes the vm null error.
This bug is fixed in ioRTCW, if you wanted that. ( https://github.com/iortcw/iortcw ).

Otherwise you should remove "+devmap $file" from your compile configuration, on the step that runs "$game_exe".
When you're in-game, open the console (with ~) and type "\spdevmap " and then the name of the map, like "\spdevmap testmap".
Press enter and it should load the map.

If you are not using the advanced/expert Run Map dialog, click the "Expert" button when you go to compile the map.
Select the Quake 3 configuration (or make a copy of it and call it "RTCW" or something)
In there you can remove the "+devmap $file" bit from the "$game_exe" step.

The J.A.C.K. manual has pretty bad documentation for this so read this Hammer one instead (it works the same but the controls are in different places).
https://developer.valvesoftware.com/wiki/Hammer_Run_Map_Expert




At this point, if you're in the map, it should be working fine but you'll notice your console is flooded with AAS errors.
This is because Wolf maps need AAS files, which are files that the AI uses to navigate the map.
It gets very upset with you until you make them.

I need to think about how you would get this as a J.A.C.K. compile step.
But I also want to reply to you instead of taking even more time.

Here is a tutorial on creating AAS files if you'd like to try it yourself.
https://www.surfacegroup.org/tutorials/rtcw/aas_generation/

And a Steam guide designed for Quake 3, it's a little different from Wolf though but it has images not from 2002.
Just make sure to use the Wolf BSPC, don't use the one that the guide gives you.
Make sure you use the command line parameters that the other tutorial gives you, as it's VERY important, and make sure you are running BSPC twice like in that tutorial.
https://steamcommunity.com/sharedfiles/filedetails/?id=1535767082

In this guide it says there is an issue with the "BSPC integration", without testing it, it looks like it's because it's an onlyents configuration that they copied - this means that it will only create new entities, not level geometry.
Make a copy of the normal Quake 3 compile configuration, not the one labeled "Entities".



I have uploaded Wolf's BSPC and the .DEF/.ENT files from Radiant here.
https://www.dropbox.com/s/f7axs8cks7ma8gg/wolfbin.zip?dl=1

You can use the definitions (.def and .ent files) as reference for your FGD.
The .ENT file is a XML based format which is a lot better, but I created it myself based on the Enemy Territory one, so it might not have everything, I haven't touched it in a long time.
The .DEF should have everything but it can be pretty unhelpful at times.



On learning Radiant, I think you would be better off just using Radiant if you were going to learn to use it.
NetRadiant-custom is pretty good and it's what I used for RTCW.
You also get a lot more help from the internet (like 20 years worth of it), since people actually use Radiant.

If you use J.A.C.K. you're going to need an FGD file which may or may not be kind of a pain to make.
But after that, you get a pretty nice intuitive interface because Worldcraft is just good. You get things like SmartEdit, intuitive tools, etc.

If you use NetRadiant-custom (or any version of Radiant), you get an un-intuitive interface with un-intuitive controls (especially for GtkRadiant), but very powerful tools once you figure out how the heck you use them.
The UI and controls are not a strong point in any version of Radiant (compatible with RTCW) that I know of.
< >
Showing 1-4 of 4 comments
Assuming you mean this, https://steamcommunity.com/app/496450/discussions/0/4287991687295505773/
what part didn't work?

The bit with the FGD is definitely an unclear bit:
There are no FGDs for RTCW (that I know of), so last time I said to use def2fgd or make it manually. I just tried to use def2fgd, and it just crashes or errors with incredibly unhelpful messages on both a DEF file and an ENT file. So, the only option is to make it manually.

If you'd like, I can try to make one myself.

Other than that, the rest of what I said there should apply. I would use NetRadiant-Custom's compilers as they support Valve 220 format and are generally better.
https://github.com/Garux/netradiant-custom

I can explain anything else in detail if you need.
Originally posted by Jessica:
Assuming you mean this, https://steamcommunity.com/app/496450/discussions/0/4287991687295505773/

Yes, this one! And I am really happy to see you!


what part didn't work?

To be honest, I am a complete beginner and I know very little. But, I did follow the steps in the previous thread:

Game profiles:
Texture format: All
Map type: Quake 3

Directories:
Game executable: .../Return to Castle Wolfenstein/WolfSP.exe
Base game directory: .../Return to Castle Wolfenstein/Main
Source maps directory: .../Return to Castle Wolfenstein/Main/maps ("maps" is a custom created folder)


Textures:
I unpacked the folder "textures" from "pak0.pk3" file into Main folder. I used "add directories" to add texture folders one by one (seems to function. I was able to place textures on the default box.) Default texture scale value "0.5".

I also unpacked the folder "scripts" and added shaders using "Add files".


Build programs:
BSP Executable:
.../JACK/quake3/q3map2.exe -game wolf

VIS Executable:
JACK/quake3/q3map2.exe -game wolf -vis

LIGHT Executable:
/JACK/quake3/q3map2.exe -game wolf -light


I used the Quake 3 pre-set to create this profile. I only added "-game wolf" to the settings, as the other user did. I want to create maps specifically for Return to Castle Wolfenstein.


I press "Run...", the game starts, but crashes with RtCW console blinking: "VM_Call with NULL vm". Also, entities don't work, well, since there is no FGD.

The problem is, I don't know what "FDG" is. Nor why build programs refer to q3map2, what is "-vis", "Valve 220 format" and many other things. I can only blindly follow precise instructions, but it can get me only as far.


Jessica, could you point me to the right direction? Where and how do I learn about those things, so I can become somewhat proficient with trouble shooting myself? I would be grateful for any kind of advice! I could bother you with "how do you fix X, how do you fix Y", but as the saying goes, teach a man to fish.

For instance, would learning GTKRadiant help to set up J.A.C.K for RtCW map making?



I am really thankful for your attention!
The author of this thread has indicated that this post answers the original topic.
Hi, sorry I have taken a while for this.
Learning about this stuff is tough but I'll try to explain some things, and provide links to more information.


FGD is a file format created by Valve for Worldcraft (now called Hammer).
It tells the editor what kind entities the game has.
J.A.C.K. also uses this format.

You can read about the format here
https://developer.valvesoftware.com/wiki/FGD
This is specifically about Source's FGDs so it has a few things that don't exist in J.A.C.K.'s FGDs (such as inputs and outputs).

And a tutorial about adding an entity (for Half-life, but the FGD bit applies)
https://gamebanana.com/tuts/12874 ( skip to 2.3 "Additions to the FGD file" )



If you're going to create your own FGD, I would probably use the Quake 3 one that J.A.C.K. includes, as a base.
It's in the J.A.C.K. install directory, inside "quake3" (so like, for example "D:\Steam\steamapps\common\JACK\quake3" - it's in there called "quake3.fgd" and you can open it with Notepad but I would recommend something better like Notepad++ at least)
You should make a copy of the file and call it something like "rtcw.fgd". In your Game Configuration, you should add your newly copied FGD into J.A.C.K.

You might also want to see the Half-Life FGD included as well (in the halflife folder), just so you have more examples to look at.


Valve 220 format is Valve's map format they created for Worldcraft/Hammer, based on the Quake 1 map format.
The difference is in how texture co-ordinates are handled.

Quake 3 (and by extension RTCW)'s original compilers use a newer version of the Quake 1 format.
It's different from Valve's format, so compilers that expect Valve's format get upset when they see it, and compilers that want the Quake format get upset when they see Valve's format.

J.A.C.K. uses a weird little hybrid of Valve 220 and Quake's format, and it includes special versions of the compilers for Quake 3 (q3map2.exe) that are cool with it.
NetRadiant-custom's compilers also support it, which I recommend because they are actually still updated, but either will work okay.



q3map2 is the map compiler.
If you are at all familiar with Half-Life/Source, this is split across three/four programs (CSG (in HL1), BSP, VIS and RAD).

In Quake 3, it's one program which does everything, and uses command line parameters to tell it which one to do.

If it does not have "-vis" or "-light", then q3map2 will create the level geometry (the BSP file) from the map file.

"-vis" tells it to do visibility tests, so that parts of the map can be hidden when they aren't visible to the player, super important for having your framerate higher than a single digit.

"-light" tells it to make lights in the level, bounce the lighting around, tells the sun it should be welcomed and embraced with open arms, etc.

It has to do all of these things in that order as they depend on eachother.

You can read about Q3Map2 here, it tells you all about what other parameters (or switches as it calls them) you can use.
https://en.wikibooks.org/wiki/Q3Map2




Return to Castle Wolfenstein's original release has a weird bug where it really likes to get to the menu first before doing anything.
Because J.A.C.K. tells it to go directly into the map, it gets very upset with you, which causes the vm null error.
This bug is fixed in ioRTCW, if you wanted that. ( https://github.com/iortcw/iortcw ).

Otherwise you should remove "+devmap $file" from your compile configuration, on the step that runs "$game_exe".
When you're in-game, open the console (with ~) and type "\spdevmap " and then the name of the map, like "\spdevmap testmap".
Press enter and it should load the map.

If you are not using the advanced/expert Run Map dialog, click the "Expert" button when you go to compile the map.
Select the Quake 3 configuration (or make a copy of it and call it "RTCW" or something)
In there you can remove the "+devmap $file" bit from the "$game_exe" step.

The J.A.C.K. manual has pretty bad documentation for this so read this Hammer one instead (it works the same but the controls are in different places).
https://developer.valvesoftware.com/wiki/Hammer_Run_Map_Expert




At this point, if you're in the map, it should be working fine but you'll notice your console is flooded with AAS errors.
This is because Wolf maps need AAS files, which are files that the AI uses to navigate the map.
It gets very upset with you until you make them.

I need to think about how you would get this as a J.A.C.K. compile step.
But I also want to reply to you instead of taking even more time.

Here is a tutorial on creating AAS files if you'd like to try it yourself.
https://www.surfacegroup.org/tutorials/rtcw/aas_generation/

And a Steam guide designed for Quake 3, it's a little different from Wolf though but it has images not from 2002.
Just make sure to use the Wolf BSPC, don't use the one that the guide gives you.
Make sure you use the command line parameters that the other tutorial gives you, as it's VERY important, and make sure you are running BSPC twice like in that tutorial.
https://steamcommunity.com/sharedfiles/filedetails/?id=1535767082

In this guide it says there is an issue with the "BSPC integration", without testing it, it looks like it's because it's an onlyents configuration that they copied - this means that it will only create new entities, not level geometry.
Make a copy of the normal Quake 3 compile configuration, not the one labeled "Entities".



I have uploaded Wolf's BSPC and the .DEF/.ENT files from Radiant here.
https://www.dropbox.com/s/f7axs8cks7ma8gg/wolfbin.zip?dl=1

You can use the definitions (.def and .ent files) as reference for your FGD.
The .ENT file is a XML based format which is a lot better, but I created it myself based on the Enemy Territory one, so it might not have everything, I haven't touched it in a long time.
The .DEF should have everything but it can be pretty unhelpful at times.



On learning Radiant, I think you would be better off just using Radiant if you were going to learn to use it.
NetRadiant-custom is pretty good and it's what I used for RTCW.
You also get a lot more help from the internet (like 20 years worth of it), since people actually use Radiant.

If you use J.A.C.K. you're going to need an FGD file which may or may not be kind of a pain to make.
But after that, you get a pretty nice intuitive interface because Worldcraft is just good. You get things like SmartEdit, intuitive tools, etc.

If you use NetRadiant-custom (or any version of Radiant), you get an un-intuitive interface with un-intuitive controls (especially for GtkRadiant), but very powerful tools once you figure out how the heck you use them.
The UI and controls are not a strong point in any version of Radiant (compatible with RTCW) that I know of.
Originally posted by Jessica:
Hi, sorry I have taken a while for this.
Learning about this stuff is tough but I'll try to explain some things, and provide links to more information.


FGD is a file format created by Valve for Worldcraft (now called Hammer).
It tells the editor what kind entities the game has.
J.A.C.K. also uses this format.

You can read about the format here
https://developer.valvesoftware.com/wiki/FGD
This is specifically about Source's FGDs so it has a few things that don't exist in J.A.C.K.'s FGDs (such as inputs and outputs).

And a tutorial about adding an entity (for Half-life, but the FGD bit applies)
https://gamebanana.com/tuts/12874 ( skip to 2.3 "Additions to the FGD file" )



If you're going to create your own FGD, I would probably use the Quake 3 one that J.A.C.K. includes, as a base.
It's in the J.A.C.K. install directory, inside "quake3" (so like, for example "D:\Steam\steamapps\common\JACK\quake3" - it's in there called "quake3.fgd" and you can open it with Notepad but I would recommend something better like Notepad++ at least)
You should make a copy of the file and call it something like "rtcw.fgd". In your Game Configuration, you should add your newly copied FGD into J.A.C.K.

You might also want to see the Half-Life FGD included as well (in the halflife folder), just so you have more examples to look at.


Valve 220 format is Valve's map format they created for Worldcraft/Hammer, based on the Quake 1 map format.
The difference is in how texture co-ordinates are handled.

Quake 3 (and by extension RTCW)'s original compilers use a newer version of the Quake 1 format.
It's different from Valve's format, so compilers that expect Valve's format get upset when they see it, and compilers that want the Quake format get upset when they see Valve's format.

J.A.C.K. uses a weird little hybrid of Valve 220 and Quake's format, and it includes special versions of the compilers for Quake 3 (q3map2.exe) that are cool with it.
NetRadiant-custom's compilers also support it, which I recommend because they are actually still updated, but either will work okay.



q3map2 is the map compiler.
If you are at all familiar with Half-Life/Source, this is split across three/four programs (CSG (in HL1), BSP, VIS and RAD).

In Quake 3, it's one program which does everything, and uses command line parameters to tell it which one to do.

If it does not have "-vis" or "-light", then q3map2 will create the level geometry (the BSP file) from the map file.

"-vis" tells it to do visibility tests, so that parts of the map can be hidden when they aren't visible to the player, super important for having your framerate higher than a single digit.

"-light" tells it to make lights in the level, bounce the lighting around, tells the sun it should be welcomed and embraced with open arms, etc.

It has to do all of these things in that order as they depend on eachother.

You can read about Q3Map2 here, it tells you all about what other parameters (or switches as it calls them) you can use.
https://en.wikibooks.org/wiki/Q3Map2




Return to Castle Wolfenstein's original release has a weird bug where it really likes to get to the menu first before doing anything.
Because J.A.C.K. tells it to go directly into the map, it gets very upset with you, which causes the vm null error.
This bug is fixed in ioRTCW, if you wanted that. ( https://github.com/iortcw/iortcw ).

Otherwise you should remove "+devmap $file" from your compile configuration, on the step that runs "$game_exe".
When you're in-game, open the console (with ~) and type "\spdevmap " and then the name of the map, like "\spdevmap testmap".
Press enter and it should load the map.

If you are not using the advanced/expert Run Map dialog, click the "Expert" button when you go to compile the map.
Select the Quake 3 configuration (or make a copy of it and call it "RTCW" or something)
In there you can remove the "+devmap $file" bit from the "$game_exe" step.

The J.A.C.K. manual has pretty bad documentation for this so read this Hammer one instead (it works the same but the controls are in different places).
https://developer.valvesoftware.com/wiki/Hammer_Run_Map_Expert




At this point, if you're in the map, it should be working fine but you'll notice your console is flooded with AAS errors.
This is because Wolf maps need AAS files, which are files that the AI uses to navigate the map.
It gets very upset with you until you make them.

I need to think about how you would get this as a J.A.C.K. compile step.
But I also want to reply to you instead of taking even more time.

Here is a tutorial on creating AAS files if you'd like to try it yourself.
https://www.surfacegroup.org/tutorials/rtcw/aas_generation/

And a Steam guide designed for Quake 3, it's a little different from Wolf though but it has images not from 2002.
Just make sure to use the Wolf BSPC, don't use the one that the guide gives you.
Make sure you use the command line parameters that the other tutorial gives you, as it's VERY important, and make sure you are running BSPC twice like in that tutorial.
https://steamcommunity.com/sharedfiles/filedetails/?id=1535767082

In this guide it says there is an issue with the "BSPC integration", without testing it, it looks like it's because it's an onlyents configuration that they copied - this means that it will only create new entities, not level geometry.
Make a copy of the normal Quake 3 compile configuration, not the one labeled "Entities".



I have uploaded Wolf's BSPC and the .DEF/.ENT files from Radiant here.
https://www.dropbox.com/s/f7axs8cks7ma8gg/wolfbin.zip?dl=1

You can use the definitions (.def and .ent files) as reference for your FGD.
The .ENT file is a XML based format which is a lot better, but I created it myself based on the Enemy Territory one, so it might not have everything, I haven't touched it in a long time.
The .DEF should have everything but it can be pretty unhelpful at times.



On learning Radiant, I think you would be better off just using Radiant if you were going to learn to use it.
NetRadiant-custom is pretty good and it's what I used for RTCW.
You also get a lot more help from the internet (like 20 years worth of it), since people actually use Radiant.

If you use J.A.C.K. you're going to need an FGD file which may or may not be kind of a pain to make.
But after that, you get a pretty nice intuitive interface because Worldcraft is just good. You get things like SmartEdit, intuitive tools, etc.

If you use NetRadiant-custom (or any version of Radiant), you get an un-intuitive interface with un-intuitive controls (especially for GtkRadiant), but very powerful tools once you figure out how the heck you use them.
The UI and controls are not a strong point in any version of Radiant (compatible with RTCW) that I know of.



Jessica, I would like to sincerely thank you for such amazing in-depth answer! I am honoured and humbled that you took your time to lay everything down, explain details and provide further sources. The information you provided is invaluable to me.


Now I know how I should approach the situation. I believe it's best if I begin learning mapping using a Radiant software. There is 20 years worth of trouble shooting related to this software, including various tutorials. I think it's best I begin there to learn the basics. As I get comfortable with creating functioning maps in the Radiant, I can attempt to switch to J.A.C.K, seeking a better UI and learning a program that can be used for other games I am interested as well. I will create a FDG file for RtCW. I then will create test maps and see if my knowledge gained using the Radiant will be enough to get J.A.C.K working as intended. If there are J.A.C.K specific problems, I will be able to formulate them and ask on this forum. If there are RtCW-specific problems, I can seek solutions from Radiant troubleshooting forums.


Again, thank you so much, Jessica! I now have some footing to kickstart my learning.


All the best!
< >
Showing 1-4 of 4 comments
Per page: 1530 50