Help me change weapon graphic effects

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

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

Post Reply
aza502
Posts: 18
Joined: Mon, 28. Aug 17, 09:11
x4

Help me change weapon graphic effects

Post by aza502 » Tue, 23. Aug 22, 12:24

So i really want to adjust the flak bullet effects to make them less bright and smaller. I've been looking through tutorials but i don't even know where to start. is it as simple as editing an XML file or will i have to learn how to create my own graphic effects through blendr etc

Any guidance will be appreciated
Last edited by aza502 on Thu, 25. Aug 22, 16:00, edited 1 time in total.

linolafett
EGOSOFT
EGOSOFT
Posts: 3363
Joined: Mon, 26. Mar 12, 14:57
x4

Re: Help me change weapon graphic effects

Post by linolafett » Tue, 23. Aug 22, 13:17

Hey,

I would suggest to take a look at the bullets xml file first.
"\\assets\fx\weaponFx\bullet_gen_m_flak_01_mk1.xml"
In there you will find the "part_bullet" which has "materials" node.
Two materials are listed:
<material id="1" ref="effects.bullets_fx_master"/>
<material id="2" ref="p1xenon.xen_engine_trim"/>

You can then browse to the "material_library.xml" and browse to these materials.
Either you edit their glowStr (glow shrength) parameter directly (this will affect then all bullets, probably bad) or create duplicate material entries (just copy/paste the entire material node and rename them to sth like "bullets_fx_master_2").
Then edit the used material in the bullets.xml to refer to your new material.

That should be ways to make it less bright.

Scale might be editable via the "size" node in the bullets xml file. For the "part_main" change the values in the "size" node.
This might help a bit, though we do some shader scaling on the bullets, that they are more visible in the distance.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

aza502
Posts: 18
Joined: Mon, 28. Aug 17, 09:11
x4

Re: Help me change weapon graphic effects

Post by aza502 » Tue, 23. Aug 22, 13:42

linolafett wrote:
Tue, 23. Aug 22, 13:17
Hey,

I would suggest to take a look at the bullets xml file first.
"\\assets\fx\weaponFx\bullet_gen_m_flak_01_mk1.xml"
In there you will find the "part_bullet" which has "materials" node.
Two materials are listed:
<material id="1" ref="effects.bullets_fx_master"/>
<material id="2" ref="p1xenon.xen_engine_trim"/>

You can then browse to the "material_library.xml" and browse to these materials.
Either you edit their glowStr (glow shrength) parameter directly (this will affect then all bullets, probably bad) or create duplicate material entries (just copy/paste the entire material node and rename them to sth like "bullets_fx_master_2").
Then edit the used material in the bullets.xml to refer to your new material.

That should be ways to make it less bright.

Scale might be editable via the "size" node in the bullets xml file. For the "part_main" change the values in the "size" node.
This might help a bit, though we do some shader scaling on the bullets, that they are more visible in the distance.
thanks for the help, i see in the flak bullets xml file there's a "light" portion where you can adjust the RGB colour setting and i notice an "intensity" part as well which is set to "1" if i set it to "0.25" would that change anything? i've still yet to figure out how to turn what i change into it's own mod so im a ways off yet by the looks of things :(

linolafett
EGOSOFT
EGOSOFT
Posts: 3363
Joined: Mon, 26. Mar 12, 14:57
x4

Re: Help me change weapon graphic effects

Post by linolafett » Tue, 23. Aug 22, 13:51

The "light" in that xml is really just a point light source.
This will illuminate nearby geometry, but is not causing the self emission of the bullet. You cant see point light sources directly, only the reflected light of them.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

aza502
Posts: 18
Joined: Mon, 28. Aug 17, 09:11
x4

Re: Help me change weapon graphic effects

Post by aza502 » Tue, 23. Aug 22, 13:56

linolafett wrote:
Tue, 23. Aug 22, 13:51
The "light" in that xml is really just a point light source.
This will illuminate nearby geometry, but is not causing the self emission of the bullet. You cant see point light sources directly, only the reflected light of them.
ohhhh i see, that's good to know

aza502
Posts: 18
Joined: Mon, 28. Aug 17, 09:11
x4

Re: Help me change weapon graphic effects

Post by aza502 » Tue, 23. Aug 22, 14:49

I've had to give up unfortunately. just too complicated for me, i've managed to edit the neccesary files but i dont know how to make it into an extension to over write/change original files :(

linolafett
EGOSOFT
EGOSOFT
Posts: 3363
Joined: Mon, 26. Mar 12, 14:57
x4

Re: Help me change weapon graphic effects

Post by linolafett » Tue, 23. Aug 22, 15:23

Maybe have a look at a small other extension, which did something similar.
I cant help you there for that bit of the implementation.
Maybe some one else is able to hint you towards the solution. I think there is also a rather active discord channel in which there is a modding area. Maybe try your luck there for some "real time" help.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

Post Reply

Return to “X4: Foundations - Scripts and Modding”