BrandonKappel Posted February 10, 2011 Share Posted February 10, 2011 So I searched the forums and found out that changing class names is tricky. But they said you can switch class names with others and u can change them as long as they have the same or less letters than before. But how do you do this? I think it has to do with 'strings.res' but what exactly do u change? I keep getting a CTD right before GR actually loads. I want to change all riflemen to snipers and everyone else to spotter (SPOT is fine, or just change sniper to rifleman) Quote Link to comment Share on other sites More sharing options...
wombat50 Posted February 10, 2011 Share Posted February 10, 2011 I don't think you can change class names or create more classes in SP. In MP it can be done. Look at the MP Actor Files in either the 9MS or Alpha Squad mod to see how they did it. Example classes for Platoon 1 (Black can not change. Red is the variable) mp_plt1_9ms_sniper.atr mp_plt1_swatdemo.atr mp_plt1_9ms_spotter.atr 9MS mod has 22 different classes in Platoon 1 Example MP .atr file: <ActorFile> <VersionNumber>1.000000</VersionNumber> <ArmorLevel>1</ArmorLevel> <ActorName>9MS Spotter</ActorName> <ClassName>sniper</ClassName> <ModelFace>9ms-spotter-head.rsb</ModelFace> <BlinkFaceName>9ms-spotter-head-blink.rsb</BlinkFaceName> <DesertModelFace>9ms-spotter-head-desert.rsb</DesertModelFace> <DesertBlinkFace>9ms-spotter-head-desert-blink.rsb</DesertBlinkFace> <JungleModelFace>9ms-spotter-head.rsb</JungleModelFace> <JungleBlinkFace>9ms-spotter-head-blink.rsb</JungleBlinkFace> <KitPath>spotter</KitPath> //note this is the name of the kit folder for this class <ModelName>ica_us_sniper.chr</ModelName> <LOD2>ica_us_sniper_a.chr</LOD2> <LOD3>ica_us_sniper_b.chr</LOD3> <DesertLOD1>ica_us_sniper_desert.chr</DesertLOD1> <DesertLOD2>ica_us_sniper_a_desert.chr</DesertLOD2> <DesertLOD3>ica_us_sniper_b_desert.chr</DesertLOD3> <JungleLOD1>ica_us_sniper_cuba.chr</JungleLOD1> <JungleLOD2>ica_us_sniper_a_cuba.chr</JungleLOD2> <JungleLOD3>ica_us_sniper_b_cuba.chr</JungleLOD3> <Weapon>5</Weapon> <Stamina>4</Stamina> <Stealth>4</Stealth> <Leadership>1</Leadership> </ActorFile> Quote Link to comment Share on other sites More sharing options...
BrandonKappel Posted February 10, 2011 Author Share Posted February 10, 2011 I'm trying to do it for SP. I have seen it done, atleast i'm pretty damn sure I have. Quote Link to comment Share on other sites More sharing options...
ApexMods Posted May 15, 2011 Share Posted May 15, 2011 Yes, it can be done, but you were right on the limitations. You'll need to edit the strings.res file - preferably with a hex editor in overwrite mode. Locate the strings for each class and overwrite them with the new values while maintaining the same number of characters (you can use blank characters to "fill" shorter names). There should (theoretically) even be a way to change the strings for longer ones but that involves a more complex approach. Quote Link to comment Share on other sites More sharing options...
RileyFletcher_01 Posted December 7, 2011 Share Posted December 7, 2011 I downloaded an application called XVI32, its a Hex editor program, but I'm lost. I searched a hex string 'rifleman' and 'asl', but it said 'hex string invalid'. How do I find the right strings? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.