Is there a list of macro files attributes mean?

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

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

xyq565861
Posts: 3
Joined: Sat, 1. Dec 18, 03:41
x4

Is there a list of macro files attributes mean?

Post by xyq565861 »

In xml, some attributes is clear, like "recharge" in shield macros.
but some are obscure,like "timediff" in bullet macro .
And some attributes I thought I understood, but when I modified it nothing happened, like "angular" in thruster macro .
so,Is there a list of macro files attributes mean ? :?

I had found some of them in viewtopic.php?t=412387 but not all of them. I still don't understand what "angular" does in thruster macro. :cry:
asgardschosen
Posts: 6
Joined: Mon, 2. Dec 13, 03:03
x4

Re: Is there a list of macro files attributes mean?

Post by asgardschosen »

I've been having similar issues trying to decipher some of the attributes.

My Best Guess is the Angular in thruster is the maximum degrees of travel you can make within a certain amount of time. You'll notice it doesn't have a strafe or yaw attribute, only roll and pitch. That leads me to believe it's angular thrust or maximum angular thrust. Sorry if I can't be much more help.

What I'm trying to figure out is exactly where I can find more information on this (taken from defaults.xml):

Code: Select all

<identification type="shiptypes_s">
or

Code: Select all

<identification type="shiptypes_m">
I have it in the defaults.xml when they're declaring the classes "ship_s", "ship_m", etc.. I'm trying to create my own ship classes, but I don't know if I need to create a new identification type for my classes, what it would do, or where I would do it!

One thing I found, though I wasn't able to get it to work, is in the unpacked catalogs there's a scriptproperties.html that you can open up. It uses a deprecated function which is automatically blocked by all the browsers I tried it on because of cross-origin requests, but maybe you can get it to work. It seemed to imply it could help us find references to attributes. It's in the root folder where you unpacked the catalogs.
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Is there a list of macro files attributes mean?

Post by DeadAirRT »

asgardschosen wrote: Wed, 6. Apr 22, 19:03 I've been having similar issues trying to decipher some of the attributes.

My Best Guess is the Angular in thruster is the maximum degrees of travel you can make within a certain amount of time. You'll notice it doesn't have a strafe or yaw attribute, only roll and pitch. That leads me to believe it's angular thrust or maximum angular thrust. Sorry if I can't be much more help.

What I'm trying to figure out is exactly where I can find more information on this (taken from defaults.xml):

Code: Select all

<identification type="shiptypes_s">
or

Code: Select all

<identification type="shiptypes_m">
I have it in the defaults.xml when they're declaring the classes "ship_s", "ship_m", etc.. I'm trying to create my own ship classes, but I don't know if I need to create a new identification type for my classes, what it would do, or where I would do it!

One thing I found, though I wasn't able to get it to work, is in the unpacked catalogs there's a scriptproperties.html that you can open up. It uses a deprecated function which is automatically blocked by all the browsers I tried it on because of cross-origin requests, but maybe you can get it to work. It seemed to imply it could help us find references to attributes. It's in the root folder where you unpacked the catalogs.
A lot of stuff has to fit into hard coded categories or the engine just seems to throw tons of errors. The ui stuff especially hates non standard stuff.
asgardschosen
Posts: 6
Joined: Mon, 2. Dec 13, 03:03
x4

Re: Is there a list of macro files attributes mean?

Post by asgardschosen »

Oh, so the identification type is UI? That's great, I don't need to worry about it. I had no freaking clue what it was haha. Thanks!
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Is there a list of macro files attributes mean?

Post by DeadAirRT »

xyq565861 wrote: Tue, 5. Apr 22, 22:18 In xml, some attributes is clear, like "recharge" in shield macros.
but some are obscure,like "timediff" in bullet macro .
And some attributes I thought I understood, but when I modified it nothing happened, like "angular" in thruster macro .
so,Is there a list of macro files attributes mean ? :?

I had found some of them in viewtopic.php?t=412387 but not all of them. I still don't understand what "angular" does in thruster macro. :cry:
A lot of it is guess and check. The documentation is pretty lack luster in areas.
asgardschosen
Posts: 6
Joined: Mon, 2. Dec 13, 03:03
x4

Re: Is there a list of macro files attributes mean?

Post by asgardschosen »

Okay, I found you a list of attributes. Well, more accurately, I found someone else that figured out how to identify attributes.

You'll need to follow the directions in this link to turn off cross origin policy, but then you just open: scriptproperties.html in whichever browser you turned the policy off in (I'd recommend Firefox for this, as I know it works). You'll find scriptproperties.html in the root folder you unpacked your catalogs to ( e.g. C:\SteamLibrary\steamapps\common\X4 Foundations\unpackedCatalogs\scriptproperties.html ).

Directions to turn off CORS policy:
https://testingfreak.com/how-to-fix-cro ... me-and-ie/

Info and link taken from:
viewtopic.php?f=181&t=432098
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Is there a list of macro files attributes mean?

Post by DeadAirRT »

asgardschosen wrote: Sun, 10. Apr 22, 05:25 Okay, I found you a list of attributes. Well, more accurately, I found someone else that figured out how to identify attributes.

You'll need to follow the directions in this link to turn off cross origin policy, but then you just open: scriptproperties.html in whichever browser you turned the policy off in (I'd recommend Firefox for this, as I know it works). You'll find scriptproperties.html in the root folder you unpacked your catalogs to ( e.g. C:\SteamLibrary\steamapps\common\X4 Foundations\unpackedCatalogs\scriptproperties.html ).

Directions to turn off CORS policy:
https://testingfreak.com/how-to-fix-cro ... me-and-ie/

Info and link taken from:
viewtopic.php?f=181&t=432098
Script properties isn't applicable to what he is asking. It helps with scripting but not with macro files.

Return to “X4: Foundations - Scripts and Modding”