Coding Error with my Code

  • 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/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

Speirs

FNG / Fresh Meat
Apr 22, 2006
286
22
0
I have been trying to change the skins on the German helmet. I am getting a compile error.


Error:
Code:
 Error: C:\Program Files\Steam\SteamApps\common\red orchestra\speirsstuff-v2\Classes\ROFINHelmet.uc(8) : Error, Can't find Material 'FinSkin.SummerTunic.fin_headgear'

My Subclass:
Code:
//-----------------------------------------------------------
//
//-----------------------------------------------------------
class ROFINHelmet extends ROGermanHelmet;

static function StaticPrecache(LevelInfo L)
{
L.AddPrecacheMaterial(Material'FinSkin.SummerTunic.fin_headgear');
}

Any ideas why it is saying it can't find my texture that I have?
 

UncleDrax

FNG / Fresh Meat
Oct 13, 2005
1,494
60
0
Florida, USA
www.endoftheworldfor.us
For the benefit of everyone else that might read this:

Yeap.. if you want to use a new animation/texture/staticmesh package in your code, you have to be sure to instruct the compiler to load those packages.. it's done with the #exec command.