• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

RS An Easy Guide To Referencing and Using RS Content and Classes

dibbler67

Grizzled Veteran
Sep 4, 2011
654
6
Texas
Hello all,

Any enterprising modders among you eager to jump into the new RS content and code might have been a little befuddled when your shiny new mutator (or whatever) was beset by such compiler errors as
Code:
Error, unrecognized type 'RSPawn'.
...
etc.

every time you reference something from RS.

Well the solution is pretty simple:

1. Find your ROEngine.ini file, found in the Red Orchestra 2/ROGame/Config directory in the Documents part of your machine.

2. In NotePad or whatever you're editing with, search for 'EditPackages'.

3. You should see something like this:
Code:
EditPackagesInPath=..\..\Development\Src
EditPackages=Core
EditPackages=Engine
EditPackages=GFxUI
EditPackages=GameFramework
EditPackages=Grip
EditPackages=UnrealEd
EditPackages=GFxUIEditor
EditPackages=IpDrv
EditPackages=OnlineSubsystemPC
EditPackages=OnlineSubsystemGameSpy
EditPackages=OnlineSubsystemLive
EditPackages=OnlineSubsystemSteamworks
bBuildReachSpecs=FALSE
bCustomCameraAlignEmitter=TRUE
CustomCameraAlignEmitterDistance=100.0
EditPackagesOutPath=..\..\ROGame\Script
FRScriptOutputPath=..\..\ROGame\ScriptFinalRelease
EditPackages=ROGame
EditPackages=ROGameContent

4. Simply add two lines,
Code:
EditPackages=RSGame
EditPackages=RSGameContent

to the end so it looks like this:
Code:
EditPackagesInPath=..\..\Development\Src
EditPackages=Core
EditPackages=Engine
EditPackages=GFxUI
EditPackages=GameFramework
EditPackages=Grip
EditPackages=UnrealEd
EditPackages=GFxUIEditor
EditPackages=IpDrv
EditPackages=OnlineSubsystemPC
EditPackages=OnlineSubsystemGameSpy
EditPackages=OnlineSubsystemLive
EditPackages=OnlineSubsystemSteamworks
bBuildReachSpecs=FALSE
bCustomCameraAlignEmitter=TRUE
CustomCameraAlignEmitterDistance=100.0
EditPackagesOutPath=..\..\ROGame\Script
FRScriptOutputPath=..\..\ROGame\ScriptFinalRelease
EditPackages=ROGame
EditPackages=ROGameContent
EditPackages=RSGame
EditPackages=RSGameContent

5. That's it! Save and exit, and the compiler will now recognize RS stuff.