what is wrong with this.

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

lofantasy

New Member
Sep 21, 2001
20
0
0
46
Georgia
Visit site
can anyone tell me why this doesnt work. i got a few of the lines from a "tutorial" which didnt really show how it was supposed to work. this is ment to be run from a Server. i want this to be done from a mod because i dont want ot make my own game ver.

class myMod extends Mutator;

var int XSize, YSize;
function PostRender(canvas Canvas)
{
Canvas.Reset();
Canvas.Font = Canvas.MedFont;
Canvas.DrawColor.r = 255;
Canvas.DrawColor.g = 255;
Canvas.DrawColor.b = 255;
Canvas.SetPos(10, 500);
Canvas.DrawText("This is a test");

//tutorial..
If (NextHUDMutator!=none)
NextHUDMutator.PostRender(canvas);
//tutorial..end

Super.PostRender(Canvas);
}
//tutorial..
Simulated Function Tick(float delta)
{
If (level.netmode==NM_DedicatedServer||bHUDMutator)
Disable('Tick');
Else
RegisterHUDMutator();
}
//tutorial end
defaultproperties
{
//tutorial..
bAlwaysRelevant=True
bNetTemporary=True
RemoteRole=Role_SimulatedProxy
//tutorial..end
}
 

lofantasy

New Member
Sep 21, 2001
20
0
0
46
Georgia
Visit site
yup. its from ur tutoria..an it just didnt work. at all. it sends nothign to the client. any client sees the normal screen. but if i run it on the client (pratice game) it shows up just fine. its not helpfull if u cant use it on a server =)
 

lofantasy

New Member
Sep 21, 2001
20
0
0
46
Georgia
Visit site
ok, i tryed taking out that bnettemp thing. but it still doesnt seem to work. when running off my server, it shows nothing still.
i have tryed using the following
simulated function PostRender(canvas Canvas)
function PostRender(canvas Canvas)
simulated function RenderOverlays(Canvas Canvas)
function RenderOverlays(Canvas Canvas)
but none seem to work.

any other ideas
 

lofantasy

New Member
Sep 21, 2001
20
0
0
46
Georgia
Visit site
ahhh...im dumb..heh. it wasnt in the serverpackages. i didnt even think bout that since it was showing up in teh game. course i cant try it now cause my motherboard is freaking out on me =( but im sure that is what it was. thanks dood =)