Space Engineers
Няма достатъчно оценки
BetterScripting - Easy custom C# for everyone
   
Награда
Добавяне към любими
В любими
Премахване от любими
Размер на файла
Публикуван на
Обновен на
5.198 KB
10 септ. 2016 в 12:21
25 септ. 2016 в 8:43
7 бележки за промени ( преглед )

Абониране, за да се свали
BetterScripting - Easy custom C# for everyone

Описание
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:
Популярни дискусии Всички (1)
1
22 септ. 2016 в 5:31
Function list
ThatsEli
16 коментара
ThatsEli  [автор] 29 окт. 2016 в 5:41 
Thank you @DenisED1 !
DenisED1 7 окт. 2016 в 13:28 
Awesome, didnt tryed it yet, but looks very helpfull, will look at it tommorow, thanks!
ThatsEli  [автор] 24 септ. 2016 в 4:02 
@Uncle Urdnot Thank you, I fixed it!
Uncle Urdnot 24 септ. 2016 в 2:36 
ThatsEli  [автор] 24 септ. 2016 в 1:26 
@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 септ. 2016 в 8:48 
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  [автор] 23 септ. 2016 в 7:08 
@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 септ. 2016 в 13:13 
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  [автор] 22 септ. 2016 в 5:34 
@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 септ. 2016 в 4:27 
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.