botshara Posted January 16, 2015 Share Posted January 16, 2015 Someone knows why on linux doesnt works npchlc traffic script ? On windows servers works fine but on linux server doesnt works and didnt show any errors! Please help SOURCE: http://crystalmv.net84.net/pages/script ... raffic.php Link to comment
Mr_Moose Posted January 16, 2015 Share Posted January 16, 2015 It shouldn't be any difference in the behavior of lua scripts between Windows and Linux. Check these points: Did you copy the same code from Windows to Linux, (i.e do you know the copy you have on Linux actually works) Did you updated permissions and owner? "chmod +x script.lua" and "chown YOUR_USER script.lua". Does the resource start without spawning peds and vehicles or does it not start at all? Link to comment
botshara Posted January 16, 2015 Author Share Posted January 16, 2015 It shouldn't be any difference in the behavior of lua scripts between Windows and Linux. Check these points: Did you copy the same code from Windows to Linux, (i.e do you know the copy you have on Linux actually works) Did you updated permissions and owner? "chmod +x script.lua" and "chown YOUR_USER script.lua". Does the resource start without spawning peds and vehicles or does it not start at all? * I downloaded script from my pc (windows) and then upload via ftp on my server * I set for all files chmod 777, but nothing changing * Resource start but start without spawning peds and vehicles, on my windows server console show that have loaded map in 0.99999 server but on my linux server console doesnt show it, I mean there is the problem. Im using Linux Debian 7.7 Link to comment
Mr_Moose Posted January 16, 2015 Share Posted January 16, 2015 Try /debugscript 3 in game, there might be client side error which won't be shown in the server console. If you're using windows 7 or later you may need to right click on the file, choose properties and then unblock (if available) as windows 7 block files downloaded from unknown sources. I'm not sure how Linux deal with that kind of block as I always unblock my files before sending them to the server. Link to comment
botshara Posted January 16, 2015 Author Share Posted January 16, 2015 Try /debugscript 3 in game, there might be client side error which won't be shown in the server console. If you're using windows 7 or later you may need to right click on the file, choose properties and then unblock (if available) as windows 7 block files downloaded from unknown sources. I'm not sure how Linux deal with that kind of block as I always unblock my files before sending them to the server. Nop it doesnt help (unblock) and no one error with debugscript. WTF where is the problem Link to comment
Mr_Moose Posted January 16, 2015 Share Posted January 16, 2015 Have you tried changing traffic density or restarted while in game, remember that it takes time to start the resource and load all paths. Try /density 0.1 for example. Make sure /debugscript 3 is active to monitor potential errors or warnings. 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