Author Topic: Toggleable scripted mouse (v. 0.9)  (Read 31882 times)

0 Members and 1 Guest are viewing this topic.

Offline wookieejedi

  • 29
  • Intensify Forward Firepower
Re: Toggleable scripted mouse (v. 0.9)
Okay actually found another way to do it, now the cursor is hidden.

Git link if attachment ever goes away: https://github.com/wookieejedi/FSO-Scripts/tree/master/Joystick-Mouse
« Last Edit: June 30, 2020, 03:44:11 pm by wookieejedi »

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Toggleable scripted mouse (v. 0.9)
Sweet, thanks!

 

Offline montyjj

  • 22
Re: Toggleable scripted mouse (v. 0.9)
I´m sorry to bother, but I keep getting a startup error with the most recent tbl:

[string "mouse-sct.tbm - On Game Init"]:415: 'end' expected (to close 'function' at line 407) near '<eof>'

------------------------------------------------------------------
ADE Debug:
------------------------------------------------------------------
------------------------------------------------------------------


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

stack traceback:
------------------------------------------------------------------

1: Userdata [Controls]
2: Userdata [Audio]
3: Userdata [Base]
4: Userdata [BitOps]
5: Userdata [CFile]
6: Userdata [Graphics]
7: Userdata [HookVariables]
8: Userdata [HUD]
9: Userdata [Mission]
10: Userdata [Campaign]
11: Userdata [Options]
12: Userdata [Parsing]
13: Userdata [Tables]
14: Userdata [Testing]
15: Userdata [Time]
16: Userdata [UserInterface]
17: Userdata [Unicode]
------------------------------------------------------------------



 

Offline wookieejedi

  • 29
  • Intensify Forward Firepower
Re: Toggleable scripted mouse (v. 0.9)
Thanks for letting me know! I fixed it on Git, and here's the new version:

[attachment eaten by a Shivan]

 

Offline montyjj

  • 22
Re: Toggleable scripted mouse (v. 0.9)
Thanks for letting me know! I fixed it on Git, and here's the new version:

Thanks, this one works! The cursor´s still blinking from time to time, but it´s by far the best mouse-to-joystick so far. Great work, great thanks  :yes:

 

Offline wookieejedi

  • 29
  • Intensify Forward Firepower
Re: Toggleable scripted mouse (v. 0.9)
Yeah, there wasn't really a feasible way to fix that slight flickering, which isn't too bad as you mentioned. Glad it's useful for you!

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Toggleable scripted mouse (v. 0.9)
If you found a way to hide the cursor, isn't it flicking in / out some sort of bug?  Or is it a byproduct of the way it was hidden?

 

Offline wookieejedi

  • 29
  • Intensify Forward Firepower
Re: Toggleable scripted mouse (v. 0.9)
Bit of a by-product the way it was hidden. Honestly in my tests I didn't see any flickering, but it is possible I suppose that it could flicker somewhat randomly on other machines if the FPS slightly changes (the cursor flickering would not be a constant thing, and from the report seems like it happens very sporadically).

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Toggleable scripted mouse (v. 0.9)
Bit of a by-product the way it was hidden. Honestly in my tests I didn't see any flickering, but it is possible I suppose that it could flicker somewhat randomly on other machines if the FPS slightly changes (the cursor flickering would not be a constant thing, and from the report seems like it happens very sporadically).

So capping the FPS or locking it in some way should fix it?

  

Offline wookieejedi

  • 29
  • Intensify Forward Firepower
Re: Toggleable scripted mouse (v. 0.9)
Possibly...I'm not entirely sure since I couldn't reproduce the bug on my end to test if FPS capping would work. I should note that I do play the game with FPS capped.