Et-win Posted August 24, 2014 Share Posted August 24, 2014 Hello people, I just have a question. Do you guys have the same problem as me, that if you are scripting and your script just is correct, but it doesn't work and after changing 1 thing in the script (e.g: Putting outputChatBox in the script to check where the script stops) and that it suddently works after that, while you didn't change anything? (And yes, I did refresh and restart the script(s)) I had this several times, but I don't know or it's MTA 1.4 or just my laptop (Since I had more problems with it, lol.)? Link to comment
Perfect Posted August 24, 2014 Share Posted August 24, 2014 (edited) What is going on! This just happened to me today in mta 1.3 but didn't knew that this is global thing. Edited August 24, 2014 by Guest Link to comment
MIKI785 Posted August 24, 2014 Share Posted August 24, 2014 Same thing happened to me today actually, didn't pay much attention to it (thought i may have done something wrong but i doubt it) but if it didn't happen to just me than there might be some kind of issue. Link to comment
FlorjanMTARP Posted August 24, 2014 Share Posted August 24, 2014 Happens to me either! This will probably get fixed in the upcoming version of MTA. Link to comment
Mr_Moose Posted August 24, 2014 Share Posted August 24, 2014 Sounds like the cache (if there is any), I've noticed the same issue, but it only affect client sided scripts thought. Are your bandwidth saving at 'maximum' maybe? I guess you just have to wait for the cache to refresh. Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 Happened server-side to me. And if you mean Streaming memory: is min. Link to comment
Bonsai Posted August 24, 2014 Share Posted August 24, 2014 (edited) Even though I haven't noticed anything like this, maybe its related to the /restart command. Try to use /stop and then /start it again. Edited August 24, 2014 by Guest Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 Using those two commands on binds now atm, didn't see anything yet but it only happens rarely. Still, I reported this because it's not very normal. Link to comment
MTA Anti-Cheat Team Dutchman101 Posted August 24, 2014 MTA Anti-Cheat Team Share Posted August 24, 2014 And yes, I did refresh and restart the script(s)) Wrong. You need to do 'refreshall', 'refresh' only detects newly added resources. refreshall does also auto-restart resources once they changed, if they were running, indicating that you used 'refresh' only. Still, I reported this because it's not very normal. It's caused by your own mistake and not a bug. Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 In MTA 1.0.5 and up until MTA 1.4, /restart did restart + refresh the resource. And also now it does, but very sometimes, it doesn't. I'm talking about a resource where I'm currently scripting in, not adding a new resource. Link to comment
Mr_Moose Posted August 24, 2014 Share Posted August 24, 2014 Well /refreshall should solve stuff like imported files that doesn't refresh properly or if you add new files, though this where about regular lua scripts with regular edits. Could you specify when this issue appears more detailed? Exactly what did you changed. I've seen this only when replacing radarblips or adding new files that isn't lua files into existing resources. Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 I can't specific tell you when it happens. It happens randomly. It can't be my script(s), because like I said in my first post, I only added 'outputChatBox' to the script, restarted it again and suddently it worked. I never had this though on earlier versions. Link to comment
Mr_Moose Posted August 24, 2014 Share Posted August 24, 2014 Seems strange thought since 'outputChatBox' won't have any effect on that. What did you tried to do with your script, just wonder if it was regular edits of some lua files, adding new files or replace existing files like images. Maybe you forgot to upload the file (if you're using ftp or network paths). Link to comment
MTA Anti-Cheat Team Dutchman101 Posted August 24, 2014 MTA Anti-Cheat Team Share Posted August 24, 2014 You're saying it happens sometimes. Until we know more about it/whether it's a bug or not, try to use 'refreshall' for a period and see if it happens even once again or not/less, that might be important to determine the problem, though I think refreshall is a bit more reliable for it, like MrBrutus said: Well /refreshall should solve stuff like imported files that doesn't refresh properly or if you add new files Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 I was either changing or adding stuff to my Clan War System. (Just changing the current script, not adding or removing, just editing.) 'outputChatBox' has indeed nothing to do with this, but I restarted my script 2 times when it didn't do it's job because I was sure it should work. Then I added 'outputChatBox' to see where it stopped working, and suddently it did work after the restart. Everything before the little change did work, but my changed thing didn't, only after what I just said. This is why I think that it doesn't always refresh the script when restarting it. I'm using my local server and never had problems with this before. About /refreshall: It takes too long to constantly do this when you are just adding like 1~5 lines and have to test or it works. Currently using what Bonsai says: /stop and /start (On a bind, just like /restart). I will move on to and try /refreshall if I don't had any problems tomorrow. Link to comment
Mr_Moose Posted August 24, 2014 Share Posted August 24, 2014 /Stop and then /start does probably exactly the same as /restart, can't see why there would be multiple functions doing the same things. And lua are like other scripting languages executed from the top then it goes down until it finishes or crash in the middle of a job. How about /debugscript? I guess you used that but it could be a regular bug in the script as well. Even if it looks like it should work the human eye just aren't good enough to detect all possible issues. Link to comment
Et-win Posted August 24, 2014 Author Share Posted August 24, 2014 I always use debugscript 3, there were no bugs, nor my script was wrong. And if you say it was, what will explain it worked after only adding 'outputChatBox' and also 3 others confirmed this in the start of the topic? 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