[Script][V1.3|2.5|1.0] X2-X3//X3-X3-Converter//Copy Ships and Stations

The place to discuss scripting and game modifications for X³: Reunion.

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

Pokhara
Posts: 93
Joined: Sat, 17. Feb 07, 14:55
x3

Post by Pokhara »

Hi to all the people and sorry my english..

Im so interesting in this script cause I want to start a new game..
But i would like to import my old ships -just, not the stations and nothing more, thats right...only the ships..

But, there is anyway to show with your script ONLY the sectors which one i have ships??? not all im visited before????

I mean, at first, on my first load, on the galaxy map, i would only seen sectors if i have ships on there.. Not more sector preview visited...

I hope i could explain myself :oops:

Thanks :)
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Both is possible, if not easy though.

If you remove the script "plugin.stl.x3.station.xml" from your "scripts"-folder, you will get a few error messages when loading the textfile into your new game, but no stations will be built.

If you enter a "return null" in line 118 of the script "plugin.stl.x3.header.xml", no sectors but the ones you have property in will be mapped. (Same if you comment out line 130.)
Pokhara
Posts: 93
Joined: Sat, 17. Feb 07, 14:55
x3

Post by Pokhara »

Thanks again :) :) Going to try tonight :) :)
Chessmon
Posts: 19
Joined: Mon, 23. May 05, 05:54
x2

I can't even get started

Post by Chessmon »

I did the first part but I don’t know how to “load the data into a logfile using a normal ship command.” Can anyone help me? :?
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Oh, what joy to quote myself...
readme wrote:1. Copy Savegames to secure backup folder

2. Move the above mentioned files to their respective folders:
* Scriptfiles to folder "scripts" of the X3-directory (e.g. C:\Program Files\EGOSOFT\X3 Reunion\scripts)
* textfiles to folder "t" of the X3-directory (e.g. C:\Program Files\EGOSOFT\X3 Reunion\t)

3. Start X3 with the correct Savegame. If not active: activate scripteditor by changin player name to “Thereshallbewings”.
The activation of the Scripteditors can be reversed later by loading an older save/not saving.

4. Move to calm/empty sector (optional). In the "special menu" of your playership or every other ship of yours, select option
“X3-X3-Converter”. Select any object and position and then type in "write".

5. Wait. The script runs with approximately 10 objects per second, that is about two minutes for 1000 objects. With all
preparations and final acitivities, waiting times of 30 and more minutes can develop in bigger empires.
* Directly after the start, the script must work very fast, because a snapshot of the universe is to be made, if possible.
In this phase ships stop, menus don't show etc. - this might take up to 5 minutes.
* While the converter runs, the performance worsens. Therefore, collisions in the current sector are possible, which some ships might
actually not survive.
* As good as the SETA works under normal conditions - here its use is doubtful: As soon as X3 comes to a temporary hold, the PC
reached a certain limit of operations which it can process in a given amount of time. The SETA cannot decrease this time.
Instead, it reduces the waiting period of all Scripts, so that all the more code per time must be processed. The X2-X3-Converter
has comparatively small waiting periods and can therefore hardly have an advantage of the shortened waiting period.
* There is short noise every 5 objects. All 250 objects, a message appears in the newslog. Here you see the process of the script.

6. After the log is completed, close/minimize X3 and open the X3 directory.

7. Here a file with the name log08758.txt was created. This file must now be copied into the “t”-folder. Then it
has to be renamed to “448758.xml”. The error message that a change of the file name could make the file useless, does not apply here.

8. Start X3 with the other Savegame. If not active: activate Scripteditor by changing your player name to “Thereshallbewings”.
Here, this process is irreversible.

9. Move to calm sector visit, in which there were no stations and ships in the other save (optional). In the special menu of your playership or
every other ship, select the command “X3-X3-Converter”. Now an object and a position have to be selected, it does not
matter what is selected - The selection is only necessary in order to make a second function of this command possible later. Type in "read".

10. An InGame-user message arrives, saying:

Some PCs might not be able to support X3 with that many objects. This might result in a way lower performance, maybe even a crash.
I tested the system with an average PC and 4000 objects and did not notice any severe performance decrease. During the tests, the
import lasted 30 or more minutes. Therefore, an audio signal is sent every five objects. I strongly advise not to be in any sector
where an object is built. Unknown or in X2 nonexistant sectors are preferrable. There will be a break every 250 objects to leave
the game in case of nonreacting keys. This dekompression can only be made once to avoid cheating and related problems.

