Ship Weapons not in Macro.xml????

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

u571x15
Posts: 17
Joined: Fri, 28. Feb 14, 11:00
x4

Ship Weapons not in Macro.xml????

Post by u571x15 »

So basing on the memory of the Rebirth, you can edit ships from the macro file...especially the weapon placement/catagory.....etc
Today I took a look over some destoryer macros and....everything normal but no weapons info??!!
Was thinking they may be put in seperate module parts? Or is it beacuse the the new ship building system that move it somewhere?
I'm sure they still excist somewhere....anyone have an idea?
alistair3149
Posts: 21
Joined: Fri, 10. Oct 14, 07:03
x4

Re: Ship Weapons not in Macro.xml????

Post by alistair3149 »

It is there in index/macros.xml
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2200
Joined: Mon, 23. Nov 15, 18:02

Re: Ship Weapons not in Macro.xml????

Post by j.harshaw »

Hi,

weapons aren't specified in most ship macros because most ships now use variable loadouts. It is, however, possible to specify a default loadout if you want a particular ship to always have the same subcomponents. See Xenon and Kha'ak ship macros for examples. It is also possible to specify a specific loadout for particular ships that you create by making an entry in loadouts.xml and specifying that loadout when creating a ship. See loadouts.xml and Setup_Gamestarts.xml for examples. Be aware, however, that loadouts specified in loadouts.xml are usually specific to a particular ship model.
alistair3149
Posts: 21
Joined: Fri, 10. Oct 14, 07:03
x4

Re: Ship Weapons not in Macro.xml????

Post by alistair3149 »

j.harshaw wrote: Sat, 8. Dec 18, 15:53 Hi,

weapons aren't specified in most ship macros because most ships now use variable loadouts. It is, however, possible to specify a default loadout if you want a particular ship to always have the same subcomponents. See Xenon and Kha'ak ship macros for examples. It is also possible to specify a specific loadout for particular ships that you create by making an entry in loadouts.xml and specifying that loadout when creating a ship. See loadouts.xml and Setup_Gamestarts.xml for examples. Be aware, however, that loadouts specified in loadouts.xml are usually specific to a particular ship model.
Is there anywhere that I can look up for the syntax used within the loadout tags? I have digged through the file but I can't find a way to specify what drones to be added to the ship.
Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: Ship Weapons not in Macro.xml????

Post by Max Bain »

Is it possible to forbid specific shipt to mount specific weapons?
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Return to “X4: Foundations - Scripts and Modding”