home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


stuck on an stdout error

by phoenixsux on 11/22/2007 22:04, 3 messages, last message: 11/25/2007 03:25, 918 views, last view: 05/04/2024 08:50

winxp

I can't figure out how it happened or what i've done wrong, but recently the edits i've made to my mod have prevented it's output to the command window.

for example -

c:\myproject\myserver.bat
bin\myproject.exe -qbankrobbery -k15 -c4 -padminpass

then nothing is output in the command window even though the server/client works.
instead it creates a file
stdout.txt
which contains:
----------
init:sdl
static server map: bankrobbery
round time: 15 mins.
maxclients: 4
adminastrator password loaded.
contacting master server...
server could not be found.

waiting for clients....
-----------

what would cause the puts(s) and stdout function to write to a file rather than display the output to the command window?




   Board Index   

#1: ..

by MovingTarget on 11/23/2007 15:43

I encountered that same thing myself a little while ago when I made a somewhat cheat-proof server. I didn't find out what was wrong though...

reply to this message

#2: The reason is : default SDL behaviour

by MeatROme on 11/23/2007 20:39

http://www.libsdl.org/faq.php?action=listentries&category=4#85

reply to this message

#3: ..

by phoenixsux on 11/25/2007 03:25

Thanks, MeatROme! :D



Q: How do I avoid creating stdout.txt and stderr.txt?
A: Seen here:
http://www.libsdl.org/pipermail/sdl/2002-November/050275.html
"I believe inside the Visual C++ project that comes with SDL there is a SDL_nostdio target you can build which does what you want(TM)."

And here:
http://www.libsdl.org/pipermail/sdl/2002-November/050277.html
"If you define "NO_STDIO_REDIRECT" and recompile SDL, I think it will fix the problem.

(Answer courtesy of Bill Kendrick)

#define NO_STDIO_REDIRECT

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53863675 visitors requested 71638789 pages
page created in 0.024 seconds using 10 queries
hosted by Boost Digital