RU/Compiling MTASA
Для того чтобы успешно построить Multi Theft Auto из исходного кода, необходимо выполнить ряд шагов, которые мы объясним ниже.
Пожалуйста, внимательно прочитайте инструкцию и не пропускайте ее части, если у вас нет опыта.
Contents
Начало работы
Компиляция клиента Multi Theft Auto поддерживается только в Windows 10.
Убедитесь что у вас установлено следующее программное обеспечение и SDK:
Visual Studio 2019
- Скачайте Microsoft Visual Studio 2019 — убедитесь, что вы получаете «Community Edition», который является бесплатным.
- В контрольном списке установки, убедитесь, что вы отметили эти два пункта:
- Разработка классических приложений на C++
- MFC-библиотека C++ для новейшей версии Build Tools v142 (x86 и x64)
Если вы не включите MFC библиотеку, то получите следующую ошибку: cannot open include file ‘afxres.h’ .
Если вы допустили ошибку, то вы можете запустить установщик Visual Studio заново для изменения текущей программы. Нет необходимости удалять и переустанавливать программу.
Microsoft DirectX SDK

Скачайте Microsoft DirectX SDK (August 2009) (DXSDK_Aug09.exe):
Примечание: перезагрузите компьютер после установки Microsoft DirectX SDK, так как в противном случае переменная окружения DXSDK_DIR еще не будет доступна. После его перезапуска повторно запустите create-projects.bat
Git Клиент
Если вы хотите внести свой вклад в MTA, вам следует установить Git Клиент. Это позволит вам сотрудничать с нами, создавая собственные ветвления, которые вы сможете использовать в своей работе. Если вам не нравится командная строка, мы рекомендуем вам скачать и установить это: GitHub Desktop.
Если вы хотите только скомпилировать исходный код и не заинтересованы в участии в MTA, вы можете загрузить исходный код напрямую (см. ниже).
Получение последнего исходного кода
Чтобы получить последний код, вам нужно будет загрузить последнюю копию нашего Git репозитория.
Мы рекомендуем клонировать репозиторий в вашем Git клиенте, потому что вы можете легко извлекать оттуда любые обновления.- Репозиторий:multitheftauto/mtasa-blue
- .zip:master.zip
- .tar.gz:master.tar.gz
Компиляция кода
- Выполните скрипт win-create-projects.bat
- Откройте файл MTASA.sln в Build директории
- Если вам предложат обновить клиент, нажмите Cancel
- Выполните компиляцию в Visual Studio с помощью Debug конфигурации (это может заняться несколько минут)
- Выполните скрипт win-install-data.bat
Запуск ПО
Запуск клиента
Вы можете запустить свой клиент в Bin каталоге. Вы можете найти там Multi Theft Auto.exe и/или Multi Theft Auto_d.exe. Суффикс _d указывает на отладочную сборку программного обеспечения.
Кроме того, вы также можете запустить свой клиент внутри отладчика Visual Studio, если хотите исследовать трассировку стека или установить точки остановки в интересных областях кода (Подробнее читайте в разделе «Отладка» ниже).Запуск выделенного сервера
Если вы уже выполнили шаг 5 (Установка ресурсов) в пункте Компиляция кода, то вы можете перейти к пункту Запуск сервера
Установка последних ресурсов
Если вы хотите запустить выделенный сервер Multi Theft Auto, то вам придется установить все необходимые ресурсы. Они нужны, потому что они реализуют самые основные функции (спавн игроков, например).
Наш оффициальный репозиторий, откуда вы можете скачать все ресурсы находится на GitHub. Вы также можете скачать все последние ресурсы в ZIP формате. Убедитесь, что у вас есть все необходимые ресурсы для продолжения.
Как сделать свой лаунчер мта
- Скачайте Microsoft Visual Studio 2019 — убедитесь, что вы получаете «Community Edition», который является бесплатным.
- В контрольном списке установки, убедитесь, что вы отметили эти два пункта:
- Разработка классических приложений на C++
- MFC-библиотека C++ для новейшей версии Build Tools v142 (x86 и x64)
Microsoft DirectX SDK

- Репозиторий:multitheftauto/mtasa-blue
- .zip:master.zip
- .tar.gz:master.tar.gz
- Выполните скрипт win-create-projects.bat
- Откройте файл MTASA.sln в Build директории
- Если вам предложат обновить клиент, нажмите Cancel
- Выполните компиляцию в Visual Studio с помощью Debug конфигурации (это может заняться несколько минут)
- Выполните скрипт win-install-data.bat


Дерзайте


Алексей Иванов

