Help with a new mod
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Help with a new mod
Background: I've been messing around with adding, moving, redirecting gates etc. So far no issues until I added my own new sector into the base universe. I have it in the game but I'm running into several issues. I'm just barely learning any of this so hopefully someone with a bit more knowledge can spot my error. I think I may need to change location of where the file is referenced since it is not patching but have no clue to be honest.
--The only error I am getting using debug is:
XLib::XMLInputOpenCallback(): Failed to open the file: assets/environments/cluster/cluster_da1
the file is referenced by index/components
CAT8/index/components.xml example:
index/<entry name="Cluster_06" value="assets\environments\cluster\Cluster_06"/>
my diff:
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<add sel="//index">
<entry name="Cluster_DA1" value="assets\environments\cluster\Cluster_DA1"/>
</add>
</diff>
I have Cluster_DA1.xml located in extensions/(modname)/assets/environments/cluster/
--This may or may not be causing my second issue. The sector can be entered, shows on map in correct position, but has no lighting/celestial/asteroids/nebulae
lighting/celestials should come from: extensions/(modname)/assets/environments/cluster/Cluster_DA1.xml
asteroids should come from : extensions/(modname)/libraries/region_definitions.xml
regions are created from: extensions/(modname)/maps/XU_ep2_universe/clusters/xml
--The only error I am getting using debug is:
XLib::XMLInputOpenCallback(): Failed to open the file: assets/environments/cluster/cluster_da1
the file is referenced by index/components
CAT8/index/components.xml example:
index/<entry name="Cluster_06" value="assets\environments\cluster\Cluster_06"/>
my diff:
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<add sel="//index">
<entry name="Cluster_DA1" value="assets\environments\cluster\Cluster_DA1"/>
</add>
</diff>
I have Cluster_DA1.xml located in extensions/(modname)/assets/environments/cluster/
--This may or may not be causing my second issue. The sector can be entered, shows on map in correct position, but has no lighting/celestial/asteroids/nebulae
lighting/celestials should come from: extensions/(modname)/assets/environments/cluster/Cluster_DA1.xml
asteroids should come from : extensions/(modname)/libraries/region_definitions.xml
regions are created from: extensions/(modname)/maps/XU_ep2_universe/clusters/xml
Re: Help with a new mod
Paths in the files are relative to the game directory, not to your mod folder. You have to actually put the extension folder in there, i.e.
Code: Select all
<entry name="Cluster_DA1" value="extensions\mycoolmod\assets\environments\cluster\Cluster_DA1"/>
-
- Posts: 813
- Joined: Fri, 11. Nov 05, 23:18
Re: Help with a new mod
When I have added new component/macro files to the indexes I've alwaysed used the full relative path of the mod and it works, in components.xml try: <entry name="Cluster_06" value="extensions\(modname)\assets\environments\cluster\Cluster_06"/>DeadAirRT wrote: ↑Wed, 6. Feb 19, 23:13...
XLib::XMLInputOpenCallback(): Failed to open the file: assets/environments/cluster/cluster_da1
...
CAT8/index/components.xml example:
index/<entry name="Cluster_06" value="assets\environments\cluster\Cluster_06"/>
...
I have Cluster_DA1.xml located in extensions/(modname)/assets/environments/cluster/
Re: Help with a new mod
yep, i can also confirm you are missing your extension folder from the path.
Also one more hint: always use lower case in your File Paths, for future Linux compatibility
Also one more hint: always use lower case in your File Paths, for future Linux compatibility
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
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
Re: Help with a new mod
Thank you both very much! The sector has a sun and background now. Backed off using a custom name and stole an unused one from translations file so it has a name.
Now to work on asteroids/gas. No debug errors but nothing being spawned in system.
Edit: and now to change everything to lowercase because unitrader
Now to work on asteroids/gas. No debug errors but nothing being spawned in system.
Edit: and now to change everything to lowercase because unitrader
Re: Help with a new mod
Ended up giving up on the asteroids/gas.
Uploaded to https://www.nexusmods.com/x4foundations/mods/285
Uploaded to https://www.nexusmods.com/x4foundations/mods/285
-
- Posts: 308
- Joined: Fri, 3. Oct 08, 20:43
Re: Help with a new mod
Try harder. I need this.
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht
Re: Help with a new mod
A kind soul fixed the resource problem. 1.1 is no longer empty.