Changing the players starting sector+ship

The place to discuss scripting and game modifications for X²: The Threat.

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

User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Changing the players starting sector+ship

Post by giskard »

Hello all.

Does anybody know how to make a new game start in a sector other than argon prime. I have scripts to spawn the ship I want in the sector I want it to appear in. It works fine when i run it from the script editor.

The idea is to spawn the player in a bayamont in a pirate sector at x8, y10 or id 33785 when he starts a new game.

Instead im getting a discoverer in argon prime as usual.

Anything would be helpful here. :)
Thanks.

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Did somebody say Bump ?

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

There's a galaxy.Example.initplayership script included with the 1.3 patch. From looking at it the script puts a player ship in Cloudbase Northwest as a start sector. I haven't tried it yet but maybe it's a start. :D
User avatar
Storm_Front
Posts: 1021
Joined: Mon, 15. Dec 03, 05:27
x2

Post by Storm_Front »

I had hoped it would be possible with the Galaxy Editor, but so far no luck. :(
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

the init script doesnt move the player :]
NeverSnake
Posts: 5159
Joined: Thu, 9. Oct 03, 20:44
x3tc

Post by NeverSnake »

So what happens if you delete Argon prime?
User avatar
Storm_Front
Posts: 1021
Joined: Mon, 15. Dec 03, 05:27
x2

Post by Storm_Front »

NeverSnake wrote:So what happens if you delete Argon prime?
I did that and it moved me to Kingdom End, but still stuck in the damned Disco :evil:
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

does anybody know what that galaxy.Example.initplayership script if for then?
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

yes, it is only for use with the Example Map. I've deleted my Example map, but as I recall, you start out in Cloudbase whatever, and there's only a few sectors or just 1 sector. anyways try fooling around with !galaxy.editor.create.special ? There's got to be a way as sometimes you spawn in a nova, I'll look into it.
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Yes i tried the example script. my own script is a modified version of it. Its a very helpful script. I dont really want to add the code directly to my mods init script because im not 100% sure if it would always respawn the player in that system even after he has saved a game and reloaded it.

I do know that in some of my tests the game has created the requested ship in the requested system but only as a player owned ship and not as the players own ship.

Which is not what i wanted.

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

I've looked thoughout the game directories trying to find something. I'm guessing it's in the EXE or one of the OBJ files....that may contain that option.
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Yes it is definately either well hidden or so obverous we are looking right at it and not seeing it.

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Too many bumps in here :lol:

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Bump Question needs some sort of answer.

Giskard
This signature has been stolen by the well known Teladi Signature Thief X Siggy.
kryptyk
Posts: 483
Joined: Fri, 5. Dec 03, 20:19
x4

Post by kryptyk »

Not even a hint yet huh....keep it up giskard...I'm sure we're not the only ones who would be interested in this answer.
Howlingmad
Posts: 1252
Joined: Wed, 6. Nov 02, 20:31
x3

Post by Howlingmad »

I'm interested inthe answer but I haven't got a clue anyway. :D :D
What no sig or avatar. I wonder why?:(
User avatar
giskard
Posts: 5230
Joined: Wed, 6. Nov 02, 20:31
xr

Post by giskard »

Egosoft have answered 1 question that I regard as more important than this.

EG a bug in the Galaxy editor turns out to be feature preventing players for using existing sector features for checkers just incase the feature doesnt exist in some universes.

So im happy about that.

I really want Egosoft to understand we mod makers do not bite (much) when questions are answered and that the number of questions they need to answer is usually restricted to a few really juicy ones. After which we can normally take it from there our selves.

Giskard

Return to “X²: The Threat - Scripts and Modding”