Homebrew RELEASE systemshock - Shockolate

capsterx

Well-Known Member
OP
Member
Joined
Oct 14, 2020
Messages
147
Trophies
0
Age
42
XP
481
Country
United States
Shockolate is a cross platform source port of System Shock, using SDL2. This runs well on OSX, Linux, and Windows right now, with some missing features that need reviving due to not being included in the source code that was released.

https://github.com/capsterx-switch/systemshock/releases/tag/v0.8.2-r5

A default key mapping is installed in switch/systemshock/keymap.keys

I dont know enough on the game to make a great set. This is what is set:
TOUCH_MOUSE_ABS=TRUE
DOUBLE_TOUCK_KEYBOARD=TRUE
RSTICK_MOUSE=TRUE
DUP=w
DDOWN=s
DLEFT=a
DRIGHT=d
LSTICK_UP=w
LSTICK_DOWN=s
LSTICK_LEFT=a
LSTICK_RIGHT=d
MINUS=ESC
PLUS=SPACE
LSTICK=RETURN
L=f
ZL=MOUSE_LEFT
ZR=MOUSE_RIGHT

double tap to bring up the keyboard when you enter your name
If someone comes up with a better mapping, let me know and I'll update it.

For info on the mappings you can look at https://github.com/capsterx-switch/switch-utils

For this to work you need a version of the game and put the res folder in switch/systemshock/res, mine looks like this:
ls switch/systemshock/res
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 data
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 enhanced
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 localization
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 missions
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 mods
drwxrwxrwx 1 Switch Switch 0 Jan 1 1970 pc

Changelog
r5
Fixing a crash when audio log was playing and you pressed keys. Also fixed a bug if you paused with the audio log playing.

r4
Stop/start the sdl mixer and sdl raw audio as needed so both the intro and in-game stuff works.

r3
This should fix the sound on the switch.
NOTE: the game expects sound to be in res/sound/sblaster, so you should have, for example res/sound/sblaster/titloop.xmi

r2
updated switch-utils to support mouse clicks
r1
Initial release
 
Last edited by capsterx,

mathew77

Lovin' life.
Member
Joined
Jan 19, 2019
Messages
1,226
Trophies
1
Age
47
XP
3,773
Country
Kazakhstan
Nice project, thanks!

Sorry for asking that, but there's no music at all?

PS: maybe it could be useful to assign mouse click function and double click on some buttons, like ZL / ZR instead of R3, and use the A/B/X/Y buttons somehow.
 
Last edited by mathew77,

capsterx

Well-Known Member
OP
Member
Joined
Oct 14, 2020
Messages
147
Trophies
0
Age
42
XP
481
Country
United States
Nice project, thanks!

Sorry for asking this, but there's no music at all?

PS: maybe it could be useful to assign mouse click function and double click on some buttons, like ZL / ZR instead of L3, and use the A/B/X/Y buttons somehow.

I'll have to look into the music, I didnt even think to try that. Spent too long trying to figure out why it wasnt reading keys right.

The mouse click defaults to right stick click or touch screen touch. You cannot currently assign mouse click to another button, but adding that would be trival. Doing double click on a button would require some thinking to implement but it's likely not that hard...I think.
 
  • Like
Reactions: mathew77

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,347
Trophies
3
XP
12,210
Country
Poland
No, Im not sure how to do that. Are there other games that do?
Really don't remember if there is any game using keyboard for gameplay.

You can get keyboard output with hid in libnx. In last release you can use hidKeyboardHeld, Down, etc. In master it's deprecated and I don't know which function should be used now.
 

Purple_Shyguy

Well-Known Member
Member
Joined
Nov 8, 2008
Messages
2,389
Trophies
2
Age
34
Location
Republic of Ireland
XP
4,912
Country
Screenshot_20201216-235124__01.jpg
:)
 

mathew77

Lovin' life.
Member
Joined
Jan 19, 2019
Messages
1,226
Trophies
1
Age
47
XP
3,773
Country
Kazakhstan
Ehm, but how to use right click mouse (Attack the enemies)?.. R3 doesn't work (it's a left mouse click I guess).

And secondly, I can't save the game — + button doesn't work as 'Enter' in Save menu...
 
Last edited by mathew77,

capsterx

Well-Known Member
OP
Member
Joined
Oct 14, 2020
Messages
147
Trophies
0
Age
42
XP
481
Country
United States
Ehm, but how to use right click mouse (Attack the enemies)?.. R3 doesn't work (it's a left mouse click I guess).

And secondly, I can't save the game — + button doesn't work as 'Enter' in Save menu...

There is not currently a way to configure a right mouse click, but I can add that.

I'll look into the save thing it's possible it has a separate event loop.
 
  • Like
