Space Engineers

Space Engineers

评价数不足
BetterScripting - Easy custom C# for everyone
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
5.198 KB
2016 年 9 月 10 日 下午 12:21
2016 年 9 月 25 日 上午 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
2016 年 9 月 22 日 上午 5:31
Function list
ThatsEli
16 条留言
ThatsEli  [作者] 2016 年 10 月 29 日 上午 5:41 
Thank you @DenisED1 !
DenisED1 2016 年 10 月 7 日 下午 1:28 
Awesome, didnt tryed it yet, but looks very helpfull, will look at it tommorow, thanks!
ThatsEli  [作者] 2016 年 9 月 24 日 上午 4:02 
@Uncle Urdnot Thank you, I fixed it!
Uncle Urdnot 2016 年 9 月 24 日 上午 2:36 
ThatsEli  [作者] 2016 年 9 月 24 日 上午 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 2016 年 9 月 23 日 上午 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  [作者] 2016 年 9 月 23 日 上午 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 2016 年 9 月 22 日 下午 1: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  [作者] 2016 年 9 月 22 日 上午 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 2016 年 9 月 22 日 上午 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.