Hi,
I have a problem with my Mod's codes. We are working on an upcoming mod called Atlantis. The codes work well, but when i look at the log file, i have some warnings. The first problem occur with the postrender function i have in my weapon class. I write on the screen infos like current accuracy and firemod. But if i look at the log file, i get :
"..sgplayer0(function Atlantis.ATFireArms.postrender:000E) Accessed Array out of bounds (10/10)"
Do you know what it is refer to ? Here is my postrender function :
simulated function PostRender( canvas Canvas )
{
local PlayerPawn P;
MFTexture = MuzzleFlashVariations[(10)];
Super.PostRender(Canvas);
P = PlayerPawn(Owner);
if (P != None)
{
Super.PostRender(Canvas);
Canvas.SetPos(0.11 * Canvas.ClipX , 0.92 * Canvas.ClipY);
Canvas.Style = ERenderStyle.STY_Translucent;
Canvas.Font = Canvas.SmallFont;
Canvas.DrawColor.R = 0;
Canvas.DrawColor.G = 255;
Canvas.DrawColor.B = 0;
Canvas.DrawText(FireModeMessage);
}
if (P != None)
{
Super.PostRender(Canvas);
Canvas.SetPos(0.11 * Canvas.ClipX , 0.90 * Canvas.ClipY);
Canvas.Style = ERenderStyle.STY_Translucent;
Canvas.Font = Canvas.SmallFont;
Canvas.DrawColor.R = 0;
Canvas.DrawColor.G = 255;
Canvas.DrawColor.B = 0;
Canvas.DrawText("Accuracy: "$WeaponAccuracy);
}
}
To my mind, there is no errors, but i don't know anything with log... Also, i get another error (when i don't compile this part of code) with my player class. I don't know too what is the problem since i have only exec funstions... Here is what i get :
"...sgplayer0(function engine.playerpawn.playerwalking.processMove:00B5) GetAnimGroup = no mesh"
Is anybody know what it is ??? You would hep me a lot if you could find the problem Thx
Jack Oneill
Atlantis Leader
www.unrealism.com/modstargate
I have a problem with my Mod's codes. We are working on an upcoming mod called Atlantis. The codes work well, but when i look at the log file, i have some warnings. The first problem occur with the postrender function i have in my weapon class. I write on the screen infos like current accuracy and firemod. But if i look at the log file, i get :
"..sgplayer0(function Atlantis.ATFireArms.postrender:000E) Accessed Array out of bounds (10/10)"
Do you know what it is refer to ? Here is my postrender function :
simulated function PostRender( canvas Canvas )
{
local PlayerPawn P;
MFTexture = MuzzleFlashVariations[(10)];
Super.PostRender(Canvas);
P = PlayerPawn(Owner);
if (P != None)
{
Super.PostRender(Canvas);
Canvas.SetPos(0.11 * Canvas.ClipX , 0.92 * Canvas.ClipY);
Canvas.Style = ERenderStyle.STY_Translucent;
Canvas.Font = Canvas.SmallFont;
Canvas.DrawColor.R = 0;
Canvas.DrawColor.G = 255;
Canvas.DrawColor.B = 0;
Canvas.DrawText(FireModeMessage);
}
if (P != None)
{
Super.PostRender(Canvas);
Canvas.SetPos(0.11 * Canvas.ClipX , 0.90 * Canvas.ClipY);
Canvas.Style = ERenderStyle.STY_Translucent;
Canvas.Font = Canvas.SmallFont;
Canvas.DrawColor.R = 0;
Canvas.DrawColor.G = 255;
Canvas.DrawColor.B = 0;
Canvas.DrawText("Accuracy: "$WeaponAccuracy);
}
}
To my mind, there is no errors, but i don't know anything with log... Also, i get another error (when i don't compile this part of code) with my player class. I don't know too what is the problem since i have only exec funstions... Here is what i get :
"...sgplayer0(function engine.playerpawn.playerwalking.processMove:00B5) GetAnimGroup = no mesh"
Is anybody know what it is ??? You would hep me a lot if you could find the problem Thx
Jack Oneill
Atlantis Leader
www.unrealism.com/modstargate