granQ 293 Posted February 9, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Library { libTextDesc = $STR_LIB_M9; }; If I use a something from my own stringtable i dont get it work, anyone know if this is only work with the "main" stringtable, use a custom stringtable in my addon, and it works fine with the displayname but the description text doesnt work. Share this post Link to post Share on other sites
DnA 5156 Posted February 15, 2007 This entry should definately work for any add-on, including your own ones. If it doesn't, please can you post a code snippet of your Library class for me to look at (or send it to me PM)? Share this post Link to post Share on other sites
granQ 293 Posted February 19, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class cfgWeapons { class Default; // External class reference class PistolCore; // External class reference class RifleCore; // External class reference class MGunCore; // External class reference class LauncherCore; // External class reference class GrenadeCore; // External class reference class GrenadeLauncher; // External class reference class CannonCore; // External class reference class Launcher; // External class reference class MGun : MGunCore { }; class Rifle : MGun {}; class RC_AK4 : Rifle { scope = 2; value = 0; model="\RC_ak4\RC_AK4.p3d"; displayName = $STR_RC_DN_AK4; optics = 1; modes[] = {"Single", "FullAuto"}; magazines[] = {"20Rnd_556x45_Stanag"}; picture = "\Ca\characters\data\Ico\i_null_CA.paa"; class Library { libTextDesc = $STR_RC_LIB_AK4; }; class Single : Mode_SemiAuto { sound[] = {"\ca\Weapons\Data\Sound\AK47_2_SS_A", db20, 1}; reloadTime = 0.1; recoil = "RC_AK4Recoil"; recoilProne = "RC_AK4Recoil"; dispersion = 0.0025; minRange = 2; minRangeProbab = 0.1; midRange = 250; midRangeProbab = 0.7; maxRange = 400; maxRangeProbab = 0.04; }; class FullAuto : Mode_FullAuto { sound[] = {"\ca\Weapons\Data\Sound\AK47_2_SS_A", db20, 1}; reloadTime = 0.1; ffCount = 30; recoil = "AK74Recoil"; recoilProne = "AK74Recoil"; dispersion = 0.005; minRange = 2; minRangeProbab = 0.1; midRange = 30; midRangeProbab = 0.7; maxRange = 60; maxRangeProbab = 0.05; }; }; }; and the stringtable: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> LANGUAGE,English,French,Italian,Spanish,German,Czech STR_RC_DN_AK4,AK 4 STR_RC_LIB_AK4,"AK4 stands for <i>Automatkarbin 4</i> and is the Swedish designation for the HK G3A3 rifle. It was used by the army almost until the end of the coldwar.<br>The rifles was then passed to homeguard units that used them for 10 years without any modifications. Early in 2000 the homeguard ordered reddot aimpoints." The displayname works fine, but not the libdesc. Share this post Link to post Share on other sites
granQ 293 Posted February 19, 2007 Ok, it works now.. n00b misstake <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> LANGUAGE,English STR_RC_DN_AK4,AK 4 STR_RC_LIB_AK4,"AK4 stands for <i>Automatkarbin 4</i> and is the Swedish designation for the HK G3A3 rifle. It was used by the army almost until the end of the coldwar.<br>The rifles was then passed to homeguard units that used them for 10 years without any modifications. Early in 2000 the homeguard ordered reddot aimpoints." Share this post Link to post Share on other sites
DnA 5156 Posted February 20, 2007 Good to hear it's working now Share this post Link to post Share on other sites