game starts and ingame texts not found

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

Anubitus
Posts: 693
Joined: Fri, 21. Jan 05, 00:44
x4

game starts and ingame texts not found

Post by Anubitus »

hi

i was adding a station to my game, added a entry with number 14073 into the 17 section of my 0001-L044 t file and added the scene files of the station to my mod..

now when i load the game and select to start a new game, the game starts all apear as -TextNotFound- on my screen.. also ingame, all texts are readtekst-number.. tried to fix this but somehow, it wont work.. tried reverting to a older version of TDocks and of the t file but it wont work.. anyone knows what may be causing this to happen..?

AnU
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

Sounds like uve made a mistake with the file. 0001-L044

If there's a bad format or uve missed an end tag then the whole file won't load

Its not really advisable to edit that file directly anyways best to create a new text file
Anubitus
Posts: 693
Joined: Fri, 21. Jan 05, 00:44
x4

Post by Anubitus »

how exacly do i do that?
i reverted back to a backup of my mod, and now it works again.. but how do i create a new file..? just make a copy and edit it? (thats what im doing atm) or make a other t file with a other name? and what should that name be..?

thx for replying cycrow..
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

look in the download index and you will see a list of used t files (7th post down), just find one that isn't used there are thousands of options from 1000 - 9999 you can use, just make sure you get one that isn't in the middle of a scripting range

e.g mine start at 8800 and go to around 8850

get my Tutorial Creating a Menu in TC that will give you a basic t file for reference
LV's TC Scripts
Readme's For All My Scripts


I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced

si tacuisses, philosophus mansisses
Anubitus
Posts: 693
Joined: Fri, 21. Jan 05, 00:44
x4

Post by Anubitus »

would it be enough just to open the 0001-L044 file, delete everything in it add ur own teksts and save it as for example 2457-L044..? cos i done something like this and still my teksts wont load.. :(

EDIT: whokay, i done some looking around and it apears i have to write a script for my tekst to be used by the game..? ( http://forum.egosoft.com/viewtopic.php?t=136357 ) if this is indeed the case, can someone pls help me with this..? i have no idea how to do that/write a script..
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

theres really no need to use the 0001 file as a base, its better big, and u really done need most of.

the first 2 lines are the ones you need, one sets the xml format, the next is the language, make sure that matches the language of your filename.

then you need the </language> end tag right at the end.

then between the language and /language tags, you have you pages

in your case, just need page 17 with a t entry of 14073, u'll also need 14074 too, your id + 1 is the objects description

soemthing like

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">
<page id="17" title="my station" descr="">
 <t id="14073">My Station Name</t>
 <t id="14074">My Station Description</t>
</page>
</language>
then, you need to create a script to load this into the game.

the easiest is to make a setup script, this will auto run when ever you load the game.

to do this, enable the script editor, and go into it
at the top, select new script, and enter a name for your script, make sure it starts with setup, it setup.mystation

then in that script, add the command, load text: id=

and set the id to the filename, ie 2457
then save and exit

to test it, run it be highlight the new script from the list and press r

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