hackoncrack Posted December 3, 2011 Share Posted December 3, 2011 Hi I'd like to change a button is some .net scripts. It's easy when the script is in .cs format but when it is in DLL i dont know what to do. Not always the ini files let u change the keys and when they do i dont know the virtual key code for a button on the 360 controller. Instead of using action on theyboard for this mod id like to use action on the controller...thanks for your help if you know how! Link to comment Share on other sites More sharing options...
Tsproggy Posted December 3, 2011 Share Posted December 3, 2011 (edited) Well, I think it's against the rules of this forum to explain ways of manipulating dlls to view what is inside them so you're out of luck there. But if your scripts have ini files and the key codes are numbers. You could always try getting the ascii value of whichever key you want. The ways of doing this vary depending on what programming language you use. If you're experienced in any kind of programming you should know how to do this easily Of course i'm sure you could always just look online for the ascii key values aswell. EDIT: An xbox 360 controller uses analog and as far as it's buttons go i've never found a way to have a script use them Edited December 3, 2011 by Tsproggy Link to comment Share on other sites More sharing options...
hackoncrack Posted December 3, 2011 Author Share Posted December 3, 2011 Thank you for your reply. Well for scripts that are in .cs format i am able to use the 360 controller by changing the function that determines the key being used like this: isKeyPressed(Settings.GetValueKey("Key", Keys.G)) >> Game.isGameKeyPressed(GTA.GameKey.Sprint) Would this help me maybe regarding using the ASCI value? I have no experience as a coder but familiar with structuring formulas from Excel si im able to figure out edits like the one above but the virtual key code has me stumped. So if an ini file asks me for the virtual key code i want to use i might be able to assign a 360 controller button if I know the ASCI value of the controller buttons?? Thank you for your reply! Link to comment Share on other sites More sharing options...
hackoncrack Posted December 3, 2011 Author Share Posted December 3, 2011 (edited) Is the following useful to me? Flash ASCII Code Values With the exception of the right analog stick, you can listen for controller input in Flash as well. See this post (http://forums.epicgames.com/showthread.php?p=27828371#post27828371) for details on how to listen for keyboard/controller input in Flash. The ASCII codes to listen for are: Left Analog Stick & D-Pad (Left): 37 Left Analog Stick & D-Pad (Up): 38 Left Analog Stick & D-Pad (Right): 39 Left Analog Stick & D-Pad (Down): 40 A: 96 B: 97 X: 98 Y: 99 Left Shoulder: 100 Left Trigger: 101 Left Analog Stick (Pressed): 102 Right Shoulder: 103 Right Trigger: 104 Right Analog Stick (Pressed): 105 Start: 106 Back: 107 It says these are for Flash, im not sure if that means i could apply it to gta 4 mods that ask for virtual key codes in the ini? If so then i dont need to mess with decompiling and re compiling the .dll because....welll. id prolly mess that up pretty good...lol Edited December 3, 2011 by hackoncrack Link to comment Share on other sites More sharing options...
hackoncrack Posted December 5, 2011 Author Share Posted December 5, 2011 I gave up...im using joy2key and its so much easier, would have prefered to code evrything in though Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now