Space Engineers

Space Engineers

935 평점
Control Module - basically key binding for ships
2
3
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Type: Mod
Mod category: Script, Other
파일 크기
게시일
업데이트일
230.681 KB
2016년 3월 30일 오전 6시 44분
2025년 5월 8일 오후 9시 14분
업데이트 노트 39개 (보기)

다운로드 위해 구독하기
Control Module - basically key binding for ships

Digi님의 1 모음집
Digi's Space Engineers mods
아이템 50개
설명
This mod adds the ability for Timer Blocks and Programmable Blocks to be triggered/ran when the input (key/mouse/gamepad/game control) is pressed and/or released by a player controlling a cockpit/RC/seat in the same grid system.

The system is very flexible and you can make from a one key toggling a light to a really complicated mouse and keyboard coordination controllable by specific seats in the ship.


Vanilla PB can read movement and rotation
IMyShipController has MoveIndicator/RotateIndicator/RollIndicator which are now synchronized in all cases (SE v200), so if you don't need more than those you don't really need this mod.
Also IMyShipToolBase has IsActivated, useful to detect clicks.

How to use
I have a guide with various examples and blueprints to get you guys started.

Please read: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=656456032

But if you want a really quick tutorial then just see the tooltip in the "Quick Introduction" buton in a PB or timer block.


The video is only a presentation, not a tutorial
The video by w4stedspace should be treated as a demonstration of what the mod can do, because the version used in the video is way older than the current one which is configured and coded differently, that's why you shouldn't use it as a tutorial, instead use the text guide I linked above.


Chat commands
  • /cm help
    Shows all inputs (keys, mouse buttons/axes, gamepad butons/axes and game controls).
  • /cm showinput
    Toggles printing in the HUD the inputs you're currently pressing, very useful for quickly finding the name of something specific.
  • /cm updatetype
    Testing command, this changes how the code executes internally, before or after simulation. By default it's set to before simulation and I left it there for people to experiment. Please try it and let me know if input feels laggy with before or after sim.


mod io?
Please read[gist.github.com]
인기 토론 모두 보기(5)
1
2025년 6월 16일 오후 11시 43분
Better explanation
jrepel
7
2023년 9월 17일 오전 5시 33분
Reading inputs in a unaccessable ProgBlock through an accessable Cockpit/Remote
Djelle
5
2019년 12월 31일 오전 5시 54분
[Mod Suggestion] Building Tool - Construct new grids from afar
Acarii
댓글 373
DragoF1sh 2025년 6월 4일 오후 11시 10분 
this looks handy - Might use in future scenarios
ManedWolf 2025년 5월 8일 오후 11시 10분 
Thanks. My VTOL ships are working again now. Took me some headbutts to the wall as I don`t understand anything about programing.
Digi  [작성자] 2025년 5월 8일 오후 9시 16분 
Ah yes this has Dictionary property, it's fixed but it requires PB scripts to be updated by replacing:

Dictionary<string, object>
to
IReadOnlyDictionary<string, object>

it should be only 2 places, one in the field and one in the As<...> method.

I've also fixed the lack of terminal refresh which apparently I broke back in oct 2023 with an inverted check, ops xD
ManedWolf 2025년 5월 4일 오후 10시 40분 
Don't know if it's just me, but it doesn't work anymore sinse the may 2 hotfix.
Swann 2025년 3월 17일 오후 6시 41분 
This is really the best keybinding solution, thank you Digi. Is there any way you could make this a Plugin so we could use it in multiplayer? There are pure scripts available but they don't have as much flexibility.
Djelle 2024년 11월 9일 오전 6시 37분 
Ahh. I did get the controls to show by ur little refresh trick... In both fields :steamhappy:

You are right that the problem is in my world. I went into Sandbox_config.sbc and moved ur mod to the top of the list, so it will load first (I assume). And that made the double field problem go away. The weird thing is that if I now move it back to the bottom, it doesn't double up anymore.

Thanks for pointing me in the right direction :cozybethesda:
Digi  [작성자] 2024년 11월 8일 오후 7시 47분 
I don't get the duplicated controls so the only difference now I guess is the world.
Can you send your world?

I do get the issue with controls not adding but that is from a lack of realtime refresh, which is a new game bug in 205 (was reported by other modders that have the same problem on their mods).
You can force a refresh by clicking the block again on the left terminal list.
Djelle 2024년 11월 8일 오후 3시 19분 
I did try removing the two other mods I had. No change. It could look like this mod was aded two times. Tho I did not do that.
Digi  [작성자] 2024년 11월 8일 오후 3시 00분 
Did you try it by itself? As it sounds like a problem with another mod or it's simply this mod added multiple times.
Djelle 2024년 11월 8일 오후 1시 59분 
Is not working anymore. In the blocks menu, there are two of each field. And you can not add the keys u want to monitor.