deestar12 / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 0 forks source link

A console is sorely missing #611

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
A console where I can type commands such as "show money 2" (to print player's 2 
money) or "ai 3" (to toggle all computer processing for player 3) is direly 
needed. Logging is nice but only occurs after the fact, and searching through 
heavy logs takes time.

Given that we use SDL, I propose finding and downloading some existing 
library/code for it and integrating it to display whole screen when pressing 
some button, outside regular DK GUI framework.

Original issue reported on code.google.com by eatpajdi...@gmail.com on 10 May 2015 at 12:24

GoogleCodeExporter commented 8 years ago
I'm not sure if we'll find a standalone library which displays the console, but 
we surely could copy some kind of existing solution.

Like this one:
https://code.google.com/p/corsix-th/wiki/LuaConsole

Original comment by mefistotelis on 11 May 2015 at 11:59

GoogleCodeExporter commented 8 years ago
Ripping that one might work. IIRC also saw some basic "libraries", I'll try to 
look up what else I can find. It's not too complicated to make a console once 
there is basic text output functionality, either. (But avoiding reinventing the 
wheel is always nice since it will be a square wheel without a lot of effort 
gone into it.) Anyway, getting anything up and running quickly would help since 
it would e.g. make it a lot easier to understand AI behavior interactively 
while it's happening.

I guess regarding script language, that's a greater topic (I have strong 
opinions on Lua and Mono that I both used a lot). Could discuss that in a new 
ticket, I think in the long run a real script language would be preferable to 
e.g. level scripts because of greater flexibility. But it takes a lot of effort 
to build a usable interface API.

Original comment by eatpajdi...@gmail.com on 11 May 2015 at 9:07