[Script Request] cockpit reposition

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

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

User avatar
xrook
Posts: 205
Joined: Fri, 31. Jul 15, 01:25

[Script Request] cockpit reposition

Post by xrook »

my head is already tired finding a way around this cockpit issue and the only thing i could think of left is to script it

script works like this
-when buying a new cockpit and the script will trigger where it would position the new cockpit here <position x="-3.103749" y="2.050501" z="-2.879636"/>
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

As I already said I already worked on this without success (no command to move ship parts and the commands to move objects don't work on components) - only way I found which works is a save edit. You could make the CP a one time decision on gamestart and disable swappable CPs - would circumvent the cp in pivot issue and if you want to change the CP you can still do it with a save edit
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
xrook
Posts: 205
Joined: Fri, 31. Jul 15, 01:25

Post by xrook »

when i checked the savefile what i saw in the CP connection was
<offset default="1">
compared to the other connections which has
<offset>
<position ********>
</offset>

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

Post by UniTrader »

It's the position you need to set - when changing CP this value is set to 0 0 0 or something with the same effect but there is no way ingame to set this back to the actual connection offset and iirc setting it to default does also not help (except for the starting cp) - you have to specify the offset value explicitly
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
xrook
Posts: 205
Joined: Fri, 31. Jul 15, 01:25

Post by xrook »

okay how about this

a script that will edit the save file to change the offset position to the custom one when loading a game
You could make the CP a one time decision on gamestart and disable swappable CPs
is that a script? i can only do is edit a the games files and i have been doing good so far
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

No access to save file contents via script :roll: also no access to external programs or OS functions - I have tried to find an pure ingame solution for this for about 2 weeks without success - feel free to continue brainstorming but I doubt I overlooked something to

Regarding my suggestion with removing the CP choice: nope, a mod - basically you have to remove the compatibility of other CPs from the Albion Pride and maybe even define it as not exchangeable - and also if you want to do it thoroughly also remove the CP change option from the respective traders
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
xrook
Posts: 205
Joined: Fri, 31. Jul 15, 01:25

Post by xrook »

well you see, if this is just a personal mod i wouldnt mind editing the save and leave it as that. but since im planning to release it, the obvious thing that others will complain about is the issue when buying a new cockpit.
if its going to be like that i might not release it at all

when you said this
one time decision on gamestart
i thought you thinking of a script where people get to choose which cockpit they want before starting the game

so... the last thing on the list to solve an issue is to remove a game feature? :cry:

Return to “X Rebirth - Scripts and Modding”