Titan Souls - Gamepad remap (support the unsupported)

For any other game that doesn't have its own section.
Post Reply
Message
Author
User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Titan Souls - Gamepad remap (support the unsupported)

#1 Post by Administrator » Tue Apr 14, 2015 1:20 pm

So, I got a copy of Titan Souls, and it doesn't appear to support standard USB gamepads; only XBox or PS4 controllers. So, I've written up a small script to map USB gamepad inputs to keyboard controls to make it function.

Requires MicroMacro 1.91 or newer

Instructions:
Download the attached file, unzip it.
Copy the 'gpadremap' folder into micromacro/scripts/
Start MicroMacro, and enter the following:
gpadremap/main titansouls
Enjoy the game (while leaving MicroMacro run in the background).

*You can also double-click the titansouls.bat file in the gpadremap folder to launch the script with the Titan Souls profile.

As I only have a PS2/PS3 controller (no PS4 yet), I have only created a profile for that style of gamepad. If this does not match for you, provide me with some information on your gamepad and I'll fix it up.

Controls:
POV-hat (ie. D-pad) to move
X to roll/run
O to shoot/retrieve arrow
START to open pause menu

You can change these bindings by editing gpadremap/profiles/titansouls.lua
Attachments
gpadremap.zip
Now with axis controls!
(3.17 KiB) Downloaded 1619 times

User avatar
Osde
Posts: 1
Joined: Sun Jul 19, 2015 5:56 pm
Location: SCL

Re: Titan Souls - Gamepad remap (support the unsupported)

#2 Post by Osde » Sun Jul 19, 2015 6:22 pm

Hey, thanks for posting this.

Today I started playing Titan Souls. I tried using a joystick (without analog sticks). I used your method, works great except for the direction buttons. I tried editing the titansouls.lua file but couldn't make it work. Also when Micromacro is running, it shows every button I use, but it doesn't show the direction ones.

Hope you can help me with this.
Osde.

PS: Sorry if my grammar is not the best, but english isn't my mother tongue.

User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Re: Titan Souls - Gamepad remap (support the unsupported)

#3 Post by Administrator » Sun Jul 19, 2015 7:52 pm

The direction buttons are known as the POV (Point-of-view) hat. So, you'll want to use gamepad.getPov()
The rest of the code would essentially be the same as the joystick. The only difference is going to be handling the pressing/releasing of the keys. If I have time and feel so inclined (read: don't feel lazy) I'll help you out further, but you should at least consider looking into it and seeing if you can't get it to work on your own.

stardestroyer
Posts: 1
Joined: Mon Sep 07, 2015 7:43 am

Re: Titan Souls - Gamepad remap (support the unsupported)

#4 Post by stardestroyer » Mon Sep 07, 2015 7:55 am

Thanks for this solution...
Is there a way to use analog instead POV?

(sorry for my english)

User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Re: Titan Souls - Gamepad remap (support the unsupported)

#5 Post by Administrator » Tue Sep 08, 2015 6:55 pm

OK; new copy posted. Analog 1 (axis 1 & 2) will be used to emulate the POV controls. It's a bit hard-coded at the moment, but seems to function very well in Titan Souls. Please do test it and report back with results.

cornerkiddo
Posts: 1
Joined: Sat Oct 03, 2015 7:13 pm

Re: Titan Souls - Gamepad remap (support the unsupported)

#6 Post by cornerkiddo » Sat Oct 03, 2015 7:16 pm

THE CODE IS WRONG...
Typing what you said didnt do anything

the real code (that worked for me) was: "gpadremap/main titansouls" (withought the " ")
not "gpadremap titansouls"

please edit your post...

EDIT. It didn't work... It says
"Failed to run event function, err code: 7 (Runtime error)
main.lua:53: attempt to call nil value (field 'atan2')
stack traceback: main.lua:53 in function <main.lua:20>

What's wrong?
I have a PS2 controller. It works fine with PES 2015 but not in here...
Please help :)

...

so I think I found what's wrong. (at least with the program)
When I press a button the program responds very well indeed
but when I move my POV then the program just crashes.
Maybe the sensitivity is so high, that the slightest movement (not even moving, just mear touching it)
causes the program to break down...

But I don't see the connection... Do I need to patch it to Titan souls?
How is Titan souls going to recognise the program and by doing that, my controller?
Am I missing something here?

User avatar
Administrator
Site Admin
Posts: 5318
Joined: Sat Jan 05, 2008 4:21 pm

Re: Titan Souls - Gamepad remap (support the unsupported)

#7 Post by Administrator » Sat Oct 03, 2015 11:01 pm

cornerkiddo wrote: the real code (that worked for me) was: "gpadremap/main titansouls" (withought the " ")
not "gpadremap titansouls"
Actually, as of the latest version, it would auto-fill main.lua as part of the script name correction, so either way would work. I did edit the post either way so that it should be fine to use with older versions.

EDIT. It didn't work... It says
"Failed to run event function, err code: 7 (Runtime error)
main.lua:53: attempt to call nil value (field 'atan2')
stack traceback: main.lua:53 in function <main.lua:20>

What's wrong?
I have a PS2 controller. It works fine with PES 2015 but not in here...
Please help :)
So for some reason it isn't finding the atan2 function which inside of the math library. That's super weird. What version of MicroMacro are you using? If you change that line to use just atan (remove the 2), does that work?

SsTinN
Posts: 1
Joined: Sat Nov 28, 2015 9:02 am

Re: Titan Souls - Gamepad remap (support the unsupported)

#8 Post by SsTinN » Sat Nov 28, 2015 9:05 am

Administrator wrote:
cornerkiddo wrote: the real code (that worked for me) was: "gpadremap/main titansouls" (withought the " ")
not "gpadremap titansouls"
Actually, as of the latest version, it would auto-fill main.lua as part of the script name correction, so either way would work. I did edit the post either way so that it should be fine to use with older versions.

EDIT. It didn't work... It says
"Failed to run event function, err code: 7 (Runtime error)
main.lua:53: attempt to call nil value (field 'atan2')
stack traceback: main.lua:53 in function <main.lua:20>

What's wrong?
I have a PS2 controller. It works fine with PES 2015 but not in here...
Please help :)
So for some reason it isn't finding the atan2 function which inside of the math library. That's super weird. What version of MicroMacro are you using? If you change that line to use just atan (remove the 2), does that work?
You are a life saver!
It indeed worked out!You just need to remove the 2 and everything will work just fine!
Thank you very much :D

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests