[Mod/Script] UI Detail screen and Side menu' FIX - No More legendary buged UI and none mouse click at any FOV settings

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

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

Post Reply
bioscmos303
Posts: 31
Joined: Tue, 27. May 14, 00:12
x4

[Mod/Script] UI Detail screen and Side menu' FIX - No More legendary buged UI and none mouse click at any FOV settings

Post by bioscmos303 » Sat, 28. Aug 21, 21:38

Fix the legendary bug on the side menus main detail screen when it all get messy and cant click it if - field of view settings not on the game factor default settings (94.3)

original game mxl contain wrong settings for positioning some of the UI connections that made it un clickable and messed up (and even killed a lot of old good mods)
so we all had to - go setting and tourn off the side menu - no more

(WIP default Cockpit so far i will fix everything in time) see picture toke from blender down at the end of the post
feel free to test it and please let me know what you think when i still making it and fixing the other cockpits
this is just another small add (but big fix) from the cockpit im working on (a lot more to come stay around)

Download as a mod (alpha for testing):
https://mega.nz/file/tGokkbya#wD4x4EJ3t ... QMgxK0chDI


i just dont understand why they never fix it after all this years - took me 5 minutes with my basic knowledge in scripting.
1. imported units_player_cockpit_1_.dae converted from the xml to blender just to see the parts with my on eyes and not as xml
2. moved and repositioning the needed part in blender just to find the info i needed
3. copy the X Y Z AND W from blender To my xml(as text ) with out exporting or saving anything from blender and done


Extra commanded:
the FOV in the picture is set to - 123.4 from the default 93.4 game settings
But you can use any other fov you want -and here is a mod that can do that clean without editing anything just use it as a cockpit mod for now:
viewtopic.php?f=129&t=441629 Fov 133.4 - Field of View



Afther :
Image





Before

Image


Before in blender default xml setting :
Image


After moving and fixing
Image



then fixing Part - part_detailm - <quaternion qx="0.0" qy="-0.707897" qz="0.0" qw="-0.706316"/>
original Default xml contain this posisions and they are broken with anima main - <quaternion qx="-6.773427E-08" qy="0.7071068" qz="6.773425E-08" qw="0.7071067"/>
after fixing/reposition i just copy and replaced the XYZW posisions from blender to the xml
Image


Blender file with the def - dae if you want check it out :
https://mega.nz/file/lHRyxDSC#-GY739sUk ... EkR82xMYgM


now the script/patch


So here is the script after repositioning everything with simple code + removing old connection(anim_soundetail)
that the game don't really need and bug us for years (and again killed few good usfull mods)


file : units_player_cockpit_1.xml
Replaced Connections : Connection053 - anim_detailscreen_frame , Connection054 - part_detailm ,
Removed Connections : Connection055 - anim_soundetail

Connection053" - anim_detailscreen_frame - by default game xml only had 1 line for positioning the parts inside hes frame :
Default xml -
<position x="-1.960158E-03" y="-0.9457195" z="1.630829"/>

FIX- so i added beneath -
<quaternion qx="0" qy="0.0" qz="0" qw="1"/>


Connection054" - part_detailm : also only had 1 line and in a wrong place far away :) :
Default xml - <quaternion qx="-6.773427E-08" qy="0.7071068" qz="6.773425E-08" qw="0.7071067"/>

fix - so i deleted and Replaced the line with this -
<position x="0.0" y="0.0" z="0.0"/>
<quaternion qx="0.0" qy="-0.707897" qz="0.0" qw="-0.706316"/>

Connection055 - anim_soundetail : game dont need it any more - after they moved the menu so- i just removed it

take in mind - if you removing connections not fix this bug - to fix it add the right quaternion and positioning that i found (with blender import)

Code: Select all