Reactions: mathew77

capsterx

Well-Known Member
OP
Member
Joined
Oct 14, 2020
Messages
147
Trophies
0
Age
42
XP
481
Country
United States
Thanks! So right now I can't attack mobs at all? :lol:

I updated the release but did not update the keymap in the zip, but I tried this one out

TOUCH_MOUSE_ABS=TRUE
DOUBLE_TOUCK_KEYBOARD=TRUE
RSTICK_MOUSE=TRUE
DUP=w
DDOWN=s
DLEFT=a
DRIGHT=d
LSTICK_UP=w
LSTICK_DOWN=s
LSTICK_LEFT=a
LSTICK_RIGHT=d
MINUS=ESC
PLUS=SPACE
LSTICK=RETURN
L=MOUSE_LEFT
R=MOUSE_RIGHT

I added LSTICK clicking to RETURN for saving, but it can be any key, looks like you minimally need space and return to get into the game and save.
 
  • Like
Reactions: mathew77

Impossible_Igntiz

Well-Known Member
Member
Joined
Nov 16, 2018
Messages
422
Trophies
0
Location
Bonerville
XP
1,188
Country
United States
I have no clue! I've never actually played system shock. It should play anything https://github.com/Interrupt/systemshock can play
it's all good! I don't mind waiting for fixes, thanks for your hard work! got plans for other classic PC games to port or anything from the Windows 2000/XP era like Oni or Nanosaur or Bugdom?
 

capsterx

Well-Known Member
OP
Member
Joined
Oct 14, 2020
Messages
147
Trophies
0
Age
42
XP
481
Country
United States
it's all good! I don't mind waiting for fixes, thanks for your hard work! got plans for other classic PC games to port or anything from the Windows 2000/XP era like Oni or Nanosaur or Bugdom?

If there is an SDL open source port for such you can point me at, I can look at it.
 

Impossible_Igntiz

Well-Known Member
Member
Joined
Nov 16, 2018
Messages
422
Trophies
0
Location
Bonerville
XP
1,188
Country
United States

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    @Xdqwerty I don't have a ROG ally
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i don't have one either
    +1
  • SylverReZ @ SylverReZ:
    @AcuteBulbasaurappears, A cute bulbasaur appears. :D
    +2
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, The Wii U gamepads are tied to the console's region, so its impossible to find a cheap gamepad that supports your model.
  • SylverReZ @ SylverReZ:
    Unless you modify your system, of course, and remove the region check.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, im now by episode 8 of lain
  • S @ salazarcosplay:
    @Xdqwerty can we discuss chrono trigger
  • S @ salazarcosplay:
    @Xdqwerty I like how the game had the middle ages 1000AD, the dark ages 600AD.It was great seeing the post robot apocalypse 2300 like Terminator and enter the matrix. some of mad max and fallout. 2300ad though it could had used more elements instead of just a generic ai uprising. It was a great idea for their judgement day to be 1999 Y2K.

    -great additions if they would have made an expansion or dlc in my opinion would be finding out humans trapped in a matrix -

    a follower having a cyborg character living tissue over metal endoskelleton like terminator, and the synths from fallout
  • S @ salazarcosplay:
    4After Zeal fell it would have been good to see more ancient eras. Perhaps Sumeria based in one area, then Egypt based in another area, Greek based in another area, then roman based in another area before the middle ages.---------

    ----between 1000ad and 1999 is a big gap they should have had the age of revolution like the american and French Revolution

    then the cowboyy era in one area of map and the Industrial revolution/age of enlightmentthen a ww1 and ww2 and a cold war era
  • S @ salazarcosplay:
    they could have added 75,000 bc like assassins creed. zeal was already establish in 12, 000 bc , soething before the kindom rose
  • S @ salazarcosplay:
    @Xdqwerty they could also add age of dscover, colonialism ect
    +1
  • S @ salazarcosplay:
    renaissance
  • S @ salazarcosplay:
    @Xdqwerty what did you think
  • S @ salazarcosplay:
    @Xdqwerty I think glenn (the frog) after becomming human had an affair with the queen
  • S @ salazarcosplay:
    so he is the great great great great grandfather of marle @Xdqwerty
  • S @ salazarcosplay:
    they made it like Lancelot from king arthur legends
  • BakerMan @ BakerMan:
    just found out i'm now taller than my dad
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, sorry i was busy
  • S @ salazarcosplay:
    @Xdqwerty thats completely fine
    +1
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay,
    the ds version added a secret boss reference to chrono cross
  • S @ salazarcosplay:
    @Xdqwerty did you finish watching naruto shippuden and Boruto
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, i havent even started lol
    Xdqwerty @ Xdqwerty: @salazarcosplay, i havent even started lol