[Question] Retexture turrets

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

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

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

[Question] Retexture turrets

Post by heifi » Thu, 28. Apr 22, 20:47

I really like the geometry of split turrets.The only downside is that the red color of the base does not fit to a lot of paintjobs. That's the reason why I tried to recolor them. A grey or black color would be more neutral.

I searched the games files and found in the folders below \assets\props\WeaponSystems a few entries for split turrets where the split textures are mentioned. I replaced the textures with a generic hulltexture on a lot of assets. Unfortunatly I cannot see any change in game.

So my questions are: Am I even at the right files? Would it even work to recolor the turrets in these files? Or am I doing something wrong with the replacement? I simply made a mod where the folder structure is the same as in the original .dat file.

User avatar
Axeface
Posts: 2942
Joined: Fri, 18. Nov 05, 00:41
x4

Re: [Question] Retexture turrets

Post by Axeface » Thu, 28. Apr 22, 20:59

Try naming your archive subst_01.cat/dat instead. That instructs the game to use the files inside as replacers of base game files.

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Thu, 28. Apr 22, 21:46

Ah thanks a lot, that hint did help!

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: [Question] Retexture turrets

Post by |K.O.S.H. » Fri, 29. Apr 22, 09:37

can you pulish this please?
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

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

Re: [Question] Retexture turrets

Post by linolafett » Fri, 29. Apr 22, 09:39

The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

DeadAirRT
Posts: 1021
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [Question] Retexture turrets

Post by DeadAirRT » Fri, 29. Apr 22, 14:11

linolafett wrote:
Fri, 29. Apr 22, 09:39
The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
Sorry to highjack, are beam colors via vertex as well? They looked blue when i checked in blender. Maybe a hue shift is in play or i am going senile?

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

Re: [Question] Retexture turrets

Post by linolafett » Fri, 29. Apr 22, 15:25

Depends on which effect exactly, the normal beam bullets (e.g. mining) are also coloured via vertex colours, yes.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

DeadAirRT
Posts: 1021
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [Question] Retexture turrets

Post by DeadAirRT » Fri, 29. Apr 22, 16:31

linolafett wrote:
Fri, 29. Apr 22, 15:25
Depends on which effect exactly, the normal beam bullets (e.g. mining) are also coloured via vertex colours, yes.
Tyvm

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Sat, 30. Apr 22, 08:28

linolafett wrote:
Fri, 29. Apr 22, 09:39
The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
Ah thanks, that explains that even after the xml diffs could be loaded, I got no results so far...

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Sat, 30. Apr 22, 08:36

|K.O.S.H. wrote:
Fri, 29. Apr 22, 09:37
can you pulish this please?
Yeah, I will if I get this working. I just found this tutorial from Axeface which would help me I guess: https://www.youtube.com/watch?v=YwmZq3Vx_i8

I just have to think about if I can convince myself to install Blender :D

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Sat, 30. Apr 22, 23:54

Thanks again for the help to everybody!

Image

As wished I did just publish the result in the steam workshop: https://steamcommunity.com/sharedfiles/ ... 2801917051

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: [Question] Retexture turrets

Post by |K.O.S.H. » Mon, 2. May 22, 07:55

heifi wrote:
Sat, 30. Apr 22, 23:54
Thanks again for the help to everybody!

Image

As wished I did just publish the result in the steam workshop: https://steamcommunity.com/sharedfiles/ ... 2801917051
very nice!

can you also publish to nexusmods, für GoG-Users?
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Mon, 2. May 22, 20:19

|K.O.S.H. wrote:
Mon, 2. May 22, 07:55

very nice!

can you also publish to nexusmods, für GoG-Users?
Never published something there before, but here you are: https://www.nexusmods.com/x4foundations/mods/889

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: [Question] Retexture turrets

Post by |K.O.S.H. » Tue, 3. May 22, 09:15

heifi wrote:
Mon, 2. May 22, 20:19
|K.O.S.H. wrote:
Mon, 2. May 22, 07:55

very nice!

can you also publish to nexusmods, für GoG-Users?
Never published something there before, but here you are: https://www.nexusmods.com/x4foundations/mods/889
I love you :D
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

User avatar
mr.WHO
Posts: 8570
Joined: Thu, 12. Oct 06, 17:19
x4

Re: [Question] Retexture turrets

Post by mr.WHO » Tue, 3. May 22, 10:48

linolafett wrote:
Fri, 29. Apr 22, 09:39
The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
Is it possible that one day in vanilla we will have turret texture adjusted for ship paint mod?

I don't think we need detailed 1:1 for each and every paint mod, but maybe several different color variants, then assigned to fit best to each paint mod.
E.g. White texture for white paint mods (like pearl and Aldrin), black for black (like Warden), red for red, grey would probably fit to most range of different paint mods.

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: [Question] Retexture turrets

Post by |K.O.S.H. » Tue, 3. May 22, 12:33

mr.WHO wrote:
Tue, 3. May 22, 10:48
linolafett wrote:
Fri, 29. Apr 22, 09:39
The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
Is it possible that one day in vanilla we will have turret texture adjusted for ship paint mod?

I don't think we need detailed 1:1 for each and every paint mod, but maybe several different color variants, then assigned to fit best to each paint mod.
E.g. White texture for white paint mods (like pearl and Aldrin), black for black (like Warden), red for red, grey would probably fit to most range of different paint mods.
I would love that...
When i use ships with terran turrets i have to paint them white, but i dont want to...
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

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

Re: [Question] Retexture turrets

Post by linolafett » Tue, 3. May 22, 15:10

mr.WHO wrote:
Tue, 3. May 22, 10:48
linolafett wrote:
Fri, 29. Apr 22, 09:39
The colour is also not coming from the textures, but is encoded in the mesh vertex colours. Changing the textures will not help, the geometry has to be changed.
Is it possible that one day in vanilla we will have turret texture adjusted for ship paint mod?

I don't think we need detailed 1:1 for each and every paint mod, but maybe several different color variants, then assigned to fit best to each paint mod.
E.g. White texture for white paint mods (like pearl and Aldrin), black for black (like Warden), red for red, grey would probably fit to most range of different paint mods.
There is a chance yes. Using paintmods for more things like surface elements would be very nice.
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Tue, 3. May 22, 18:46

linolafett wrote:
Tue, 3. May 22, 15:10
There is a chance yes. Using paintmods for more things like surface elements would be very nice.
That would be really cool. Space Barbie is the true endgame :)

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: [Question] Retexture turrets

Post by |K.O.S.H. » Tue, 3. May 22, 20:45

DOwnloaded it. Thx a lot its awesome.

Is there a chance, that you will also recolor the split shields?
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

heifi
Posts: 82
Joined: Fri, 10. Feb 06, 12:45
x3ap

Re: [Question] Retexture turrets

Post by heifi » Wed, 4. May 22, 23:41

|K.O.S.H. wrote:
Tue, 3. May 22, 20:45
DOwnloaded it. Thx a lot its awesome.

Is there a chance, that you will also recolor the split shields?
Added it as optional download here: https://www.nexusmods.com/x4foundations ... ?tab=files
and as separate mod here: https://steamcommunity.com/sharedfiles/ ... 2803819604

Post Reply

Return to “X4: Foundations - Scripts and Modding”