Jusonex

Administrators
  • Content count

    473
  • Joined

  • Last visited

  • Days Won

    5

Jusonex last won the day on December 17 2016

Jusonex had the most liked content!

Community Reputation

94 Popular

About Jusonex

  • Rank
    Godfather (The MTA Team)

Recent Profile Visitors

3,174 profile views
  1. 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
  2. VehicleExhaustPosition

    getVehicleComponents + setVehicleComponentPosition with exhaust_ok should do the trick.
  3. 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?
  4. 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.
  5. Official MTA Discord server

    https://forum.mtasa.com/topic/95008-multi-theft-autos-official-discord-server/
  6. 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
  7. [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?
  8. crash

    It's caused by mods (especially skin mods) and broken audio files. Please reinstall GTA:SA without mods.
  9. 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.
  10. [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).
  11. [Scripting] Changing the programming language.

    It was stopped, because it didn't perform significantly better than without JIT. As far as I recall it's related to the context switches between Lua and C++ being too expensive. @Topic: I've recently stumbled upon a language called Haxe. It's a statically typed language that compiles to other (well-known) languages - including Lua where it's syntax is pretty similar to Java. I also did a few experiments which work quite well: https://github.com/Jusonex/haxe-mtasa-typings/blob/master/Main.hx
  12. Register problems

    The /register command is provided by the admin resource. So if you want to use it, make sure it is started (via /start admin). Alternatively, you could use the addaccount <username> <password> command in the server console (requires admin permissions).
  13. Modules

    Instead of having per server extensions, we'd like to integrate new features for all of our users. So, please submit your code extensions as pull requests on GitHub and if the quality is good enough, we'll be happy to merge it.
  14. Problem with Youtube in MTA

    Can you provide the resource that allows us to reproduce the problem?
  15. Server Error

    Some dependencies might be missing. Could you take and post a screenshot of the whole folder? (+ one of C:\Program Files (x86)\MTA San Andreas 1.5\server\). Apart from that have you already tried reinstalling MTA?