IrrConsole - Demo Download

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

IrrConsole - Demo Download

Post by mohaps »

Hi All,

You can download the demo for the IrrConsole - A Quake Style console for irrlicht from http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5411

you cna find details about this project at this thread http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5321 and http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5411
Screenshot
Image
<copy paste from README.txt> :)

Code: Select all

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

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

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.
Guest

Post by Guest »

Worked perfect for me man, nice job :D
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

hi cmiobenlepro,

I think it will work if you put the irrlicht.dll in the directory you unzipped this stuff to.

also I think you should recompile your irrlicht with the line virtual ~IEventReceiver(){} commented out in IEventReceiver.h


I shall most definitely release the source... but i have to complete "tab completion" feature before I do that
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

@cmoibenlepro : dude tu devrais enlever le pro dans ton nom après ce que tu viens de dire :roll: sans rancune!
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

eXodus: Hahahaha! Bien essayé :wink:

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
OK I will thy that as soon as I'm back at home...
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

cmoibenlepro

create a bat file with

Code: Select all

PATH=.;%PATH%
call TestApp.exe
in the Root directory.. copy the irrlicht DLL to the root dir and click on the bat file :)
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Joe_Oliveri
Posts: 448
Joined: Tue Oct 05, 2004 3:24 am
Location: Boston, MA

Post by Joe_Oliveri »

Any plans to port the source to Dev-C++?

Good job!
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

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++. :D
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

@afcelis,

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

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

I tried it with your dll, it worked :D

I must say that I'm very impressed by that console, Whoa!

Now I'll need to try to make it work in my own game. :wink:

BTW, would it be possible to implement scrolling in the console so it would be possible to see the first lines of text?...
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

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

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
deprecated
Posts: 62
Joined: Fri Jan 07, 2005 4:37 pm
Location: California

Post by deprecated »

I was really excited about IrrConsole when I saw it...
but now I cant get it to compile...

On Linux there seems to be no
"MultiByteToWideChar"
which seems to come from the win32 API
and thus I cannot compile...

This would be great if I could get it to work...
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

work around is to use the following functions

Code: Select all

mbstowcs() - in stead of MultiByteToWideChar();
wcstombs() - in stead of WideCharToMultiByte();
the demo-src.zip has been updated with the change
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

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! :D
Post Reply