Post: PreCacheShader not working!
03-17-2016, 11:56 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So, All it does is turns black like it was at first?? Any suggestions??

I'm precaching using "precacheShader("em_bg_ani_dmh");"
I place the code in:
    
init()
{
precacheShader("em_bg_ani_dmh");
level thread onplayerconnect();
}


That doesn't seem to work because I'm trying to use this as a backgound for my mod menu! Also I'm using Sharks menu base < I put overflow fix in and that still didn't fix this problem.
Heres the stuff I put in shader:
    
StoreShaders()
{
self.menu.background = self drawShader("em_bg_ani_dmh", 320, -50, 300, 500, (255, 255, 255), 0, 0);
self.menu.scroller = self drawShader("white", 320, -500, 300, 17, (0, 0, 0), 255, 1);
self.menu.line = self drawShader("white", 170, -550, 2, 500, (0, 0, 0), 255, 2);
}
Last edited by Elitexboxer ; 03-18-2016 at 12:22 AM. Reason: Explaining what it is doing incorrectly which I'm not sure what I'm doing wrong?
03-19-2016, 12:40 AM #2
Bump!
03-19-2016, 02:24 AM #3
DrHackHD
Bounty hunter
try this in init():

foreach( shades in strTok( "your shader here", ",") )
precacheShader( shades );

let me know Winky Winky
03-19-2016, 02:29 AM #4
Originally posted by DrHackHD View Post
try this in init():

foreach( shades in strTok( "your shader here", ",") )
precacheShader( shades );

let me know Winky Winky


So like this?

init()
{

foreach( shades in strTok( "compass_emp", "em_bg_ani_octane") )
precacheShader( shades );
level thread onplayerconnect();
level thread removeSkyBarrier();
}
03-19-2016, 02:32 AM #5
It just not visable now?
03-19-2016, 02:34 AM #6
DrHackHD
Bounty hunter
yes,

foreach( shades in strTok( "add shader here,another shader here", ",") )
precacheShader( shades );
03-19-2016, 02:34 AM #7
Originally posted by DrHackHD View Post
try this in init():

foreach( shades in strTok( "your shader here", ",") )
precacheShader( shades );

let me know Winky Winky


Work but my Scroller is black????
03-19-2016, 02:39 AM #8
DrHackHD
Bounty hunter
maybe the code of the shader is not right
03-19-2016, 02:40 AM #9
Originally posted by DrHackHD View Post
maybe the code of the shader is not right


em_bg_ani_w115
em_bg_ani_beast
em_bg_ani_octane
em_bg_ani_dmh
em_bg_ani_anarchy
em_bg_ani_paladin
em_bg_ani_afterlife
em_bg_ani_comics
03-19-2016, 02:40 AM #10
Trying to find the shader with the animated checkered flag?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo