Jump to content

Jusonex

Retired Staff
  • Posts

    507
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Jusonex

  1. You will have to wait for the ban to expire on 2016-10-10 at 20:52
  2. Editing posts is only available during the first 25 minutes after creating the post or if it's the first post in the topic (this rule holds true for both mobile and desktop version). Furthermore, this behavior is enabled on purpose to prevent abuse. What else makes you think that the mobile version is 'useless'?
  3. CentOS 5 was released 2007 so you're working with an almost 10-year-old operating system. Even though CentOS 5 still receives security updates from its maintainer, we cannot afford maintaining such an old system. Therefore, please move to a newer system e.g. Debian 8 or CentOS 7.
  4. Could you please tell me the output of /version?
  5. It's a hacky way and should only be used if necessary, but it works: function getThisFunction() return debug.getinfo(2, "f").func end Example: addEventHandler("onClientRender", getRootElement(), function () dflash = dflash - 0.1 guiSetAlpha(d[1], dflash) if dflash <= 0 then removeEventHandler("onClientRender", root, getThisFunction()) end end)
  6. Just for the sake of completeness: I suggest you use MTA's matrix functions instead. If you also use getVehicleTurretPosition it would look like this (getVehicleComponentPosition is fine though): bindKey("space", "down", function() local vehicle = localPlayer:getOccupiedVehicle() if not vehicle then return end -- Get vehicle turret angles in radians local rotHorz, rotVert = getVehicleTurretPosition(vehicle) -- Calculate vector from this rotation local turretDirection = Vector3(-math.tan(rotHorz), 1, math.tan(rotVert)) -- Transform vector into world coordinate system local projectileDirection = vehicle.matrix:transformDirection(turretDirection) -- Create projectile createProjectile(localPlayer, 19, vehicle:getPosition() + Vector3(0, 0, 2), 1, nil, 0, 0, 0, projectileDirection) end )
  7. No, that's not possible. If you miss any features, please let us know though.
  8. Hello! Several people asked us to enable user signatures on mobile devices. In response to these feedbacks we replied they were disabled by IPS on purpose to take up less screen space. However, we are not sure about enabling them or leaving them disabled. Therefore, we would like to ask you for your opinion. Pros: More functionality for the mobile version Cons: Takes up more page space which makes forums harder to read on mobile devices. In case you don't want to see signatures at all, you could still disable them entirely in your profile settings (which would disable them on your desktop PC too though). Best Regards, The MTA Team
  9. Jusonex

    Database problem

    You are lacking the MySQL module: https://wiki.multitheftauto.com/wiki/Mysql
  10. Thanks for your feedback! We're currently implementing a plugin that adds wiki links just like phpBB did it. For the meantime (or in general) there is a "MTA Wiki Link" button in the editor though.
  11. The client variable is set based upon the player's (or rather the network packet's) IP. This IP cannot be spoofed easily as a handshake is performed when opening the connection to the server. client is much more secure in contrast to the source variable as the source variable gets passed via triggerServerEvent.
  12. The reason why getSoundMetaTags is slow is that it has to read a piece of the stream to get the desired data. As a fix, you should call getSoundMetaTags only once or, if you need to update it from time to time, use a timer. E.g.: local streamTitle = "" setTimer( function() streamTitle = getSoundMetaTags(sound).streamTitle end, 5000, 1 ) -- Update every 5 seconds addEventHandler("onClientRender", root, function() -- Do whatever you want to do with 'streamTitle' end )
  13. Signatures are hidden on mobile devices by IPS on purpose to keep the screen clear. We will take disabling this feature into consideration though. I don't think that's possible as the theme is fully responsive. Also, I doubt you can use the desktop theme on a phone fluently.
  14. Yes, it was set that way on purpose, due to users abusing the editing right and changing the topic contents after a longer while. If you need to edit your older posts, you can send a PM to moderator with the link to your post and your desired changes.
  15. Jusonex

    [MTA] Compilation

    You have to use VS2013 to be able to compile MTA 1.5.2. VS2015 support is only available on the master branch at the moment.
  16. Looks fantastic! I'm glad to see what people made of the browser functions. You have to inject the mouse events manually as MTA has no information about the way you draw the browser (i.e. it could be drawn into the world in 3D). https://wiki.multitheftauto.com/wiki/In ... rMouseDown https://wiki.multitheftauto.com/wiki/In ... rMouseMove https://wiki.multitheftauto.com/wiki/In ... serMouseUp Internally, both MTA and CEF create a fixed-size texture when calling createBrowser/guiCreateBrowser. That means MTA has to re-create the texture each time you resize the browser which is a comparably expensive operation and would lead to FPS drops if you do it too frequently e.g. in the mouse move event handler. As an alternative, I'd suggest drawing a dummy rectangle that represents the new size and actually resizing once you finish. The only way to resize the browser at the moment is by recreating it. Unfortunately, you'll lose its state then, but you can expect a proper resize function for the next MTA update.
  17. No, the spinner is drawn by MTA when it freezes to give the user a feedback that something happens in the background.
  18. 1. Create a file named debug.txt in C:\Program Files (x86)\MTA San Andreas 1.5 2. Start the game and wait until it freezes. 3. Press left and right CTRL at the same time. 4. The game should crash now and generates a .dmp file at C:\Program Files (x86)\MTA San Andreas 1.5\MTA\dumps\private\ 5. Upload the most recent .dmp file at https://upload.mtasa.com/ and post the link here.
  19. The MTA release cycle does not work like that. A new minor version (1.5.x, 1.6.x etc.) is released to squash a couple of changes together so that updating and requiring new features via min_mta_version works easily. A major version (1.x) by contrast is only released when we have to release it because of incompatible changes (for example at the network layer), because the client's and server's major version must match (that means you cannot join a 1.5.1 server using a 1.6 client, but you can join it with 1.5.2). In conclusion: The next version will be 1.5.3 most likely (which will get released soon probably)
  20. Is Adobe Flash enabled in the settings (Settings -> Tab Browser)?
  21. Jusonex

    MTA WebBrowser

    What parameters do you pass to requestBrowserDomains and what URL do you load then? Does the webbrowser resource work fine? Did it stop popping up after you manually added it to the allow list or have you always been dealing with this issue?
  22. Jusonex

    CEF & Adobe Flash

    CEF doesn't support various codecs e.g. H.264 due to licensing issues so the problem might be that YouTube doesn't provide your video in a suitable codec (this codec is not necessarily the codec you used to encode your video). Regarding Flash: You need Flash for other browsers from https://get.adobe.com/en/flashplayer/ (The flash plugin bundled with Google Chrome doesn't work).
  23. Please download and run MTADiag and post the resulting log here: https://nightly.multitheftauto.com/files/MTADiag.zip
  24. Something like that will never happen. C++ is a programming language that compiles into native code and is not appropriate for embedding it as a scripting language. Via native code you would be able to do everything you want - including installing and distributing malware. There are of course possibilities to sandbox it, but writing such a secure environment (which is most likely still exploitable, see Chrome sandbox) requires much more effort than embedding a C++-like scripting language or even writing a new scripting language that looks similar to C++. Finally, it doesn't make sense at all as C++ is too complicated for small scripting tasks. So each language has its own purpose. And btw: You can do OOP in Lua as well (via sbx320' classlib for example: https://github.com/sbx320/lua_utils)
  25. Something like that will never happen. C++ is a programming language that compiles into native code and is not appropriate for embedding it as a scripting language. Via native code you would be able to do everything you want - including installing and distributing malware. There are of course possibilities to sandbox it, but writing such a secure environment (which is most likely still exploitable, see Chrome sandbox) requires much more effort than embedding a C++-like scripting language or even writing a new scripting language that looks similar to C++. Finally, it doesn't make sense at all as C++ is too complicated for small scripting tasks. So each language has its own purpose. And btw: You can do OOP in Lua as well (via sbx320' classlib for example: https://github.com/sbx320/lua_utils)
×
×
  • Create New...