11. An object is created about each second. This time is needed to calculate type, wares etc. for one object after the other. - There
is a break every 250 objects in which you get a status message. I remind of the fact that one hour consists of 60 minutes or 3600
seconds - watching a nice video or reading an exciting book should be taken into account if the empire is one of the bigger ones.
* Each ship moves to the next station immediately after being created in order to escape from possible enemies.
* Due to a problem in the X2-Scriptengine, the command of the ship cannot be transmitted. It is advisable to name the ships in
such a way that they can be connected directly to a station and a command by name.
* In X³, the number of weapons a ship can carry increased extremely. The ships from X² still have their weapons in the cargo bay,
new equipment is however recommendable.
* The placement of stations is approximately adapted to the sector size. Nevertheless, stations can be shifted in some cases, e.g.
because the real place is now already occupied by other objects.

12. After every station has been built and a message arrived, the game can be saved.

13. Control: Under certain circumstances, objects will not be set to safe positions. In this case, one can select the station and a
free new position with the command “X3-X3-Converter” and typing "set" into the textbox. (max. distance: 10km). After this,
all Scriptfiles should be removed for the folders in order to prevent an irritation and longing times.
Note that in 4., "special" should read "piracy".


Where in the process are you, and in what way are you stuck?
Chessmon
Posts: 19
Joined: Mon, 23. May 05, 05:54
x2

I should be a little more specific. X2 to X3

Post by Chessmon »

I guess I should be a little more specific. I’m trying to convert and x2 file to an X3 file. I did all of step 2. Now things get confusing. I then opened “X2 the threat”, load my game, and now I’m sitting in my Khaak M3. :roll: (I Love those things.) I opened my ships control counsel and can’t see a command that looks like it will start the process. Even in the special menu. :? Do I need the “Thereshallbewings” name to get the command that I am suppose to see? (I have x2 1.4 version if that makes a difference.) Or am I not even in the right area. FYI: I have never programmed before :o so please use simple language, please be detailed.
Thanx in advance, Chessmon :D
I would also like to say thank you for the long detail response above. I saved it in case I ever want to do that too. :D
If you already posted this once just tell were I can find the answer.
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

You must enable the X2-script editor by typing "Thereshallbewings" when flying in space. After this, the menu will show up in your "Special Commands".
Chessmon
Posts: 19
Joined: Mon, 23. May 05, 05:54
x2

I must be doing something wrong.

Post by Chessmon »

I must be doing something wrong. I load may game and fly out into space. Then I tried the following:
1. In open space with no menus open I yped “Thereshallbewings” (both with and without Quotation marks) As I type I jumped around in a bunch of menus and retarget because of the keys I’m hitting. I checked the special menu in ships commands each time.
2. Then I tried typing it in the message log. (both with and without spaces between the letters) I checked the special menu in ships commands each time.
3. Then I tried those steps in another ship. All I can see is the special commands to “collect wares in sector”,” Collect ware…”, and “Leave ship”.

