[PROGRAM] X-Studio Script Editor [v1.08 : 14th Feb 14]

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
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24950
Joined: Sun, 2. Apr 06, 16:38
x4

Post by X2-Illuminatus » Mon, 13. Apr 15, 13:59

GlassDeviant wrote:Where is the types folder? My X3AP has no such folder.
Like most game files, the types folder can be found within the cat/dat files. Use the Virtual File System (VFS) from X3 Editor 2 to extract the newest files from that folder.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

GlassDeviant
Posts: 291
Joined: Sun, 4. Nov 12, 12:06
x3tc

Post by GlassDeviant » Mon, 13. Apr 15, 14:13

Cool, thanks!
bibo ergo sum

GlassDeviant
Posts: 291
Joined: Sun, 4. Nov 12, 12:06
x3tc

Post by GlassDeviant » Mon, 13. Apr 15, 17:24

So I run X3 Editor 2, choose "Open From VFS", then just save it to a types folder in the uh..folder where I am going to be holding my mods while I edit them?
bibo ergo sum

User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 » Tue, 14. Apr 15, 00:19

The X VFS does not require the types folder to be in a cat/dat pair.
If you want you can create a types folder in your game directory (X3TC/addon for X3AP) and place it in there and it will load into the game.

The best example of this being done in the game is the t folder. Most scripts will store their text files in the t folder of the game directory, but if you go through the base game cat/dat files then you will see that in either 01.cat or 02.cat there will be a t folder holding all of the vanilla strings. In the end the principal is the same for thing that are to be saved in then types folder as well.
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.

GlassDeviant
Posts: 291
Joined: Sun, 4. Nov 12, 12:06
x3tc

Post by GlassDeviant » Tue, 14. Apr 15, 02:30

I discovered that I can just let it use the game files where they sit, and then wander through my uninstalled mod folders however I please, so that makes things easier. Unfortunately two of the three conflicts I found are just whitespace issues, the code is identical. The third one can't even be investigated as nothing will open the file from one of the two mods, so I think it might be corrupted.

...which puts me back to square one, trying to find out why my game is always messed up internally in some way that I cannot discern, but breaks CAG/CLS waypoint setup.

Well, back to the drawing board.
Last edited by GlassDeviant on Tue, 14. Apr 15, 13:44, edited 1 time in total.
bibo ergo sum

GlassDeviant
Posts: 291
Joined: Sun, 4. Nov 12, 12:06
x3tc

Post by GlassDeviant » Tue, 14. Apr 15, 13:44

How can I view two XML files in X-Studio side by side rather than having to flip between tabs?
bibo ergo sum

User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 » Wed, 13. May 15, 08:11

mr bear,
I am finally learning how to properly do C programming (even though it is for an 8-bit micro controller but the principals are the same) and I have one observation.
How the hell are you still sane?

Ok, now I have that out of my system you can carry on ;)
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.

Gqqnbig
Posts: 66
Joined: Fri, 12. Jul 13, 14:08

Post by Gqqnbig » Tue, 8. Sep 15, 01:24

IDS_SCRIPT_PROPERTY_MISSING: One or more of the mandatory extended script properties are missing or invalid
IDS_SCRIPT_ARGUMENT_TYPE_NAME_INVALID: The script argument 'targetRace' uses an unknown data type 'Var/种'
IDS_ERROR_APPEND_LOCATION: createArgumentFromNode(..) has encountered an IDS_SCRIPT_ARGUMENT_TYPE_NAME_INVALID error (ID: 0214) in Script Arguments.cpp, line 56

The script I want to open is here.

https://www.dropbox.com/s/x3yjlm1mwovac ... l.xml?dl=0

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Sat, 12. Sep 15, 11:56

@Gqqnbig,

Looks like it was edited using a Chinese language installation. X-studio doesn't support Chinese. You'll have to open it in eXscriptor on a non-Chinese installation, save it, then load it in X-Studio.

