Easy Mod help needed

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

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

keeshah
Posts: 105
Joined: Sun, 20. Jun 04, 11:20
x4

Easy Mod help needed

Post by keeshah » Sun, 19. Jul 20, 22:24

Hi guys,
maybe I can get some help here, I am poundering my head, but simply don't get it.
I want to replace some ads in the stations. So, I put this in the material_library.xml:
<diff>
<replace sel="/materiallibrary/collection[@name='p1effects']/material[@name='p1_holograph_ads_01']/properties/property[@name='diffuse2_map']/@value">"extensions\custads\assets\textures\ad_signs\p1_holograph_ads_01_diff"</replace>
<replace sel="/materiallibrary/collection[@name='p1effects']/material[@name='p1_holograph_ads_02']/properties/property[@name='diffuse2_map']/@value">"extensions\custads\assets\textures\ad_signs\p1_holograph_ads_01_diff"</replace>
</diff>
and in
extensions\custads\assets\textures\ad_signs\
I place two files:
p1_holograph_ads_01_diff.gz
p1_holograph_ads_01_diff_small.gz
I get black screens, and what makes me really confused:
I get even black screens, when I put the original files in there, not modified.
Does anybody maybe have an idea? Am I using the wrong adsigns? I want to modify those in the docking stations....
Cheers,
Keeshah.

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Re: Easy Mod help needed

Post by UniTrader » Mon, 20. Jul 20, 17:39

you have one set of "" too much. should be

Code: Select all

<diff>
<replace sel="/materiallibrary/collection[@name='p1effects']/material[@name='p1_holograph_ads_01']/properties/property[@name='diffuse2_map']/@value">extensions\custads\assets\textures\ad_signs\p1_holograph_ads_01_diff</replace>
<replace sel="/materiallibrary/collection[@name='p1effects']/material[@name='p1_holograph_ads_02']/properties/property[@name='diffuse2_map']/@value">extensions\custads\assets\textures\ad_signs\p1_holograph_ads_01_diff</replace>
</diff>
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

keeshah
Posts: 105
Joined: Sun, 20. Jun 04, 11:20
x4

Re: Easy Mod help needed

Post by keeshah » Wed, 22. Jul 20, 00:01

I never would have guessed, thanks a ton!

Edit: And just like that all puzzle pieces fall into their place. Thanks again!

Cheers,
Keeshah.

Return to “X4: Foundations - Scripts and Modding”