Space Engineers

Space Engineers

Not enough ratings
BetterScripting - Easy custom C# for everyone
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.198 KB
10 Sep, 2016 @ 12:21pm
25 Sep, 2016 @ 8:43am
7 Change Notes ( view )

Subscribe to download
BetterScripting - Easy custom C# for everyone

Description
BetterScripting

Easy custom C# for everyone!

This script was a lot of work(22K character), I would appreciate a good
rating and feedback!


Threads
  • You can find all the functions in the functions thread below :)

Features
  • Custom C#
  • Custom commands
  • Easy for everyone
  • Many functions
  • Big documentation
  • Steady updates/bugfixes
  • Only one Programmable block for unlimited scripts

This isn't native C#, so you can ony use the functions form the
"Functions" thread!

Setup
  • In the script

Thank you for using! :KSmiley:
Popular Discussions View All (1)
1
22 Sep, 2016 @ 5:31am
Function list
ThatsEli
16 Comments
ThatsEli  [author] 29 Oct, 2016 @ 5:41am 
Thank you @DenisED1 !
DenisED1 7 Oct, 2016 @ 1:28pm 
Awesome, didnt tryed it yet, but looks very helpfull, will look at it tommorow, thanks!
ThatsEli  [author] 24 Sep, 2016 @ 4:02am 
@Uncle Urdnot Thank you, I fixed it!
ThatsEli  [author] 24 Sep, 2016 @ 1:26am 
@Uncle Urdnot I am veeeeery disapointet, could you upload the old version(I dont have it:KSmiley:) to pastebin? The current code should work 100%, but it doesn't so I have to reconstruct the echo function from the old.
Uncle Urdnot 23 Sep, 2016 @ 8:48am 
Did some more testing. Went back to your old program version and setup the following script:

echo("LCD New", "This is a test ", True)

Ran it and LCD New displayed "This is a test". I then upgraded your program to the new version and ran it again without changing anything and I got the same error as before, so it must be something in the new program.

However, I then tried issuing multiple commands in a script in the old version of your program (never tried that before) and got the same error I'm getting with the new version. Script was this:

echo("LCD New", "This is a test ", True);
echo("LCD New", "This is another test ", True)

So there seems to be an issue with using multiple commands in a script as well.
ThatsEli  [author] 23 Sep, 2016 @ 7:08am 
@Uncle Urdnot In my world(stabe) I don't get the error. I uploaded my script as the newest version, with some fixes for the error system :) If the error still exist, say it and I will upload the debug system.
Uncle Urdnot 22 Sep, 2016 @ 1:13pm 
Just tried it out. I get the following error after its run:

1 command found!
Caught exception during execution
of script:Object reference not set to
an instance of an object.

All my scripts now get this error, not just the one using the new commands.

I'm running the stable branch. Any chance you used something only available in the dev branch after that last update?
ThatsEli  [author] 22 Sep, 2016 @ 5:34am 
@Uncle Urdnot I added tw new functions: showPublicLCDText(string panel) and showPrivateLCDText(string panel). I tried to change the color of an LCD panel, but I don't know the ModAPI names of the sliders :/ As always send all you suggestion :)
Uncle Urdnot 22 Sep, 2016 @ 4:27am 
The echo function works well and I use it often, but the problem with it is it can't change foreground/background colors. With an lcd display command I could switch to public or private in the lcd where I have colors already preset. I can then use that lcd display toggle in certain situations.

Example: Have the public part be green background that says Airlock Ready, and have the private part be in red that says Airlock Vacum. I could then have the vent in the airlock run your script depending on if it detects air in the airlock. If so, then your script switches the lcd to display the public text, if not then the private text is displayed.