Euro Truck Simulator 2

Euro Truck Simulator 2

View Stats:
Is there a way to separate the headlight switch button from the position light button?
I'm building a button box and i would like to use a rotary switch to control the lights, and having two separate controls for both the headlights and the position lights would help me a lot.
< >
Showing 1-5 of 5 comments
Reese Feb 21 @ 4:30am 
https://forum.scssoft.com/viewtopic.php?t=296641

Perhaps this would put you in the right direction. You won't be able to do exactly what you're asking with just the game itself, I think. You'd have to use a 3rd-party tool like SVMapper(what I used for custom ignition).
You'll need to edit your controls.sii file manually, specifically the following lines:

config_lines[387]: "mix lightoff `(! joy2.b1?0) & (! joy2.b5?0) | semantical.lightoff?0`"
config_lines[388]: "mix lightpark `joy2.b1?0 | semantical.lightpark?0`"
config_lines[389]: "mix lighton `joy2.b5?0 | semantical.lighton?0`"

Obviously the joy#.b#?0 would be different on your end, based on where your actual switch is connected.

I use a regular pull lever headlight switch (likely for something like a golf cart), so when it's pushed in, the lights are off, pulled out one "notch" is the parking/marker lights (mix lightpark), and fully pulled out two notches (mix lighton) and the headlights are on. For the mix lightoff, the parentheses with exclamation points and joystick designations is telling the game to activate when neither of those buttons are "pressed" (when the headlight switch is pushed all the way back in.)

Hope this is helpful to what you're trying to accomplish.
Originally posted by GeorgeT93:
You'll need to edit your controls.sii file manually, specifically the following lines:

config_lines[387]: "mix lightoff `(! joy2.b1?0) & (! joy2.b5?0) | semantical.lightoff?0`"
config_lines[388]: "mix lightpark `joy2.b1?0 | semantical.lightpark?0`"
config_lines[389]: "mix lighton `joy2.b5?0 | semantical.lighton?0`"

Obviously the joy#.b#?0 would be different on your end, based on where your actual switch is connected.

I use a regular pull lever headlight switch (likely for something like a golf cart), so when it's pushed in, the lights are off, pulled out one "notch" is the parking/marker lights (mix lightpark), and fully pulled out two notches (mix lighton) and the headlights are on. For the mix lightoff, the parentheses with exclamation points and joystick designations is telling the game to activate when neither of those buttons are "pressed" (when the headlight switch is pushed all the way back in.)

Hope this is helpful to what you're trying to accomplish.
Thank you! I'll try
Originally posted by Reese:
https://forum.scssoft.com/viewtopic.php?t=296641

Perhaps this would put you in the right direction. You won't be able to do exactly what you're asking with just the game itself, I think. You'd have to use a 3rd-party tool like SVMapper(what I used for custom ignition).
Trank you!
Hi George, I have been following your guides for an Ignition and Lights for a button box i'm planning, I have an Ignition Switch to use as a prototype I do plan on buying a key switch to replace this though, I also have an old Headlight switch that i'm trying to map in game, one thing has me stumped, following the code alterations in the controls.sii file, it has 3 positions just like your switch, Off - Park Lights - Low Beam Headlights, switch pulls out twice, when I pull it once the park lights come one, but i'm having trouble getting the second pull to operate the low beam headlights, The game only has one option to map a control which in my case is the park lights which is button 18, and the second pull is button 19 but when I edit the controls.sii it doesn't work. its edited the same as above only with different button numbes, does the code need to have the open/closed brackets as well? or am I missing something?
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 21 @ 3:47am
Posts: 5