Как сделать свой лаунчер мта
In order to successfully build Multi Theft Auto from source, it is necessary to perform a number of steps, which we will explain below.
Please read the instructions carefully and do not skip parts of it, if you have no experience.
Contents
Prerequisites
Compiling the Multi Theft Auto client is only supported on Windows 10.
Make sure you have the following software and SDKs installed:
Visual Studio 2019
If you’ve made a mistake, you can run the Visual Studio Installer app to modify your current installation. There is no need to uninstall and reinstall.
Microsoft DirectX SDK

Download Microsoft DirectX SDK (August 2009) (DXSDK_Aug09.exe):
NOTE: Restart your computer after installing Microsoft DirectX SDK, because otherwise the environment variable DXSDK_DIR won’t be available yet. After restarting it re-run create-projects.bat
Cant find d3dx9.h
Add the $(DXSDK_DIR)Include; to the VC++ Directories in DirectX9GuiRenderer, GUI and Client Core projects. You can find the VC++ Directories list by selecting a project, then pressing the shortcut ALT + ENTER (without the +), then under the ‘Configuration properties’ you can find ‘VC++ Directories’, and in there you can find the ‘Include Directories’ field, click on it and add ;$(DXSDK_DIR)Include; at the end of it. Note: You need to do the same thing in Release mode as wellCant find d3dx9.lib
Do do same as in the error above, but instead of ;$(DXSDK_DIR)Include; you must add ;$(DXSDK_DIR)Lib/x86; to the Library directories field Note: You need to do the same thing in Release mode as wellGit Client
If you would like to contribute to MTA, you should install Git. This will allow you to collaborate with us by creating branches and pushing to your own fork. If you are not comfortable with the command line, we recommend you to download and install GitHub Desktop.
If you only want to compile the source code and are not interested in contributing to MTA, you can download the source directly (see below).
Getting the latest source code
To get the latest code, you will have to download the latest copy of our Git repository.
We recommend cloning the repository in your Git client because you can pull any updates from there easily.Compiling the code
Running the software
Running the client
You can start your client in the Bin directory. You might find there a Multi Theft Auto.exe and/or Multi Theft Auto_d.exe executable. The _d suffix indicates a debug build of the software.
Furthermore, you can also run your client inside the debugger from Visual Studio if you want to investigate a stack trace or set breakpoints in interesting code regions (read more in the section Debugging below).Running the dedicated server
If you already have run step 5 (Install resources) in Compiling the code to install resources then you can go to Starting the server.
Installing the latest resources
If you want to run the Multi Theft Auto dedicated server, you will have to install the required resources. These are required because they implement the most basic functionality (e.g. spawning players) in order to play.
Our official resources repository is hosted on GitHub. You can download the latest resources from there or download a zipped version. Make sure that you have the latest resources package.
Starting the server
To run the server, open the MTA Server.exe executable in the Bin/server directory. The _d suffix indicates a debug build of the software.
You can also run the debug build MTA Server_d.exe with the Visual Studio Debugger (as of writing, you can do that by right-clicking on the Server’s Launcher project and selecting Start a local instance in the Debugger menu), but you can also attach to a running debug build MTA server (see more in the section Debugging below).Debugging
If you already compiled the code in the Debug configuration then continue reading, if not, then go up to Compiling the code and follow the steps for a Debug build.
You can either launch MTA yourself and attach any debugger you want to use (also applies to the Visual Studio debugger) or you start a local debugging session in Visual Studio.How to enable breakpoints
Extending timeout duration
When you use breakpoints during debugging, you may get kicked by the server due to timeout, because the client is frozen. To prevent this, create the timeout.longtime file in your Bin/server/ directory. The content of the file is the new timeout duration in seconds, so make sure you type a huge number in there. If you keep the file empty, the timeout will be set to 120 seconds.
ReAttach for Visual Studio
You can use ReAttach to re-attach the debugger to the gta_sa.exe executable whenever you start your local debugger in Visual Studio.
Как сделать свой лаунчер мта

Команда Проекта
Был(a) в сети 33 минуты назад
Команда Проекта
Был(a) в сети 13 часов назад
Нашли ошибку?
Вы можете сообщить об этом администрации.
Выделив текст нажмите CTRL+EnterИнструкция создания лаунчера
Загруженные изображения
инструкция создания лаунчера для мта
- Zenitsu
- Прочее MTA / FAQ ПО МТА
- 2022-07-03
- 3 363
- Автор — Vandamov

Фикс Круиза NEXTRP

Продаю фикс круиза

hud next rp
Чтобы скачать этот файл зарегистрируйтесь и/или войдите на сайт используя форму сверху.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
- Соглашение
- Конфиденциальность
- Обратная связь
- Условия Возврата/Невозврата Средств.
Рекомендуем использовать социальные сети для быстрой регистрации и авторизации