GTAMP.com

Grand Theft Auto Multiplayer
It is currently Wed Dec 12, 2018 4:02 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Thu May 24, 2018 10:44 pm 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
Hi all, in the last weeks, since the last MISI release I worked on a Twin stick mod for GTA2 (like the controls of games like Hotline Miami), and now the work is complete!
This first release contains only a modified MISI.ASI and an alternative_controls.lua script.
To use it you should:
-install MISI
-replace MISI.ASI in the gta2 directory with the one in this release
-insert the alternative_controls.lua script in the scripts directory
-plug an XBOX controller in your PC and play!


The controls are:
A - Jump - brake in car
B - Enter/Exit car
X - Shoot/Punch - Brake in car
Y - Special 1: Car Horn
LB - previous weapon
RB - next weapon
LT - unused (maybe I'll use it to change radio station)
RT - Shoot/Punch - Brake in car
Back - Special 1: Car Horn
Start - exit menu - to confirm use the A button, to stay in game press B or Start again
Left Stick/D-pad - walking direction of the character - in a car works like the normal controls
Left Stick Click - Special 2: you can use the stick movements to control the effect of the special 2 command
Right Stick - direction of bullets

In the next days I'll release the source code, a standalone ASI and some videos.

Thanks to all the awesome reverse engineers that published offsets on this forum, in particular thanks to:
Sektor - various offsets and really useful answers to other users on the forum
robotanarchy - for the input offsets and for the idea of a twin stick mod for GTA2
Logofero - for the awesome library that he wrote, for the source code of the library and for a little bit of support in PM
without MISI.ASI I would never have even tried to make this mod

Let me know how it works, and if you have any suggestions or bug reports!


Update 2018-07-09:
I've released the sources of the mod and you can download them here: http://gtamp.com/forum/download/file.php?mode=view&id=1891


Attachments:
File comment: The sources of the Modded MISI library and the code of the lua script (versioned with git)
ModdedMISI_TwinStickMode_src.zip [4.88 MiB]
Downloaded 264 times
File comment: The Twin Stick MOD ready to use
TwinStickMOD.7z [232.82 KiB]
Downloaded 259 times


Last edited by Dege on Mon Jul 09, 2018 1:34 pm, edited 1 time in total.
Top
 Profile  
 
PostPosted: Fri May 25, 2018 5:07 am 
Offline
Serial Killer

Joined: Wed Dec 09, 2015 2:18 pm
Posts: 208
If I had a controller I would check it but it's not. I can only imagine.

Good job. Especially for lovers of joysticks is very useful.

Also you can add a display resolution setting. Author ThirteenAG provided the sources in the repository https://github.com/ThirteenAG/Widescree ... llmain.cpp

This is for all MISI users:

Just want to mention. When using MISI.ASI, you do not need to download ASI Loader. Some authors have a tendency without permission to send statistics on the use of the plugin on the Internet resource of its author. MISI never collected statistics. Moreover, I am against the connection of local libraries connecting as demons with the servers of the software authors. Do not use ASI Loader, you do not need it.

_________________
Map F-Industry-Live
MISI Library


Top
 Profile  
 
PostPosted: Sun May 27, 2018 7:21 am 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1345
Location: GTAMP.com
It works nicely on foot, circle strafing is fun!


Top
 Profile  
 
PostPosted: Mon Jul 09, 2018 1:34 pm 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
I've released the sources of the mod and you can download them here: http://gtamp.com/forum/download/file.php?mode=view&id=1891


Top
 Profile  
 
PostPosted: Fri Aug 03, 2018 6:44 am 
Offline
Hitman

Joined: Tue Dec 06, 2011 4:54 pm
Posts: 120
I'm definitely gonna have to check this out if I can get a 360 controller set up with my laptop. Been looking at some of the maps I quit working on last year & definitely want to get back into scripting & map design when viable, & given that my maps aren't meant to play like a practical GTA2 death match something like this could be fun for a map, does this work for multiplayer?
& so it's fair to assume this allows the player to strafe / tank strafe? Man the potential for this sounds pretty awesome.


Top
 Profile  
 
PostPosted: Fri Aug 03, 2018 7:05 am 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
Devastator wrote:
I'm definitely gonna have to check this out if I can get a 360 controller set up with my laptop. Been looking at some of the maps I quit working on last year & definitely want to get back into scripting & map design when viable, & given that my maps aren't meant to play like a practical GTA2 death match something like this could be fun for a map, does this work for multiplayer?
& so it's fair to assume this allows the player to strafe / tank strafe? Man the potential for this sounds pretty awesome.


I don't know what the clients communicates to the server during multiplayer. If they send the keypresses, this will not work (but a limited version without the aim stick separated from the walk stick could be made), if the clients just sends raw player objects and bullets it could be modified to work fully in multiplayer as well.

At the moment with a controller you will always strafe while walking and always tank controlling while driving.

If you get that controller let me know how it works for you ;-)

