Page 1 of 10 123 ... LastLast
Results 1 to 40 of 366

Thread: [TUTORIAL] Playing Mafia 2 with steering wheel

  1. #1

    [TUTORIAL] Playing Mafia 2 with steering wheel

    Here's a little tutorial about how to play Mafia 2 with steering wheel. Updated 02/12/2011

    1. Download latest version of x360ce emulator from http://code.google.com/p/x360ce/
    2. Open downloaded zip and extract x360ce.exe file into c:\program files (x86)\Steam\steamapps\common\mafia ii\pc
    3. Run x360ce.exe.
    4. Select your wheel settings (drop down list on the bottom left).
    5. Click [Load], [Save] buttons.
    6. Close x360ce.exe application and start Mafia II game.



    FAQ

    Application has failed to start because MSVCR100.dll was not found.

    This is because Microsoft Visual C++ 2010 Redistributable Package is missing.

    Download and install this package from Microsoft:
    Microsoft Visual C++ 2010 Redistributable Package (x86)
    http://www.microsoft.com/downloads/d...displaylang=en

    Microsoft Visual C++ 2010 Redistributable Package (x64):
    http://www.microsoft.com/downloads/d...displaylang=en

    Note: You must install both packages on Windows 64-bit.
    Note 2: As steering wheel is NOT supported in Mafia, it is required to set "Device Type" (Advanced Tab) to GamePad, NOT steering wheel, even if you're using a steering wheel, setting it may cause malfunctions.

    How to remove dead zone from wheel?

    1) Run x360ce.exe
    2) Select tab with your Wheel Controller.
    3) Open [Advanced] tab page
    4) Select "Enabled (XInput)" from "AntiDeadZone" drop down
    5) Clik [Save] button.
    6) Close x360ce Application, run Mafia II game.

    Gas and brake pedals are combined. How can I separate them?

    Solution 1: If you have Logitech wheel:

    1) Open "Logitech Profiler" Tool
    2) From menu open: Device -> Game Controllers...
    3) Select your controller and click [Properties] button
    4) Select [Test] tab and click [Settings] button
    5) Check "[x] Combined (single axis - used for most games)" option.
    6) Click [Close], [OK], [OK] buttons.

    Solution 2: If you can't separate pedals:

    1) Open Xbox 360 controller Emulator
    2) Set LEFT "Trigger" value to "HSlider 1" (Sliders -> Half -> HSlider 1)
    3) Set RIGHT "Trigger" value to "IHSlider 1" (Sliders -> Inverted Half -> IHSlider 1)
    4) Test pedals.

    Specific Mafia 2 Joystick tutorial (user Rabu):

    http://doanehoag.com/Forums/Mafia_II...tick_Tutor.htm

    Credits:
    User chalkman for posting this solution first
    User evaldas@jocys.com, who is from the dev team of x360ce emulator, and provided some useful and updated information
    hck for original idea of AntiDeadZones
    User Virus, who is main dev from x360ce emulator, provided information for the tutorial and is supporting ppl
    User Rabu, who wrote and first posted "Specific Mafia 2 Joystick tutorial"
    Last edited by lukinhasb; 02-12-2011 at 05:37 PM.

  2. #2
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    144
    Great thread, I love using my G25 but not enough to go through all that for the demo, seeing as the full game will have steering wheel support included. Too lazy to post links, but google it and it will be confirmed on several pages, by the devs themselves as well as reviewers etc.

    Kudos for taking your time though.

  3. #3
    Very interesting . But Mafia had support for the steering wheel - and to many gamepad - , and do not needed any tweaking and hack to play .

  4. #4
    Join Date
    Mar 2010
    Posts
    472
    Quote Originally Posted by oritxupolite View Post
    Very interesting . But Mafia had support for the steering wheel - and to many gamepad - , and do not needed any tweaking and hack to play .
    If you're trying to say that it's sad that Mafia II doesn't have it, then you obviously didn't read the post above you.

  5. #5
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    We are hoping that it does, but not getting a warm feeling especially considering that the demo left it out. Last post that I can find that indicates there will be wheel support is from Oct 2009. This is a good back up plan.

  6. #6
    I've read that the controls of the demo wouldn't change compared to the full version of the game.

    It was an post for someone from 2K, don't remember where I've read that though

  7. #7
    Join Date
    Aug 2010
    Location
    Wet Wang, Bush
    Posts
    501
    As many stated, Mafia II seems to support steering wheels, so i'll wait for that. But does this whole coding can be implied to...let's say...an Xbox 360?

    But then again, I don't need a wheel. I'm as good as it is. Bring on Paul Walker and Vin Diesel!

  8. #8
    Join Date
    Jun 2010
    Location
    Amsterdam, The Netherlands
    Posts
    308
    heh I got no room to put my steering wheel. It would only sit in the way.

  9. #9
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    lukinhasb and wheel enthusiasts,

    I am making some progress with the buttons. For G25's/27's [Pad1] is referring to the shifter module (which will show on as controller 1 in the Xtest program). You can use all of Pad2's buttons to program the xbox equivilents:

    EXAMPLE:

    A=20 #button id; 0 to disable (ex 20 being button number on your wheel)
    B=7 #button id; 0 to disable
    X=8 #button id; 0 to disable
    Y=21 #button id; 0 to disable

    to program the Xbox 360 controllers A,B,Y,X except the handbrake for some reason. That must be programmed to Pad1's A,B,Y, or X's buttons - whatever you prefer. It will only work on controller 1 for some reason I am not sure of.

    Also if you set :

    [Pad1]
    D-pad POV=1 #POV index; 0 to disable

    Then you can use the Dpad on the G25/G27's shifter assembly. Mine is set to change the radio currently.


    If anyone wants my ini let me know and I a will working on FF and cameras but I ran out of time and got sleepy last night.
    Last edited by chalkman; 08-16-2010 at 10:01 PM.

  10. #10
    Join Date
    Jul 2010
    Posts
    2,149
    Whats the dead zone like?, I've got a Thrustmaster 3 in 1 rumble steering and quite frankly the dead zone is already bad enough.

  11. #11
    Join Date
    Aug 2010
    Posts
    20
    The deadzone is horrible, a true nightmare for me.

  12. #12
    Join Date
    Jul 2010
    Posts
    2,149
    Quote Originally Posted by weelob View Post
    The deadzone is horrible, a true nightmare for me.
    The emu worked ok for me in GTA IV, but I still had to move the steering more than a few degrees before there was a responce.

  13. #13
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    For me as long as I set the rotation in the logitech software to around 185 (at 900 you'd be dead playing this with center spring force on) but dead zone I have set minimal. I'll have to check what I have it set to but the wheel is running true for me (g27).

  14. #14
    Join Date
    Jul 2010
    Posts
    15
    I installed X360xce 3.1.4.0 emulator in the Mafia 2 Demo folder (where the exec file is) I replaced the ini file with chalkman's. I ran the Xinput test and everything works fine (steering, braking etc.). I have a G27 wheel and so my IDs are the same as chalkmans. I start the demo...and it doesn't work. Is this because I am running XP? If so, do I have any options? Also, are we supposed to configure the wheel in the demo's keyboard configuration?

    Thanks in advance for any help.

  15. #15
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    No you don't need to cfg the controls in the game, it is all in the INI file. That is strange, I tried the emulator with an older version 2.016 i believe, and the demo would not start at all either until I used 3.1.4.0.

    You might try going into your wheel setting and making sure the not combined, and turn of the FF. Other than that I can't think of anything at the moment. What INI file are you using?

  16. #16
    Hi there.Thanks for the emulator tips and it does work great.
    Huge hit on FPS,but this was an easy fix.
    Just made Pads 1 and 2 the same.Thank you again guys .

    Windows 7 64 bit with logitech FF wheel.
    Code:
    [Options]
    UseInitBeep=1             #use 0 to 1; default 1; beep on init
    Log=0                     #use 0 to 1; creates a log file in folder 'x360ce logs'
    FakeAPI=1                 #use API patching
    
    [PAD1]
    Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated
    VID=0x046D #REPLACE THIS WITH YOUR VID NUMBER
    PID=0xC294 #REPLACE THIS WITH YOUR PID NUMBER
    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=0 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=18 #button id; 0 to disable
    B=5 #button id; 0 to disable
    X=17 #button id; 0 to disable
    Y=16 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 
    
    'h' for half slider; use '-' to invert ie. x-2;
    Right Trigger=a-2 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 
    
    'h' for half slider; use '-' to invert ie. x-2;
    UseForceFeedback=1 #use 0 to 1; default 0
    ForceLargeGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceLargePeriod=120000 #use 0 to 200000; default 120000; effect frequency; wheel only
    ForceLargeFadeTime=10 #use 0 to 100; default 10
    ForceLargeFadeIn=1 #use 0 to 1; default 1
    ForceLargeFadeOut=1 #use 0 to 1; default 1
    ForceLargeStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    ForceSmallGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceSmallPeriod=30000 #use 0 to 200000; default 30000; effect frequency; wheel only
    ForceSmallFadeTime=10 #use 0 to 100; default 10
    ForceSmallFadeIn=1 #use 0 to 1; default 1
    ForceSmallFadeOut=1 #use 0 to 1; default 1
    ForceSmallStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    WheelInertiaGain=3000 #use 0 to 10000; default 2500; effect intensity; wheel only
    WheelSpringGain=4000 #use 0 to 10000; default 5000; effect intensity; wheel only
    SteeringWheel=1 #use 0 to 1; enable for all wheel effects 
    
    [PAD2]
    Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated
    VID=0x046D #REPLACE THIS WITH YOUR VID NUMBER
    PID=0xC294 #REPLACE THIS WITH YOUR PID NUMBER
    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=0 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=18 #button id; 0 to disable
    B=5 #button id; 0 to disable
    X=17 #button id; 0 to disable
    Y=16 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 
    
    'h' for half slider; use '-' to invert ie. x-2;
    Right Trigger=a-2 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 
    
    'h' for half slider; use '-' to invert ie. x-2;
    UseForceFeedback=1 #use 0 to 1; default 0
    ForceLargeGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceLargePeriod=120000 #use 0 to 200000; default 120000; effect frequency; wheel only
    ForceLargeFadeTime=10 #use 0 to 100; default 10
    ForceLargeFadeIn=1 #use 0 to 1; default 1
    ForceLargeFadeOut=1 #use 0 to 1; default 1
    ForceLargeStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    ForceSmallGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceSmallPeriod=30000 #use 0 to 200000; default 30000; effect frequency; wheel only
    ForceSmallFadeTime=10 #use 0 to 100; default 10
    ForceSmallFadeIn=1 #use 0 to 1; default 1
    ForceSmallFadeOut=1 #use 0 to 1; default 1
    ForceSmallStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    WheelInertiaGain=3000 #use 0 to 10000; default 2500; effect intensity; wheel only
    WheelSpringGain=4000 #use 0 to 10000; default 5000; effect intensity; wheel only
    SteeringWheel=1 #use 0 to 1; enable for all wheel effects

  17. #17
    Join Date
    Jul 2010
    Posts
    15
    My INI file

    [Options]
    UseInitBeep=1 #use 0 to 1; default 1; beep on init
    Log=0 #use 0 to 1; creates a log file in folder 'x360ce logs'
    FakeAPI=1 #use API patching

    #Logitech G27 Racing Wheel / Generic Wheel
    [PAD1]
    Index=1 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated
    VID=0x046D #controller VID
    PID=0x029B #controller PID
    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=1 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=18 #button id; 0 to disable
    B=7 #button id; 0 to disable
    X=17 #button id; 0 to disable
    Y=16 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=126 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 'h' for half slider; use '-' to invert ie. x-2;
    Right Trigger=a-2 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 'h' for half slider; use '-' to invert ie. x-2;
    UseForceFeedback=1 #use 0 to 1; default 0
    ForceLargeGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceLargePeriod=120000 #use 0 to 200000; default 120000; effect frequency; wheel only
    ForceLargeFadeTime=10 #use 0 to 100; default 10
    ForceLargeFadeIn=1 #use 0 to 1; default 1
    ForceLargeFadeOut=1 #use 0 to 1; default 1
    ForceLargeStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    ForceSmallGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceSmallPeriod=30000 #use 0 to 200000; default 30000; effect frequency; wheel only
    ForceSmallFadeTime=10 #use 0 to 100; default 10
    ForceSmallFadeIn=1 #use 0 to 1; default 1
    ForceSmallFadeOut=1 #use 0 to 1; default 1
    ForceSmallStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    WheelInertiaGain=3000 #use 0 to 10000; default 2500; effect intensity; wheel only
    WheelSpringGain=4000 #use 0 to 10000; default 5000; effect intensity; wheel only
    SteeringWheel=1 #use 0 to 1; enable for all wheel effects

    Also your Logitech Profiler should be set:
    #Logitech G27 Racing Wheel / Generic Wheel
    [PAD2]
    Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated
    VID=0x0 #controller VID
    PID=0x0 #controller PID
    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=1 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=20 #button id; 0 to disable
    B=7 #button id; 0 to disable
    X=8 #button id; 0 to disable
    Y=21 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 'h' for half slider; use '-' to invert ie. x-2;
    Right Trigger=a-2 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis; 'h' for half slider; use '-' to invert ie. x-2;
    UseForceFeedback=1 #use 0 to 1; default 0
    ForceLargeGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceLargePeriod=120000 #use 0 to 200000; default 120000; effect frequency; wheel only
    ForceLargeFadeTime=10 #use 0 to 100; default 10
    ForceLargeFadeIn=1 #use 0 to 1; default 1
    ForceLargeFadeOut=1 #use 0 to 1; default 1
    ForceLargeStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    ForceSmallGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceSmallPeriod=30000 #use 0 to 200000; default 30000; effect frequency; wheel only
    ForceSmallFadeTime=10 #use 0 to 100; default 10
    ForceSmallFadeIn=1 #use 0 to 1; default 1
    ForceSmallFadeOut=1 #use 0 to 1; default 1
    ForceSmallStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    WheelInertiaGain=3000 #use 0 to 10000; default 2500; effect intensity; wheel only
    WheelSpringGain=4000 #use 0 to 10000; default 5000; effect intensity; wheel only
    SteeringWheel=1 #use 0 to 1; enable for all wheel effects

    SwapMotor=0 #use 0 to 1; default 0
    ForcePercent=100 #use 0 to 100; default 100
    ControllerType=2 #GAMEPAD 1; WHEEL 2; STICK 3; FLIGHT_SICK 4; DANCE_PAD 5; GUITAR 6; DRUM_KIT 8; //WILDS
    AxisToDPad=0 #Use Axis to control DPad (0 disabled, 1 enabled) //WILDS
    AxisToDPadDeadZone=256 #Dead zone for Axis //WILDS
    AxisToDPadOffset=0 # //WILDS
    POVXReverse=0 #Reverse POV Up/Down
    POVYReverse=0 #Reverse POV Left/Right

  18. #18
    Join Date
    Jul 2010
    Posts
    15
    Thanks for the reply! I downloaded Chalkman's INI file from here on Saturday Night. Here is what I have in the game right now. As I said earlier I am using XP SP3. My wheel is a G27 and had the same ID as what Chalkman had. I does not respond at all in the game. The gas/brake doesn't work, nor does the wheel. Its like its not even connected. Ironically, I bought this wheel in anticipation of using solely for this game. Please note that I had to remove pads #3 and #4 from the above post due to size constraints on this forum.

  19. #19
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Run the xinput test program and try your controller. See if indeed your pedals/wheel inputs are registering on the xinput test screen. The pedals will register as numbers on the trigger display 0-257 Please note that xinput Test must be running while you play m2.

    Also in the xinput test screen make sure you set the pull down box to "Controller 2" and verify that it says its "connected"

    Also try running xinput as admin and see if that makes a difference. Trying to figure out what is stopping it from working here so forgive me if i forget something.
    Last edited by chalkman; 08-23-2010 at 10:34 AM.

  20. #20
    Join Date
    Jul 2010
    Posts
    15
    Ok, the test Xinput test shows the controller working fine on Controller 2. All buttons work and so do the wheel and pedals. I left it on. I set the G27 to everything off and a 194 degree turn radius. I started the game from the desktop icon. Once again,there is absolutely no response except that the right paddle turns on the speed limiter. The wheels do not turn and the accelerator doesn't work either. Can you look over the INI and see if there is something wrong? I know the wheel works as I was using it in Mafia 1 last night. Thanks again, for all your help.

  21. #21
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Ok i know I gave you that ini to begin with but add these lines under [pad2] and see if it comes alive.

    VID=0x046D #controller VID
    PID=0x029B #controller PID

  22. #22
    Join Date
    Jul 2010
    Posts
    15
    I added those lines, went to try it and noticed that my Mafia 2 demo exec is now gone. I am downloading the complete game through Steam right now and I guess they deleted the demo. Hopefully, I will have more luck with the complete game. It looked like there was an inactive controller option in the Controls page. Maybe that will allow the wheel to function? We'll see in the next few hours.

    Anyway, thanks so much for all your patience and help.

  23. #23
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Quote Originally Posted by johnnydnh View Post
    I added those lines, went to try it and noticed that my Mafia 2 demo exec is now gone. I am downloading the complete game through Steam right now and I guess they deleted the demo. Hopefully, I will have more luck with the complete game. It looked like there was an inactive controller option in the Controls page. Maybe that will allow the wheel to function? We'll see in the next few hours.

    Anyway, thanks so much for all your patience and help.
    We will get you working. Good luck with it I won't get m2 until weds

    One more question, did you set your pedals to separate not combined?

  24. #24
    Join Date
    Jul 2010
    Posts
    15
    I did set them to separate. I downloaded the game last night and started it for the first time this morning. All options are the same as the demo. The controller is still greyed out in the options. I am just wondering if that program works on XP. I know that they said that the later version only supported Windows 7. Maybe that is the problem?

  25. #25
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Well I suppose it's true. I do know that early versions of this emulator used Net frame redist 2010 which I had to find and install before it would run, but I wasn't aware that it would not work in XP. It could very well be the case. If the controller works in Xtest, I can't imagine why it wouldn't work in the game.
    If anyone does have this working in XP can you chime in? I am on W7.

  26. #26
    Join Date
    Aug 2010
    Posts
    5
    The deadzone is pretty bad for me on my Logitech Driving Force GT. I have to turn the wheel around 20 degrees either way before it detects movement

    What I assume is the deadzone setting is currently:

    AxisToDPadDeadZone=400 #Dead zone for Axis //WILDS


    The wheel has 900 degrees of rotation, but what is the best setting for me?

  27. #27
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Quote Originally Posted by mamboboy View Post
    The deadzone is pretty bad for me on my Logitech Driving Force GT. I have to turn the wheel around 20 degrees either way before it detects movement

    What I assume is the deadzone setting is currently:

    AxisToDPadDeadZone=400 #Dead zone for Axis //WILDS


    The wheel has 900 degrees of rotation, but what is the best setting for me?
    Try to set it your controller software first.

    If you go to the start bar, type controller then go to the controller properties it should be in there somewhere. I have a g27 so not sure about your options there.

    I like around 140-180 degrees for Mafia 2.

  28. #28
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    BTW i' reposting this because the first post is confusing g27 users. This is the tutorial for the G25/G27 Not the Driving Force EX:

    ALSO IT HAS BEEN REPORTED THIS PROCEDURE WILL NOT WORK IN WINDOWS XP. That has yet to be 100% confirmed.




    Here is how:


    *First you will need X360xce 3.1.4.1 emulator:

    Here: http://www.tocaedit.com/IB/index.php...ds&showfile=32

    Mirror: http://rapidshare.com/files/41506874...1.4.1.zip.html

    *Extract all files to c:\program files (x86)\Steam\steamapps\common\mafia II\pc

    *Then you must manually set the VID/PID controller id's into the ini file:

    For use this new feature you must configure properly x360ce:

    Set main option "FakeAPI" to 1
    Get and set correct VID/PID for you gamepad in pad options

    To get VID/PID of gamepad:

    Open "Device Manager"
    In "Human Interface Devices" find "HID-compliant game controller"
    Double click to open properties, go to "Details" tab
    From combo box select "Hardware Ids"
    In list box you will see a list of id like: "HID\VID_044F&PID_B323"
    So you VID is a hex number after "VID_" ie. in upper example 0x044F and PID 0xB323
    Write values to x360ce.ini
    [thanks to Virus for this]

    Now if you have a g27 or similar you can use my x360ce.ini file (programmed to my liking) or you can program yourself or change it:

    OR you can just download my complete file here and skip the pad2 insert of text below:

    http://rapidshare.com/files/413740614/x360ce.ini.html



    *insert [pad2] in between [pad1] and [pad3] in the ini file




    Note: this a a generic version of this file. The pedals and wheel will work, however you can program the button as you so desire. Also An easier way to program your buttons can be found in the Logitech Profiler. You can set your wheel buttons to keyboard 'keys' and then set them in Mafia 2.

    ALSO NOTE SOME HAVE SAID TO DISABLE PAD1 DO NOT DO THAT! YOU NEED PAD1 -Thanks to Eagle for that.

    -------cut--------
    #Logitech G25 Racing Wheel / Generic Wheel

    [PAD2]
    Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated

    VID=0x0 #controller VID
    PID=0x0 #controller PID
    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=1 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=18 #button id; 0 to disable
    B=5 #button id; 0 to disable
    X=17 #button id; 0 to disable
    Y=16 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis;

    'h' for half slider; use '-' to invert ie. x-2;
    Right Trigger=a-2 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis;

    'h' for half slider; use '-' to invert ie. x-2;
    UseForceFeedback=0 #use 0 to 1; default 0
    ForceLargeGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceLargePeriod=120000 #use 0 to 200000; default 120000; effect frequency; wheel only
    ForceLargeFadeTime=10 #use 0 to 100; default 10
    ForceLargeFadeIn=1 #use 0 to 1; default 1
    ForceLargeFadeOut=1 #use 0 to 1; default 1
    ForceLargeStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    ForceSmallGain=8000 #use 0 to 10000; default 10000; effect intensity
    ForceSmallPeriod=30000 #use 0 to 200000; default 30000; effect frequency; wheel only
    ForceSmallFadeTime=10 #use 0 to 100; default 10
    ForceSmallFadeIn=1 #use 0 to 1; default 1
    ForceSmallFadeOut=1 #use 0 to 1; default 1
    ForceSmallStartMag=1000 #use 0 to 10000; default 2000; effect will begin with this value and end with 10000
    WheelInertiaGain=3000 #use 0 to 10000; default 2500; effect intensity; wheel only
    WheelSpringGain=4000 #use 0 to 10000; default 5000; effect intensity; wheel only
    SteeringWheel=1 #use 0 to 1; enable for all wheel effects

    Also your Logitech Profiler should be set:
    SwapMotor=0 #use 0 to 1; default 0
    ForcePercent=100 #use 0 to 100; default 100
    ControllerType=2 #GAMEPAD 1; WHEEL 2; STICK 3; FLIGHT_SICK 4; DANCE_PAD 5; GUITAR 6; DRUM_KIT 8;

    //WILDS
    AxisToDPad=0 #Use Axis to control DPad (0 disabled, 1 enabled)

    //WILDS
    AxisToDPadDeadZone=256 #Dead zone for Axis

    //WILDS
    AxisToDPadOffset=0 #

    //WILDS
    POVXReverse=0 #Reverse POV Up/Down
    POVYReverse=0 #Reverse POV Left/Right
    -----cut------
    *Make sure you set pedals to not combined and also leave off FF (sorry working on that it causes strange things ATM)

    *And set your wheel rotation you your preference ( I like 189 ) and you are good. Using Mafia II control set 1.

    *Run X-inputTest.exe, click "Controller tab 2".
    *Verify that the green indicator comes on. You can also confirm things are working with the test display by testing your controller (wheel)
    *Then run Mafia 2 leaving the Test running.


    Credits to: ArbitraryMobster, Eagle, Virus, and everyone helping in this thread.


    This is a work in progress.
    Last edited by chalkman; 08-24-2010 at 11:09 PM.

  29. #29
    Join Date
    Aug 2010
    Posts
    26
    [QUOTE=chalkman;1047303]BTW i' reposting this because the first post is confusing g27 users. This is the tutorial for the G25/G27 Not the Driving Force EX:

    Do you maybe know how i can set my Logitech Momo Wheel to work propertly with this? Its only 240 degree wheel, not 900 like G25/27.

    Thanks

  30. #30
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    [QUOTE=derbigpr50;1047423]
    Quote Originally Posted by chalkman View Post
    BTW i' reposting this because the first post is confusing g27 users. This is the tutorial for the G25/G27 Not the Driving Force EX:

    Do you maybe know how i can set my Logitech Momo Wheel to work propertly with this? Its only 240 degree wheel, not 900 like G25/27.

    Thanks
    The procedure is mostly the same but the INI file may or may not like the settings. I suggest you try it as written and see what happens. The key lines that get the wheel to work are in there but the buttons for sure will not work until you program them either in the INI file

    those are the lines:

    [Pad1] and [pad2]

    A=X
    B=X
    Y=X
    X=X

    But id use the logitech profiler for those.

    These are the lines that establish the axis for turning the wheel:

    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable



    BTW i also have a momo force in addition to by g27, if i have time ill try it with my CFG.
    Last edited by chalkman; 08-24-2010 at 11:02 PM.

  31. #31
    Join Date
    Aug 2010
    Posts
    5
    This .ini works with my Thrustmaster. The pedals had to be switched (left and right triggers: switch "a-2" and "a-6") and only some of the buttons actually do something but the important functions, like hand brake, view are there and the wheel works well. Ty for posting this.

  32. #32
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Glad you got it working.
    Last edited by chalkman; 08-24-2010 at 11:31 PM.

  33. #33
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    Just a note for others, I couldn't remap the Handbrake until i remapped it in Pad 1, not Pad2.

  34. #34
    Join Date
    Aug 2010
    Posts
    26
    [QUOTE=chalkman;1047429]
    Quote Originally Posted by derbigpr50 View Post

    The procedure is mostly the same but the INI file may or may not like the settings. I suggest you try it as written and see what happens. The key lines that get the wheel to work are in there but the buttons for sure will not work until you program them either in the INI file

    those are the lines:

    [Pad1] and [pad2]

    A=X
    B=X
    Y=X
    X=X

    But id use the logitech profiler for those.

    These are the lines that establish the axis for turning the wheel:

    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable



    BTW i also have a momo force in addition to by g27, if i have time ill try it with my CFG.

    I'm using your original ini file now...on the begining deadzone was horrible, had to turn the wheel half way in order to get any response in game.
    Now after some fiddling around, i got it to work better, but still , i have to turn the wheel about 20 degrees in order to get response, and when i do get response, its very aggressive and the wheels turn very fast. So all in all, its not playable for me yet.

  35. #35
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    [QUOTE=derbigpr50;1047565]
    Quote Originally Posted by chalkman View Post


    I'm using your original ini file now...on the begining deadzone was horrible, had to turn the wheel half way in order to get any response in game.
    Now after some fiddling around, i got it to work better, but still , i have to turn the wheel about 20 degrees in order to get response, and when i do get response, its very aggressive and the wheels turn very fast. So all in all, its not playable for me yet.
    Try reducing dead zone in your controller settings and set rotation to around 150 and try that. In some ways the rotation is acting as a deadzone in that the radial rotation in degrees kind of spans the max number. Reducing it decreases that span and allows more direct input.

    If we really want to get fancy, I think the logitech software will let you create 'bands' where you can lock down exactly the kind of response you want.
    Last edited by chalkman; 08-25-2010 at 12:11 AM.

  36. #36
    Join Date
    Aug 2010
    Posts
    26
    [QUOTE=chalkman;1047571]
    Quote Originally Posted by derbigpr50 View Post

    Try reducing dead zone in your controller settings and set rotation to around 150 and try that. In some ways the rotation is acting as a deadzone in that the radial rotation in degrees kind of spans the max number. Reducing it decreases that span and allows more direct input.

    If we really want to get fancy, I think the logitech software will let you create 'bands' where you can lock down exactly the kind of response you want.

    My deadzone is set to 0 in logitech software. I tried fiddling around with sensitivity and range options, and best i could get was to have around 20 degree deadzone. I think the problem is in game itself, because in xbox360emu theres no deadzone. I dont know how to fix that.

  37. #37
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    [QUOTE=derbigpr50;1047595]
    Quote Originally Posted by chalkman View Post


    My deadzone is set to 0 in logitech software. I tried fiddling around with sensitivity and range options, and best i could get was to have around 20 degree deadzone. I think the problem is in game itself, because in xbox360emu theres no deadzone. I dont know how to fix that.
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center

    Try editing that default 35 to a lower value. Just a guess here, I have not tried this as of yet. But It might just do the trick for ya.

    BTW edit in both Pad1 and Pad2 just to eliminate that possible snag of the momo being on pad1 possibly. On the G27 the pad1 is the shift module, ref.

  38. #38
    Join Date
    Jun 2010
    Posts
    140
    i dunt freaking understand the install guide when you say write vid things values in .ini WHERE DO i WRITE THIS????

  39. #39
    Join Date
    Feb 2010
    Location
    All that you love will be carried away
    Posts
    1,243
    #Logitech G25 Racing Wheel / Generic Wheel

    [PAD2]
    Index=0 #controller index in system game controllers list; 0 is first; -1 to ignore this pad
    Native=0 #experimental native mode, calls system xinput1_3.dll to support xinput compatible controller together with emulated

    VID=Here #controller VID
    PID=Here #controller PID

    Left Analog X=1 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog X=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Right Analog Y=7 #axis index; use - to invert; precede with 's' for a slider eg; s-1; 7 to disable
    Left Analog X Linear=35 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog X Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Right Analog Y Linear=0 #-100 to +100 raise this number to increase sensitivity near center
    Left Analog X+ Button=0 #button id; 0 to disable
    Left Analog X- Button=0 #button id; 0 to disable
    Left Analog Y+ Button=0 #button id; 0 to disable
    Left Analog Y- Button=0 #button id; 0 to disable
    Right Analog X+ Button=0 #button id; 0 to disable
    Right Analog X- Button=0 #button id; 0 to disable
    Right Analog Y+ Button=0 #button id; 0 to disable
    Right Analog Y- Button=0 #button id; 0 to disable
    D-pad POV=1 #POV index; 0 to disable
    D-pad Up=0 #button id; 0 to disable
    D-pad Down=0 #button id; 0 to disable
    D-pad Left=0 #button id; 0 to disable
    D-pad Right=0 #button id; 0 to disable
    A=18 #button id; 0 to disable
    B=5 #button id; 0 to disable
    X=17 #button id; 0 to disable
    Y=16 #button id; 0 to disable
    Left Shoulder=0 #button id; 0 to disable
    Right Shoulder=5 #button id; 0 to disable
    Back=23 #button id; 0 to disable
    Start=22 #button id; 0 to disable
    Left Thumb=14 #button id; 0 to disable
    Right Thumb=13 #button id; 0 to disable
    TriggerDeadzone=5 #use 0 to 255; default 0; add deadzone to trigger
    Left Trigger=a-6 #button id; precede with 'a' for an axis; 's' for a slider; 'x' for a half range axis;

    They go there where i wrote "here". Add them for both [pad1] and [pad2] sections Meuhey.
    Last edited by chalkman; 08-25-2010 at 01:07 AM.

  40. #40
    Join Date
    Jun 2010
    Posts
    140
    ok I did and copy pasted your g25/27 pad2 ini and then ran the test successfully, but still not working in game...

Page 1 of 10 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •