Basically I'm running a minecraft server from a PureBasic application and reading the programs output aswel as writing to the programs output, everything works fine apart from output, some output comes through and other output (the important stuff like player has connected or said stuff) does not get returned. Even more strangely, this information seems to drop straight into my PureBasic applications Console window. What gives!?!
this is how i run the program:
Code: Select all
Minecraft = RunProgram("java", "-jar minecraft_server.jar nogui" ,"C:\Users\Deano\Desktop\Minecraft\Server", #PB_Program_Open|#PB_Program_Read|#PB_Program_Write|#PB_Program_Error|#PB_Program_Hide)
Code: Select all
If ProgramRunning(Minecraft)
MinecraftTimer=MinecraftTimer+1
If AvailableProgramOutput(Minecraft)
WriteMinecraftLog(ReadProgramString(Minecraft))
EndIf
EndIf