Space Engineers

Space Engineers

평점이 부족합니다.
Wico Techniker Custom
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
102.542 KB
2016년 11월 20일 오전 12시 12분
2019년 2월 16일 오후 5시 15분
업데이트 노트 34개 (보기)

다운로드 위해 구독하기
Wico Techniker Custom

설명
Custom Craft Control.

  • front scanning using camera raycast new in 1.63 DEV
  • uses any number of front-facing cameras for scanning. No naming needed.
  • keeps track of detected entities and reports on GPS text panel.
  • Proximity warning and Emergency stop procedure.
  • reports tool arm position for named rotors (Techniker)
  • 'coast' mode that turns off front-facing thrusters. allows motion to continue like turning off damperners, but keeps steering control from turning.


Naming


Cockpit/Remote Control

A cockpit or remote control is needed to determine the 'direction' of the ship.

The code first looks for a remote control named "Remote Control Techniker"
It then searches for any remote control with "[NAV]" in the name. It will then search for ANY remote control.
And finally it will search for any cockpit

Note: "Front" is determined by the orientation of the cockpit/remote control.

GPS Output LCD
The first text/LCD panel with "[GPS]" in the name is used to output the GPS coordinates.

Cameras

All front-facing cameras are used for scanning unless they have the text "[VIEW]" in the name

E Stop

There are no naming requirements for emergency stop. The front and rear thrusters are automatically determined.

Reporting

The reporting is placed on a text/LCD panel named "LCD Bridge R". If that block is not found, it will use the first block with "Craft Report" in the name.

Name can be changed in the Programing Block's CustomData.

Range Report

The range is placed on a text/LCD panel with "[RANGE]" in the name or CustomData.
Multiple LCDs are supported. Suggest setting text font to Monospace

Name can be changed in the Programing Block's CustomData.

Timer
No Longer needed

The PB needs to be run by a timer. It does not need to be run more than once per second. It should run the main PB with the argument "timer"

FAST Timer
Optionally, a timer can be made to allow the code to be run quickly when needed. For this code, that is only when initializing on each load. This timer must have "[WCCT]" in the name. It should run the main PB with the argument "wcct".

sub-modules
This code is based on my Craft Control scripts and it also supports sub-modules.
See the documentation for Craft Control for specifics.

If you are not using sub-modules, turn off submodule support in CustomData to save performatnce

Name of craft
ADDED 2.0L The script will first check CustomData of the PB for shipname=XXX and use the XXX as the name of the ship.

Otherwise, the name of the craft is determined from the antenna name. Antennas with 'unused' in the name are skipped (Techniker has two antennas).

This name is used in the displays.

Added 2.0L: Setting ship name and long and short range scan values in CustomData.
Example CustomData:
ShipName=Rhino Freighter
ShortRangeMax=1000
LongRangeMax=100000000

V3.2A Added more settings to CustomData. only need lines for items that should be changed from the default

Example:
[TECHKNIKER]
DoForwardScans=true
CheckGasGens=false
TechnikerCalcs=true
GPSFromEntities=true
AirVents=false

shipname=Bob's Big Boat
shortrangemax=1500
longrangemax=15000




댓글 24
Krougal 2018년 1월 5일 오후 3시 18분 
Arghhhh....so I hate to be a PITA, but it's also turning on O2 gens (I didn't notice until I installed on series 4 small craft).
Krougal 2018년 1월 4일 오후 7시 52분 
Ok, that took care of my antenna problem as well as the batteries. Thanks!
Krougal 2018년 1월 4일 오후 7시 35분 
Can hop in my lab if you want to see it in operation?
Still acting a little wierd at times too. It does still need the 1s timer block right? I've also got the WCCT timer and the stored data panel (not really sure I need that for my application?)
Wicorel  [작성자] 2018년 1월 4일 오후 7시 31분 
I will have a new version in a few minutes to remove the battery thing.

I don't understand where it could be setting antennas back on in this version... But the code IS complex and I may have missed something.
Krougal 2018년 1월 4일 오후 7시 00분 
I am indeed using 3.1A
Maybe KSH reintroduced the bug?
Wicorel  [작성자] 2018년 1월 4일 오후 6시 56분 
Which version are you using?

The current is 3.1A which should no longer have the antenna forcing on (there was a bug in older verisons of SE where the antenna would turn off if you tried to remote control a grid).
Krougal 2018년 1월 4일 오전 10시 40분 
My spare antenna keeps turning on also, tried naming it unused & blank (the actual Techniker it's blank...but it's still running version 2.0) going to blame this on you too ;)
Does the stock craft control have the feaures I need?
Krougal 2018년 1월 3일 오후 10시 05분 
Yeah, would love that. I'd do it myself, but I couldn't make heads or tails of your code lol. I really don't like anyone messing with my batteries; I either have ships that run entirely off batts or they are just for surge and toggled by keybind.
Wicorel  [작성자] 2018년 1월 3일 오후 9시 43분 
Looking at the code, it should only be turning a battery's RECHARGE to off when it gets to > 99% charged..

I don't have the NOPOWER option in Techniker, but I could add it if you want it to leave batteries alone.
Krougal 2018년 1월 3일 오후 8시 05분 
NM about the timer, somehow the timer lost itself (timer start action had become invalid???) fixed that. The battery thing is still an issue.