[Index] X4: Foundations Tools, Tutorials and Resources

The place to discuss scripting and game modifications for X4: Foundations.

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

alexringess
Posts: 41
Joined: Tue, 25. Sep 18, 23:57
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by alexringess »

Sorry if this mod was suggested yet, I didn't read all the thread, but I think this one worth to be on the submission list because it's the very first X: Rebirth ship added on X4: Foundations after all.

So :

Taranis - sco1981
Glimpse
Posts: 141
Joined: Thu, 29. Apr 10, 14:05
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Glimpse »

Hi there. A bit late but here goes.

Paint Mods for Sale - Glimpse
Resupplier Class Vessels - Glimpse
aftokinito
Posts: 229
Joined: Sun, 30. Mar 08, 17:29
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by aftokinito »

The following mod has been renamed from: [MOD] LazySoft Ship Tag Fixer - Aftokinito(carmaster)
To: [MOD] Mobile Ship Production - Aftokinito(carmaster)
SpaceCadet11864
Posts: 476
Joined: Tue, 4. Dec 18, 02:14
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by SpaceCadet11864 »

[TOOL] Ware Generator - SpaceCadet11864
killerog
Posts: 3464
Joined: Fri, 28. Oct 05, 16:31
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by killerog »

X4GalaxyCreator - Killerog + Celludriel
Image
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Sam L.R. Griffiths »

I would like to promote my Visual XML Editor as a tool for supporting modding in X-Rebirth.

It is Open Source via github, written in C# (Microsoft .NET 4.5), and supports plug-ins. Will formally document the plug-in API at some point but the source code - with an example plug-in is available on github.

I am going to be looking at writing some simple X4 related utility plugins for plan import export management at some point.
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
morbideth
Posts: 391
Joined: Sun, 9. Nov 08, 03:07
x3tc

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by morbideth »

euclid wrote: Tue, 4. Dec 18, 00:09 3. The ? maps the value to binary, i.e. 0 or 1. if it does not exists or if it does, respectively.

4. The @ maps the value to a Boolean, i.e. false or true, if it does not exists or if it does, respectively.

Cheers Euclid
This has been bugging me, as I don't think this is accurate. 0 or 1 is the script's version of boolean. ? returns 1 if the value exists (is not null), and 0 if it is null. @ returns 0 if the value is null, 0 if the value exists and evaluates to false, and 1 if the value both exists and evaluates to true.

Code: Select all

set $var = null
$var? == 0
@$var == 0

set $var = false
$var? == 1
@$var == 0

set $var = true
$var? == 1
@$var == 1

set $var = ware.energycells
$var? == 1
@$var == 1
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by UniTrader »

my Infos are different from that. but can't currently confirm in-game.

? is for checking whether a variable is set at all (initialized), an will return true if it is (even if it's value is null), and false if not (either by being not set yet or by using remove_value )

@ is for suppressing error in case the following property chain is invalid or the variable is not set. Both cases still evaluate to null, but would also write an error to the log without the @. in any other case it results in the value the expression evaluates to.
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 ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
Cg089
Posts: 80
Joined: Fri, 18. Jan 19, 19:25
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Cg089 »

Any reason the discord isn't listed as a resource?
Cg089
Posts: 80
Joined: Fri, 18. Jan 19, 19:25
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Cg089 »

User avatar
RoverTX
Posts: 1463
Joined: Wed, 16. Nov 11, 18:37
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by RoverTX »

User avatar
RoverTX
Posts: 1463
Joined: Wed, 16. Nov 11, 18:37
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by RoverTX »

User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Litauen »

User avatar
Axeface
Posts: 3029
Joined: Fri, 18. Nov 05, 00:41
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Axeface »

This thread outlines how vertex colours work, might want to add it to the list. viewtopic.php?f=181&t=422258
Cheers
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13477
Joined: Sun, 15. Feb 04, 20:12
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by euclid »

Axeface wrote: Tue, 25. Feb 20, 20:39 This thread outlines how vertex colours work, might want to add it to the list. viewtopic.php?f=181&t=422258
Cheers
Thanks Axeface. For the future please follow the formal submission rule, like

[Tutorial] Vertex colour and paintjobs - by Axeface

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 25128
Joined: Sun, 2. Apr 06, 16:38
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by X2-Illuminatus »

I added [TOOL] X4 Customizer by SirNukes and [Tool] X4 Editor by Max Bain.
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!
kuertee
EGOSOFT
EGOSOFT
Posts: 817
Joined: Sun, 14. Dec 03, 13:05
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by kuertee »

Can we add a note next to link "Dynamic Debug Logs":
1. that it links to instructions on how to create a batch file?
and
2. that a simpler method is to add launch options in Steam or to create a Shortcut to the game with the options: "-debug all -logfile debug.log"
tero
Posts: 288
Joined: Tue, 8. Mar 05, 15:25
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by tero »

If someone wants the luxury of Visual Studio on Linux there is a similar IDE.
The IDE is commercial but has a free open source community edition (no registration required).

IntelliJ IDEA

It's made for Java/Android etc, but it handles XML just like VS including all the bells and whistles.
Waat dat wat? Dat waat wat!
User avatar
Axeface
Posts: 3029
Joined: Fri, 18. Nov 05, 00:41
x4

Re: [Index] X4: Foundations Tools, Tutorials and Resources

Post by Axeface »

Return to “X4: Foundations - Scripts and Modding”