TASpring sending input by stdIn

TASpring sending input by stdIn

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Rayden
Posts: 377
Joined: 01 May 2005, 13:15

TASpring sending input by stdIn

Post by Rayden »

Does spring support sending commands through stdIn? If not would it be possible to implement such a function?

This would help bots to communicate with spring and send host commands like forcing and other stuff ingame.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Springie already does it, look at spring.cs and talker.cs in the source.
It's using windows messages though.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

I think trepan was talking about implementing something like this in the next version, or maybe it was errors to stdout, I don't remember any more.
User avatar
Rayden
Posts: 377
Joined: 01 May 2005, 13:15

Post by Rayden »

I know talker.cs ... but from point of java stdIn would be so much easier :)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Ahh yeah .. I remember we talked about that, you need that wrapper dll to call other dlls like user32.dll :(

Yeah stdin would be best.. Even sending windows messages has it's limitations - for example due to way spring works its im possible to send shift state so I cannot send capital letters or !@#$ stuff to spring.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its also non portable
Post Reply

Return to “Engine”