All vanila files vs *.pck/-prefersinglefiles still valid with V4 HOL ?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
All vanila files vs *.pck/-prefersinglefiles still valid with V4 HOL ?
Hi, after reading the Modding guide thread, I want to know of the above title is still true now.
Also, are these tricks only for the *.xml/*.xsd files ?
I want to know if I extract ALL vanilla files and put them into a ../extensions/MODfolder, how to override everything and use only that extension folder for EVERYTHING.
I want to play around with the files to understand things without yet doing any MODs. There are lots of things I want to change and if I manage to do it (still lots of stuff to learn), it will be a MOD.
[mental note, do not eat too much just before doing a post because you wind up having to fix a lot of typos]
Also, are these tricks only for the *.xml/*.xsd files ?
I want to know if I extract ALL vanilla files and put them into a ../extensions/MODfolder, how to override everything and use only that extension folder for EVERYTHING.
I want to play around with the files to understand things without yet doing any MODs. There are lots of things I want to change and if I manage to do it (still lots of stuff to learn), it will be a MOD.
[mental note, do not eat too much just before doing a post because you wind up having to fix a lot of typos]
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
Assuming this is still true, I did the following below but it is not working. What am I doing wrong ?
1) disabled all my extensions except my MyDebug MOD which only contains some aiscripts with *.PCK extension
2) in those PCK above, I removed all mentions of the chance="$debugchance..." on debug_text lines only
3) right after the start of the action node I added one new debug_script just to proove that each PCK above are being executed
4) my steam launch option is :
-skipintro -debug all -logfile rebirth.log
5) started a brand new game, got on a ship that was about to do a trade, saw it do a trade, waited until he undocked and exited the game
Here is a compare between one vannila script and my matchign PCK file:
1) disabled all my extensions except my MyDebug MOD which only contains some aiscripts with *.PCK extension
2) in those PCK above, I removed all mentions of the chance="$debugchance..." on debug_text lines only
3) right after the start of the action node I added one new debug_script just to proove that each PCK above are being executed
4) my steam launch option is :
-skipintro -debug all -logfile rebirth.log
5) started a brand new game, got on a ship that was about to do a trade, saw it do a trade, waited until he undocked and exited the game
Here is a compare between one vannila script and my matchign PCK file:
- Text Compare
Produced: 2016-09-04 11:31:34
Mode: Differences, Ignoring Unimportant
Left file: G:\Games\steamapps\common\X Rebirth\XR_extracted\aiscripts\trade.performtraderun.xml
Right file: G:\Games\steamapps\common\X Rebirth\extensions\MyDebug\aiscripts\trade.performtraderun.pck
27 <debug_text text="'try to restore reservations for %1(%2)\n $isbuyoffer? = %3\n $tradeoffer.exists = %4\n $amount = %5\n $targetobject.isoperational = %6\n $tradeware = %7\n $reservation_removed? = %8'.[this.name, this, $isbuyoffer?, $tradeoffer.exists, $amount, $targetobject.isoperational, $tradeware, $reservation_removed?]" chance="$debugchance" />
27 <debug_text text="'try to restore reservations for %1(%2)\n $isbuyoffer? = %3\n $tradeoffer.exists = %4\n $amount = %5\n $targetobject.isoperational = %6\n $tradeware = %7\n $reservation_removed? = %8'.[this.name, this, $isbuyoffer?, $tradeoffer.exists, $amount, $targetobject.isoperational, $tradeware, $reservation_removed?]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
41 <debug_text text="'restore sell reservation for %1 %2(virtual: %3) at %4(%5) by %6(%7)'.[$reserve_amount, $tradeware, $tradeoffer.unbundle, $targetobject.knownname, $targetobject, this.knownname, this]" chance="$debugchance" />
41 <debug_text text="'restore sell reservation for %1 %2(virtual: %3) at %4(%5) by %6(%7)'.[$reserve_amount, $tradeware, $tradeoffer.unbundle, $targetobject.knownname, $targetobject, this.knownname, this]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
45 <debug_text text="'restore buy reservation for %1 %2(virtual: %3) at %4(%5) by %6(%7)'.[$reserve_amount, $tradeware, $tradeoffer.rebundle, $targetobject.knownname, $targetobject, this.knownname, this]" chance="$debugchance" />
45 <debug_text text="'restore buy reservation for %1 %2(virtual: %3) at %4(%5) by %6(%7)'.[$reserve_amount, $tradeware, $tradeoffer.rebundle, $targetobject.knownname, $targetobject, this.knownname, this]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
54 <debug_text text="'skip restoring reservations for %1(%2) - not L or XL trader'.[this.name, this]" chance="$debugchance" />
54 <debug_text text="'skip restoring reservations for %1(%2) - not L or XL trader'.[this.name, this]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
59 <debug_text "Entering script proof" comment="Browser_ice"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
96 <debug_text text="'original buyoffer is no longer available, try to find a new offer for %1 on %2(%3)'.[$tradeware, $buyer.knownname, $buyer]" chance="$debugchance" />
97 <debug_text text="'original buyoffer is no longer available, try to find a new offer for %1 on %2(%3)'.[$tradeware, $buyer.knownname, $buyer]"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
98 <debug_text text="'found %1'.[@$buyoffer]" chance="$debugchance" />
99 <debug_text text="'found %1'.[@$buyoffer]"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
106 <debug_text text="player.age + ' un-parking...'" chance="$debugchance" />
107 <debug_text text="player.age + ' un-parking...'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
139 <debug_text text="'adding sell reservation for %1 %2 at %3'.[$amount, $tradeware, $buyoffer.buyer]" chance="$debugchance" />
140 <debug_text text="'adding sell reservation for %1 %2 at %3'.[$amount, $tradeware, $buyoffer.buyer]"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
186 <debug_text text="player.age + ' after movement the tradeoffer was gone'" chance="$debugchance" />
187 <debug_text text="player.age + ' after movement the tradeoffer was gone'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
192 <debug_text text="player.age + ' reducing amount from %1 to %2'.[$amount, $tradeoffer.offeramount.{this}]" chance="$debugchance" />
193 <debug_text text="player.age + ' reducing amount from %1 to %2'.[$amount, $tradeoffer.offeramount.{this}]"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
199 <debug_text text="'adding sell reservation for %1 %2 at %3'.[$amount, $tradeware, $targetobject]" chance="$debugchance" />
200 <debug_text text="'adding sell reservation for %1 %2 at %3'.[$amount, $tradeware, $targetobject]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
204 <debug_text text="'checking sell reservation for %1 at %2'.[$tradeware, $targetobject]" chance="$debugchance" />
205 <debug_text text="'checking sell reservation for %1 at %2'.[$tradeware, $targetobject]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
209 <debug_text text="'adding buy reservation for %1 %2 at %3'.[$amount, $tradeware, $targetobject]" chance="$debugchance" />
210 <debug_text text="'adding buy reservation for %1 %2 at %3'.[$amount, $tradeware, $targetobject]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
213 <debug_text text="player.age + ' reserved %1 %2 at %3 (tried to reserve %4)'.[$reserved, $tradeware, $targetobject, $amount]" chance="$debugchance" />
214 <debug_text text="player.age + ' reserved %1 %2 at %3 (tried to reserve %4)'.[$reserved, $tradeware, $targetobject, $amount]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
216 <debug_text text="player.age + ' reserved %1 %2 at %3'.[$reserved, $tradeware, $targetobject]" chance="$debugchance" />
217 <debug_text text="player.age + ' reserved %1 %2 at %3'.[$reserved, $tradeware, $targetobject]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
219 <debug_text text="player.age + ' moving to park at ' + $targetobject.knownname" chance="$debugchance" />
220 <debug_text text="player.age + ' moving to park at ' + $targetobject.knownname"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
226 <debug_text text="player.age + ' now parked at ' + $targetobject.knownname" chance="$debugchance" />
227 <debug_text text="player.age + ' now parked at ' + $targetobject.knownname" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
230 <debug_text text="player.age + ' need to re-evaluate our reason for parking at' + $targetobject.knownname" chance="$debugchance" />
231 <debug_text text="player.age + ' need to re-evaluate our reason for parking at' + $targetobject.knownname" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
234 <debug_text text="player.age + ' critical parking error!'" chance="$debugchance" />
236 <debug_text text="player.age + ' critical parking error!'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
239 <debug_text text="player.age + ' moving to dock at ' + $targetobject.knownname" chance="$debugchance" />
241 <debug_text text="player.age + ' moving to dock at ' + $targetobject.knownname" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
247 <debug_text text="player.age + ' docked at ' + $targetobject.knownname" chance="$debugchance" />
249 <debug_text text="player.age + ' docked at ' + $targetobject.knownname" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
288 <debug_text text="player.age + ' start trade operation!'" chance="$debugchance" />
290 <debug_text text="player.age + ' start trade operation!'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
315 <debug_text text="'%1(%2) we can sell more %5 than we expected! Increase amount from %3 to %4 (directly before trade start)'.[this.ship.knownname, this.ship, $oldamount, $amount, $tradeware.name]" chance="$debugchance" />
317 <debug_text text="'%1(%2) we can sell more %5 than we expected! Increase amount from %3 to %4 (directly before trade start)'.[this.ship.knownname, this.ship, $oldamount, $amount, $tradeware.name]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
322 <debug_text text="'%1(%2) reducing amount of %3 to buy from %4(%5) from %6 to %7 (directly before trade start; not enough money)'.[this.ship.knownname, this.ship, $tradeware.name, $targetobject.knownname, $targetobject, $amount, this.money / $tradeoffer.unitprice]" chance="$debugchance" />
324 <debug_text text="'%1(%2) reducing amount of %3 to buy from %4(%5) from %6 to %7 (directly before trade start; not enough money)'.[this.ship.knownname, this.ship, $tradeware.name, $targetobject.knownname, $targetobject, $amount, this.money / $tradeoffer.unitprice]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
326 <debug_text text="'%1(%2) reducing amount of %3 to trade with %4(%5) from %6 to %7 (directly before trade start; offeramount is lower)'.[this.ship.knownname, this.ship, $tradeware.name, $targetobject.knownname, $targetobject, $amount, $tradeoffer.offeramount.{this}]" chance="$debugchance" />
328 <debug_text text="'%1(%2) reducing amount of %3 to trade with %4(%5) from %6 to %7 (directly before trade start; offeramount is lower)'.[this.ship.knownname, this.ship, $tradeware.name, $targetobject.knownname, $targetobject, $amount, $tradeoffer.offeramount.{this}]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
348 <debug_text text="'schedule immediate supply offer update for %1 (%2)'.[$targetobject.knownname, $targetobject]" chance="$debugchance" />
350 <debug_text text="'schedule immediate supply offer update for %1 (%2)'.[$targetobject.knownname, $targetobject]"/>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
376 <debug_text text="player.age + ' successfully traded chosen goods!'" chance="$debugchance" />
378 <debug_text text="player.age + ' successfully traded chosen goods!'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
402 <debug_text text="player.age + ' \'%1\'(job: \'%2\') TRADE RUN FAILED! Error: %3'.[this.ship.knownname, this.ship.job, $failreason]" chance="$debugchance2" />
403 <debug_text text="player.age + ' TRADE RUN FAILED! Error: ' + $failreason" chance="$debugchance" />
404 <debug_text text="player.age + ' \'%1\'(job: \'%2\') TRADE RUN FAILED! Error: %3'.[this.ship.knownname, this.ship.job, $failreason]" />
405 <debug_text text="player.age + ' TRADE RUN FAILED! Error: ' + $failreason" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
405 <debug_text text="player.age + ' un-parking...'" chance="$debugchance" />
407 <debug_text text="player.age + ' un-parking...'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
415 <debug_text text="player.age + ' \'%1\'(job: \'%5\') traded %2 units of %3 with %4'.[this.ship.knownname, $amount, $tradeoffer.ware, $targetobject.knownname, this.ship.job]" chance="$debugchance2" />
417 <debug_text text="player.age + ' \'%1\'(job: \'%5\') traded %2 units of %3 with %4'.[this.ship.knownname, $amount, $tradeoffer.ware, $targetobject.knownname, this.ship.job]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
418 <debug_text text="player.age + ' \'%1\'(job: \'%4\') traded %2 units of something with %3'.[this.ship.knownname, $amount, $targetobject.knownname, this.ship.job]" chance="$debugchance2" />
420 <debug_text text="player.age + ' \'%1\'(job: \'%4\') traded %2 units of something with %3'.[this.ship.knownname, $amount, $targetobject.knownname, this.ship.job]" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
421 <debug_text text="player.age + ' CONGRATULATIONS, TRADE RUN COMPLETE!'" chance="$debugchance" />
423 <debug_text text="player.age + ' CONGRATULATIONS, TRADE RUN COMPLETE!'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
423 <debug_text text="player.age + ' un-parking...'" chance="$debugchance" />
425 <debug_text text="player.age + ' un-parking...'" />
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Logfile started, time Sun Sep 04 11:16:51 2016
[General] 0.00 ======================================
[=ERROR=] 0.00 [Movie.LoadFormat] File videos/logo_publisher.mkv: avformat_open_input = -2 'No such file or directory'
[General] 0.00 ======================================
[General] 246.36 ======================================
[=ERROR=] 246.36 [Movie.LoadFormat] File videos/logo_publisher.mkv: avformat_open_input = -2 'No such file or directory'
[General] 246.36 ======================================
[Scripts] 246.36 *** Context:md.InitDLCUniverse.Start: 246.359 event_game_loaded: version: 400, build: 208311, originalversion: 400
[Scripts] 536.01 *** Context:md.Conversations.SectionHandler<inst:25ddf>: Next section: g_finish
[General] 0.00 ======================================
[=ERROR=] 0.00 [Movie.LoadFormat] File videos/logo_publisher.mkv: avformat_open_input = -2 'No such file or directory'
[General] 0.00 ======================================
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
ah, sorry - i wanted to reply here, but had no time to reply when i saw the Topic on Friday....
the -prefersinglefiles is a switch to prefer the loose Files inside the game root Folder over the ones in the Cats/Dats, its not for changing the behavior of the game to interpret Mod Files as replacement Files rather than diff files (you would break most non-steam-delivered mods with that change, and possibly the game as whole)
If you want an Extension to Replace game core files rather than diff them you must pack them into a subst_01.cat/dat in the mod folder - no way to do this via mod with loose files to my knowledge. Also Updating it should be easy to automate with a batch Script like this (assuming Steam Folder Hierarchy):
and putting your replacement Files inside the replace/subst_01 folder in your mod (XR Cat Tool seems to dislike just being passed a folder in the current directory, therefore another folder in-between)
also if you just want to remove all chances from debug_text you may find this Snippet handy:
this removes the first 15 chance-attributes from the related File - add more as needed
(cheap replacement for the missing msel-extension/feature for xml diff files)
the -prefersinglefiles is a switch to prefer the loose Files inside the game root Folder over the ones in the Cats/Dats, its not for changing the behavior of the game to interpret Mod Files as replacement Files rather than diff files (you would break most non-steam-delivered mods with that change, and possibly the game as whole)
If you want an Extension to Replace game core files rather than diff them you must pack them into a subst_01.cat/dat in the mod folder - no way to do this via mod with loose files to my knowledge. Also Updating it should be easy to automate with a batch Script like this (assuming Steam Folder Hierarchy):
Code: Select all
"..\..\..\X Rebirth Tools\XRCatTool.exe" -in replace\subst_01 -out subst_01.cat
also if you just want to remove all chances from debug_text you may find this Snippet handy:
Code: Select all
<diff>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
<remove sel="(//debug_text/@chance)[1]" optional="true"/>
</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
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

-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
thx but I do not want to just remove debugchance usages, I want to start learning how the scripts work and do adjustments on them until I have a fully working script file like I want to. Then I can turn them into normal MOD files.
That is why I need to play with the whole script file and not just start adding diff. I tried in another thread and its not 100% for all scripts.
This is easier for me.
That is why I need to play with the whole script file and not just start adding diff. I tried in another thread and its not 100% for all scripts.
This is easier for me.
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
That method is more appealing to me. However, you left out some things in your explanations.UniTrader wrote:...
If you want an Extension to Replace game core files rather than diff them you must pack them into a subst_01.cat/dat in the mod folder - no way to do this via mod with loose files to my knowledge. Also Updating it should be easy to automate with a batch Script like this (assuming Steam Folder Hierarchy):and putting your replacement Files inside the replace/subst_01 folder in your mod (XR Cat Tool seems to dislike just being passed a folder in the current directory, therefore another folder in-between)Code: Select all
"..\..\..\X Rebirth Tools\XRCatTool.exe" -in replace\subst_01 -out subst_01.cat
...
Talking strickly about my source files (where I have my unpacked files/folders), to pack them, do I have to change any file names folder names before doing this ?
ex:
instead of having aiscript/scriptname.xml, do I have to rename to subst_01_aiscript/scriptname.xml ?
can't I simply keep all the same folder/file names as in the vanila and compat them all into a subst_01.cat file ?
Different but similar topic : I saw some mensions in other threads of using ext_01 instead. Including this one, what are all the possible cat file name formats and what do each one do ?
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
I successfully created a subst_01.cat and I see the engine is using my files.
However, I have errors to which I have no idea what the problem is:
Error-1
Error-2
refered line in my script is (with context):
I am using version control software to make sure I do not mess things between my tests/trials.
However, I have errors to which I have no idea what the problem is:
Error-1
- [General] 125.88 ======================================
[=ERROR=] 125.88 aiscripts\trade.findfreetraderun.xml(17): Error while parsing expression: Operator expected
* Input: Entering script proof
* Pos: ^^^^^^
[General] 125.88 ======================================
- <attention min="unknown">
<actions>
<debug_text text="Entering script proof"/>
<!-- set up initial state for trade runs -->
<set_value name="$reservetrades" exact="false" />
Error-2
- [General] 125.88 ======================================
[=ERROR=] 125.88 aiscripts\trade.shipyard.small.xml(32): Error while parsing expression: Operator expected
* Input: Making shipyard $this.station doing trades with stations nearby
* Pos: ^^^^^^^^
[General] 125.88 ======================================
refered line in my script is (with context):
- <add_default_production_wares object="this.station" lowerlimit="20" upperlimit="80" />
<debug_text text="Making shipyard $this.station doing trades with stations nearby" comment="Browser_ice"/>
<wait min="5s" max="10min" />
I am using version control software to make sure I do not mess things between my tests/trials.
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
you must clarify that it is a string, otherwise your input is interpreted as invalid expression.
Addd ' ' or this purpose:
<debug_text text="'Entering script proof'"/>
Addd ' ' or this purpose:
<debug_text text="'Entering script proof'"/>
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

-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
Really ?UniTrader wrote:you must clarify that it is a string, otherwise your input is interpreted as invalid expression.
Addd ' ' or this purpose:
<debug_text text="'Entering script proof'"/>
Its the first time I see a language where the "" are the equivalent of ().
Weird.
[added comments]
Applying this, I managed to fix all my debug errors. Thx.
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
this is the first time i hear that ( ) indicates a string... usually " " is used for this purpose, but that is out of the question inside an xml attribute, therefore ' ' is used. Alternatively you can also put a Var there ( like text="$message" ) - then its content would be written to the log. Useful when you want to log the content of lists or groups for example since they are converted into a readable form. Or when you put the text together in a var first in case of more complex stuff to be logged.
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
