Problems when changing an existing mod

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

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

User avatar
Reisser
Posts: 764
Joined: Mon, 28. Feb 05, 15:39
x4

Problems when changing an existing mod

Post by Reisser »

Since many mods were unfortunately no longer adapted for 5.1, I wanted to give it a try. Even modding is not in it, but I should be able to make a few changes - I thought :)

Here: the pretty nice venture mod.

However, the scripts are in a dat file - i.e. opened with Notepad++, changed a few lines - and ... nothing. The mod no longer loads.

Then reduced further down until only one comment line remained - and: still not loading.

Then it occurred to me that the dat file may have to be rebuilt, has a hash value or something else. Does anyone here have any advice?
Meine Mods bei NexusMods: RS Loss Report RS Bribe for Scandata RS Colors RS Marine Special Training
Meine Mod-Collection bei NexusMods: X4 7.0 VRO Hard Times
kuertee
EGOSOFT
EGOSOFT
Posts: 818
Joined: Sun, 14. Dec 03, 13:05
x4

Re: Problems when changing an existing mod

Post by kuertee »

Reisser wrote: Thu, 26. May 22, 15:22 Since many mods were unfortunately no longer adapted for 5.1, I wanted to give it a try. Even modding is not in it, but I should be able to make a few changes - I thought :)

Here: the pretty nice venture mod.

However, the scripts are in a dat file - i.e. opened with Notepad++, changed a few lines - and ... nothing. The mod no longer loads.

Then reduced further down until only one comment line remained - and: still not loading.

Then it occurred to me that the dat file may have to be rebuilt, has a hash value or something else. Does anyone here have any advice?
you'll need to first extract the mod's dat file with the extractor tool linked in the pinned modding hints, tips and tutorials at the top of this forum.
then make the changes.
then repackage it back into the dat file.

updating an old mod to a newer version of the game may require some knowledge of the newer game's changes (that made the old mod incompatible).
to do that you'll need to exact the base game's dat files so that you can investigate what is required to make the old mod work in newer versions.

i suggest you go through the info in hints, tips and tutorials.
User avatar
Reisser
Posts: 764
Joined: Mon, 28. Feb 05, 15:39
x4

Re: Problems when changing an existing mod

Post by Reisser »

Yes - thanks! I will look for it.

Indeed, the mod works fine in 5.10 - but it's too overpowered - and there are the new ships (for rewards) missing - but this is second (i even don't like the terran ship :D )
Meine Mods bei NexusMods: RS Loss Report RS Bribe for Scandata RS Colors RS Marine Special Training
Meine Mod-Collection bei NexusMods: X4 7.0 VRO Hard Times
User avatar
Reisser
Posts: 764
Joined: Mon, 28. Feb 05, 15:39
x4

Re: Problems when changing an existing mod

Post by Reisser »

Yes! Went fine. Now we habe at least terran/yaki ships in Venture-loot, less crew with less skill, less skillgain for the venture-crews and less big ships at the end.
Next thing on my agenda: TOA-Ships

But: it's ok to find half-abandoned ships on ventures ... but the have to be in that condition.

So: after creating the ship with <create_ship name=.... > - how can i strip of weapons / shields - not all - but also quite a bit :?
Meine Mods bei NexusMods: RS Loss Report RS Bribe for Scandata RS Colors RS Marine Special Training
Meine Mod-Collection bei NexusMods: X4 7.0 VRO Hard Times

Return to “X4: Foundations - Scripts and Modding”