EDIT:
In alternative if it's possible to transfer data between clients by some side channels it's possible to get the full support even with only the keypresses commands sent.


Top
 Profile  
 
PostPosted: Fri Aug 24, 2018 3:55 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 905
It worked right away, nice work! and better than 'built-in' controller support. Thanks! :)

But to be honest it plays a bit weird and looks also a bit weird when aiming with right joystick. Entering a car did not always work/trigger. Also once in the car one cannot push on gas and steer at the same time... which does work with arrow keys.

Is it possible to have different controls when in the car? Maybe left joystick for gas/brake and right joystick for steering...

Edit: Also somehow I find Y more logical for entering a car. Most games (newer GTA) use that.

_________________
"Mmmm, your eyes are so beautiful."


Top
 Profile  
 
PostPosted: Fri Aug 24, 2018 5:27 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 905
I made you an icon for the program script. Don't know why, just wanted to play with GTA2 icons again. Hope you like it.

Attachment:
TwinStick3.png
TwinStick3.png [ 13.64 KiB | Viewed 4140 times ]


Edit: This bloody new 4k screen makes pixel graphics (like GTA2) look ugly and its hard to get correct 'look'.

_________________
"Mmmm, your eyes are so beautiful."


Top
 Profile  
 
PostPosted: Sun Aug 26, 2018 11:04 am 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
Cuban-Pete wrote:
It worked right away, nice work! and better than 'built-in' controller support. Thanks! :)

Thank you for your kindly words and for your feedback!

But to be honest it plays a bit weird and looks also a bit weird when aiming with right joystick.

How do you suggest that the right thumb-stick aim can be made better, and what are the issues for you?

Entering a car did not always work/trigger. Also once in the car one cannot push on gas and steer at the same time... which does work with arrow keys.

Is it possible to have different controls when in the car? Maybe left joystick for gas/brake and right joystick for steering...

I totally agree with you on car controls, I feel like the cars are even more difficult to control than the base game!
I'm not a big fun of racing games, but I'll look into how modern top down racing game manage their controls schemes to draw inspiration :D (and I'll also try with your suggested control scheme)


Edit: Also somehow I find Y more logical for entering a car. Most games (newer GTA) use that.

I admit that I picked some controls very randomly and I have no issue with changing them in a future release, so if you find something else not working nicely feel free to give your feedback ;)



I made you an icon for the program script. Don't know why, just wanted to play with GTA2 icons again. Hope you like it.

Thank you for the icon! I'll surely use it for the first standalone version!



Top
 Profile  
 
PostPosted: Mon Aug 27, 2018 8:57 am 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 905
I think one of the issues is with the animations. If you walk a direction and aim the other way, the character is floating and gives a feeling of disconnection with the game ('realism' is gone).

I played in the old days besides offline also some time online and there you have 'walking illusion' with for example the rocket launcher or with throwing molotov cocktails. The "walking illusion" (thanks to animation) of going a direction and suddenly changing direction (going backwards with a turn for example) and shooting a rocket was a big part of the game mechanics (for online anyway).

