Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Richard

Registered:
Posts: 127
Reply with quote  #1 
Hi,

I´m not sure this forum (troubleshooting) is the right one to post it, but here I go.

In scripted missions that allow players to press some keys (like Sandbox) I can't get the keypresses from consoles. In fact, sometimes I can, sometimes I can't.

I tested the same script in the same pc several times and it works only 1 in 20 attempts.

Has anyone experienced anything like this? How to solve it?

Thanks
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,404
Reply with quote  #2 
Yes, this happens all the time. It's a flaw in the software. I think it has something to do with the different keyboard drivers involved. My experience is that once I get a script that can reliably get keypresses on a bridge I can count on it to continue to work. I can keep running the script on that bridge if and only if:

  • I never try to run my script on a different bridge.
  • I never allow players to switch computers/stations around.

I hope this helps.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
ryleyra

Registered:
Posts: 3,009
Reply with quote  #3 
Hm. I hadn't heard those details before. It sounds like at some point during the application's life cycle, it can become confused about which station is which if they are switched around.

I'm sure Thom's done more looking into this that I have (in a theoretical sense) but it does reveal more about the behavior.

I wonder if ArtClientLib could be used to work around it?
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.