Sword of Moonlight Forum

Sword of Moonlight => SOM Guides, FAQ and Help => Topic started by: Ioskeha on April 12, 2017, 08:53:11 pm

Title: Problem with Xbox 360 controller
Post by: Ioskeha on April 12, 2017, 08:53:11 pm
I'm trying to play King's Field with a Xbox 360 controller.  The controller works fine, but there is one problem.  The strafe left/right are set to buttons 7 and 8 which are the start and select on the controller.  With no way of changing them in the options setting. The game doesn't detect, or have settings, the L/R trigger buttons.  I thought I could just use xpadder to emulate the keyboard, but it doesn't work. The game still detects the controller.  I tried to setup a fake controller using PPjoy, but I couldn't get PPjoy to work in Windows 10.  I tried using Joy2Key, but I really have no idea how to use that program.  I use xpadder for my keyboard emulation needs.

Does anyone have any ideas on how to get my controller working so the L/R strafe isn't set to my start/select buttons?
Title: Re: Problem with Xbox 360 controller
Post by: Ioskeha on April 12, 2017, 11:52:00 pm
Never mind. I figured out problem. I had to use vJoy to setup the virtual controller. Now if I could only figure out how to set my left analog stick to strafe without wide turning (looks and strafes at the same time).
Title: Re: Problem with Xbox 360 controller
Post by: JC Bailey on April 15, 2017, 06:52:51 am
I'm pretty sure that look/move config is hard-coded into SOM, so I imagine a virtual controller would just layer on top of that.

I wouldn't suggest using analogue for King's Field anyway, it's one series that actually feels (and works) better with a D-pad & shoulder buttons, in my opinion. It takes some getting used to, but feels and controls totally fine once you get the hang of it.
Title: Re: Problem with Xbox 360 controller
Post by: Mati9319 on September 10, 2017, 09:44:35 am
To Ioskeha:

Can you tell me what I need to do in order to configure vJoy to make the trigger buttons usable? I've downloaded it but have no idea on what to do. Also, I'm using a XBox One controller and as of now:
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 19, 2018, 01:52:12 am
I'm having the same problem. What was the solution?
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 19, 2018, 11:46:27 am
XInput controllers use analog inputs instead of buttons. There must be a lot of software that can make them act like buttons, but even with the DirectInput API the trigger buttons will cancel one another out.

(I've fixed this for SOM with extension work, but no games take advantage of my work so, it's almost pointless to say so. Haven't gone the length to separate the triggers though... yet... assuming it's possible to.)
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 19, 2018, 12:38:04 pm
So did I buy the wrong controller? I'll use whatever works. Suggestions?
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 20, 2018, 12:13:17 am
So did I buy the wrong controller? I'll use whatever works. Suggestions?