mr.bear
Rapunzel, Rapunzel, let down your bear...

User avatar
mr.bear
Posts: 444
Joined: Sat, 11. Dec 10, 01:38
x2

Post by mr.bear » Mon, 14. Sep 15, 21:42

@jack775544: sorry for taking 6 months to reply!
yes, writing all that C did make me loopy. I tried to keep it as structured as possible by having producer, destruction, mutator, and observer functions. I taught me a lot about Win32 developement at least. Although I'd never, ever do it again.

You're writing for 8-bit micro-controllers? cool. what are they for?
I got very much into C++, and I'm currently writing a textbook on it.

mr.bear
Rapunzel, Rapunzel, let down your bear...

nekoexmachina
Posts: 58
Joined: Thu, 3. Apr 14, 12:51
x4

Post by nekoexmachina » Sun, 10. Jan 16, 21:07

Any linux guys have a fix for this: http://imgur.com/yZrCaxX ?
P.s.
Does game actually requires every item to be in <xml tags>? I hate this and I only use wine/x-studio due to this strange thing in scripts. Can I code scripts without XML? It's a pain to write XML by-hand in VIM, which I usually use for everything.

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

Post by X2-Illuminatus » Sun, 10. Jan 16, 21:18

You can only write scripts in a dedicated editor, such as the ingame Script Editor or a respective external Script Editor. In case, you haven't already, you could try out X Studio 2 and see whether the bug persists.

The xml part of a script file is actually just used for displaying the script in your browser. The actual code is stored in the codearray of the script, which is hardly readable.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

nekoexmachina
Posts: 58
Joined: Thu, 3. Apr 14, 12:51
x4

Post by nekoexmachina » Sun, 10. Jan 16, 21:25

Thanks! Second version doesn't have this problem.

User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 » Mon, 11. Jan 16, 01:12

That looks like it is just a bug in wine. The X-Studio 1 interface seems to be done in a very custom fashion and it wouldn't surprise me if it broke on different platforms, where X-Studio 2 was done using more generic components.

sicknezz
Posts: 50
Joined: Sat, 18. Jul 09, 00:20
x4

Post by sicknezz » Mon, 15. Feb 16, 23:43

Hello mr.bear

If you are interested i would like to support the X-Studio a bit with a better German Translation since about 20% of the Translation is weird and not properly done ;)

If you are interested just msg me 8)


User avatar
dizzy
Posts: 1019
Joined: Sun, 26. Sep 10, 06:00
x4

Post by dizzy » Fri, 6. May 16, 06:31

I love X-Studio but one thing I hate having to do every time it starts is to put in the admin password when I know that it doesn't need any admin rights, all my game files are owned by my (non-admin) user. I've tried using things like "PE Editors" to remove the manifest from the binary that says it should prompt for admin but that didn't do anything.

Did anyone manage to make X-Studio run without administrator rights?
X3LU 1.5.2/1.7.0 Youtube series with: IEX 1.5b + LUVi, SIaF r7 (previously also used Phanon Plus 4.02, Revelation Plus 1.04, Diverse Game Starts - LU Edition)
[ external image ]

andreihaiducul
Posts: 62
Joined: Wed, 10. Jul 13, 04:23
x3ap

Post by andreihaiducul » Mon, 25. Jul 16, 18:01

Does anyone have a working download link for the source code package?

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

Post by X2-Illuminatus » Mon, 25. Jul 16, 19:10

Here you go: Link (mediafire.com)
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Deniskos
Posts: 146
Joined: Wed, 11. Jun 08, 21:40
x4

Post by Deniskos » Thu, 11. Jan 18, 06:05

X-Studio.v1.08.14.Feb.2014
Data type [DATATYPE_PASSENGER] does not work!
In order to work it is necessary to reassign the type [DATATYPE_PASSENGER] in the game editor.

Post Reply

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