[Mods] First Person Gameplay Overhaul

The place to discuss scripting and game modifications for X Rebirth.

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

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

Post by UniTrader »

hmm, just a guess: maybe the event i added is not registered on a Ship which already runs player.default on loading - removing from squad and adding again should fix it.
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 ;)
antoniut
Posts: 198
Joined: Sat, 4. Oct 14, 13:07
x4

Post by antoniut »

Gonna try

EDIT: Nothing, ship out of squad, in squad again, and nothing. Captain respond with phrase to orders but ship doesn't move and still last vanilla command given
User avatar
alexalsp
Posts: 1955
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

Hi UniTrader

I checked only this mod ( Faster Dialogue ) and there are errors.

Check this, please.

version game - 4.0

Code: Select all


[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[6]' in patch file 'extensions\UTFasterDialogue-master\md\gm_assassination_v2.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[3]' in patch file 'extensions\UTFasterDialogue-master\md\mc_diplomatic_aid.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\mc_diplomatic_aid.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[3]' in patch file 'extensions\UTFasterDialogue-master\md\mc_dynamicchain.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\mc_dynamicchain.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\trade.xml'. Skipping node.
[General] 0.00 ======================================



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

Post by UniTrader »

Thanks for letting me know, will look through the files to update the count for the replacement actions. These errors are completely harmless though (wont have a positive or negative effect on the game or mod)
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 ;)
User avatar
alexalsp
Posts: 1955
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

And another error.

In remote mode, the menu missing, Seller ships (XL) at the shipyard.

if English language of the game.

http://i.imgur.com/WIDCwn8.jpg

if Russian language of the game.

http://imgur.com/4wkF1Tt

menu 2 and 3 lost.

http://imgur.com/a/QectK

PS ///

After a while, if open the menu a few times, it is restored.
It is strange. :? :D
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

i dont touch setting up the possible choices at all, so it sholdnt matter... possibly some kind of weird race condition? (usually before the choices are presented there is a forced wait which enables setting them up properly before, but my mod skips this one therefore displaying them before they are set up properly and changes afterwards dont work)
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 ;)
pref
Posts: 5626
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref »

Hi Uni!

If that helps you i wrote a script for my voice mod that scans through an XML and produces the mod code. I run it from a batch that loads each xml in the folder as a database in base-x and the whole mod can be created like that.
I had some exceptions that get removed instead of adding the @hidechoices attr, you probably wont need that.

Code: Select all

for $x at $cnt in //add_npc_line
let $dict := map:merge((
  for $y at $pos in //add_npc_line
  let $line := $y/@line
  where $pos <= $cnt
  group by $line
  return if (empty($line)) then( map:entry("", count($y))) else ( map:entry($line, count($y)) )
))
return ( 
if ($x/@line = "3031" or $x/@line = "3035" or $x/@line = "12" or $x/@line = "13") 
then (

    <remove sel="(//{fn:name($x)}[@line='{$x/@line}'])[1]" />

  ) else (
  
    <add sel="(//{fn:name($x)}[@line='{$x/@line}'])[{fn:string(map:get($dict, if (empty($x/@line)) then ("") else ( $x/@line) ))}]" type="@hidechoices">false</add> 
  
  )
this is the bat file:

Code: Select all

echo.
for %%v in ("e:\game\SteamLibrary\SteamApps\common\X Rebirth\!unpackd\md\voicemodxml\*.*") DO (
	@echo."%%~nxvxx"
	@echo.^<?xml version="1.0" encoding="UTF-8"?^> > "%%~nxvxx"
	@echo.^<diff^> >> "%%~nxvxx"
	@@basex -i "%%v" -o "%%~nxvmod" get_npc_line_path_byLineID_skiponly.xq && type "%%~nxvmod" >> "%%~nxvxx" && @echo. >> "%%~nxvxx" && @echo.^</diff^> >> "%%~nxvxx" && @del "%%~nxvmod"
)
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

alexalsp wrote:Hi UniTrader

I checked only this mod ( Faster Dialogue ) and there are errors.

Check this, please.

version game - 4.0

Code: Select all


[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[6]' in patch file 'extensions\UTFasterDialogue-master\md\gm_assassination_v2.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[3]' in patch file 'extensions\UTFasterDialogue-master\md\mc_diplomatic_aid.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\mc_diplomatic_aid.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[3]' in patch file 'extensions\UTFasterDialogue-master\md\mc_dynamicchain.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\mc_dynamicchain.xml'. Skipping node.
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot match path '(//add_npc_line)[4]' in patch file 'extensions\UTFasterDialogue-master\md\trade.xml'. Skipping node.
[General] 0.00 ======================================
these should be fixed by now (and also many cases where the changed Line appears more often than less often), didnt check InGame yet though..

sorry for the slight delay, but i am almost ready to release the next Version of my Manager Script, which integrates the Architect in the same Framework.. currently very busy finishing that one..


@pref
sorry, couldnt use your code since i was done when i saw it.. might be useful for the next Version Update if EGO dares to change their files once more... :D unless they add msel support by then, which would resolve Version Issues for all eternity.. ^^
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 ;)

Return to “X Rebirth - Scripts and Modding”