[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: 40
Joined: Tue, 25. Sep 18, 23:57
x4

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

Post by alexringess » Fri, 21. Dec 18, 12:17

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 » Sat, 22. Dec 18, 03:53

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 » Fri, 28. Dec 18, 06:06

The following mod has been renamed from: [MOD] LazySoft Ship Tag Fixer - Aftokinito(carmaster)
To: [MOD] Mobile Ship Production - Aftokinito(carmaster)

SpaceCadet11864
Posts: 287
Joined: Tue, 4. Dec 18, 03:14
x4

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

Post by SpaceCadet11864 » Sun, 30. Dec 18, 18:14

[TOOL] Ware Generator - SpaceCadet11864

killerog
Posts: 2582
Joined: Fri, 28. Oct 05, 16:31
x4

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

Post by killerog » Sun, 30. Dec 18, 21:16

X4GalaxyCreator - Killerog + Celludriel
Image

User avatar
Roger L.S. Griffiths
Posts: 9913
Joined: Fri, 12. Mar 04, 20:47
x4

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

Post by Roger L.S. Griffiths » Tue, 1. Jan 19, 15:33

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.
Roger (aka [SRK] Mr^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: 389
Joined: Sun, 9. Nov 08, 04:07
x3tc

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

Post by morbideth » Tue, 22. Jan 19, 22:48

euclid wrote:
Tue, 4. Dec 18, 01: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: 13931
Joined: Sun, 20. Nov 05, 23:45
x4

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

Post by UniTrader » Wed, 6. Feb 19, 13:53

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, 20:25
x4

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

Post by Cg089 » Tue, 12. Mar 19, 07:16

Any reason the discord isn't listed as a resource?




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

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

Post by Litauen » Tue, 11. Feb 20, 17:45


User avatar
Axeface
Posts: 1715
Joined: Fri, 18. Nov 05, 01:41
x4

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

Post by Axeface » Tue, 25. Feb 20, 21:39

This thread outlines how vertex colours work, might want to add it to the list. viewtopic.php?f=181&t=422258
Cheers

Post Reply

Return to “X4: Foundations - Scripts and Modding”