Jump to content

DRW

Members
  • Posts

    364
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by DRW

  1. DRW

    Server lagging

    Really fun for you to just say it, I have removed Slothbot's zombie gamemode from my server and developed my own zombie AI some hours ago and the server went from 50% usage to 20% because of obvious resource-instensive functions. It does not lag one bit anymore, and I still got to remake my 1.5 year-old bot AI script. Now I'm currently having 72 players and everything works like a charm. Thank you all very much, I'll consider paying a better VPS with at least some more Ghz and I will definitely consume my soul optimizing all my broken scripts. Have a really nice day (or night).
  2. DRW

    Server lagging

    I see, well, will it make a difference if I switch from 2.5Ghz to 3.1Ghz per core or will I have to switch to 4 cores directly?
  3. DRW

    Server lagging

    But it's mostly at 50% usage, shouldn't it be enough?
  4. DRW

    Server lagging

    Hi there, So I am having a big problem, and I wish to know to what resource this problem is related. First of all, my server is 12GB RAM, 2x2.5Ghz and 100mbps. The problem is... My players start lagging when the player count reaches around 45-50 players. About lag, I mean there's a delay when you want to get in a car, reload, kill, etc. of like 0.5 seconds, it obviously increases when there are 70 players, which makes the server impossible to enjoy. Let me show you some stats about the general usage: So... Yeah... About the traffic usage, I have a server which has ~350-500 zombies (20% CPU usage) and ~50 miscellaneous bots (7% CPU usage), so there's the explanation. I'm supposed to have 100mbps bandwidth, but I have an average of 40mbps anyway, so I don't know if that's the problem or what. What do you say? Is it possible that MTA is not using both cores? Or is it the bandwidth in the first place?
  5. Yeah, I'll try that, although using onPlayerConnect and cancelEvent() will do the trick better. Thank you.
  6. So, I want to let some players enter the server despite it being full. So if there's 48/48 players, set it to 49 max players so the player with a specific serial can enter. Is it possible? I know I can use setMaxPlayers and the "onPlayerConnect" event, but it seems like onPlayerConnect gets cancelled before the max player count updates. Is there any way or workaround to that?
  7. I'm having the same problem, thiough, it does not happen that often
  8. En primer lugar, esas cosas no se ponen en esta sección, sino en la "Spanish Section", tienes que hablar en inglés. En segundo lugar, éste subforo es para la aplicación del server, no los problemas que tienes tú al entrar. En tercer lugar, si te ha baneado ese servidor, deberías contactar con el servidor en sí, no con el foro de MTA.
  9. Hi there, I've been scripting on my new server for two weeks now and I plan to release it to the public today. I have created my own AI and I wanted it to make it as precise as possible, so the syncing and all the events happen every 0.5 seconds so the AI can check if they have an objective, if they have to shoot, check the direction where the objective is going so it can anticipate and shoot with more precision, look around, stop shooting, etc. It's working very well so far. But I'm kind of scared of timers, because I have many since I use account datas and element datas all the time and I need the clients to depend on the server. Let's say I have 15 timers that are 5-30 seconds long, 2 that are 0.5 seconds long, and 3 that are 2 seconds long. 5-30 seconds: They usually set an account data and an element data per logged player, probably two of these timers also trigger client events. 0.5 seconds: They trigger 1-2 client events per player. 2 seconds: These trigger a client event. Clients don't seem to lag, FPS are stable, RAM is ok, but I've only tested it for 4-5 players. Is it going to affect my performance in the long run? Will the traffic be highly affected? SERVER SPECS: 6MB RAM 1x2,5GHZ CPU 100mbps internet speed.
  10. Oh, sure, haven't been specific: This will make the M4 one-handed so you can run with it. The 0x000000 values are here: https://wiki.multitheftauto.com/wiki/Weapon_Flags setWeaponProperty (31,"poor","flags",0x000002) --Use only one arm so you can execute the running animation setWeaponProperty (31,"poor","flags",0x000008) --Free aim thing setWeaponProperty (31,"poor","flags",0x000010 ) --This will let you run and aim at the same time setWeaponProperty (31,"poor","flags",0x000020 ) --This will let you run and fire at the same time Note: The "poor" thing specifies which skill level you have of that specific weapon. You can either use "poor", "std" and "pro".
  11. https://wiki.multitheftauto.com/wiki/SetWeaponProperty This, to activate weapon flags to give certain weapons the capability to be aiming with while running.
  12. DRW

    ayuda

    TIenes que buscar un objeto que se parezca a una jaula en el buscador de objetos del mismo editor de mapas, copiar la ID y ponerla en la función: createObject (id,x,y,z) -- ID Es el objeto -- X, Y, Z son las coordenadas
  13. Hello, Are you still looking for moderators? I'm from Romania and I have plenty of knowledge about scripting since I'm the only scripter on my current server, which is currently under development. It's been up since q1 2015 and it closed about 7 months ago, so almost 2 years of scripting experience. Here's the original server post (about 4 months after its original release): Anyway, I have a high Romanian proficiency, also, I know Spanish (been living in Spain all my life), English and Catalan. Thank you for your time.
  14. DRW

    Table problem

    So I'm using Castillo's Gang System (https://community.multitheftauto.com/?p ... ls&id=1514) and this script has an export called "getGangMembers" which is supposed to return a table. I need that, so I made a command which is this: addCommandHandler ("getmembers",function(player,cmd,gang,sgang) for i,gangmembers in ipairs (exports.gang_system:getGangMembers (gang.." "..sgang)) do for i,members in pairs (gangmembers) do outputChatBox (members) end end end) When I use this command along with the gang name, well, it outputs three chat messages, which means each member has a table part with three parameters: 1,2 and 3. Every parameter is printed to the chatbox. I only want the script to select the third parameter only and ignore the first two. So, instead of printing to the chatbox: 1,2 and 3 it'll have to print the third parameter only. Tried using this: addCommandHandler ("getmembers",function(player,cmd,gang,sgang) for i,gangmembers in ipairs (exports.gang_system:getGangMembers (gang.." "..sgang)) do for i,members in pairs (gangmembers) do outputChatBox (members[3]) -- Added the [3] here, but either [1] or [2] don't work end end end) Also tried to use ipairs instead of pairs but it didn't work either. ¿What should I do?
  15. Totally possible, I know a server that shows up the login panel and lets you play while you're downloading the rest of the resources.
  16. Hello, I'd want to know if there is a way to do this: There is, for example, a 100mb download, which includes all resources provided by the server, but I want to make the client download the login panel first (500kb) and then start the resource without even having downloaded the rest of the resources. Is it possible?
  17. Alright, I'll give it a try as soon as I come back home.
  18. I'm going to use a virtualized OS to see if it could work that way, my hardware could probably handle it. Anyway I have fixed my old laptop and now I can work on my servers and everything. EDIT: The virtualized OS works perfectly with MTA on my new PC, so yeah, definitely a problem of my OS and and nothing to do with the actual hardware.
  19. Do you have a custom flagged sniper rifle or any other weapon? Some flags can cause your client and any other clients nearby to crash. For example allowing a player to crouch with a minigun will mean when they aim there is no animation, which results in a client crash.
  20. Sorry for not replying at time, too many exams. Well, started Windows Update, but Windows Firewall's service was already running. Didn't do the trick anyway, still stuck at 20%. As I see, it's a problem of my Windows version. I'll back up all my files and I'll reinstall my Windows version and see if the problem persists. Thanks for your help, man, it's so appreciated
  21. https://gyazo.com/860e121b3ac0dd41c7e9c9aa325092a5 I cancelled it with ctrl+c after an hour and a half because the bar didn't pass from 20.0%
  22. Sorry, been busy these last days to try it out. I'm gonna do everything now, thanks.
  23. To make sure it repairs anything detected, you can fix sfc (so that error won't show up) by taking the following steps: - Run cmd as administrator and enter: DISM /Online /Cleanup-Image /RestoreHealth - After that completed, restart your PC - Now run sfc /scannow again, and it should work as it's supposed to, without "there were some problems that couldn't be fixed". If the more succesful SFC scan still doesn't solve your freezes, then as the cause is known to be a systemlevel problem (hard to diagnose) and seen you told it's a huge problem you cannot play MTA, the best you can do is re-install Windows to ultimately fix it, without spending hours trying to find and fixing root cause (the yet unknown system problem) Well, the problem is that I have already re-installed Windows when I updated from Win8 to Win10. I'll check this out and see if it works, but I'll upgrade my PC to a GTX 750ti and I'll add 4GB more of RAM this month anyways and I'll tell you if the upgrade solves the problem. I don't think it's a software problem at all. It probably has to do with the hardware and a lack of compatibility.
  24. Also, thank you very much for your time, MTA has an awesome supporting team.
×
×
  • Create New...