No, Microsoft just switched over to preferring XInput since it developed it for the Xbox, and stopped work on DirectInput. I'm not very familiar with XInput, but I think it's probably inferior to DirectInput. And still some flight simulator controllers, for example, probably prefer DirectInput if so. Did you buy a controller just for SOM? (Edited: but probably the underlying problem is that the XBox controllers have "analog" triggers instead of "digital" buttons... but you won't likely find any new controllers that aren't that way. I recommend trying to use Sony's controller, if possible, but the SIXAXIS is analog too, and DualShock2 adapters have become hard to come by.)

If you're genuinely interested in SOM you should be using www.swordofmoonlight.net SOM however it's kind of a mixed bag in different areas, like I haven't taken a specific interest in the KF remake published with SOM, so it can't readily help there. But if you are truly interested in SOM you could even take it upon yourself to modernize the KF remake for everybody. (Edited: if it's any incentive, I'm currently looking at adding Sony's VR headset to SOM, since I found out it seems like a really good candidate the other night, and that it's being used successfully with Windows.)
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 20, 2018, 02:09:08 am
That's incredible about VR! I even started a petition years ago to get From Software to pursue King's Field VR.

It sounds like what you're telling me is it doesn't matter what controller I'm using, that I won't have access to the 2 buttons anyway? I may as well just play the game and lose my look up and down buttons.
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 20, 2018, 07:17:57 am
That's incredible about VR! I even started a petition years ago to get From Software to pursue King's Field VR.

Did your petition have a nice image of the Exselector in a logo? I saw such a petition in a Reddit post like just a few weeks ago and saved the image because I liked it. Funnily, when I was following the OSVR forum years back, a woman appeared who was making a King's Field 2 inspired game using Wii-motes. She wouldn't really speak to me. Maybe only eventually replying to my overtures with a dismissive reply. But I thought it was such an unusual coincidence at the time. From what I could gather she was from South or Central America... I can't recall which. Anyway, I was disappointed with what the OSVR people (they are really the Razer--or Razor?--peripheral company from what I can gather) came up with, and so I did not pursue VR at the time. But the PSVR looks exactly like what I hoped for. I've written off consoles entirely, but weirdly I may buy one of these headsets when I'm in town in the next weeks.

EDITED: Just for the record, for SOM I'm only interested in limited use of the headsets; so that the controller is still going to be used to turn around fully, and there won't be anything involving handheld peripherals.

Quote
It sounds like what you're telling me is it doesn't matter what controller I'm using, that I won't have access to the 2 buttons anyway? I may as well just play the game and lose my look up and down buttons.

Well, If you give up so easily, maybe. But you shouldn't play it that way at all, if at all. You're not the only person in this boat. I'd be surprised if there's not 20 different tools to solve your problem. I just don't know any off the top of my head.

I posted a patch here recently for playing the Moratheia 2.1 demo. The same patch can be adapted to play the KF remake here. Then it will have XInput support. I map the left trigger to the Menu button, and the right to the Attack button, that way you can use the Magic and Attack buttons at the same time, without canceling each other out. (Also to run at full speed, forever, you have to hold Magic+Attack+Action, which won't work if they are canceled out.) Sorry, I can't be of more help, unless you embark on a modification project. Then I will offer technical consultation.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 20, 2018, 06:27:29 pm
It's not that I don't want to solve the problem just not sure I'm technically proficient enough to pull it off. I'll look for your patch and see if I can make your suggestion work.  I appreciate your advice.

I'm a life long King's Field fan, but wasn't a PC gamer since Sword of Moonlight came along. I just got a new laptop primarily for work, but I bought a gaming one for the specs and it was more cost effective. I have it plugged into my big screen with HDMI and looks pretty amazing.

 I actually joined the Oculus Developer community years ago solely to post my petition for King's Field VR.  Didn't get much traction. Either people had no idea what King's Field was or they only like 3rd person with multiplayer ala Souls. Haters and trolls mostly.

https://forums.oculusvr.com/community/discussion/7726/please-help-me-start-a-vr-kings-field-game-project-sign

Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 20, 2018, 10:19:42 pm
Can you walk me through how I download/apply your patch to KF1 and/or the other games?  It would be nice if other folks saw our conversation and weighed in with solutions if they have any.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 20, 2018, 10:51:19 pm
Actually I seem to have gotten all buttons to work.  What is killing the gameplay is the screen will freeze every few steps.  I have to alt-tab out of the game, alt-tab back in and it's ok for a bit, and then freezes again.  Unplayable.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 21, 2018, 01:03:57 am
Sorry for the multiple posts.  I started tinkering with graphic options in the settings in game and choosing something other than the default graphic option won't freeze.  Can't really tell the difference between them not counting RGB emulator, but seems like the ones with the Japanese symbols are the ones with least graphical distortion.  I still get a line through the screen fairly consistently which is irritating, but at least the game is playable now.

Couldn't figure out how to play the other games.  I am able to mount them, but the games won't play.  Would love to play Abyss since I beat Shadow Tower for the first time within the last two years.  Loved the game.

I was able to extract and play Dark Destiny, but that's probably because it doesn't require mounting.
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 21, 2018, 01:29:16 am
I've worked on SOM full-time for almost 10yrs. People (stupid people... most people... virtually all people in this case) go for the hardcore original SOM for Windows 95 experience every time. Instead of putting "Sword of Moonlight" into a search engine, and using the modern incarnation that I've devoted my life to. I'm developing it as the first noncommercial 3D story platform ever to be, which is fitting for the first modern 3D video game ever published.

Because developing a public 3D story platform (a storied, public 3D story platform) is a very heavy lift by any token, I don't wholeheartedly recommend it, since it's in a gray area between what is not really yet Beta software, but is technically a world of difference from the already finished/published product circa the year 2000. It's professional grade, but lacking a number of features that if they were finished I would feel more confident recommending SOM without fear that people will feel it's wasted their time... so it's out there for fans and cutting edge DIY developers, but not the general public.

The patch I mentioned is attached to a recent post. I only began using this forum for anything a few weeks ago. So it cannot be far back... especially because it's been very quiet here lately (not even the regular Brigandine chatter :movingeyes:)

Moratheia's project has potential to be a popular commercial title. I received a letter from its author just now. But it's easy to discount them because their life seems to me ever in the way of finding the necessary time to finish their product. The 2.1 demo is actually very old. They're supposed to be due an all new demo that is a full overhaul.

I can't be of much help, generally speaking. Here ( http://www.swordofmoonlight.net/ex/diy/ ) is my guide for installing SOM without the archaic issues you speak of. Patching is just copying some system files over into the game so that it launches with the "extended warranty" DLL file, etc. There's a forum in that website if you have time to make SOM a hobby of yours. I'm going to promote SOM more after I succeed in porting King's Field 2 to it. I'm aiming to do that by their joint 20th and 25th anniversary  in 2020, but I may well only get a project going by 2020--that will just have to settle for progress reports/demonstrations until the effort is completed in the ensuing years. KF2 has a number of features that SOM doesn't natively support, and right now I'm still finding myself working on many things KF2 doesn't require instead.

Quote
Actually I seem to have gotten all buttons to work.

Just out of curiosity... how so?
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 21, 2018, 02:18:39 am


EDITED: Use this (http://www.swordofmoonlight.com/bbs/index.php?action=recent)
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 21, 2018, 03:04:20 pm
I've worked on SOM full-time for almost 10yrs. People (stupid people... most people... virtually all people in this case) go for the hardcore original SOM for Windows 95 experience every time. Instead of putting "Sword of Moonlight" into a search engine, and using the modern incarnation that I've devoted my life to. I'm developing it as the first noncommercial 3D story platform ever to be, which is fitting for the first modern 3D video game ever published.

Because developing a public 3D story platform (a storied, public 3D story platform) is a very heavy lift by any token, I don't wholeheartedly recommend it, since it's in a gray area between what is not really yet Beta software, but is technically a world of difference from the already finished/published product circa the year 2000. It's professional grade, but lacking a number of features that if they were finished I would feel more confident recommending SOM without fear that people will feel it's wasted their time... so it's out there for fans and cutting edge DIY developers, but not the general public.

The patch I mentioned is attached to a recent post. I only began using this forum for anything a few weeks ago. So it cannot be far back... especially because it's been very quiet here lately (not even the regular Brigandine chatter :movingeyes:)

Moratheia's project has potential to be a popular commercial title. I received a letter from its author just now. But it's easy to discount them because their life seems to me ever in the way of finding the necessary time to finish their product. The 2.1 demo is actually very old. They're supposed to be due an all new demo that is a full overhaul.

I can't be of much help, generally speaking. Here ( http://www.swordofmoonlight.net/ex/diy/ ) is my guide for installing SOM without the archaic issues you speak of. Patching is just copying some system files over into the game so that it launches with the "extended warranty" DLL file, etc. There's a forum in that website if you have time to make SOM a hobby of yours. I'm going to promote SOM more after I succeed in porting King's Field 2 to it. I'm aiming to do that by their joint 20th and 25th anniversary  in 2020, but I may well only get a project going by 2020--that will just have to settle for progress reports/demonstrations until the effort is completed in the ensuing years. KF2 has a number of features that SOM doesn't natively support, and right now I'm still finding myself working on many things KF2 doesn't require instead.

Quote
Actually I seem to have gotten all buttons to work.

Just out of curiosity... how so?

I'm trying not to take offense to your commentary, but when you're calling people stupid does that include me?  Maybe I'm misunderstanding your point, but it sounds like you are attacking people for appreciating history/retro vs. new.  I never had the opportunity to play the original King's Field from Japan and now I can.  I'm playing KF1SOM fyi.  I'm all for new content and better software/hardware, but I also appreciate the original product.

On the controller I was trying to make the rear bumpers work, however, the buttons successfully mapped to what would typically be start/select ie the two small center buttons on the Windows controller.  Fine for me.  I didn't do anything special, just wasn't checking those buttons carefully initially.

I did look through many of your posts from new to old before your reply and found a comment where you made reference to a patch, but there was no download link or explanation of how to apply it.  So no this is not a case of not looking through a forum before asking a question. 
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 21, 2018, 03:25:18 pm
I was reading the information on the .net site for SOM you provided.  Says Direct3D 9.  I have DirectX 12 installed.  Do I need 9 for best results?  I'm way way rusty on PC as I've been console gaming for several years.  I'm not completely ignorant, but haven't had to deal with this stuff for at least a decade. 

Also when you were referring to all your work developing SOM (which is appreciated greatly) I wasn't clear if you meant I could utilize SOM as a vehicle for better results to play games like KF1SOM or if you are referring to all the original content people have released using SOM.

I could use a little direction to make sure I'm on the same page with you.  I would absolutely love to develop original content to share, but time and life are a problem.  We'll see.  Never say never.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 12:37:14 am
Figured out the screen tearing I'm seeing is a result of the HDMI output to my big screen TV from my laptop.  Small price to pay for the better experience.
Title: Re: Problem with Xbox 360 controller
Post by: Holy_Diver on April 22, 2018, 04:43:32 am
I did look through many of your posts from new to old before your reply and found a comment where you made reference to a patch, but there was no download link or explanation of how to apply it.  So no this is not a case of not looking through a forum before asking a question.

http://www.swordofmoonlight.com/bbs/index.php?topic=845.msg13270#msg13270

Sorry, thought this post would still be "Recent." Should've given a link to my own accounts recent Posts. Good luck playing games with Start/Select :movingeyes:
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 12:33:06 pm
I did find that post actually. I had assumed it would be a download of some kind, not a manual copy / paste, delete game code thing.  I mentioned that in my last comment.

Start/Select work fine for looking up and down. As you already mentioned there is no solution you are aware of to truly fix the rear bumpers so it's not like I have a work around. King's Field isn't Street Fighter for example so less desirable placement of those buttons doesn't interfere with gameplay in any way.

Your posts come across extraordinarily condescending and snarky. Not sure what that's about. Seems unnecessary.
Title: Re: Problem with Xbox 360 controller
Post by: JC Bailey on April 22, 2018, 04:22:06 pm
Sorry for the multiple posts.  I started tinkering with graphic options in the settings in game and choosing something other than the default graphic option won't freeze.  Can't really tell the difference between them not counting RGB emulator, but seems like the ones with the Japanese symbols are the ones with least graphical distortion.  I still get a line through the screen fairly consistently which is irritating, but at least the game is playable now.

Couldn't figure out how to play the other games.  I am able to mount them, but the games won't play.  Would love to play Abyss since I beat Shadow Tower for the first time within the last two years.  Loved the game.

I was able to extract and play Dark Destiny, but that's probably because it doesn't require mounting.

Make sure you're getting your download links from here: http://www.swordofmoonlight.com/bbs/index.php?topic=754.0

SOM games are standalone files, so you only need to extract their folders to play them. I do have an ideal configuration that's good for most SOM games, it's attached below. Just copy the contents of the text file to the .ini file in the folders of each SOM game you have downloaded. You may want to edit things like resolution to suit your monitor before doing so.

The other games only require extracting the iso and an emulator to run them, no mounting necessary. To play, you simply extract the iso file to a desired folder, run your emulator, then open the iso file from the emulator (file > open). Note that PS2 emulation can be a headache, and can require a lot of trial and error to get something like STA working right.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 08:43:31 pm
Thanks man! Extraordinarily helpful! Any suggestions on emulators?
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 08:49:14 pm
Found this discussion about screen tearing. Might play around with some of the suggestions and see if that helps with my issue. Any thoughts appreciated.

http://www.ign.com/boards/threads/hdmi-from-pc-to-tv-screen-tearing.454929741/
Title: Re: Problem with Xbox 360 controller
Post by: JC Bailey on April 22, 2018, 09:37:48 pm
Thanks man! Extraordinarily helpful! Any suggestions on emulators?

EPSXE is good for playing the first 3 KF games and Shadow Tower without many hiccups, though you may have issues with movies. I would either follow a setup guide or try different settings and see what works best with your PC.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 09:47:02 pm
You rock!  Thank you!
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 22, 2018, 10:55:04 pm
Thanks man! Extraordinarily helpful! Any suggestions on emulators?

EPSXE is good for playing the first 3 KF games and Shadow Tower without many hiccups, though you may have issues with movies. I would either follow a setup guide or try different settings and see what works best with your PC.

Now it's looking great! Not sure if your settings vs. me changing some options on my laptop. Instead of cloning displays, I have entire picture output to my TV.

Do you have any idea the difference between the following display options? I can't really tell:

Direct3D HAL
Direct3D TL HAL
YY. YDISPLAY2 Direct3D HAL
YY. YDISPLAY2 Direct3D TL HAL

The main difference I've noticed since tinkering is that the YY options say they won't work now with resolution. Before I could use them.

After they stopped working I manually changed the .ini file to 4k resolution. Not sure if that matters or not with older software like this.

RGB emulation looks beautiful now for an old school vibe.
Title: Re: Problem with Xbox 360 controller
Post by: JC Bailey on April 23, 2018, 12:36:23 am
I've been told that device2 in the ini file is the ideal display setting (which i think is Direct3D TL HAL), and is what i always use. I usually have to change my laptop's resolution for SOM to display correctly on my HDTV, 1280x720 works for me. So maybe you could try that? Your TV's resolution may be different from mine though.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 23, 2018, 02:18:09 am
I might try that resolution, but honestly seems to work great as is. I'm digging the RGB setting as to me feels more natural and authentic. Both look great.
Title: Re: Problem with Xbox 360 controller
Post by: jwhyrock on April 29, 2018, 04:58:04 am
Beat KF1. On to Dark Destiny. I really prefer the RGB setting. Beautiful textures with depth. Much more natural. The other video settings just feel flat. KF1 was surprisingly good. I expected short with no story and it was great.