[MOD] Better Cockpits v0.5

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

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

OlDav54
Posts: 11
Joined: Mon, 18. Nov 13, 00:31
xr

[MOD] Better Cockpits v0.5

Post by OlDav54 »

This mod (my first mode eveeeeer :D) expands the exterior view by moving and removing parts of the cockpit.

I have removed the top, front, left and right side of the visible cockpit, as well as the glass and distorsion effects from the cockpit's window.

[ external image ] >>> [ external image ]

There is still room for improvement, but that will do for now :) .

Kown issues :

- the layer from the different scan modes does not fit the new cockpit. 3D modelling tools will be needed to solve that.

[ external image ]
Last edited by OlDav54 on Tue, 19. Nov 13, 22:58, edited 3 times in total.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Hey there! Nice work. :)

Use this to link to the Nexus page:

[ external image ]


EDIT: Oh, and btw.
Gazz wrote:The border is defined in
\Steam\steamapps\common\x_rebirth\Extract\assets\units\player\units_player_cockpit_1.xml
I believe.

I can probably deal with that. =)
But that would be tomorrow.


Anyway, the ZIP for that cockpit mod appears to be broken.
From here: http://forum.egosoft.com/viewtopic.php?t=350199
98abaile
Posts: 345
Joined: Sat, 14. Aug 04, 16:22
x4

Post by 98abaile »

Thank you.
stk25
Posts: 33
Joined: Sun, 17. Nov 13, 11:44
x3ap

Post by stk25 »

Good work! Much better than the version I was working on, just have one small request: is there any way to move the screens/panels to the corners of the screen? Like have the shield/boost/health on the bottom left and the weapon/missile screens on the bottom right, kinda like how FPS games do it? I tried looking into it but I'm not really sure how those coordinates work :shock:
Last edited by stk25 on Wed, 20. Nov 13, 01:26, edited 1 time in total.
OlDav54
Posts: 11
Joined: Mon, 18. Nov 13, 00:31
xr

Post by OlDav54 »

I will add different cockpit in the near future (with no visible 3d models for example). Moving stuff is not hard, but it takes some time to have something nice. Also, the game is using quaternion angles, so rotating stuff in the right way is quite difficult :headbang: ...
stk25
Posts: 33
Joined: Sun, 17. Nov 13, 11:44
x3ap

Post by stk25 »

OlDav54 wrote:I will add different cockpit in the near future (with no visible 3d models for example). Moving stuff is not hard, but it takes some time to have something nice. Also, the game is using quaternion angles, so rotating stuff in the right way is quite difficult :headbang: ...
Ah thought as much, maybe I'll take a crack at it tomorrow, probably take a while though since I'm no good with quaternions :rofl:
Also not sure if you know but it's an easy fix for the border/edge icons:

Code: Select all

<replace sel="/components/component[@name='units_player_cockpit_1']/properties/border"> 
<border>
<position x="0" y="0" z="0"/>
</border>
</replace>
Makes them show at the edges of the screen, they show under the joystick and pillar thing though so I had to disable them too, reminds me of X3 now heh..
Last edited by stk25 on Wed, 20. Nov 13, 01:25, edited 1 time in total.
98abaile
Posts: 345
Joined: Sat, 14. Aug 04, 16:22
x4

Post by 98abaile »

An idea but rather than try to fix the scan mode effects for this mod, can you just replace the entire texture for just a simple small icon (an icon for each mode) in the bottom left of the screen. Would probably only need a texture edit.
stones1601
Posts: 11
Joined: Tue, 19. Apr 11, 04:57

Post by stones1601 »

Excellent work mate. Any chance of a 16:10 aspect ratio version? The 16:9 chops off everything right of the % sign in the info window.

Cheers mate
OlDav54
Posts: 11
Joined: Mon, 18. Nov 13, 00:31
xr

Post by OlDav54 »

Thanks for the tip stk25 :) . Deleting the entire border section didn't influence the borders in-game, so I tought in the first place it wasn't the right thing.

I will make an update asap.
Shrewd135
Posts: 895
Joined: Fri, 6. Apr 12, 23:34

Post by Shrewd135 »

As you continue updating this, would you consider creating a simple tutorial on what you did to modify the cockpit? Perhaps a video tutorial using something like Cam studio uploaded to you tube.

I am sure there are others that have some customizations they would try that have questions on what they need to do. Me being one.

Thanks.
User avatar
nonnex
Posts: 366
Joined: Wed, 28. Aug 13, 12:42
x4

Post by nonnex »

thanks, very nice one.

Is there a property for alpha (transparency) that could be changed?

Like for materials:

Code: Select all

<property name="alphaStr" value="[double val]"></property>
It would be cool to change the alpha for the right MFD.
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

olivier54 wrote: Nevermind, you where right, the border parameters does defines... well the border :laugh: .
Hehehe.

I tried practically all weekend to do what you did. Removing the model, removing textures, making textures transparent, but nothing had the intended effect.

I'm useless with graphics stuff. Code monkey, ya see...?

