[DISCUSSION+REGISTRATION] - MSCI Reference

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

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

Post Reply
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 20547
Joined: Mon, 15. Nov 04, 00:26
x4

Post by Cycrow » Tue, 19. Apr 16, 23:05

it does work on [THIS] however the command essentially clears the script stack, so if you run it on this, then that script will essentially be canceled, so nothing that comes after will work.

And in TC you couldn't use it on [PLAYERSHIP] although that was fixed in AP

User avatar
Joubarbe
Posts: 3596
Joined: Tue, 31. Oct 06, 13:11
xr

Post by Joubarbe » Wed, 20. Apr 16, 09:38

Yep, sorry shanrak, I kind of forgot the "station" part of your question. Indeed, you cannot move a station. You need to destroy it and build another one. Two things to check when you do that : docked ships and station credits if it's owned by the player.

EDIT : and you should download X-Studio :)

shanrak
Posts: 587
Joined: Wed, 25. Feb 09, 06:54
x3tc

Post by shanrak » Thu, 21. Apr 16, 11:57

Joubarbe wrote:Yep, sorry shanrak, I kind of forgot the "station" part of your question. Indeed, you cannot move a station. You need to destroy it and build another one. Two things to check when you do that : docked ships and station credits if it's owned by the player.

EDIT : and you should download X-Studio :)
Do you have a link to a version?

The one in this thread seems to have died: http://forum.egosoft.com/viewtopic.php?t=301433

Thanks :)


radistmorse
Posts: 1
Joined: Fri, 9. Dec 16, 17:31

Wrong description for "read text from ... to ..."

Post by radistmorse » Fri, 9. Dec 16, 17:46

Sorry if I'm writing in the wrong place.

The description for the function "read text: page id=$i, from $j to $k to array" which can be found here

http://forum.egosoft.com/viewtopic.php?t=286539

is not accurate. The resulting array includes the line with the number $k (the "to ..." value) only if the "include empty =" is set to FALSE. Otherwise the last line is ignored. So short example:

Code: Select all

$test1 = read text: page id=1906, from 101 to 103 to array, include empty=[FALSE]
$test1 = size of array $test1

$test2 = read text: page id=1906, from 101 to 103 to array, include empty=[TRUE]
$test2 = size of array $test2

* Now $test1 == 3 and $test2 == 2
Correct the description please. I just spent 2 hours trying to find WTF is going on.

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 21111
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus » Fri, 9. Dec 16, 18:41

***Merged with MSCI Reference discussion thread***


Good find. While testing your findings, I noticed that the "include empty" option doesn't seem to do anything. Whether it is set to TRUE or FALSE, empty text ids will always be included. Therefore I feel what you found may be a bug with the command in general. I'll try to get an answer on that, before making changes to the command explanation in the MSCI Reference.
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

Post Reply

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