-
Posts
2,298 -
Joined
-
Days Won
112
Everything posted by Dutchman101
-
Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic.
-
MTA has a very strong built in anti-cheat, you can read more about that (and how so) here and here. But still though, take a good look at this: https://wiki.multitheftauto.com/wiki/Script_security .. Because, despite the strenght of MTA anti-cheat, and it including many security patches to make someone writing or having a working Lua injector extremely unlikely, please always keep script security ("never trust the client") in mind, as nothing is impossible. Most servers have insufficient checking and script security in most if not all of their resources, so in the event someone has a "hacked client" (working Lua injector) they can do a lot of damage to the server, and/or gain cheating advantage for themselves or others. No matter how fast MTA is patching it, the damage would have already been dealt. I know that quite a few of the serious servers on MTA have scripters that are skilled enough to keep script security in mind, and they made it a priority. So that aspect is taken care of. But again, on most servers it's piss poor.. so I hope scripters that are reading this will understand and do something. * Note: i rewrote this post in 2020, due to high traffic and the ability to educate some people on script security.
-
To post a topic in the Scripting section your topic should meet the following requirements: It must contain specific questions about either: the code you will include that is problematic or you are asking direct support for, or asking for help in finding the best approach to achieve something. For example, asking more experienced scripters if there is a more efficient way of coding your desired script/function. The contents of the topic must focus around code support or coding methods. It needs to follow the Formatting guidelines and Conduct guidelines listed below. This section is not for: (resource) progress show-off, recruiting scripters, or polling interest or brainstorming on what kind of project you are up to next All of the above things have their own categories to post them in. These categories are respectively: https://forum.multitheftauto.com/forum/87-resources/ https://forum.multitheftauto.com/forum/149-looking-for-staff/ https://forum.multitheftauto.com/forum/140-mta-chat/ If you still post such a topic in the Scripting section mistakenly, the first time it will get moved gracefully to the correct section. Any subsequent repeated mistakes may result in an instant deletion of your topic. Formatting guidelines It would be highly appreciated if you tag your topics appropriately and use proper topic titles. Although this is not a hard requirement, it helps to maintain overview. Use the following template for this: [BUG] TOPIC_TITLE - for problematic code that will not work or has issues that you need assistance with. This type of topic must always contain a code snippet of the script in question. Most of the times, you will need to provide the entire script. [QUESTION] TOPIC_TITLE - scripting questions, including (but possibly not limited to): asking for help in understanding scripting principles, function or code usage, or if you wonder whether your approach to achieve something is the most optimal and efficient one. We are all learning and aid from more experienced scripters can be useful. Use code snippet tags. Always add your code (if applicable) in this uniform way. Click the ''< >'' shortcut in the text editor, as seen in below screenshot: Then put your code within the box that said button (< >) creates. Be sure to select Lua for highlighting from the drop-down list in bottom right corner for automatic syntax colouring, wiki links for built-in functions and events and other cool features. Please do not use loose [ code] tags for the sake of readability. Do not mass-quote code snippets, or else it would fill up the whole topic with repeats of the same code over and over again. Remove the code column from a previous quote before posting or limit your own quote by narrowing down the parts of code you are replying about. Quote selectively. Advice Last but not least, please try to explain your issue or question the best way you can. A clean and detailed topic can increase the chance that someone will sit down to analyse your problem and actually help you. Clear communication and description is also the key to attracting scripters who may potentially take a look for you. Note that a common request is to "post the full script" and that isn't without reason - problems often go deeper than you think (or the issue is structural / architectural of nature) and other scripters will find it difficult to help you debug or trace it without having a good picture of everything. Especially with questions regarding bugs or something not working as it's supposed to, you may have low or non-existent outreach from others if you're not providing full code. Similarly, also keep in mind posting screenshots (or lines) from debugscript, errors or warnings, that include the line number, you will need to number any script code you provide in your topic to ensure others can intepret it and find the corresponding erroring lines. Code of Conduct Treat everyone with respect, no matter their skill in scripting. If someone posts what you think is low level/''stupid'', remember that you have once been there as a novice scripter yourself and everyone should have a chance to learn. Instead of resorting to humiliating replies, think about how hard it is to learn how to script efficiently, and dedicate yourself even more to help them understand it. You might play a noticeable role in someone's future as MTA scripter (or who knows, maybe an even more prominent role later on too). Long story short, avoid making remarks or rude comments aimed at someone's skill level, incapabilities, etc. It is not appreciated neither by us Moderators nor by regular users of the forums. The Scripting section is not meant for those unwilling to learn, whose only intent is to try get others to finish the scripts they need, line by line. We see this happening way too often - someone with seemingly zero scripting skills does not react on-topic to the set of functions they can use that other users provide them, and does not seem to take any pushes in the right direction forward; they are just waiting for a collective effort from other scripters to develop what they want. This is what we do not want to see. Do not expect all the work to be done for you while you lean back. You should at least try to script it by yourself - users on this subforum are generally happy to help in any particular issue you come across while coding. If you see someone who keeps bumping their topic that is clearly oriented at letting his work be done by others, then please report the post. The bumping policy in scripting section is a bit different from other forum sections, because scripting topics serve as a sort of knowledge-base for those dealing with the same issue/question as described in existing topics. It is often suggested (and usual practise for many scripters) that prior to posting a new topic, someone searches the forums to see if their question has been asked/answered before. Therefore, you may bump old topics if you're certain your approach or solution/code is better than other posted answers, and if it's a fairly common question (not someone just asking how to have their own code fixed or similar case-specific topics). However, we the moderating team may still review if your posts are really useful bumps with new insights, and even if so, we can lock the topic to prevent derailing of an old topic/continuous posts. So expect your useful bumps to possibly be the last ever made in a certain topic (which means if you do it, do it well). If you believe a popular topic for a really common scripting problem should be unlocked for you to post input, or you wish to improve upon someone's earlier bump after which it was locked, then please use the Report button referring to this part of the regulations. No support is offered for leaked code or scripts (even if they only partially originate from a leak) and such topics will be locked and trashed on sight. If you notice a topic where something related is being asked, or other clandestine requests (such as questions how to decompile scripts, etc, anything with not-so-noble intentions) then please report the topic and do not reply as it may incite unnecessary arguments. Mention the source proving that it is a leaked code within your report, though you can omit that if you feel that it is fairly obvious that the resource/script was leaked. In the latter case however, keep in mind that we may not be aware of such a leak, so the Moderator who handles your report will have to take his judgement upon it if you do not provide evidence. Still, keep in mind that you should not openly accuse users who post pieces of your (or someone else's) code as per https://forum.multitheftauto.com/topic/46410-stolen-resource-accusations/. If this happens, simply report such posts. Failure to abide by the Code of Conduct may result in a forum punishment. If you notice anything that violates the Code of Conduct, please report those posts instead of enforcing the rules yourself. It just takes a few seconds, but greatly benefits the Section and makes it a better place to seek help from.
- 4 replies
-
- 10
-
DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14306 This countdown script draws digits in DX locally, it detects who is in the direct area of the player who triggers the countdown. Assuming these are participants of the race/event, they will get the DX '3, 2, 1' (or chosen lenght) on their screens.DEMONSTRATION: (7 seconds, = /cd 7 for my demo)Use: /cd [lenght in secs] for example 3 seconds: /cd 3= 3, 2, 1, GO! (including beep sounds like classic countdown)alt: /countdown, /cdn, etcIf someone gets auto-added to countdown unwanted, he can use /cstop to leave the countdown (as indicated in chat) so barely abusable; also it has anti spam timer, using countdown is limited by default to once per 40 seconds (you can modify the value in .lua, and also other values like area width for participants auto-add, max lenght in seconds etc)
-
DOWNLOAD: https://community.multitheftauto.com/index.php?p=resources&s=details&id=14305 This script adds infinite nitro to your car, never re-add the upgrade anymore!Also changes mechanism:- Hold down Mouse button left-click to use nitro aslong you need it, release it and it'll be gone. (useful for when you need just that extra boost)- Press right CTRL for infinite persistent nitro (it will never stop) and you don't have to hold down anything. Drive with Nitro permanently, until you interrupt it (interrupt: click left-mouse again, or press right CTRL again to switch it off)The first mode (hold left click) works similarly to the ''nos-nfs'' script, so it may be familiar - but it's all from scratch and implemented differently.By default, it also removes the speed blur of nitro, due to it becoming annoying to the eye when you keep using nitro as it's infinite. Remove that from .lua beginning if you want to keep blur. Simple, but useful for several types of gamemodes.
-
Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic.
-
Sorry for the late reply. Does it only stop working while loading, or doesn't it work again after the loading screen completed? If it doesn't, navigate towards server browser with mouse and join a server, and try use keyboard once connected, and tell me the results. And also... Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic Also, if the answer to my first question is that it only stops working while loading, why do you think you'd need to use your keyboard on the loading screen? Or do you not mean it to interact with MTA, but if you tab MTA your keyboard won't work aslong it's loading or aslong MTA is running? Please clarify more.
-
Whitelist MTA in ESET, it's blocking traffic (false positive) or disable web protection temporarily and see if it helps. Is this only happening on a certain server? (The host/http server may be flagged as malicious for some legit reason)
-
Does it only happen on 1 server? What's the IP:port? Are there more players as you can see in server browser, playing peacefully? It sounds like a bugged game-mode. Take a screenshot with F12 and show it please, and also.. Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic
-
It's a problem with mostly recent ATI drivers/a historic Windows 10 update and I've also had it, you gotta use borderless mode, or workaround by holding the Windows start key on your keyboard, and press ''P'' simulaneously. Then press Arrow down and after each press, hit Enter. After a few presses you'll hit a screen projector mode that will fix your display, and the black screen goes away. The reason is these steps reset dwm.exe, which is the culprit. When you remember these steps correctly, fixing your display output after quitting MTA is a matter of 3 seconds, but to prevent this annoying problem you can simply use Borderless mode.
-
You've got your publicity here, the one thing left to do is create a GitHub repo and set up some sort of QA for PR's. Also it's recommended to let more experienced (handpicked or yourself) scripters write the core of the gamemode (or the best initial commit PR), as it's vital for future integrations and everyone works based off it. I assure you anyone interested after reading this topic will come create PR's and contribute, if only they had a reference point where to start. I personally think this idea has potential, good luck.
-
@Küntelman You might be wondering why it happens only on 1 server and doubting if you need 64-bit, but the plausible explanation is that this one server has so many mods and load/performance-heavy models and scripts that MTA still runs out of address space/memory. So take the steps listed in the topic ccw linked, or consider re-installing Windows on 64-bit. There's no reason to stick with 32bit on your system.
-
All ENB's based on the latest official version work fine with MTA (either the original version: http://enbdev.com/download_mod_gtasa.htm) or any custom-made ENB (as you're talking about ''ENB's'' aka third-party ones) and if one doesn't work, try the latest version from that third-party ENB creator. If that latest version doesn't work, it means that ENB creator hasn't yet updated their project to the latest official core ENB that MTA supports. MTA started only supporting the latest official ENB or any third-party ENB based off the recent versions, in 1.5.3. You could try asking the third-party ENB developer to update their custom versions with it. (some ENB developers constantly updating to this date doesn't mean they are updating the neccesary files, aka swap the underlying ENB with the latest)
-
Once you get to the stage of this black screen, press F8 and copy all the output (local server log) and then post it in this topic, please.
-
Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic
-
I don't think this MTADiag was right after it happened? Just wait for it to re-occur, unless it happens it's not that urgent to fix anyways. Anyhow i've got no way to investigate unless you provide a log from directly after it occured.
-
The issues you're describing is pretty unclear and doesn't ring any bells with me, although I wonder how you managed to fix it anyhow. @rusztamas
-
Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you in this topic Try to get the MTADiag log right after it happens again, unless it takes too long for it to re-appear.
-
To help your out of your illusions about how this 'system' works (infact it's not a ..not even uniform.. system, all depends on server scripts) you got to know that all depends on if a certain server limits off features or playing at all to whether you're logged in or not, in a server where registration is required you cannot have seen players who were ''were able to'' when you arent, in that case there's a 'Play as guest' button or option/cmd or a login isn't forced at all. In any case, to be relevant for your question, servers you're wondering about must have some sort of Login/registration system. From there it should be common sense if you can play without account, as you inspect the eventual login screen or help page for any option to play as guest. To answer another part of your question, if you're limited to a single account; also this depends on the server, who knows a certain server may have a script against multi-accounters, by even preventing you from registering more than 1 account, or it being against the rules with a set penalty. Just read their documentation/help pages if it's not clear. It should be however at one glance.. Also alot about the interaction with login system, as you also wondered about, depends on whether a server relies on the hardcoded, built-in MTA /login and /register commands, or a custom login/registration account system by a separate script. Again, all should be clear and common sense once you joined said server, there's no guideline in what you can or can not do or need to, as each server, when it has some sort of Account system, differs in its uses and requirements. PapaBowie already covered much on that in his reply.
-
I see. If the problem returns, you can also try the other solutions listed here: https://forum.multitheftauto.com/topic/78081-32-bit-windows-crashing/ ontop of just the 3GB switch.
-
You are 1) still not following my instructions about the crash dump, and 2) not telling me if MTA still freezes up after the driver updates. That your PC runs awful after the driver updates makes little sense, as running with the latest drivers shouldn't produce those effects. It's likely something else then for that part. Please generate a new MTADiag log.
-
Thanks for the MTADiag, although I still need a dump you generate with the method I proposed. Now, before you do that, take a chance to update some drivers already. 1: Intel chipset update (https://downloadmirror.intel.com/20775/eng/SetupChipset.exe) if it's incompatible, download this one instead: https://downloadmirror.intel.com/20018/a08/infinst_autol.zip) 2: Graphics driver: http://support.amd.com/en-us/download/desktop/legacy?product=legacy2&os=Windows 8 - 32 (take Catalyst 13.4 down below.. Windows 10 driver in combination with your system may cause issues) 3: https://downloads.dell.com/bios/530_1018.EXE (some fix in a BIOS update may be related to the freezing, but be careful - don't interrupt power or anything while it updates - optional at your own risk) 4: Audio driver, very outdated: http://12244.wpc.azureedge.net/8012244/drivers/rtdrivers/pc/audio/0008-32bit_Win7_Win8_Win81_Win10_R281.exe 5: Secondary audio driver: download from http://drivers.softpedia.com/get/SOUND-CARD/OTHER-SOUNDCARDS/Screaming-Bee-Audio-Driver-3001-for-Windows-10.shtml (left 'Download' button and follow installation instructions listed on that page) After updating with all of that, please follow the earlier instruction to await a freeze and generate + upload a crashdump.
-
Se isso acontecer quando você se juntar a um servidor aleatório, antivírus varreu porque algo externo pode mudar os arquivos após o download (mismatch - vírus editando recursos do cliente) em outras palavras os arquivos estão incorretos após o download quando se juntar a um servidor porque algo está prejudicando-os, Problema raiz.
-
Why not? Because it's rented and the hoster controls it? If you can access mtaserver.conf you can easily change the port to correct one. And with ''port is wrong'' do you mean the currently set port isn't forwarded? If you cannot control the config or the current port isnt forwarded, approach the hoster's support desk.
-
Are you never able to connect there, or at certain moments you tried? (it looks simply offline from the time you took that screenshot - right now it's online so should be accessible) and you say, you can connect to any other servers: including those with a Russian host, or also not? If you always have this on certain servers, let's take 1 of them (from screenshot) and open command prompt: write: ''tracert 176.32.36.82'' and copy the whole log it outputs (once finished) into this topic for me to see it.