What if...
What if...
... the code compiles without warnings but the game crashes at device creation (found out via logger)
is it releated to the dll?
greets,
Halan
is it releated to the dll?
greets,
Halan
My Blog: http://www.freakybytes.org
thanks,
can this be the only reason?
btw, this is the intialize function :
LOG TEST is shown in the log file ... then it crashed 
can this be the only reason?
btw, this is the intialize function :
Code: Select all
bool intialize()
{
//Create Device and Stuff
LogWrite("LOG TEST \n");
device = createDevice(EDT_OPENGL, dimension2d<s32>(800, 600), 32, false, true, true, &receiver);
device->setWindowCaption(L"Age of War - Server v0.1.0");
LogWrite("Device and MSWindow created \n");
driver = device->getVideoDriver();
LogWrite("OpenGL Manager created \n");
env = device->getGUIEnvironment();
LogWrite("GUI Manager created \n");
smgr = device->getSceneManager();
LogWrite("Scene Mangaer Created \n");
timer = device->getTimer();
timer->start();
timer->setSpeed(1.0f);
LogWrite("Timer created and started \n");
return true;
}My Blog: http://www.freakybytes.org
thanks,
i checked it but i cant find a probelm
so i thought maybe coping to the forum would be the only solution its based on the "key and mouse input" thread in the FAQ/Howto-Forum
i checked it but i cant find a probelm
Code: Select all
class CReceiver : public IEventReceiver
{
public:
bool OnEvent(SEvent event)
{
if(event.MouseInput.Event == EMIE_MOUSE_WHEEL)
{
MouseWeel=event.MouseInput.Wheel;
return true;
}
if(event.EventType == EET_KEY_INPUT_EVENT)//if the keys gave input
{
keys[event.KeyInput.Key] = event.KeyInput.PressedDown;//we set it on if it was pushed, off if it was let up
return true;
}
if(event.GUIEvent.EventType == EGET_BUTTON_CLICKED)
{
GUIButton = event.GUIEvent.Caller->getID();
return true;
}
if(event.EventType == EET_MOUSE_INPUT_EVENT)
{
//left mouse button
if (event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN)
{
keys[KEY_LBUTTON] = 1;//on
return true;
}
if (event.MouseInput.Event == EMIE_LMOUSE_LEFT_UP)
{
keys[KEY_LBUTTON] = 0;//off
return true;
}
//middle mouse button
if (event.MouseInput.Event == EMIE_MMOUSE_PRESSED_DOWN)
{
keys[KEY_MBUTTON] = 1;//on
return true;
}
if (event.MouseInput.Event == EMIE_MMOUSE_LEFT_UP)
{
keys[KEY_MBUTTON] = 0;//off
return true;
}
//right mouse button
if (event.MouseInput.Event == EMIE_RMOUSE_PRESSED_DOWN)
{
keys[KEY_RBUTTON] = 1;//on
return true;
}
if (event.MouseInput.Event == EMIE_RMOUSE_LEFT_UP)
{
keys[KEY_RBUTTON] = 0;//off
return true;
}
return false;
}
return false;
}
};My Blog: http://www.freakybytes.org
sry i dont get it
i mean the receiver gets instantaited like this
but what do you mean with good values?
i mean the receiver gets instantaited like this
Code: Select all
CReceiver receiver;My Blog: http://www.freakybytes.org
it told me that theres sometihng wrong with that (when i remove it the application works...)
Code: Select all
if(event.GUIEvent.EventType == EGET_BUTTON_CLICKED)
{
GUIButton = event.GUIEvent.Caller->getID();
eturn true;
}My Blog: http://www.freakybytes.org
Yes, two errors !!! 
1st: it's an IGUIButton
2nd: you get a reference not the complete object IGUIButton*
1st: it's an IGUIButton
2nd: you get a reference not the complete object IGUIButton*
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
no, acki
i know what you mean but my s32 GUIButton just stores the id of the button that has been pushed.
yeah hybird the error must be something else it says "segmentation error" in the debugger...
i know what you mean but my s32 GUIButton just stores the id of the button that has been pushed.
yeah hybird the error must be something else it says "segmentation error" in the debugger...
My Blog: http://www.freakybytes.org
Yes, I see !!!
He's getting the ID, I was overlooking, I thought he gets the caller instead...
He's getting the ID, I was overlooking, I thought he gets the caller instead...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
ive to add that my interface is drawn every scene but doesnt react on mouse input 
so there must be something wrong with the Inerface stuff... any ideas?
@Acki: why did you added the ChatBox to your IrrExtensions but not the extended Table Control?
so there must be something wrong with the Inerface stuff... any ideas?
@Acki: why did you added the ChatBox to your IrrExtensions but not the extended Table Control?
My Blog: http://www.freakybytes.org