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
game starts and ingame texts not found
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Moderator (Script&Mod)
- Posts: 22437
- Joined: Sun, 14. Nov 04, 23:26
-
- Posts: 693
- Joined: Fri, 21. Jan 05, 00:44
-
- Sith Lord
- Posts: 8255
- Joined: Wed, 6. Nov 02, 20:31
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
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
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
-
- Posts: 693
- Joined: Fri, 21. Jan 05, 00:44
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..

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..
-
- Moderator (Script&Mod)
- Posts: 22437
- Joined: Sun, 14. Nov 04, 23:26
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
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
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>
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