Printing mouse input values to the screen?

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Kumba42
Posts: 42
Joined: Sat, 23. Nov 13, 13:18
x4

Printing mouse input values to the screen?

Post by Kumba42 »

Kinda bored, so I was messing around with the controlschemes_default.xml file, and I have noticed that there are a variety of values to get mouse data and control the ship's steering (the player ship). However, I'd like to be able to print the raw mouse values, and other variables found in the XML file to the screen dynamically. Is this possible with show_help or show_notification? If so, can I add them to controlschemes_default.xml and they'll just print the data I want, or would I have to add them elsewhere? Note: Not trying to make a mod (yet), so I'm just editing the core file directly to see what the effects are.

Some (not all) values of interest:

Mouse:
  • input_pitch
  • input_yaw
  • min_v_pitch
  • max_v_pitch
  • min_v_yaw
  • max_v_yaw
Ship:
  • target_pitch
  • target_yaw
  • target_v_pitch
  • target_v_yaw
Others/Unknown:
  • rel_v_pitch
  • rel_v_yaw
  • rel_a_pitch
  • rel_a_yaw
User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

Post by Litauen »

I am also interested in the way to present information on screen in some simple way. What I have right now is simple cue to print current Player's balance every 60s in the default info screen:

Code: Select all

   <cue name="ShowBalance" instantiate="true" checkinterval="60s">
     <actions>
       <show_notification caption="'Balance'"
        	details="['%1 Cr'.[player.money/1Cr]]"
	        queued="true"
	        sound="notification_generic"/>
     </actions>
   </cue>
I am searching for the way to have this info always on the screen. Right now looking how this 'Press Space to deactivate steering mode' is printed on the screen. Already decompiled LUA scripts, but still no luck. Kind of stuck. Any help to the right direction would be appreciated.

Return to “X Rebirth - Scripts and Modding”