Maybe just using the left joystick for walking forward/backward (like up and down key) and using the right joystick for looking left/right (like left and right arrow key) will work, but I'm not sure and perhaps isnt the 'twin stick' you imagined.

I don't know, I just really your idea of good (xbox) game control support and a new way to control the game, but I also like to stay with 'old school'. :)

How were the controls on all the different console gta2 versions? (never really played it on console)

_________________
"Mmmm, your eyes are so beautiful."


Top
 Profile  
 
PostPosted: Mon Aug 27, 2018 10:33 pm 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
Cuban-Pete wrote:
I think one of the issues is with the animations. If you walk a direction and aim the other way, the character is floating and gives a feeling of disconnection with the game ('realism' is gone).

I played in the old days besides offline also some time online and there you have 'walking illusion' with for example the rocket launcher or with throwing molotov cocktails. The "walking illusion" (thanks to animation) of going a direction and suddenly changing direction (going backwards with a turn for example) and shooting a rocket was a big part of the game mechanics (for online anyway).

Maybe just using the left joystick for walking forward/backward (like up and down key) and using the right joystick for looking left/right (like left and right arrow key) will work, but I'm not sure and perhaps isnt the 'twin stick' you imagined.

I don't know, I just really your idea of good (xbox) game control support and a new way to control the game, but I also like to stay with 'old school'. :)

How were the controls on all the different console gta2 versions? (never really played it on console)


On console the controls were tank controls for driving and for the player. And that's the reason I decided to mod the game instead of playing the game on my PSP :D


Top
 Profile  
 
PostPosted: Tue Aug 28, 2018 9:23 pm 
Offline
Mugger
User avatar

Joined: Sat Feb 02, 2013 1:32 pm
Posts: 16
Location: Slovakia
This makes combat much more fun, great mod!

Here's my suggestions for more intuitive bindings (in Foot/Vehicle format):

A - Jump/Handbrake
B - Attack/Attack
X - Special 2/Special 2
Y - Enter/Exit Vehicle
LB - Previous Weapon/Previous Weapon
RB - Next Weapon/Next Weapon
LT - Special 2/Brake
RT - Attack/Accelerator
LS - Walk Direction/Steer Vehicle (horizontal input only)
LS Click - Special 1/Special 1
D-Pad - Walk Direciton/Steer Vehicle (horizontal input only) and Change Radio (vertical input only)
RS - Aim/Tank Turret Control? Could you make this happen?
Back - Quit (Esc)
Start - Pause (F6)

I had a look at your source code but I couldn't make the heads or tails of it... I'm not great with computers :D


Top
 Profile  
 
PostPosted: Wed Aug 29, 2018 1:21 pm 
Offline
Jaywalker

Joined: Wed Apr 04, 2018 9:06 pm
Posts: 8
Drury wrote:
This makes combat much more fun, great mod!

Here's my suggestions for more intuitive bindings (in Foot/Vehicle format):

A - Jump/Handbrake
B - Attack/Attack
X - Special 2/Special 2
Y - Enter/Exit Vehicle
LB - Previous Weapon/Previous Weapon
RB - Next Weapon/Next Weapon
LT - Special 2/Brake
RT - Attack/Accelerator
LS - Walk Direction/Steer Vehicle (horizontal input only)
LS Click - Special 1/Special 1
D-Pad - Walk Direciton/Steer Vehicle (horizontal input only) and Change Radio (vertical input only)
RS - Aim/Tank Turret Control? Could you make this happen?
Back - Quit (Esc)
Start - Pause (F6)

I had a look at your source code but I couldn't make the heads or tails of it... I'm not great with computers :D



Thank you for the suggested modifications to the control scheme, everything should be really easy to implement, except for the Tank Turret Controls on the right stick.
I'll surely implement even that one because I find it a really neat idea!

In the next days I'll probably release a version with an alternative control scheme to use.
For the turret controls I'll need some more time to find the right offsets to use ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group