Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

I've been trying to implement dual analogue gamepad support for tdm for many months now.

This is my first real attempt at serious coding so the road has been difficult and slow.

 

The current state of things can be found at https://github.com/crinkelite, all changes are in the joystick branch.

It depends on SDL2

Right now, it will only work on Linux with a playstation 3 controller.

 

Please understand this is a complete amateur hack job which probably breaks every rule there is.

 

 

 

The good

---------------------------------------------------------------------------

The players view is controlled by the right analogue stick

 

Creep/Walk/run speed is controlled by the magnitude of the left stick.

 

The gamepad buttons are mapable in the bind menu (use the mouse to initiate the bind for now).

---------------------------------------------------------------------------

 

 

 

The bad

---------------------------------------------------------------------------

The cursor can be manipulated with the right analogue stick while in the menus and menu items can be activated with the R1 button.

The approach I took to this is misguided and while it's playable, It needs to be rewritten.

 

Any joystick button can be set as a shift button (IMPULSE_53), potentially allowing two bindings to be set to one button. eg. ( R2 = jump ) ( SHIFT+R2 = mantle )

The shift button can also act as a Lean modifier, when the button is held the left analogue stick switches from movement to lean control.

This allows the player to lean to the angle given by left analogue stick and the tilt given by it's delta. ( this is barely working. it's very jittery and the trigonometry is not quite correct )

--------------------------------------------------------------------------

 

 

 

The ugly

--------------------------------------------------------------------------

The game crashes if it receives too many analogue inputs while the cpu is busy.

You can avoid this by not pushing the sticks while the game is loading.

I'm working on a fix but it will take some time.

 

Rotating frobbed items is not yet implemented.

 

The DPad East/West is somehow getting conflated with the triggers.

 

Many many other disastrous bugs.

--------------------------------------------------------------------------

 

 

 

 

I'm going grey(er) trying to get the kinks ironed out so I'm going to draw some attention to it here.

If there's any appetite for controller support maybe someone reading this can help.

Please let me know if I should provide any further information.

 

 

 

TLDR

You can (sort of) play thedarkmod with a playstation controller If you're on Linux.

Edited by Crinkelite
  • Like 4
  • 2 weeks later...
Posted (edited)

HERESEY!!!

(but I like lazy recliner)
(but I also hate missing headshots where I shoot across the map for the lulz).

 

Did you play T3..?
There was a similar thing with T2 a while ago:
http://ttlg.com/Forums/showthread.php?t=98519

Perhaps this would help you, with the mapping of buttons and stuff (cos there are many buttons in this game...)

 

A while ago, I tried using joy2key with my ds3 on the PC for TDM but gave up because it just wasn't fast enough response for the game, awareness and movement.
Plus I kept missing those damn rope arrows because I suck at aiming with remotes - will give your software a go though:)

Edited by teh_saccade
  • Like 2
Posted

Thanks teh_saccade.

 

It's not really ready to play yet, I'm going to get back to it soon to make it playable and get it working with windows and Xbox controller.

 

I did play Deadly Shadows on pc with a logitech dual analogue controller many years ago,

I was delighted with the controls but wasn't so happy with the direction the game had taken.

 

I played The Dark Age with a program called PinnacleGameProfiler which was much better than Xpadder or Joy2key but cost €15 at the time.

I certainly got my money's worth as I managed to play many games adequately with it including STALKER, Morrowind and Doom3.

 

Anyway, I'd love to play TDM with a controller even though some here might think it sacrilegious.

I'll try to get it to an acceptable state as soon as I have the taffin time.

 

 

  • Like 1
Posted

There's actually nothing wrong with it considering Thief Deadly Shadows went great on the old Xbox.

 

It's not an FPS after all, precision of a mouse is not a life and death matter as it would be for shooters.

  • Like 1

"I really perceive that vanity about which most men merely prate — the vanity of the human or temporal life. I live continually in a reverie of the future. I have no faith in human perfectibility. I think that human exertion will have no appreciable effect upon humanity. Man is now only more active — not more happy — nor more wise, than he was 6000 years ago. The result will never vary — and to suppose that it will, is to suppose that the foregone man has lived in vain — that the foregone time is but the rudiment of the future — that the myriads who have perished have not been upon equal footing with ourselves — nor are we with our posterity. I cannot agree to lose sight of man the individual, in man the mass."

- 2 July 1844 letter to James Russell Lowell from Edgar Allan Poe.

Posted

Since my X360 days, I play everything I can with X360 controller, FPP games included, so pad support would be greatly appreciated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...