[MD]How to change a name of non-vanilla sector?

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Falconek
Posts: 113
Joined: Thu, 28. Jun 07, 14:10
x4

[MD]How to change a name of non-vanilla sector?

Post by Falconek »

I use following code with mission director

Code: Select all

          <find_sector name="L2Mxxx.UKS" x="20" y="20"/>
          <set_sector_override sector="L2Mxxx.UKS" textid="10300020"/>
where "10300020" is text entry on page 17.

This works perfectly for vanilla sectors. But when i add a custom sector, and try to use this procedure, sector name remains "20-20". Any ideas what may be wrong and how to solve it?
User avatar
X1000
Posts: 896
Joined: Mon, 22. Jun 09, 16:59

Post by X1000 »

I am kinda interested in how you added a non-Vanilla sector. :?
ITFUncleDave
Posts: 163
Joined: Fri, 27. Jun 08, 18:47
x4

Post by ITFUncleDave »

X1000 wrote:I am kinda interested in how you added a non-Vanilla sector. :?
http://forum.egosoft.com/viewtopic.php? ... 48#3173048

@Falconek, find where the custom sector's name is set, in a text file i'd imagine. Download Doubleshadow's old X3 Editor (the one with the galaxy editor), open up the map file containing the custom sector, and locate it in the list, that should give you all the info you need.
Falconek
Posts: 113
Joined: Thu, 28. Jun 07, 14:10
x4

Post by Falconek »

ITFUncleDave wrote: @Falconek, find where the custom sector's name is set, in a text file i'd imagine. Download Doubleshadow's old X3 Editor (the one with the galaxy editor), open up the map file containing the custom sector, and locate it in the list, that should give you all the info you need.
Thanks! This is what I needed.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Note: Those vanilla Text-IDs use the coordinates for identification. ;)

Thus: <t id="10300020"> will be the sector at the position x=00 and y=20 :)
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

enenra wrote:Note: Those vanilla Text-IDs use the coordinates for identification. ;)

Thus: <t id="10300020"> will be the sector at the position x=00 and y=20 :)
No, it's:

<t id="1030121"> for y=0 and x=20.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Trickmov wrote:
enenra wrote:Note: Those vanilla Text-IDs use the coordinates for identification. ;)

Thus: <t id="10300020"> will be the sector at the position x=00 and y=20 :)
No, it's:

<t id="1030121"> for y=0 and x=20.
Depends on whether you count Kingdom's End as 1 or 0. ;)
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

The inGame coordinates are always 0/0 ;)

EDIT:
and the text-entry for Kingdom's End is:

<t id="1030101"> for y=0 and x=0.
User avatar
Ketraar
EGOSOFT
EGOSOFT
Posts: 12099
Joined: Fri, 21. May 04, 17:15
x4

Re: [MD]How to change a name of non-vanilla sector?

Post by Ketraar »

Falconek wrote:where "10300020" is text entry on page 17.
That won't work, MD only reads from page 7 (and all its variants), this is where sector names are.

Other than that your code is correct.

MFG

Ketraar

PS.: You can always lookup in MUS how its done, Link in signature.
Image
Falconek
Posts: 113
Joined: Thu, 28. Jun 07, 14:10
x4

Post by Falconek »

I will have to check if <set_sector_override> will work after changing page to 7, that could be the error.
But so far, I like the method with checking in galaxy editor original text ids assigned to these empty sectors, and adding them to my own text file with text I need.
It seems, that ids of "empty" sectors don't have corresponding entries in vanillia text files. This way I don't even need to use <set_sector_override>, cause names that I want, are assigned when I load my text file and map file.
User avatar
Ketraar
EGOSOFT
EGOSOFT
Posts: 12099
Joined: Fri, 21. May 04, 17:15
x4

Post by Ketraar »

Falconek wrote:I will have to check if <set_sector_override> will work after changing page to 7,
again, if you look in MUS you will see that it does work, according to users that use it and have made their adjustments it works fine.

MFG

Ketraar
Image

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”