Now I CAN SEE!



BTW, digging through the graphics I DID come across the graphic for the scanner mode overlay.
\assets\textures\player\cockpit

They are GZipped DDS textures. One of them has the "ski goggles" shape of the scanner mode glow.

I'll see if I can mess with that one later. I should be able to handle a flat texture like that. =P

OlDav54 wrote:This mod (my first mode eveeeeer :D) expands the exterior view by moving and removing parts of the cockpit.
And you're starting with a bang. =)
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
danskmacabre
Posts: 132
Joined: Wed, 6. Aug 08, 12:59
x3tc

Post by danskmacabre »

stones1601 wrote:Excellent work mate. Any chance of a 16:10 aspect ratio version? The 16:9 chops off everything right of the % sign in the info window.

Cheers mate
I created a 16:10 version of this mod so it all appears and also moves the primary and secondary weapons readout to the bottom left.

Just replace this bit of content in units_player_cockpit_1.xml with the following near the bottom bit of XML.

Code: Select all

	<!-- Ship's status screen position!-->
	 <replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection05']/offset">
		<offset>
			<position x="0.37" y="-0.32" z="1"/>
			<quaternion qx="0" qy="0.7" qz="0" qw="1"/>
		</offset>
	 </replace>
	 
	 <!-- Ship's event screen position!-->
	<replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection08']/offset">
		<offset>
			<position x="0.635" y="-0.31" z="0.8552095"/>
			<quaternion qx="0" qy="0.15" qz="0" qw="1"/>
		</offset>
	 </replace>
	 
	 <!-- Ship's primary weapon screen position!-->
	 <replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection25']/offset">
		<offset>
			<position x="-1.2" y="-0.62" z="1.5"/>
			<quaternion qx="0" qy="0.25" qz="0" qw="1"/>
		</offset>
	 </replace>
	 
	 <!-- Ship's secondary weapon screen position!-->
	 <replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection26']/offset">
		<offset>
			<position x="-1.25" y="-0.78" z="1.5"/>
			<quaternion qx="0" qy="0.27" qz="0" qw="1"/>
		</offset>
	 </replace>

Screenshot of the the 16:10 version
http://steamcommunity.com/sharedfiles/f ... =196142342
DaMuncha
Posts: 1394
Joined: Mon, 1. Nov 10, 10:00
x4

Post by DaMuncha »

Its a sad day when the moderators are ripping on the game and looking for mods to fix it
OlDav54
Posts: 11
Joined: Mon, 18. Nov 13, 00:31
xr

Post by OlDav54 »

New version available !

- Added support for 16/10 screens.
- Enhanced 4/3 cockpit. The status screen isn't cropped anymore.
- Enhanced the way icons are displayed. Icons will now follow the outline of the new cockpit.

Next update will add a new cockpit with, well, no cockpit at all :D , just HUD.
I will also look into making different fovs, and modify the scanners textures.
TerminalVelocity3DR
Posts: 65
Joined: Tue, 31. May 11, 07:05
x3tc

Post by TerminalVelocity3DR »

Question for the modmaker, awesome work!!!!!!!!!

You know what the "wave and boxes" thing at the bottom right is called?
When you sit in the cockpit, its all the way on your side, bottom right of the screen, it has 3 small red led lights close to it.

It has the blue boxes appearing, and is very small, but it disturbs me a bit, since when recording with fraps, its always close to the framecounter, and it has no apparent use.
Realspace
Posts: 1637
Joined: Wed, 15. Nov 06, 10:21
x4

Post by Realspace »

Ehm...I do like the cockpit only it is too intrusive, is there another approach possible such as zooming/changing the FOV? Any clue or instruction to do it? Thanks!
ALien8ed
Posts: 59
Joined: Thu, 26. Jan 06, 02:32
x4

Post by ALien8ed »

OlDav54 wrote: Next update will add a new cockpit with, well, no cockpit at all :D , just HUD.
I will also look into making different fovs, and modify the scanners textures.
Excellent work and i look forward to future updates... :)
Marodeur
Posts: 1349
Joined: Wed, 6. Nov 02, 20:31
xr

Post by Marodeur »

Nice adds for a cockpit would be:

- Radar (on the lower left side would be a nice place for it)
- The middle console placed at the TOP of the screen. Only seeing a SMALL part of it. If you open the menu the screen slides down into the view. No more turning around and looking to "not-so-beautiful" co pilots.
TerminalVelocity3DR
Posts: 65
Joined: Tue, 31. May 11, 07:05
x3tc

Post by TerminalVelocity3DR »

Ok if you just want to disable the lights:

Code: Select all

	<remove sel="/components/component[@name='units_player_cockpit_1']/layers"/>
If you want to remove that bottom-left "thingy" with the flashing boxes and wavy lines:

Code: Select all

	<remove sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='Connection53']"/>
Thanks OP, the mod is awesome, working on a no-Cockpit, only Hud mod too right now, haha :)

Return to “X Rebirth - Scripts and Modding”