Then just to be sure that I didn’t miss anything doing step 2 of your post (both to X2 and X3 Scripts folders and T folders) I redid step 2 and retried my steps above. No result. :(
I must be doing something simple wrong, :evil: but I just don’t know what.
:roll: -Thanx for your help Chessmon
Chessmon
Posts: 19
Joined: Mon, 23. May 05, 05:54
x2

Post by Chessmon »

I just realized that the placement of the faces in my previous post might look sarcastic. I did not mean to be sarcastic. Sorry
I would still like to know what I’m doing wrong. I understand you are busy though, please get to it when you can.
Thank you for your continued help.
chessmon
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

For X2, check if there is a small "modified"-Tag on the upper left corner of your screen. If there is not, try again to activate the script editor. You can check if the script editor is enabled by pressing the NumPad-Enter, then "e", then "s". If nothing pops up, you still do not have the Scripteditor activated, and thus cannot start the command yet.

If, however, you do have the scripteditor activated and still no command is visible, check if
* you installed the files to the correct locations
* there are no other scripts you installed that might be conflicting with this script


This is how far I can help with my current knowledge - if all of this does not work, I need more information (or you just send me the savegame, and I'll do the conversion for you).
Chessmon
Posts: 19
Joined: Mon, 23. May 05, 05:54
x2

Post by Chessmon »

Not small “Modified”-Tag :(
Wail in flying in space I typed:
“Enter” takes me into main menu. “E” takes me into command conceal. “S” took me into script editor. Wow. Cool. :o :D :) 8)
You asked “you installed the files to the correct locations”
I double checked that the files where copied into the correct places. (Is there a difference between install and copy? I never ran any install program just click-and-dragged the files to the correct spots)
You asked ”there are no other scripts you installed that might be conflicting with this script”I’m running a lot of mods. They include BPH software for trading, afterburners, dock manager, faster ships… To name a few. I don’t know if these conflict.
I still only see the three commands in the Ship-command-special-menu found by pushing “Enter”, “S”,”C”, then “4” (I know of no other Special Menu) :(

Where do I send my saved file to so you can convert it? Or if I said something above that helps you identify my problem you can try giving me instructions again. I would like to have the experience of converting my own game if at all possible. :wink: I understand you are busy so, again thank you for your time and respond when you can.

Thank you for your continued help.
chessmon
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

There is no difference between C&Ping the scriptfiles and installing them. You will find my email-address in the readme that you hopefully read, which came with the script. :wink:
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Everytime i load my new save then use the READ command I get a readtext error saying something about "null" Why wont this work?
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

joelR wrote:Everytime i load my new save then use the READ command I get a readtext error saying something about "null" Why wont this work?
Depends. Most likely, you did not rename the logfile correctly, so it cannot be read by the new game. You can send the logfile to me (again, Email in readme) for further inspection. :)
Vanarion
Posts: 66
Joined: Thu, 5. Feb 04, 23:36
x4

Maybe Satelites trying to fly to the nearest station?

Post by Vanarion »

Hello,

there may be a little bug in the converter.
Looking through the script tasks after converting X3 to X3 I noticed over 1500 tasks of script plugin.stl.X3.move.
Could it be that when recreating ships satelites get that command too (got around 4+ advanced satelites in each sector)?

Thank you for this great tool.
Seriphyn
Posts: 48
Joined: Wed, 28. Mar 07, 22:30
x3

Post by Seriphyn »

Right, I have no idea what I'm supposed to do.

Go from the top, y'know, from before "you just put a few script- and textfiles in the respective folders in X³" :lol:

I know this is stupid but I'm just a normal X3 player (unless normal x3 players know what you're talking about...) and have no idea how to create a script file or text file.

So, n00b instructions anybody pleeeeaaase?
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Seriphyn wrote:Right, I have no idea what I'm supposed to do.

Go from the top, y'know, from before "you just put a few script- and textfiles in the respective folders in X³" :lol:

I know this is stupid but I'm just a normal X3 player (unless normal x3 players know what you're talking about...) and have no idea how to create a script file or text file.

So, n00b instructions anybody pleeeeaaase?
The script- and textfiles are part of the package. You do not need to create them, but just to copy them from the .zip into the folders the readme tells you to. Did you download the .zip and follow the readme so far?
Seriphyn
Posts: 48
Joined: Wed, 28. Mar 07, 22:30
x3

Post by Seriphyn »

Wow, I'm an idiot. When "a few" was said, I didn't know it meant the ones in the zip! Haha, righto I see.

OK, yes, and the readme does have actual step-by-step instructions.

However, it says "load the respective savegame". Now would be a good time to mention I am migrating from X3 to XTM so the savegame with all my ships and that is corrupt.

Do I reinstall X3 vanilla, do the process then, THEN install XTM and continue from when you load the second savegame?
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Seriphyn wrote:Wow, I'm an idiot. When "a few" was said, I didn't know it meant the ones in the zip! Haha, righto I see.

OK, yes, and the readme does have actual step-by-step instructions.

However, it says "load the respective savegame". Now would be a good time to mention I am migrating from X3 to XTM so the savegame with all my ships and that is corrupt.

Do I reinstall X3 vanilla, do the process then, THEN install XTM and continue from when you load the second savegame?
You first have to load the savegame you have, so the script can read your properties from it. For this, you have to get this save working, which in ths case means you have to install vanilla X3. Only after logging your data to the textfile, you can start a new game in XTM, into which you can upload your old properties.
Seriphyn
Posts: 48
Joined: Wed, 28. Mar 07, 22:30
x3

Post by Seriphyn »

OK all went a-ok...until...

Typed read. Three negative beeps and...
null - Header could not be read correctly
String: ReadText8758-1
followed by a
2 - There was a problem in line ReadText8758-1 - string null could not be read. Started with next line
I figured maybe because the log file was still txt despite me renaming it to whatever.xml, so I opened it up in openoffice and saved it as xml and deleted the other one.

Same problem though. It just gives 3 negative beeps and the game goes back to normal...unless it is still operating...

Return to “X³: Reunion - Scripts and Modding”