Karuzo Posted May 3, 2014 Share Posted May 3, 2014 Hey Guys, i have an awkward problem. I'm starting my script but it does nothing? I tried typing "refresh", no error. I also tried to start a function like function blabla() without an end so it gives me a debugscript error, but it doesn't output anything?? My whole script atm : local x, y = guiGetScreenSize() local blurShader addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("yoo") blurShader = dxCreateShader("datas/BlurShader.fx") if blurShader then outputChatBox("YAY") end addEventHandler("onClientRender",root,DrawStuff) end) function DrawStuff() if (blurShader) then dxSetShaderValue(blurShader, "BlurStrength", 6); dxDrawImage(0, 0, x, y, blurShader) end end My Meta: "#ER|Karuzo" description="er_freeroam" version="1.0" type="script" /> "datas/BlurShader.fx" type="client" /> Link to comment
Dealman Posted May 3, 2014 Share Posted May 3, 2014 Doubt it's what's causing it, but files in the meta don't have a type argument. It uses a download argument. Link to comment
Karuzo Posted May 3, 2014 Author Share Posted May 3, 2014 Yeah but that wasn't the problem, and btw the download argument is 1.4+. Any other tips? PD: Other resources work like a charm. And the Server-sided file works also. So only the client-side file doesn't work, dunno why. Link to comment
tosfera Posted May 3, 2014 Share Posted May 3, 2014 I can't find any typos in your script nor meta, maybe you should restart your server? I had problems like this too, restarting my server was the only thing that actually did the magic. Link to comment
Dealman Posted May 4, 2014 Share Posted May 4, 2014 What if you create a new resource and paste the code over to new files? This does seem rather odd Link to comment
cheez3d Posted May 4, 2014 Share Posted May 4, 2014 If you created the resource when your server was already running you'll have to restart it so it can read all the resource folders again. Link to comment
Karuzo Posted May 4, 2014 Author Share Posted May 4, 2014 If you created the resource when your server was already running you'll have to restart it so it can read all the resource folders again. Why? I always create my resources when my server is running, didn't had any problems with that. Just restarted the server , doesn't help at all, tried to put the folder into a .zip , same problem.. Link to comment
cheez3d Posted May 4, 2014 Share Posted May 4, 2014 If you created the resource when your server was already running you'll have to restart it so it can read all the resource folders again. Why? I always create my resources when my server is running, didn't had any problems with that. Just restarted the server , doesn't help at all, tried to put the folder into a .zip , same problem.. Well, that's what happens to me. Did you check if your resource is in the correct folder: server\mods\deathmatch\resources and not mods\deathmatch\resources? Link to comment
Karuzo Posted May 4, 2014 Author Share Posted May 4, 2014 A friend in skype helped me out, the resource was the problem , dunno why. Thanks guys. Link to comment
Dealman Posted May 4, 2014 Share Posted May 4, 2014 Well, that's what happens to me. Did you check if your resource is in the correct folder: server\mods\deathmatch\resources and not mods\deathmatch\resources? That's the reason the refresh command exists... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now