Skip to main content

SDKController

This module is a bit different from a normal module. Instead of using the run() file it just provides an object to interface with the SDK. We will explore how this works here!

Usage

# Remember to add the module to the description!
def init(self):
self.controller = self.modules.SDKController.SCSController()

This will create an SCSController object into a local variable on the Plugin. You can then use the controller to send output to the game. Below is an example of how to use these controls.

def run(self):
self.controller.steering = 0.2 # Will steer 20% right.

# Some controls are holds, these work as you expect.
self.controller.horn = True # enable the button
time.sleep(2)
self.controller.horn = False # disable the button

# But some work as actual buttons, these you have to cycle.
self.controler.lblinker = True
time.sleep(1/20)
self.controler.lblinker = False
# Now enabled

self.controler.lblinker = True
time.sleep(1/20)
self.controler.lblinker = False
# Now disabled

Available Controls

Variable NameDescriptionNotes
j_leftThis has something to do with UI interaction.This is an axis.
j_right^^
j_up^^
j_down^^
selectfcs-
backGo back to the last page.
skipSkip the dialog.
scrol_upScroll up in the UI
scrol_downScroll down in the UI
mapzoom_inZoom the ingame map in
mapzoom_outZoom the ingame map out
trs_zoom_in-
trs_zoom_out-
joy_nav_prvPrevious tab in the minimap?
joy_nav_nxtNext tab in the minimap?
joy_sec_prvPrevious tab in the truck minimap?
joy_sec_nxtNext tab in the truck minimap?
scroll_j_xScroll X direction axis.
scroll_j_yScroll Y direction axis.
shortcut_1-
shortcut_2-
shortcut_3-
shortcut_4-
pausePause the game
screenshotTake a screenshot
cam1Enter the specific camera.
cam2^
cam3^
cam4^
cam5^
cam6^
cam7^
cam8^
camcycleCycle the cameras
camresetReset the current camera
camrotateToggle camera rotation?The default keybind is RMB
camzoominZoom the current camera in(this means change the FOV)
camzoonoutZoom the current camera out^
camzoomToggle camera zoom?The default keybind is MMB
camfwdMove the camera in that direction
camback^
camleft^
camright^
camup^
camdown^
lookleftTurn the camera left
lookrightTurn the camera right
camlrMove the camera left / rightBROKEN: Not set to axis
camudMove the camera up / downBROKEN: Not set to axis
j_cam_lk_lrLook left / right axis
j_cam_lk_udLook up / down axis
j_cam_mv_lrMove left / right axis
j_cam_mv_udMove up / down axis
j_trzoom_inZoom something (tr?)
j_trzoom_out^
j_mappan_xMap pan X direction axis
j_mappan_yMap pan Y direction axis
j_mapzom_inMap zoom in axisOnly positive values
j_mapzom_outMap zoom out axisOnly positive values
lookpos1Look forward
lookpos2Look up right
lookpos3Look up left
lookpos4Look right
lookpos5Look left
lookpos6Look up middle
lookpos7-Only via SDK, no in game keybind.
lookpos8-Only via SDK, no in game keybind.
lookpos9-Only via SDK, no in game keybind.
looksteerToggle looking in the steering direction
lookblinkToggle looking in the direction of the blinker
steeringSteering axis
aforwardForward / accelerator axisOnly positive values
abackwardBackward / brake axisOnly positive values
clutchClutch axis
activateActivate a green thing in the game world.
menuOpen the menu
engineStart the engine
engineelectStart the electrical systems
ignitionoffTurn ignition off
ignitiononTurn ignition on
ignitionstrtTurn ignition to start
attachAttach a trailer
frontsuspupRaise the front suspension
frontsuspdwnLower the front suspension
suspresetReset the suspension
horn-
airhorn-
lighthorn-
beaconTurn on the beacon lights
motorbrakeToggle motor(?) braking
engbraketogToggle engine braking
engbrakeupIncrease engine braking
engbrakedwnDecrease engine braking
trailerbrakeToggle the trailer brake
retarderupIncrease retarder
retarderdownDecrease retarder
retarder0Set the retarder strength directlyOnly via SDK, no in game keybind.
retarder1^Only via SDK, no in game keybind.
retarder2^Only via SDK, no in game keybind.
retarder3^Only via SDK, no in game keybind.
retarder4^Only via SDK, no in game keybind.
retarder5^Only via SDK, no in game keybind.
liftaxleLift the axle
liftaxletLift another axle?Only via SDK, no in game keybind.
slideraxlefwdMove a sliding axle forwardOnly via SDK, no in game keybind.
slideaxlebwdMove a sliding axle backwardsOnly via SDK, no in game keybind.
slideaxlemanManual sliding?Only via SDK, no in game keybind.
diflockToggle the difflock
rwinopenOpen the right window
rwincloseClose the right window
lwinopenOpen the left window
lwincloseClose the left window
engbrakeautoSet engine braking to automatic
retarderautoSet retarder to automatic
embrakeEmergency brakeOnly via SDK, no in game keybind.
laneassmodeChange the lane assist modeOnly via SDK, no in game keybind.
tranpwrmodeChange the transmission power modeOnly via SDK, no in game keybind.
parkingbrakeToggle the parking brake
wipersChange wiper option
wipersbackChange rear wiper option
wipers0Set wipers to this levelOnly via SDK, no in game keybind.
wipers1^Only via SDK, no in game keybind.
wipers2^Only via SDK, no in game keybind.
wipers3^Only via SDK, no in game keybind.
wipers4^Only via SDK, no in game keybind.
cruiectrlToggle the cruise control
cruiectrlincIncrease CC speed
cruiectrldecDecrease CC speed
cruiectrlresReset the CC
accmodeChange the adaptive CC mode
laneassistToggle the lane assist on/off
lightToggle lights
lightoffTurn lights off
lightparkTurn lights to park
lightonTurn lights on
hblightTurn on the high beams
lblinkerTurn on the left blinkerToggle
lblinkerhTurn on the left blinkerHold
rblinkerTurn on the right blinkerToggle
rblinkerhTurn on the right blinkerHold
flasher4wayTurn on the hazards
showmirrorsToggle the UI mirrors
showhudToggle the HUD
navmapToggle the minimap
photo_modeToggle (or enter?) the photo mode
quicksave-
quickload-
radioToggle the radio
radionextNext station
radioprevPrevious station
radioupVolume up
radiodownVolume down
display-
quickparkTrigger quickpark
dashmapzoomChange the truck dashboard map zoom
tripresetReset the tripmeter
sb_activate-Default keybind capslock
sb_swap-Default keybind tab
infotainmentTurn on off the infotainment?Only via SDK, no in game keybind.
photores-
photomove-
phototake-
photofwd-
photobwd-
photoleft-
photoright-
photoup-
photodown-
photorolllroll left
photorollrroll right
photosman-
photo_opts-
photosnap-
photo_hctrl-
photonames-
photozoomout-
photozoomin-
phot_z_j_outPhotomode Z axis out
phot_z_j_inPhotomode Z axis in
album_pgup-
album_pgdn-
album_itup-
album_itdn-
album_itlf-
album_itrg-
album_ithm-
album_iten-
album_itac-
album_itop-
album_itdl-
camwalk_for-
camwalk_back-
camwalk_righ-
camwalk_left-
camwalk_run-
camwalk_jump-
camwalk_crou-
camwalk_lr-
camwalk_ud-
gearupPaddle shifter for gear up
geardownPaddle shifter for gear down
gear0Neutral
geardriveDrive (in semi automatics)
gearreverseReverse (in semi automatics)
gearuphint-
geardownhint-
transemiTransmission to semi automatic
driveDrive (in automatics)
reverseReverse (in automatics)
cmirrorselSelect the center mirror
fmirrorselSelect the front mirror
mirroryawlMirror yaw left
mirroryawrMirror yaw right
mirrorpituMirror pitch up
mirrorpitlMirror pitch down(?)
mirrorresetReset mirror
quicksel1-Keys 1 through 8 by default
quicksel2-^
quicksel3-^
quicksel4-^
quicksel5-^
quicksel6-^
quicksel7-^
quicksel8-^
mpptt-
replayhidec-
gearsel1onSpecial gear selector optionsUsed by 6 speed selectors for ex.
gearsel1off^
gearsel1tgl^
gearsel2on^
gearsel2off^
gearsel2tgl^
gear1Select this gear directly
gear2^
gear3^
gear4^
gear5^
gear6^
gear7^
gear8^
gear9^
gear10^
gear11^
gear12^
gear13^
gear14^
gear15^
gear16^
adjuster-
advpage0-
advpage1-
advpage2-
advpage3-
advpage4-
advpagen-
advpagep-
advmouse-
advetamode-
gar_man-
advzoomin-
advzoomout-
assistact1-
assistact2-
assistact3-
assistact4-
assistact5-
adj_seatsTrigger seat adjustment
adj_mirrorsTrigger mirror adjustment
adj_lightsTrigger light adjustment
adj_uimirrorTrigger UI mirror adjustment
chat_actChat action(?)
quick_chatQuick chat
cycl_zoomCycle zoom of something
name_tagsToggle name tags
headresetReset head tracking
menustereo-
warning

Both ETS2 and ATS are constantly changing and some of these controls might not work anymore. If this happens then send Tumppi066 a message on discord and we'll look into it!