er453r

Mouse Support for "Resident Evil 4"

10 posts in this topic

#1 ·  Posted (edited)

Hi. I wanted to show off with a utility which I wrote for "Resident Evil 4". This game unfortunately doesn't have a mouse support so I tried to simulate one. Results are great, and the game is perfectly playable :D Feel free to try it out, and post some feedback :)

<snip>
Edited by JLogan3o13

Share this post


Link to post
Share on other sites



Very nice :).

How does it's work?

Share this post


Link to post
Share on other sites

nice

Share this post


Link to post
Share on other sites

Wow, I haven't expected that this thread will be resurrected :D

So, what it basically does is:

1. It checks registry entry for install path, if it doesn't find one it asks the user to select a folder. Then it verifies if the selected folder contains "game.exe" and "SetupTool.ini".

2. Then it collects video settings through the GUI, makes required "SetupTool.ini" with this config, replaces it in the game directory and starts the game.

3. Mouse setting has 2 characteristics $resp and $int.

$resp is the maximum number of milliseconds after the last mouse movement to stop the mouse (mouse inertion simulation)

$int is the intensity of movement. It's a minimum number of pixels covered by mouse to count as a movement. Something like "simulated mouse" sensitivity.

Each mouse movement is compared with the previous one, and, according to this, specific keys are send to translate mouse movement to keyboard. For example, if mouse moved up and left (for more then 8 pixels by default) we press UP+LEFT and hold it (and/or change the direction) until mouse stops it's movement for more then 16 milliseconds.

Additionally, some keys are blocked if others are used.

Thats it. Hope it's easy to understand :)

1 person likes this

Share this post


Link to post
Share on other sites

#6 ·  Posted

so....is there like, a download or something? i get what it does, but im confused on how to get and install it. Thanks in advance

 

Share this post


Link to post
Share on other sites

#7 ·  Posted

Am i supposed to just copy and paste all of that into my SetupTool.ini file?

 

Share this post


Link to post
Share on other sites

#8 ·  Posted

@Zar It is a AutoIt script and you need to install AutoIt in order to use it.

P.S Resurrecting threads is generally frowned upon... especially really old ones this one. Also we do not support game automation anymore


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#9 ·  Posted

3 hours ago, TheDcoder said:

@Zar It is a AutoIt script and you need to install AutoIt in order to use it.

P.S Resurrecting threads is generally frowned upon... especially really old ones this one. Also we do not support game automation anymore

Thanks for the info. and yeah...sorry about Resurrecting this. it just, i love rez 4 and only have my mouse and keyboard at the momment :/

I got the script to run and start the game but it wasnt working... w opens inventory and the mouse doesn't even work. I'm sure the problem is me being a noob but if anyone can help....id really appreciate it! Im feenin for some Biohazard 

Share this post


Link to post
Share on other sites

#10 ·  Posted

The script would not be working with a latest version of AutoIt because of changes in the scripting language over the years, maybe find a version from 2007 and it might work. You won't get more help than this because it is related to game automation and discussion about is not allowed according to the forum rules :)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.