Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 1 invisible), 620 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
New console functions #356476
02/02/11 10:09
02/02/11 10:09
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Hi,

using the engine in console window (video_screen = 0) works great. But there are 2 important functions missing:
1) A function for clearing the content of the console
2) A function for making input in the console window (like scanf())

This would be very useful for server applications and small test programs.

Thanks!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: New console functions [Re: Dark_samurai] #356479
02/02/11 10:20
02/02/11 10:20
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
yes, i need it a lot, too!

Re: New console functions [Re: SchokoKeks] #356495
02/02/11 13:08
02/02/11 13:08
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Ok, I think this can be relatively easily implemented.

Re: New console functions [Re: jcl] #356576
02/02/11 19:57
02/02/11 19:57
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
In the mean time you can use this

include stdio.h and you can use scanf from lite-c with the console version of acknex.exe

there is a dll for printing to console with printf, you do not have to use that since the original printf prints to white screen. But then it makes 2 console like screens so you can start with -nwnd and use the original black console.

or you can print to white video_screen=0 with original printf and cprintf to print to real console.(you need to comment out or edit the 3rd(last) line of printf.h tough)

edit: and oh, of course, you can use this console wihout the video_screen 0, you can both have the console and the engine window

Last edited by Quadraxas; 02/02/11 19:59.

3333333333
Re: New console functions [Re: Quad] #359287
02/16/11 16:52
02/16/11 16:52
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Thanks!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version

Moderated by  aztec, Spirit 

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