EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
ReadText Error
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
NighTragE





Joined: 06 Mar 2012
Posts: 257 on topic
Location: Zagreb, Croatia
Thank you for registering your game
PostPosted: Fri, 8. Dec 17, 12:29    Post subject: ReadText Error Reply with quote Print

Recently i've been trying to add my custom ship to XRM but i always get ReadText17-***** error, i have director which loads that t file. But whatever i do the error is still there. The other names are correctly displayed only my ship is affected...

Is after the new update something changed in that matter and if so can someone point me in right direction how to make custom director/script and t file. Thanks.


_________________
TES 5: Skyrim mods:
Skyrim Werewolf Overhaul - Bloodmoon Rising

X3TC/AP Mods
[Jobs] File For Cadius Shippack 2.01 (AP)
Back to top
View user's profile Send private message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20643 on topic

Thank you for registering your game
PostPosted: Fri, 8. Dec 17, 18:53    Post subject: Reply with quote Print

Nothing should have changed with regards to loading text files with the latest update. Have you tested, whether you can load other texts from a custom text file? General things to check are the correct formatting / encoding of the text file itself (UTF-8), possible xml errors (forgotten > or <), wrong language id in the file or the file name, text id mixup in the text file or the TShips file.


_________________
Besteht Interesse an einem Nopileos-Hörbuch?

Farnhams Legende und Nopileos als E-Books!

"People who think they know everything are a great annoyance to those of us who do." - Isaac Asimov

"If it's not impossible, there must be a way to do it." - Sir Nicholas Winton
Back to top
View user's profile Send private message Visit poster's website
NighTragE





Joined: 06 Mar 2012
Posts: 257 on topic
Location: Zagreb, Croatia
Thank you for registering your game
PostPosted: Fri, 8. Dec 17, 20:30    Post subject: Reply with quote Print

The X3Editor showed correctly...i have triple checked everything. Only in game it returns the error.

Anyways replacing did of the ship with other one in XRM did the job right and correctly displays the name because my custom ship uses same id as previous ship that used that id.

I could send here my custom director and t file if you wish...


_________________
TES 5: Skyrim mods:
Skyrim Werewolf Overhaul - Bloodmoon Rising

X3TC/AP Mods
[Jobs] File For Cadius Shippack 2.01 (AP)
Back to top
View user's profile Send private message
BlaxTorm





Joined: 18 Aug 2015



PostPosted: Tue, 26. Dec 17, 01:55    Post subject: Reply with quote Print

i have a similar problem just changed a shield name which appears ok in the editor and also worked with other mod but it's not working in this one i tried new xml file tried placing inside and outside cat file to no avail Sad

Back to top
View user's profile Send private message
BlaxTorm





Joined: 18 Aug 2015



PostPosted: Sun, 31. Dec 17, 00:28    Post subject: Reply with quote Print

just found why! i was using a different file name for replacing a object name in the game which doesn't work because since the file has a different name (even if the same id as 17 it won't read it) or at least it did not this time.

Back to top
View user's profile Send private message
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)

MEDAL

Joined: 20 Nov 2005
Posts: 13614 on topic

Thank you for registering your game
PostPosted: Sun, 31. Dec 17, 01:04    Post subject: Reply with quote Print

in that case you could also have modified the setup script to point to your changed t file number Wink or create a new setup file do load your additional t file


_________________
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 Wink

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help Wink
Back to top
View user's profile Send private message
BlaxTorm





Joined: 18 Aug 2015



PostPosted: Fri, 5. Jan 18, 12:05    Post subject: Reply with quote Print

ohhhh teach me senpai Very Happy

Back to top
View user's profile Send private message
BlaxTorm





Joined: 18 Aug 2015



PostPosted: Fri, 5. Jan 18, 12:06    Post subject: Reply with quote Print

you see scripting is not my strong, at all...

Back to top
View user's profile Send private message
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20643 on topic

Thank you for registering your game
PostPosted: Fri, 5. Jan 18, 21:11    Post subject: Reply with quote Print

In future, please use the edit button to prevent two or more of your posts from appearing directly after each other without someone else having the chance to reply.

As for using text from text files, only the main text files (numbered 0001, 0002 and 0003) are loaded by the game by default. All other (custom) text files, which you add yourself and which you want to read from, must be loaded manually. You can do that by using the load text: id command in a setup script. Setup scripts start their name with "setup." (without the quotes) followed by whatever you want to call your script and are automatically loaded on the start / loading of a (modified) game. They are used for things like registering command slots or hotkeys, loading text files and creating global variables - so all the initial parameters, which may be used later. The actual script function, in case there is one, should always be outsourced to other (plugin) scripts though.
If you want to learn more about scripting, I suggest reading the MSCI Manual (written for X2: The Threat, but still accurate for the Script Editor in the X3 games). You can also check our MSCI reference for explanations of specific commands.


_________________
Besteht Interesse an einem Nopileos-Hörbuch?

Farnhams Legende und Nopileos als E-Books!

"People who think they know everything are a great annoyance to those of us who do." - Isaac Asimov

"If it's not impossible, there must be a way to do it." - Sir Nicholas Winton
Back to top
View user's profile Send private message Visit poster's website
BlaxTorm





Joined: 18 Aug 2015



PostPosted: Wed, 10. Jan 18, 17:12    Post subject: Reply with quote Print

thanks! yeah just noticed there is an edit button XD sorry

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 21. Apr 18, 23:01

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.06817 seconds, sql queries = 24