• Content count

  • Joined

  • Last visited

  • Days Won


Jusonex last won the day on December 17 2016

Jusonex had the most liked content!

Community Reputation

96 Popular

About Jusonex

  • Rank
    Godfather (The MTA Team)

Recent Profile Visitors

3,567 profile views
  1. premake5.lua invalide escape sequence

    You probably forgot executing win-install-data.bat as well. You can find a compile guide here: https://github.com/multitheftauto/mtasa-blue#windows
  2. 100% usage no matter how many cores

    Well, depends a bit on the CPU architecture, but most likely, yes (assuming there are not too many other services running on the VPS).
  3. 100% usage no matter how many cores

    MTA doesn't benefit much from increasing the number of CPU cores, because the main logic is executed on a single thread, so can effectively use only one core (ignoring the fact that a small part of the network code runs on a secondary thread). To improve the performance, there are several things you can do: Investigate what's causing the problems. It's not unlikely that it's caused by the gamemode, so start the performancebrowser resource and check if there're any major peaks Ensure your VPS has a dedicated (not shared) CPU to be able to use all resources. Also, (especially older) Intel CPUs have a better single-thread performance than AMD CPUs (I know, it got better with Ryzen, but most hosters still use older CPUs) Setup an external HTTP server to reduce the load caused by the integrated HTTP server
  4. MTA SA Translation

    As a regular user, you can only create suggestions which have to be approved by someone with more permissions. Therefore: What's your account name and is it correct that you want to translate Indonesian?
  5. How do i get MTA SA without GTA?

    Unfortunately, that's not possible.
  6. Could Not Create Direct3D font "tahomabd" ?

    Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you
  7. VehicleExhaustPosition

    getVehicleComponents + setVehicleComponentPosition with exhaust_ok should do the trick.
  8. Unfortunately, it's not possible to install MTA without admin rights, because some MTA components require admin rights at least once. Can't you reinstall Windows entirely?
  9. What is the password for the "Console" account!

    The "Console" account is a special account type that cannot have a password. What are you trying to do? Normally, creating a new account would be the way to go.
  10. Official MTA Discord server

  11. dxRotateTexture and dxScaleTexture

    You can already do that with render targets, i.e.: Create the render target with suitable dimensions Call dxSetRenderTarget(renderTarget) Draw the texture once using dxDrawImage (+ scale/rotate) Reset the render target: dxSetRenderTarget(nil) The resulting render target is your scaled/rotated texture
  12. [Question] Script size

    In terms of performance, it probably doesn't matter in your case. It also depends on how the script files access shared variables (e.g. global variables are much slower than local/upvalue variables) - but that's nothing you'd care about with a 700 lines script. Instead, the question should be: Does splitting it up simplify it and improve readability?
  13. crash

    It's caused by mods (especially skin mods) and broken audio files. Please reinstall GTA:SA without mods.
  14. Execute shell command on MTA Server

    Doing it with Batch might be possible, but will be very ugly. I suggest you use PowerShell or a scripting language (e.g. Python or Go) for that purpose. To do that, you've to redirect the standard input (stdin) so you can write input programmatically. This is how it could be done with PowerShell: # Set MTA server path $mtaPath = "D:\\Program Files (x86)\\MTA San Andreas 1.5\\server"; # Prepare start options $psi = New-Object System.Diagnostics.ProcessStartInfo; $psi.WorkingDirectory = $mtaPath; $psi.FileName = $mtaPath + "\\MTA Server.exe"; $psi.Arguments = "-n -t -u" $psi.UseShellExecute = $false; $psi.RedirectStandardInput = $true; # Start process and wait 30s till it is fully up $process = [System.Diagnostics.Process]::Start($psi); Start-Sleep -s 30; # Execute command $process.StandardInput.WriteLine("help"); After the process has been started, you can write anything you want to the console (as long as it's done in the PowerShell script). If you want to attach to a running process, it'll get a little more complicated as you'd probably have to utilise IPC methods (for an example, see: https://rkeithhill.wordpress.com/2014/11/01/windows-powershell-and-named-pipes/). Alternatively, you could take a look at https://github.com/Jusonex/mtasa-deployment-tools/tree/master/Workerunit This little Go app provides an HTTP-based API to control the MTA server (start/stop/inject commands). You could then use curl/PowerShell's Invoke-WebRequest to execute commands from a batch script. Let me know if you need more information on that.
  15. [Scripting] Changing the programming language.

    It's too big to be integrated in MTA directly for the few people that will actually use it. Also, there are plenty of good build tools that can be used to automate the process (e.g. recompile automatically on changes) since Haxe compiles to plain Lua that works without any code modification. If there's more interest on that, I could provide an example pipeline. First, someone has to complete the type definitions though (see https://github.com/Jusonex/haxe-mtasa-typings/blob/master/mtasa/server/Element.hx for an example - it refers MTA's OOP methods).