Как установить мод на foundation
Перейти к содержимому

Как установить мод на foundation

  • автор:

Как установить мод на foundation

Foundation

26 мая. 2019 в 1:37
26 мая. 2019 в 1:55
26 мая. 2019 в 2:03
26 мая. 2019 в 2:23
26 мая. 2019 в 2:28
26 мая. 2019 в 6:19

Welcome to the Foundation Modding Wiki

Modding capabilities are very embryonic. Expect a lot of improvement and changes in the future.

This documentation is a draft with a few guidelines, it will evolve gradually with the development of modding features.

More info on:

Where do I start?

The mod.json file

The json file is loaded early and give basic information on your mod, without having to load your LUA scripts.

In addition, this file contains the list of your mod's custom maps and their info, if any.

metadata folder

For files that don't need to be loaded, you can add those files to a metadata folder at the root of your mod. This can be used for example to contain the map thumbnail images listed in the mod.json file.

The mod.lua script

First, you have to create your new mod instance:

You can then include other script, declare new assets, override existing assets, etc…

Including other LUA files

mod.lua is the only script file from your mod that will be automatically loaded.

In order to include another LUA file, you can call the dofile function on your mod:

This will execute the script anotherscript.lua from your mod folder. This will also pass the mod variable myMod to the script. So you will be able to access myMod from anotherscript.lua this way:

In addition, you can pass any number of variable to the called script:

Enabling / Disabling a mod

You can enable / disable mods from the Mods menu.

Be aware that even when a mod is disabled, most of the mod assets are loaded anyway, but are not active.

If you want to fully ignore a mod, you can either remove it from your mods folder, or rename the mod.lua file into something else ( mod_.lua for instance).

Logging / Debugging

You can log your own logs into foundation log file:

In order to isolate mods related logs, Foundation will log most of mod related information in a specific log file located in Documents/Polymorph Games/Foundation/mod-%NAME%.log

However, keep in mind that a mod can interact with the game in various indirect way, and some valuable information could still be hidden in the global game log in Documents/Polymorph Games/Foundation/foundation.log .

Message box

You can also open a blocking message box for debugging purpose. This function is recommended for mod development only.

For this function to work, the user must manually set the field ModMsgBoxEnabled to true in the user settings file ( usersetting.config ). Otherwise, it will only create a new log entry, like the log function.

What is this generated_ids.lua file?

Internally, Foundation uses random unique IDs (GUID) to identify most objects and resources. When a new asset is added to the mod, Foundation will create a new ID for it, and will store the association between the “modding name” and the ID of the asset.

The generated_ids.lua file is where the association is stored. When you distribute your mod, it's important to distribute this file too. It will ensure that all your assets have the same ID from one player's computer to another, hence allowing them to share a save-game for instance.

Sharing a mod

Modders are encouraged to use mod.io to share their mods. Mods shared this way can be found and downloaded from the in-game mod browser.

You'll have to upload a zip of your mod. Make sure the zip contains directly the mod files ( mod.lua needs to be at the root of the zip).

Quickly reload mods

When developing and testing a mod, you can quickly reload your game by pressing Ctrl + Shift + R .

Как установить мод на foundation

B эτοй τeмe пyблиκyюτcя τοльκο моды авторов, те которые пилот лично писал для X4: Foundations. Ecли y вac жeлaниe οбcyждaτь тот или иной мод, вы можете создать тему в разделе — «Общий раздел по модам» или создать тему для обсуждения конкретного мода..

Шаблон формы добавления мода

[c][b]TradeStart — Unlocked Trader Start[/b][/c]

