Jump to content

darkdreamingdan

MTA Team
  • Posts

    2,778
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by darkdreamingdan

  1. We became recently aware of this issue. It's indeed a sad thing, and there might be an option of disabling VOIP for UAE users, but it's unclear if that will be enough. It would be nice to apply for a TRA license, but ultimately we cant afford it (applying costs 10,000 AED). If we could get some sponsorship or donations to apply for a license, it could be an option however.
  2. That's strange. Everything works here - including the copy function. function fnc() if() code() if() code() end end end What browser are you using?
  3. Multi Theft Auto: Vice City's default port was 2003. That's probably what "MultiTheftAuto" refers to. Multi Theft Auto: San Andreas's default port is 22003, but you also need to open the http port which is 22005.
  4. So I'm finally releasing the MTA Highlight extension that powers our syntax highlighting on the forums and on the wiki. This enables the blue and orange links you see that link to the Wiki for MTA functions. The highlighter is built off of Google's prettify library, so is only compatible with software that uses Google Prettify to highlight their code. Installation Usage is really simple, and it sits very well with Google's own prettify library. Note, that you'll need a version of JQuery for the functions to work. In your HTML HEAD includes, add the following: <!-- Add JQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <!-- Add Google Prettify library --> <script src="//cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> <!-- Lua not added by default, add it--> <script src="//cdn.rawgit.com/google/code-prettify/master/src/lang-lua.js"></script> <!-- Get the latest function definitions from MTA Forums --> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/luafuncs.js'></script> <script type='text/javascript' src='//forum.multitheftauto.com/uploads/javascript_syntax/mtafuncs.js'></script> <!-- Add MTA-prettify library --> <link rel="stylesheet" type="text/css" href="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.css"> <script type='text/javascript' src="//cdn.rawgit.com/darkdreamingdan/MTA-prettify/master/mtahighlight.min.js"></script> You'll then need some JavaScript to use Google's Prettify and apply MTA's markup: $(function () { // Perform Google Prettify PR.prettyPrint(); // Add MTA markup applyMTAMarkup(); }); Usage Usage is just like Google's own Prettify, but you'll need to add lang-lua as a class to your <pre/> snippets. For example: <pre class="prettyprint lang-lua"> function onWasted() if not( isGuestAccount (getPlayerAccount(source)) ) then local jailtime = getAccountData(getPlayerAccount(source), "Jailtime" ) or 0 local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) if tonumber(jailtime) == nil or 0 then outputChatBox ("1", root) fadeCamera (source, false) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) elseif tonumber(jailtime) > 0 then outputChatBox ("2", root) fadeCamera (source, false) setTimer (portjail, 1500, 1) setTimer (setElementHealth, 1500, 1, source, 10) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) end end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) </pre> Example An example JSFiddle is available here: https://jsfiddle.net/darkdreamingdan/0uvzbL1n/. Source code available here: https://github.com/darkdreamingdan/MTA-prettify . I'd really appreciate a GitHub star if you found this useful! Note: Usage may be different if installing on different CMS software. Typically, this is easily implemented by using your CMS/forum's Theme editor.
  5. Hi Chase, thanks for visiting. Would you be asking your users to install a modded version of GTA? Or would you implement the whole map in MTA scripting?
  6. Please be specific in your responses. How are you going to use it in your server? We need to actually know how you would implement it. The challenges relate to the fact that FLA requires GTASA to be restarted for each change. I need to know specific, technical/scripting information on what is limiting you and what you were trying to achieve.
  7. Hi guys @fastman92 has recently engaged with us in order to get his limit adjuster implemented into MTA. Obviously, there are a number of complexities involved in implementing this, and we need to make some important design decisions to achieve this. So, why do you want to use a Limit Adjuster tool? Some things I'm hoping to learn: Are you trying to play MTA with a modified version of GTASA? Do you want the limit adjuster to play mods like GTA:Underground? Are you trying to use Limit Adjusters with MTA's own Lua engine* functions? (e.g. engineLoadDFF) Anything else? Any feedback would be incredibly beneficial to the team going forward. Cheers Dan
  8. We don't use Geshi anymore. We now use Google's Prettify library in both the Wiki and Forums. It's normally quite easy to implement into a web site, you just have to add some custom JS includes and custom BBcode tags. I'll be releasing a Google Prettify compatible MTA syntax highlighter (the one used to link to wiki and colours) in the next few days. You'll need configure VBulletin or modify the source code to include the following to JS (in our forum software this is achieved by modifying the theme): <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script> <script src="https://cdn.rawgit.com/google/code-prettify/master/src/lang-lua.js"></script> <!-- Lua not added by default, add it--> <script> addEventListener('load', function (event) { PR.prettyPrint() }, false); </script> Then you'll need to make a custom BBCode to produce the following tag (e.g. configure a [lua][/lua] bbcode): <pre class="prettyprint lang-lua">--LUA HERE</pre>
  9. I'd advise against TortoiseSVN, there's no need for it. Probably something like GitHub for Windows is much easier to get up and running. This guide has more or less everything you need to know: https://wiki.multitheftauto.com/wiki/Compiling_MTASA There's really more much to developing on a large project than simply applying patches. MTA's codebase is very large in nature, and there are likely to be some integration challenges involved as well as harmonizing with our own coding standards. Good luck.
  10. We could trial a "Question / Answer" system which is designed for this. The idea here is that you pick the best answer and the forum automatically marks it as resolved.
  11. 25 minutes was calculated using an Advanced Gut-Feeling Theorem. I advise you continue to double-post for this niche usage.
  12. As discussed, it should be fixed now. This was due to some teething problems during forum maintenance. Cheers
  13. Thanks for the report. I'll try and get this resolved.
  14. I'm waiting for any more issues/bugs to arise. We recently ported the forum highlighter to the Wiki so the system is shared. Once things seem stable, I'll release the highlighter on GitHub and it should be very easy for any community to integrate it onto their website.
  15. We're wanting to make a decision on this soon. If you havent voted already, we urge you to vote. 9 relevant votes is not a huge sample size to make a good decision.
  16. Thanks for the report. It should be fixed now. You may need to do a hard refresh for it to take effect - Ctrl+Shift+R in chrome.
  17. I've since investigated implementing MediaWiki's visual editor in depth. It basically isn't an easy thing to add, and has a lot of moving parts. You have to install several plugins for it to work correctly, and there were still a few bugs on our Wiki. We might revisit it once it becomes stable and is integrated into MediaWiki's default package.
  18. I've just developed a plugin for this. You can now do both.
  19. I'm sorry that you feel that MTA is bloatware. I agree the download size has increased significantly from our modest days of <5mb installer. But I don't believe for a second that it's a dealbreaker for someone in 2016, even those with terrible internet. The truth of the matter is, MTA has reached a very mature stage in it's lifetime. Future development is really focused on projects that our developers find interesting, because the heart of the mod itself is more or less complete. Let me give some insight into why MTAIV was abandoned: IV itself was poor. For starters, it was one of the worst PC ports for that entire generation, and we've only just got to a point where it runs well. Moreover, you lose some critical RPG elements and gameplay that makes MTASA great. I also find the cover-based shooting and more realistic physics pretty boring. Not only that, the actual game is highly fragmented. You've got GTA4, EFLC and then GTA4+DLC. It makes it hard to target. Then there were the awful patches released by Rockstar - each time making performance worse and making us have to spend significant time re-engineering. Considering all these problems - plus large install size and higher system requirements, I don't think GTA4 would ever gain the same traction San Andreas has. Frankly, at this point, the entire MTA Team are tired of working on something for the benefit of R* when they have absolutely no care for us. But let me clear in that it had very little to do with capability. Orange, although in early stages of development, was shaping up to be one of our best products yet.
  20. Okay well this topic is just getting out of hand, and there seems to be no constructive discussion. Locked
  21. Thanks for the suggestion. We don't have any plans to add any further fonts to posts at this time. It makes our forum posts less portable (e.g. if we want to change the overall theme in future, it would cause problems) and adds complexity to something that has relatively limited use cases.
  22. There's now a clipboard button in every code window. This copies the contents to clipboard. I've also added the code button to mobile versions of the editor.
  23. We recently had coverage on RockPaperShotgun about San Andreas multiplayer mods. It covers both MTA and SA-MP, but is interesting nonetheless. It may be two Grand Theft Auto generations and 11 years old, but GTA: San Andreas is still very much alive. Its two most popular online multiplayer mods currently have a million or more active players between them — one, Multi Theft Auto, had 616,000 players in July (up from just 33k in February 2010), while the other, SA-MP, oscillates between about 15,000 and 50,000 concurrent players. I went to talk to members of both mod communities to find out what keeps them playing... You can read the full article here: https://www.rockpapershotgun.com/2016/09/15/why-a-million-people-still-play-multiplayer-grand-theft-auto-san-andreas-every-month/ A big thanks to Richard Moss for taking the time out to cover us. You can find more of his portfolio here. If you're a member of RockPaperShotgun's comments section, we encourage you guys to post comments on the article about your MTA experiences!
  24. There's a breadcrumb at the very bottom of the page which you can use to navigate.
×
×
  • Create New...