Jump to content

Arran

MTA Contributors
  • Posts

    590
  • Joined

  • Last visited

Everything posted by Arran

  1. resource-cache folder is only for client side files. Without this seperate folder, MTA would be ruined because anyone could download any single file from the resources folder if they knew the name of the file, such as server side scripts, sqlite files, etc. Also what loki2143 said, if a client side file was edited and not immediately restarted, players who then joined would be downloading and running a different script to other players.
  2. Arran

    Help browser

    This will execute as: playSound("http://www.youtube.com") which isn't useful. Don't you want them to pick a video to play first? Why not just add a GUI button so that they can close the browser once they've picked something to play? The music of the video would then play in the background which is what you want?
  3. You should never use the 'relative' system for GUI's. Relative GUI's are fundamentally flawed because GUI elements are not fully scalable. You will have to recreate the GUI using 'guieditor' and this time make sure that the relative is set to false and that the GUI outputs are large numbers like 300 not just between 0 and 1.
  4. There is an error on line 1: addEventHandler("onPlayerWasted", getLocalPlayer() This script is server sided so change 'getLocalPlayer()' to 'root'.
  5. You can easily pretend to be a hacked client: Have access to runcode, start runcode, crun setElementData(root. "blah", "blahblah") All that a hacker can do is execute client side script, as if they had access to crun, as you have access to crun, being the server owner, you can test server side security stuff that way. Edit: Though you shouldn't even worry about this. In 6 years of running a popular server I have only encountered client hackers less than 10 times. Usually they gave themselves away by triggering events to server which aren't handled thus generating an error that shows you their player name. Use element data, it's a wonderful system, just don't use it for things hasObjectPermissionTo should be used for.
  6. Arran

    Help browser

    Please elaborate on what you mean by " take sound and delete the browser when play then sound " because it doesn't make sense.
  7. There is no error message about it failing to connect because the arguments you have passed to dbConnect which I'm guessing is line 44 are processed before the function is called and the arguments contain a concatenation error thus aborting execution of the dbConnect and anything else below. 'safepassword' is a nil value therefore you have to declare it first: safepassword = "password here"
  8. Is this limit adjuster something that can have individual limit adjustments added on their own? For example the object streaming limit is one of the most requested things to increase, if this limit was increased on it's own, that would be seen as a huge update. A single change like this couldn't have any reason to disagree with either, rather than if it was part of a huge pull request that involve too many modifications.
  9. I'm confused, aren't you the one whose making it work in MTA? Or did an MTA developer volunteer to do that bit? You can submit a "pull request" on git hub, though I'm guessing getting it to work with MTA would take a lot of work, like having to add functions for allocating new ID's to an element type.
  10. Is there a list of limits that are adjustable? The gtaforums.com topic says "The only ID limits that can't be adjusted: DATLoaded listRequested list" but it says "ID limits" so is the limit adjuster just ID limits or does it also include streaming limits? As the current streamed in object limit is too low. If the amount of sponsorship's on the MTA bug tracker was a measurement of interest: "Add opportunity to add new ids for: objects, skins, vehicles, weapons." has by far the most interest ever: https://bugs.mtasa.com/view.php?id=6571
  11. Arran

    Ban appeal {Cit2 server}

    Serial has been unbanned.
  12. lopezloo was the mastermind behind that patch, couldn't have done it without his original work!
  13. In-game news needs updating. 90% of servers haven't even updated yet.
  14. "This is due to server overload or script freeze" It most likely means you have a crap script which is freezing the server, check https://wiki.multitheftauto.com/wiki/Re ... ncebrowser
  15. http://bugs.mtasa.com/view.php?id=8404 http://bugs.mtasa.com/view.php?id=8411
  16. I've wrote some more explanation, so much so that I had to make a whole section just for it: "Element IDs Being Reused"
  17. Arran

    (AC #4 TWAT)

    Someone has been kicked with this reason 13 times in 19 days they claim not to be cheating and "it's a problem with my internet" their serial is F7B578CD1714A3D5689909B27B522FA1 I've checked the recent admin log and found someone else kicked by it 2 days their serial was 96FE8660706EA22BC9CBE3E2CA681643 Shouldn't really be in the linux board though since it's not limited to linux.
  18. Arran

    1.4 Beta Release

    It was fixed in this revision: https://code.google.com/p/mtasa-blue/so ... ail?r=6608 Make sure your client build number is higher than 6608 by getting the newest build from https://nightly.multitheftauto.com
  19. Well it's not like you could enter an AT-400 from the ground in real life. If you park it next to a ramp, you can enter by standing on the ramp.
  20. An easy way to same RAM is to not have a silly max player count that you know you'll never reach like 4096 as an empty server with 4096 max players uses a lot more RAM than 100 max players. No average server should reach 1.2gb but you can definitely go to about 1.7gb before it might become a problem. If a server is using over 1gb RAM then then a script probably has a memory leak in which case you should check performancebrowser or IPB and either fix the problem with it, or just keep restarting the resource when it's usage goes up. Or get the new 1.4 64 bit server which can use all the RAM in the device it's being ran on. Though this probably isn't an option for average servers which are with a game hosting company. Don't forget that MTA server could have a memory leak itself, for example: http://bugs.mtasa.com/view.php?id=7565 (Though it's less than 1% chance to be MTA's fault, 99% chance it's your scripts)
  21. I'm guessing here, but the reason why you're forced to use luac.multitheftauto.com is because it's become a habit on community.multitheftauto.com to upload compiled scripts. This means that a lot of bad people can make scripts and then hide stuff in it like secret commands that give themselves admin or just let them teleport, weapons, health etc. If scripts are compiled they can get away with it because servers ran by non scripters won't question why a resource has been compiled and just assume everything is okay, If they have to be compiled through luac.multitheftauto.com it probably checks scripts for dodgy stuff that should never really be compiled like aclGroupAddObject(aclGetGroup("Admin"), "user.NaughtyPlayer") a normal scripter wouldn't need to compile their server side files and virtually no resource should ever use that function so it probably saves dodgy scripts and someone checks them. If you're like me and you check googlecode often you'd notice there was a commit in the past month which adds something that can block a script from being ran on servers, to prevent these malicious compiled scripts ever being used.
  22. That's why I made this request: http://bugs.mtasa.com/view.php?id=7950
  23. Arran

    memory limit

    Well all my scripts are using 369773 KB and one alone is using 77781 KB (lots of stuff in lua tables) you can check in performancebrowser to see each resources memory usage. The average script shouldn't use over 1000KB but if it stores loads of stuff in lua tables or large strings like images and screenshots from players then it will use more. Your debug script will be spammed by "ERROR: Out of memory" before the server might crash (or automatically shut itself down if it's frozen for too long)
  24. Arran

    OMG HELPPP !!!!

    That isn't very specific. You could mean that it was running super slow, or you could mean you threw your computer on a fire. If you still have your old computer then you should see if the hard drive uses the same connectors as your new computer then you could easily plug it in. If your new computer uses SATA and your old one uses IDE then it's a bit more complex because you'd need a converter. Then again, is your old computer even working at all or not? If it works see if you can at least get on with safe mode (hold F8 when starting the computer up then select safe mode) if the hard drive is messed up then you might have some luck with a program called recuva which worked well for me once. In future, back up your files with something like Dropbox.
  25. Arran

    1.4 Beta Release

    It was added?! Executing client-side command: downloadFile Command results: function: 245F5B60 [function] Yes, it was added.
×
×
  • Create New...