Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 7th_zorro), 877 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
video_mode = 0 ? #253461
02/24/09 20:04
02/24/09 20:04
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Hi there,

i recently discovered that it is possible to set

video_mode = 0;

As it appears, this is kind of a "non-DX"-mode and more like a console. Is it possible to use this mode for simple text output? And how would one achieve that?


A8.10 Commercial
Re: video_mode = 0 ? [Re: Vorick] #253465
02/24/09 20:31
02/24/09 20:31
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
I'm not sure but I think it was implemented on request of one or several users to be able to have a 3dgs server application which does not need any 3D hardware resource and yet can make some output (text). But I'm not sure how.
Maybe its possible about some use of "printf" or "draw_text", but I'm absolutely not sure about this.

Re: video_mode = 0 ? [Re: Xarthor] #253467
02/24/09 20:52
02/24/09 20:52
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
That's what i figured out too.

It seems that ANet is suggesting use of this mode, but even in their documentation they only refer to the 3dgs-docs in which I can't find anything about this specific mode.

Last edited by Vorick; 02/24/09 21:02.

A8.10 Commercial
Re: video_mode = 0 ? [Re: Vorick] #253472
02/24/09 21:27
02/24/09 21:27
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
use printf it will print to that white window thingy.


3333333333
Re: video_mode = 0 ? [Re: Quad] #253477
02/24/09 21:46
02/24/09 21:46
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Well okay, printf will open a message box popup, but thats quite inconvenient for live logging purposes, especially during development. I was hoping that mode 0 was working kinda like a real console window for text output.


A8.10 Commercial
Re: video_mode = 0 ? [Re: Vorick] #253478
02/24/09 22:08
02/24/09 22:08
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
oops it video_screen:

after setting video window to 0 and waiting 1 frame, it will print it like a real console:

Code:
void print1sec(){
	while(1){
		printf("Print!\n");
		wait(-1);
	}
}

void main(){
	video_screen = 0;
	wait(1);
	print1sec();
}




early demo of anet in action:(server and 4 clients)


Last edited by Quadraxas; 02/24/09 22:18.

3333333333
Re: video_mode = 0 ? [Re: Quad] #253481
02/24/09 22:41
02/24/09 22:41
Joined: Feb 2009
Posts: 33
Germany, Hamburg
V
Vorick Offline OP
Newbie
Vorick  Offline OP
Newbie
V

Joined: Feb 2009
Posts: 33
Germany, Hamburg
Ah, it's working. Thank you very much.


A8.10 Commercial

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1