I wonder if you ( the ancients ) have ever used that console system ?//Register commands
//COmmand Interpretor Seems to break VC8, so I'm leaving disabled for now - Patrick, Dec 24
if ( XMLSupport::parse_bool( vs_config->getVariable( "general", "command_interpretor", "false" ) ) ) {
CommandInterpretor = new commandI;
InitShipCommands();
}
I could try to fix the windows bug , but that will be time expensive .
So i've found a quick and dirty way to hack the mainloop and interact with AI , take
the control of the camera , launch .py files etc ...
Well , it's my planning and i'm not able right now to make it .
But i've started something , using the chat box :
That is cool , and works as i can see what i have typed , use backspace etc ...void TextMessageKey( const KBData&, KBSTATE newState )
{
if (newState == PRESS) {
static bool chat_only_in_network =
XMLSupport::parse_bool( vs_config->getVariable( "network", "chat_only_in_network", "false" ) );
if ( (Network == NULL) && chat_only_in_network )
{
//new hack by ezee to create a console
winsys_set_keyboard_func( TextMessageCallback );
textmessager = _Universe->CurrentCockpit();
return;
}
winsys_set_keyboard_func( TextMessageCallback );
textmessager = _Universe->CurrentCockpit();
}
}
The next step is to create an interpretor to play with .
Logically , i should use the TextMessageCallback fonction to code an output
for the AI .
And yeah , i will make that hack in a proper way , that is a brutal force beginning ...