CrossCode
cambot11 2022년 4월 10일 오전 11시 49분
2
4
1
Steam Deck controller mapping problem, cause and possible solution
After trying to play on my Steam Deck and discovering the incorrect controller mapping makes it impossible, I started looking into the problem and possible solutions.

The game engine is based off of https://github.com/nwjs/nw.js which uses Chromium. There was a recent patch [chromiumdash.appspot.com] to Chromium to allow the Steam Deck controls to work properly. Obviously the nw.js version used by the game isn't going always be the absolute latest one and so won't have fixes like this.

What I have done is to download from the nw.js website the latest stable version, v0.63.0[dl.nwjs.io], which uses a new enough Chromium version, extract it, and overwrite the files in the CrossCode directory. Then I renamed the nw executable to CrossCode. I only played for a few minutes but the controls seem to work properly now.

Hope this helps someone

Edit:
If you are using a non-Steam version like from itch.io and want to run it through steam, it seems deleting steam_appid.txt from the game folder is necessary in addition to the above.

Edit (April 27 2022):
Mershl님이 먼저 게시:
Another Linux patch came out today. No blog post so far. Here is the diff: https://steamdb.info/patchnotes/8631542/

I just updated, clicked "Verify integrity of game files" from the properties to make sure it was using the new official stuff, and played for a minute.

Dear future readers, this work around is no longer necessary as I can confirm it works on Steam Deck. Also my PS4 controller over bluetooth now has the correct mapping on my Linux desktop.
cambot11 님이 마지막으로 수정; 2022년 4월 27일 오전 11시 03분
< >
33개 댓글 중 1-15개 표시
зелений чоловічо 2022년 4월 10일 오후 12시 02분 
kjuk
cambot11 2022년 4월 10일 오후 4시 17분 
This has also fixed the mapping of my PS4 controller when used over bluetooth on Linux. When connected over USB it has always worked and that it is what I used for several playthroughs.
Stalfos 2022년 4월 11일 오전 12시 05분 
Can confirm this worked on my Steam Deck, too. Thanks!
Hibachi 2022년 4월 11일 오전 1시 10분 
Holy crap, it works.
I tried some stuff with control schemes but it generally ended up with the game crashing real fast.

Hopefully, this solution doesn't break the game elsewhere. Anyway, thanks a lot.
Arokan 2022년 4월 12일 오후 3시 09분 
Wow, that indeed fixed the controller-issue for me on Debian11.
Alas, now it's only shown 1/4 of the screen :D
pv2b 2022년 4월 13일 오전 4시 17분 
This doesn't work for me, unfortunately. Before applying this fix, the game launched from Gaming Mode but the controls were not working correctly. After applying this fix, the game seems to launch "in the background" when launching it from the gaming mode. I only see the spinning Steam Logo and I hear the title screen music in the background, but the game doesn't show up on screen.

The game launches if I try from desktop mode, but then it seems to be using keyboard emulation.

I should probably add that I own this game off steam, so I'm launching it as a "non-Steam game", not sure if that's true for you.
pv2b 님이 마지막으로 수정; 2022년 4월 13일 오전 4시 17분
cambot11 2022년 4월 13일 오전 9시 20분 
pv2b님이 먼저 게시:
I should probably add that I own this game off steam, so I'm launching it as a "non-Steam game", not sure if that's true for you.

I only tried the Steam version so I can't speak to running other versions
Hibachi 2022년 4월 13일 오전 9시 31분 
pv2b님이 먼저 게시:
I should probably add that I own this game off steam, so I'm launching it as a "non-Steam game", not sure if that's true for you.

I've also only been launching it via Steam. Not sure how the compatibility layer works on the deck for non-steam games.

It might be because you have skip a step tho.
Did you make sure to overwrite all engine files and rename "nw" to "CrossCode" ? (keeping the old Crosscode executable file as a backup by renaming it for example).
Ikrym 2022년 4월 13일 오전 9시 37분 
Hey, I tried this method and...it worked! Thank you so much!

As a side note, the desktop mode works very well. I hadn't used it in more than a month, but I remember it was a lot clunkier and you couldn't even pull up the virtual keyboard. Works much better now.
pv2b 2022년 4월 13일 오전 9시 59분 
Hibachi님이 먼저 게시:
pv2b님이 먼저 게시:
I should probably add that I own this game off steam, so I'm launching it as a "non-Steam game", not sure if that's true for you.

I've also only been launching it via Steam. Not sure how the compatibility layer works on the deck for non-steam games.

It might be because you have skip a step tho.
Did you make sure to overwrite all engine files and rename "nw" to "CrossCode" ? (keeping the old Crosscode executable file as a backup by renaming it for example).

Yes, I did everything. However!

It seems that renaming the steam_appid.txt file was the final step needed to get the game running correctly :-) I think this is because steam gets confused about it being a steam vs non-steam game and doesn't find the window correctly or something. Not sure, but that works for me
cambot11 2022년 4월 13일 오전 10시 16분 
pv2b님이 먼저 게시:
Hibachi님이 먼저 게시:

I've also only been launching it via Steam. Not sure how the compatibility layer works on the deck for non-steam games.

It might be because you have skip a step tho.
Did you make sure to overwrite all engine files and rename "nw" to "CrossCode" ? (keeping the old Crosscode executable file as a backup by renaming it for example).

Yes, I did everything. However!

It seems that renaming the steam_appid.txt file was the final step needed to get the game running correctly :-) I think this is because steam gets confused about it being a steam vs non-steam game and doesn't find the window correctly or something. Not sure, but that works for me

I was just about to suggest deleting that file. They really shouldn't put that in builds that are distributed outside Steam. That is for when you start Steam games from outside the client so it can know they are running and handle various Steam specific functionality.

I guess I don't need to finish setting up the itch.io version for testing since you got the game working
cambot11 님이 마지막으로 수정; 2022년 4월 13일 오전 10시 17분
Hibachi 2022년 4월 13일 오후 8시 40분 
pv2b님이 먼저 게시:
It seems that renaming the steam_appid.txt file was the final step needed to get the game running correctly :-) I think this is because steam gets confused about it being a steam vs non-steam game and doesn't find the window correctly or something. Not sure, but that works for me

Well, that's good news :)

cambot11님이 먼저 게시:
I was just about to suggest deleting that file. They really shouldn't put that in builds that are distributed outside Steam. That is for when you start Steam games from outside the client so it can know they are running and handle various Steam specific functionality.

Maybe it'd be great to have that tidbit in your OP post then now that we know it causes issues.
cambot11 2022년 4월 13일 오후 9시 32분 
Hibachi님이 먼저 게시:
pv2b님이 먼저 게시:
It seems that renaming the steam_appid.txt file was the final step needed to get the game running correctly :-) I think this is because steam gets confused about it being a steam vs non-steam game and doesn't find the window correctly or something. Not sure, but that works for me

Well, that's good news :)

cambot11님이 먼저 게시:
I was just about to suggest deleting that file. They really shouldn't put that in builds that are distributed outside Steam. That is for when you start Steam games from outside the client so it can know they are running and handle various Steam specific functionality.

Maybe it'd be great to have that tidbit in your OP post then now that we know it causes issues.

Good idea, I added an edit
SilverCHX 2022년 4월 16일 오후 9시 57분 
This worked perfectly even on my post DLC save file. It runs soooooo much better than running it through Proton compatibility. Thank you so much for sharing!
Quickstick4 2022년 4월 19일 오전 10시 49분 
Worked on Ubuntu, thanks for sharing.
< >
33개 댓글 중 1-15개 표시
페이지당 표시 개수: 1530 50