Search found 25 matches

by chaoslion
Tue Aug 28, 2007 11:17 am
Forum: Beginners Help
Topic: I need light in-game scripting.
Replies: 2
Views: 391

try out gamemonkey, it seems to be perfect for you:
http://www.somedude.net/gamemonkey
and if u need help have a look at these pages:
http://www.gamedev.net/reference/progra ... gmscript1/
http://www.gamedev.net/reference/progra ... gmscript2/
by chaoslion
Sat Aug 25, 2007 7:48 am
Forum: Beginners Help
Topic: Newline from IGUIFont->draw()?
Replies: 1
Views: 270

i did it this way

irr::core::stringc buffer = "sum text\nline2\n";
irr::core::array<irr::core::stringc> screen_buffer;
irr::u32 start = 0;
irr::u32 i = 0;
for(;i<buffer.size();i++) {

//add next line
if( buffer[i] == '\n' ) {
screen_buffer.push_back(buffer.subString(start,i-start ...
by chaoslion
Tue Jul 31, 2007 2:19 pm
Forum: Beginners Help
Topic: EventReceiver Question
Replies: 1
Views: 294

EventReceiver Question

Hey guys,

i got a little problem with my eventrec class:


bool GuiManager::OnEvent(irr::SEvent e) {

switch( e.EventType ) {
case irr::EET_GUI_EVENT:
return this->parseGuiEvent(e);
case irr::EET_KEY_INPUT_EVENT:
return this->parseKeyEvent(e);
case irr::EET_MOUSE_INPUT_EVENT:
return this ...
by chaoslion
Mon Nov 27, 2006 2:59 pm
Forum: Advanced Help
Topic: make a console getting events
Replies: 2
Views: 487

make a console getting events

Hello!

i have made a console class pretty much like the one in q3.
I´ve derived it from the IEventReceiver class, so it has the OnEvent function.
How can i actually send events to this receiver, since there´s already an active event receiver registered with the device.. how would you guys do it?
by chaoslion
Mon Nov 27, 2006 2:28 pm
Forum: Beginners Help
Topic: very newb question
Replies: 7
Views: 678

yea or here:
put this in your global header file:

Code: Select all

extern irr::irrichtDevice *device;
and then in ONE .cpp file the declaration

Code: Select all

irr::irrichtDevice *device = NULL;
by chaoslion
Mon Nov 13, 2006 1:11 pm
Forum: Advanced Help
Topic: fullscreen doesn´t work with 3d drivers
Replies: 6
Views: 854

hm strange:
for some reason it is working now, i just reinstalled the latest gfx drivers

the console output was(as far is i remember):
"couldnt create DirectX9/8 device."
i think it was printed two times in the console.
no other errors..

if anyone reports this error, i´d recommend installing the ...
by chaoslion
Sun Nov 12, 2006 9:49 pm
Forum: Advanced Help
Topic: fullscreen doesn´t work with 3d drivers
Replies: 6
Views: 854

-win xp
-Ati x800 , latest drivers 8.301.0.0
-dx9.0c

btw: im using the stable irrlicht release..
by chaoslion
Sun Nov 12, 2006 2:40 pm
Forum: Advanced Help
Topic: fullscreen doesn´t work with 3d drivers
Replies: 6
Views: 854

fullscreen doesn´t work with 3d drivers

Hello,

everytime i try to create a fullscreen device either in dx8/9 or ogl mode,
irrlicht tries to go into fullscreen, changes the resolution but then returns to window mode. If i close the app then an try to restart it in windowed mode, the console says, couldn´t create directx device and if i ...
by chaoslion
Sun Nov 05, 2006 2:19 am
Forum: Advanced Help
Topic: Irrlicht in a c++ WinForms App
Replies: 5
Views: 1297

Irrlicht in a c++ WinForms App

Hey Guys

i was just trying to create a device in a WinForms application but the
linker throw two error:

rrlicht.h(303) : warning C4272: 'irr::createDevice' : is marked __declspec(dllimport); must specify native calling convention when importing a function.

irrlicht.h(314) : warning C4272: 'irr ...
by chaoslion
Fri Nov 03, 2006 1:04 pm
Forum: Bug reports
Topic: [not a bug] [WIN32] getVideoModeList bug
Replies: 1
Views: 449

[not a bug] [WIN32] getVideoModeList bug

Hey
i dunno if its a bug or a feature :) but the getVideoModeList function
returns on my system 36 resolutions which are mostly the same.
I got like 3x 640x480 4x 1024x768 etc...
by chaoslion
Sat Oct 28, 2006 6:30 pm
Forum: Beginners Help
Topic: wchar_t new line?
Replies: 21
Views: 5298

nope it isnt working because the gui element isnt parsing the line, which you are about to add. You may need to create a new element and go through the string and if you find a \n you simply create a new line and add the rest of the string after \n...
by chaoslion
Wed Oct 25, 2006 9:43 am
Forum: Off-topic
Topic: 'The Doors'
Replies: 4
Views: 1249

wow great link man thx for sharing :)
my favourite are still strange days and the end ^^
by chaoslion
Fri Oct 13, 2006 12:05 pm
Forum: Beginners Help
Topic: scolor not working?
Replies: 1
Views: 246

scolor not working?

Hey what am i doing wrong? it seams, as if the scolor function always gives
black when i use it in eg the drawline3d method:

core::line3df ray;
ray.start = cam->getPosition();
ray.end = ent->getPosition() - ray.start;
driver->draw3DLine(ray.start,ray.end,video::SColor(255,255,0,0));
//should ...
by chaoslion
Sun Sep 24, 2006 1:10 pm
Forum: Advanced Help
Topic: pointer to abstract class
Replies: 2
Views: 490

pointer to abstract class

Hey guys

i wanted to create an gui-env independent gui element so that i can choose
when it should be drawn or not, through the ->draw() function.
So i have created a pointer:

gui::IGUIButton*btn;

and then the creation, which actually fails because he says
"cannot instantiate abstract class ...
by chaoslion
Mon Sep 18, 2006 4:10 pm
Forum: Advanced Help
Topic: [GUI] button is not shown
Replies: 3
Views: 461

yes that was the mistake i made but how come that irrlich does not correct
the width/height itself??
actually this must be the same rect but with different origin but they arent the same?!
rectangle(0,0,320,240) != rectangle(10,10,320,240);