IrrConsole : A Quake Style Drop Down Console For Irrlict 0.7.1
Author : Saurav Mohapatra
EMAIL : mohaps@gmail.com
=================================================================
This is a demo for the IrrConsole Library that adds a Quake like console capability to the Irrlicht Engine.
INSTALLATION
=================================
1) Download the IrrConsole-Demo-bin.rar file
2) Extract it to somewhere on the System. We shall call this directory <IrrConsoleRoot>
3) you should see something like this
<IrrConsoleRoot>
| README.txt - this file
| TestApp.exe - the demo executable
|
\---data - the data directory
+---font
| caption.bmp - the caption font
| console.bmp - the console font
|
+---model
| faerie.bmp
| faerie.md2
|
\---texture
test.jpg
4) Make Sure Irrlicht.DLL is in the system path or copy the dll into the <IrrConsoleRoot> directory.
5) Now this should work by double clicking on the TestApp.exe, but if you want the Quake III map loading go to the irrlicht media directory on the Irrlicht SDK and copy the PK3 file named
"map-20kdm2.pk3" and copy it to a folder called "pak" under "data".
[NOTE: If you do not copy the PK3 file then you can not use the "\show_node level" command. I skipped this as it is big file.]
6) now fire up the demo and type ~ to bring down the console.
7) type "\list" to see a list of supported commands
8) remember the commands have to be preceded by "\" to execute else the console just echoes whatever was typed.
So have fun and let me know how it goes.
mohaps
Last edited by mohaps on Wed Feb 09, 2005 1:54 pm, edited 1 time in total.
---
Saurav Mohapatra
author, artist and bona fide geek
The exe don't work for me...
It don't even start, maybe it's a dll compatibility problem...
could you release the dll with the demo, or even better release the source so I could compile it and it would work.
mohaps: I already did that (even tried the dll that come with irrlicht... Maybe it use in priority the dll in the 'Windows' folder? Because in my windows directory, it's a 'custom' dll that I compiled myself to add some functions and bugfixes...
also I think you should recompile your irrlicht with the line virtual ~IEventReceiver(){} commented out in IEventReceiver.h
It works fine (I mean the bin), you just gotta download the matching dll from Mohap's site. BTW, the site is looking damn nice.
Now I gotta implement it in an app of my own. Now the question would be how to assign key entries that make something in the console. Would that be done with bools?
@skater: regarding to devc++; you shouldn't have a problem using the source in devc as long as you use opengl and the proper dll. You might use DX but it's a whole trip and adventure to get it working. Although devc uses a gccc compliant compiler it's still C++.
the easiest eway would be to add a setvar <name> <value> command which puts the name/value pair as a string in a global map<String,String> ... for ease of reference let us call this the Registry
make the Command_SETVAR::invoke() call Registry::instance()->setVar(args[1], rst of the args as one string);
so your code basically takes care of getting the value and checking if it is bool or float... so for example...
console$> setvar camera_position 1,0,0
sets the camera_position to 1,0,0 which can be interpreted by the code as a vector of 3 floats,,,
@skater,
the code is pretty straight forward..try and see if it compiles in DevC++ ... send me a note if it does...
---
Saurav Mohapatra
author, artist and bona fide geek
I am trying to implement the following features for the next release:
a) Macros / Key bindings for say Alt+Key to do expand to something in the console
b) Scrolling of the console text. I plan to support a cmd.exe layout type scehem where you have a window size and buffer size. so if you set the console buffer size to 1000 and window size to 10. you shall see 10 lines, but the console shall have 1000 lines which you can scroll.
c) Copy / Paste to system clipboard
d) saving the console messages to a log file
e) some other improvements like line wrapping etc. (this might get defered)
---
Saurav Mohapatra
author, artist and bona fide geek
I am trying to implement the following features for the next release:
a) Macros / Key bindings for say Alt+Key to do expand to something in the console
b) Scrolling of the console text. I plan to support a cmd.exe layout type scehem where you have a window size and buffer size. so if you set the console buffer size to 1000 and window size to 10. you shall see 10 lines, but the console shall have 1000 lines which you can scroll.
c) Copy / Paste to system clipboard
d) saving the console messages to a log file
e) some other improvements like line wrapping etc. (this might get defered)
That's cool! Great work and continue!
It's fun to see that a lot of people are contributing to Irrlicht project!