[b][color=green]Название:[/color] TradeStart — Unlocked Trader Start[/b]
[b][color=green]Версия мода:[/color][/b] [color=#ff0000]1.0[/color]
[b][color=green]Автор:[/color][/b] [b][color=#0000ff]the ginga ninja[/color][/b]
[b][color=green]Мин. требования:[/color][/b] [color=#ff0000]любая[/color]

[b][color=green]Установка:[/color][/b] распаковать архив в папку игры, [color=#0000ff]’extensions’[/color] или подписаться на мод на его странице в Мастерской СТИМ (если играете через СТИМ).
[b][color=green]Удаление:[/color][/b] Отписаться от мода и обновлений через Мастерскую СТИМ в меню дополнений, после чего удалить папку с модом. На сейвы не влияет.

Устраняет требования достижения для открытия старта [b]Торговец[/b].

[b]Страница мода в Мастерской Steam \ Егофорум \ Nexus

[url=https://yadi.sk/d/VcdjqKStkUIo7w]TradeStart — Unlocked Trader Start[/url] — 1.0[/b]

Для обновления мода, необходимо:
1) Отредактировать свое старое сообщение
2) Добавить историю версии, где должны быть описаны изменения в сравнении со старой версией.

Установка — папку с модом поместить в Steam\steamapps\common\X4 Foundations\extensions , или в папку игры где она установлена. Если такой папки нет, то создать. Зайдя в игру проверить в главном меню пункт Дополнения, должно появиться название мода и стоять вкл.

Для GOG версии игры , путь установки модов — X4 Foundations/extensions

2) Мод устанавливается путем замены, удаляем старый , копируем новый, если в описании не указано иного.

  • При использовании модов, делайте бэкап сохранений, если вы сохранились с модом, то без мода сохранение уже не загрузиться. Для загрузки сохранения , можно удалить ссылку на мод с него , но нет гарантии , что в сохранении не прописаны данные которые потом будут создавать ошибки в игре.
  • Так же моды могут друг с другом конфликтовать

Запрещены ссылки на буржуйские платные обменники. Используйте Яндекс Диск или подобные , с продолжительной жизнью файлов. . Но проще, на яндексе , себе места 10 ГБ оторвать для законных нужд )).

ПОМНИТЕ: ЕСЛИ МОДЫ АДАПТИРОВАНЫ ДЛЯ ПОСЛЕДНЕЙ ВЕРСИИ ИГРЫ, ЭТО НЕ ЗНАЧИТ, ЧТО ВЫ МОЖЕТЕ НА НИХ НАКИНУТЬСЯ И ВСЕ УСТАНОВИТЬ. МОДЫ МОГУТ БЫТЬ НЕ СОВМЕСТИМЫ ДРУГ С ДРУГОМ. ТАК ЧТО БУДЬТЕ ВНИМАТЕЛЬНЫ ПРИ ИСПОЛЬЗОВАНИИ МОДОВ.

ПРОВЕРИТЬ ОШИБКИ И КОНФЛИКТЫ МОЖНО В LOG ФАЙЛЕ : c:\Users\****\Documents\Egosoft\X4\debuglog.txt

Что значит, в описании мода, 2.00+, 4.00+, 4.30+

Это означает, что мод работает с версией 2.00 либо с версии 4.00 или 4.30 и выше, если не указано иного.

Как установить мод на foundation

Reddit and its partners use cookies and similar technologies to provide you with a better experience.

By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising.

By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform.

For more information, please see our Cookie Notice and our Privacy Policy .

Get the Reddit app

X4: FOUNDATIONS, the long awaited sequel in the long running X series brings our most sophisticated universe SIMULATION ever. Manage an empire or EXPLORE space in first person. Fly every ship, TRADE and FIGHT to BUILD your empire with modular station construction and THINK carefully when embarking on an epic journey. X4 Manual: https://www.egosoft.com:8444/confluence/display/X4WIKI/X4%3A+Foundations+Manual X4 Wiki: https://www.egosoft.com:8444/confluence/display/X4WIKI/X4+Wiki+Home

I am a GoG player (I have some Steam games but mostly GoG) and saw that there were no instructions for GoG owners on how to access the fantastic mods that are only available via Steam Workshop

INSTRUCTIONS BELOW

Enter URL for Steam Workshop mod here:

2. Download file. It will be a .dat file. Rename with "extensions_" at the beginning

Download xrwsunpack-v1.0.0.zip and extract using winrar or 7zip

Take renamed .dat file (extensions_(Modname).dat) from Steam Workshop and drag file onto xrwsunpack.exe file

It will create a folder that you put in your Documents\Egosoft\X4(some number)\extensions folder (If a extensions folder is not there, create one)

Now when you start your GoG version of X4 or X Rebirth and look under extensions your mod will be there. Click on it to be sure its enabled and your all set, done!

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *