Scripting for Increased Accessibility

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
CaplinCaplin
Posts: 94
Joined: Wed, 16. Jan 19, 20:23
x3ap

Scripting for Increased Accessibility

Post by CaplinCaplin » Sat, 19. Jan 19, 05:09

Hi All,

I'm a newbie to the X series, and trying to get a handle on how best I can play these games as someone who is totally blind. It occurs to me that I might be able to script a few tools to help with areas which are difficult for me, such as manual trading.

The screen reader has reasonable OCR functionality, which I use regularly, but I was wondering what sorts of things I might be able to do with scripts? (I've obtained a copy of the XStudio, which seems like it will be more accessible than the built-in editor.)

Are scripts able to, say, call external programs? I might be able to use one to feed some information to my speech synthesizer, rather than depending exclusively on the game's computer voice.

I'm trying to avoid disturbing the core game play experience as much as I can. My goal is a "quality of life," improvement for the blind, so to speak. I believe this game has a great deal of potential for accessibility and enjoyment already, if I can overcome a few hurdles.

Thanks for any thoughts. :)

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24961
Joined: Sun, 2. Apr 06, 16:38
x4

Re: Scripting for Increased Accessibility

Post by X2-Illuminatus » Sun, 20. Jan 19, 19:40

CaplinCaplin wrote:
Sat, 19. Jan 19, 05:09
Are scripts able to, say, call external programs? I might be able to use one to feed some information to my speech synthesizer, rather than depending exclusively on the game's computer voice.
No, scripts cannot call external programs. The only thing you can do with scripts is writing text to an external logfile and reading in text from a textfile.
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

CaplinCaplin
Posts: 94
Joined: Wed, 16. Jan 19, 20:23
x3ap

Re: Scripting for Increased Accessibility

Post by CaplinCaplin » Sun, 20. Jan 19, 20:07

Thanks for the answer. That means I'll probably have to come up with a different solution to the problem of reading things that my OCR chokes on. I'm 98% sure I can. At the moment, trade prices are the most annoying, though I'm sure other stuff will present itself as I get deeper into the game.

User avatar
vukica
Posts: 1744
Joined: Sun, 10. Aug 08, 18:05
x4

Re: Scripting for Increased Accessibility

Post by vukica » Mon, 21. Jan 19, 14:46

There used to be a dev chat application that worked inside the game. I don't remember if it took input, or if it was just output.

Link: viewtopic.php?f=8&t=286739
I'm not sure if links over there work at all.
Split say NEED MORE FIREPOWER!!

CaplinCaplin
Posts: 94
Joined: Wed, 16. Jan 19, 20:23
x3ap

Re: Scripting for Increased Accessibility

Post by CaplinCaplin » Mon, 21. Jan 19, 22:57

Would you say it's worth getting onto the devchat for scripting questions? I'd just love to go where ever the most knowledge can be found. I feel like I'm floundering a bit in a sea of tutorials and such of uncertain provenance. I want to make this game more accessible for me, and believe I'm ~95% there, but just not sure how.

User avatar
vukica
Posts: 1744
Joined: Sun, 10. Aug 08, 18:05
x4

Re: Scripting for Increased Accessibility

Post by vukica » Tue, 22. Jan 19, 11:36

CaplinCaplin wrote:
Mon, 21. Jan 19, 22:57
Would you say it's worth getting onto the devchat for scripting questions? I'd just love to go where ever the most knowledge can be found. I feel like I'm floundering a bit in a sea of tutorials and such of uncertain provenance. I want to make this game more accessible for me, and believe I'm ~95% there, but just not sure how.
No, I'm saying that the devchat app is an example of how an external app can be connected to the game. I'm not sure anyone is still using the chat itself.
Split say NEED MORE FIREPOWER!!

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22226
Joined: Sun, 14. Nov 04, 23:26
x4

Re: Scripting for Increased Accessibility

Post by Cycrow » Tue, 22. Jan 19, 14:53

The only way to get data to external software is to do what X2-Illuminatus suggests. Write out the data to a log file using a script. Then get an external program to read in that log file, that can then call another program if needed.
Getting data back into the game is a little trickier, and relies on creating a t file, and getting a script to read it in

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”