<diff>
				<!-- Fix !-->
				<!-- anim_soundetail !-->
		<remove sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection055']"/> 



				<!-- anim_detailscreen_frame !-->
		<replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection053']/offset"> 
				<offset>
					<position x="-1.960158E-03" y="-0.9457195" z="1.630829"/>
					<quaternion qx="0" qy="0.0" qz="0" qw="1"/> 
				</offset> 
				<animations>
					<animation name="cockpit_enter" start="0" end="0"/>
					<animation name="cockpit_active" start="300" end="300"/>
					<animation name="cockpit_entering" start="1" end="295"/>
					<animation name="cockpit_inactive" start="295" end="295"/>
					<animation name="cockpit_activating" start="295" end="300"/>
					<animation name="cockpit_inactivating" start="300" end="300"/>
					<animation name="cockpit_facing_copilot" start="300" end="310"/>
					<animation name="cockpit_face_copilot" start="310" end="310"/>
					<animation name="cockpit_activate_detailmonitor" start="310" end="315" startsound="1"/>
					<animation name="cockpit_face_detailmonitor" start="315" end="315"/>
					<animation name="cockpit_activate_dmcloseup" start="315" end="325"/>
					<animation name="cockpit_face_dmcloseup" start="325" end="325"/>
					<animation name="cockpit_deactivate_dmcloseup" start="325" end="335"/>
					<animation name="cockpit_deactivate_detailmonitor" start="335" end="340"/>
					<animation name="cockpit_facing_normal" start="340" end="350"/>
					<animation name="cockpit_goggles_activating" start="400" end="450"/>
					<animation name="cockpit_goggles_active" start="450" end="450"/>
					<animation name="cockpit_goggles_deactivating" start="450" end="500"/>
					<animation name="cockpit_leaving" start="500" end="660"/>
					<animation name="cockpit_left" start="660" end="660"/>
					<animation name="cockpit_quick_enter" start="661" end="860"/>
					<animation name="cockpit_yisha_angry_01" start="1000" end="1174"/>
					<animation name="cockpit_yisha_disappointed_01" start="1174" end="1395"/>
					<animation name="cockpit_yisha_flirting_01" start="1395" end="1604"/>
					<animation name="cockpit_yisha_happy_01" start="1604" end="1784"/>
					<animation name="cockpit_yisha_happy_02" start="1784" end="1944"/>
					<animation name="cockpit_yisha_idle_01" start="1944" end="2034"/>
					<animation name="cockpit_yisha_sad_01" start="2034" end="2271"/>
					<animation name="cockpit_yisha_sad_02" start="2271" end="2504"/>
					<animation name="cockpit_yisha_surprised_01" start="2504" end="2709"/>
				</animations>
				<parts>
					<part name="anim_detailscreen_frame">
						<lods>
							<lod index="0">
								<materials>
									<material id="1" ref="arcp1.cp1_master_01"/>
									<material id="2" ref="arcp1.cp1_monitordim"/>
								</materials>
							</lod>
						</lods>
						<size>
							<max x="1.737148E-02" y="0.3068587" z="0.4465491"/>
							<center x="-1.455724E-03" y="4.857004E-03" z="0"/>
						</size>
						<size_raw>
							<max x="0.0188272" y="0.3020017" z="0.4465491"/>
							<center x="-1.455724E-03" y="4.857004E-03" z="0"/>
						</size_raw>
						<sounds>
							<sound name="XU Sound DetailM 01" ref="ui_mon_detail_open">
								<offset>
									<position x="0" y="-2.980232E-07" z="4.196596E-02"/>
								</offset>
							</sound>
						</sounds>
					</part>
				</parts>

				</replace> 



				<!-- Fix !-->
		<replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection054']/offset">
				<offset> 
					<position x="0.0" y="0.0" z="0.0"/>
					<quaternion qx="0.0" qy="-0.707897" qz="0.0" qw="-0.706316"/>														
				</offset> 				 
				<parts>
					<part name="part_detailm">
						<lods>
							<lod index="0">
								<materials>
									<material id="1" ref="rendertarget.cockpit_detailmonitor"/>
								</materials>
							</lod>
						</lods>
						<size>
							<max x="0.3939253" y="0.2626169" z="2.216548E-06"/>
							<center x="-7.384896E-03" y="1.938975E-02" z="-7.343322E-03"/>
						</size>
						<size_raw>
							<max x="0.386582" y="0.2432271" z="7.387115E-03"/>
							<center x="-7.384896E-03" y="1.938975E-02" z="-7.343322E-03"/>
						</size_raw>
					</part>
				</parts>
		</replace>
</diff>



i will fix all cockpits in time , a lot more to come tnx for blender just for showing me the right places for this oldy bug ... no more ...

Post Reply

Return to “X Rebirth - Scripts and Modding”