Space Engineers

Space Engineers

Stop Rotor on High Solar Power Output
Mike ={JcC}=  [开发者] 2016 年 1 月 10 日 上午 9:44
Third duplicate Axis
Since there is a limitation of how many panels you can put onto one rotor, you probably need more than one solar array. And in order to not have an own timer and programmable block for each one of them, i just thought about how i can get a third duplicated axis to work.
Yes, there are still two axis, but in case of a T-shaped array, you need x, y and y-reversed to be duplicated.
So even if i'm not a coder i managed to get it done by copy pasting around a bit in the code.
I just wanted to ask you (Sirgurd Hansen) if you can add this into the future versions of the script so maybe someone can use it if he find it useful.

so here is what i'm using it for (doing this in survival, panels still not ready, but everything is working)
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=597878194
and here is the working version of the altered code (you probably know where to look at)

*too bad, i can't post the code here... im trying to use pastebin
**here it is: http://pastebin.com/tteWBUHc
最后由 Mike ={JcC}= 编辑于; 2016 年 1 月 10 日 上午 9:50
< >
正在显示第 1 - 15 条,共 18 条留言
Sigurd Hansen  [开发者] 2016 年 1 月 10 日 下午 11:25 
Yeah, I've been meaning to add an extra line anyway. I'll add it in the next version.
Mike ={JcC}=  [开发者] 2016 年 1 月 11 日 下午 4:13 
Thanx man, appreciate it ;)
Mike ={JcC}=  [开发者] 2016 年 1 月 14 日 下午 2:03 
Oh wow... so i guess you might be right with the syntax not helping you to reduce the need of support in the future ;)
So how can you define wich source will copyed to wich destination? Is it the position in the array?
so the source in the first position will linked to the destination in the first position?
Sigurd Hansen  [开发者] 2016 年 1 月 14 日 下午 2:14 
Yeah, your correct about the position in the array. I might change the syntax back :p
最后由 Sigurd Hansen 编辑于; 2016 年 1 月 14 日 下午 2:15
Mike ={JcC}=  [开发者] 2016 年 1 月 14 日 下午 2:22 
You know... those who have nothing to do with coding, already have a hard time even with just setting up the variables, understanding what it means and what it does. The new Syntax might be a little bit too much for those :)

Do you even see a situation where you need more than three axis?
Sigurd Hansen  [开发者] 2016 年 1 月 14 日 下午 2:32 
Not really.
Mike ={JcC}=  [开发者] 2016 年 1 月 14 日 下午 2:39 
Seems there is an error with the new one:
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=600525780

What's this "privateImplementationDetails" thing?
Sigurd Hansen  [开发者] 2016 年 1 月 14 日 下午 2:52 
Have never seen that error before. Not at a computer now; will need to do some changes tomorrow i guess.
Sigurd Hansen  [开发者] 2016 年 1 月 16 日 上午 1:41 
Do you still got that strange private-error? The syntax has been changed in the latest version btw.
Mike ={JcC}=  [开发者] 2016 年 1 月 16 日 上午 2:01 
Yes, i still get the same error, except with a different number.
Sigurd Hansen  [开发者] 2016 年 1 月 16 日 上午 2:39 
Can you publish a save?
Mike ={JcC}=  [开发者] 2016 年 1 月 16 日 上午 3:34 
Here it is:
http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=600887434

Straight ahead there is a small rover and a programmable block next to it with the script version 1.04 (1.04b produces the same error)
The programmable block is named "Solar PC 2"
最后由 Mike ={JcC}= 编辑于; 2016 年 1 月 16 日 上午 3:36
Sigurd Hansen  [开发者] 2016 年 1 月 16 日 上午 6:00 
Well at least there is a problem with it not finding the timer which i'm not handling correclty. Will need to look more at this later.
Sigurd Hansen  [开发者] 2016 年 1 月 17 日 下午 12:38 
Please update to the latest version.
Mike ={JcC}=  [开发者] 2016 年 1 月 18 日 上午 9:05 
weired... if i load the new script into the block and fill out all variables, i get the message "assembly not found, please compile the script"
Then i press edit, and "check code" Followed by the message "compiled successfully". After that i get the "private error" message again.
Checked all settings... it should work. The old script (1.03) is working there, just not the new ones... Wonder if its just me, or if there are others too who get this error message.
最后由 Mike ={JcC}= 编辑于; 2016 年 1 月 18 日 上午 9:05
< >
正在显示第 1 - 15 条,共 18 条留言
每页显示数: 1530 50