A little help with cb
-
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm
A little help with cb
I was using this tutorial that uses codeblocks http://www.gameiterator.com/index.php/Games/HowToCreateAComputerGame
Anyway...
I went and added the files they wanted in the directories and linker areas and still got errors. However when I go to build options the titles are a little different on the tabs like instead of directories it says search directories, and instead of linker it says linker settings. Anyway when I make the modifications it suggests it still gives me errors. I've noticed that in the Search directory-> compiler window the C\programfiles\codeblocks\include is not there, and it is in the tutorial, could this be causing a problem? If the version difference is the problem, what do I need to do?
Anyway...
I went and added the files they wanted in the directories and linker areas and still got errors. However when I go to build options the titles are a little different on the tabs like instead of directories it says search directories, and instead of linker it says linker settings. Anyway when I make the modifications it suggests it still gives me errors. I've noticed that in the Search directory-> compiler window the C\programfiles\codeblocks\include is not there, and it is in the tutorial, could this be causing a problem? If the version difference is the problem, what do I need to do?
As cb and Irrlicht are both changing all the time it often happens that tutorials are a little outdated. In your case it looks like an older Irrlicht version was used.
So instead of
you will need
If there are more errors, please do copy the extact error messages in here.
So instead of
Code: Select all
virtual bool OnEvent(SEvent event)
Code: Select all
virtual bool OnEvent(const SEvent & event)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm
-
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm
And unless I missed something I said I put the file game.irr in the scenes folder seen to the left in the screen shot, so I'm wondering if I missed something, or what I need to change.
It does say unable to open, but there is a file called game.irr made by irredit in that scenes folder seen above. Is it possible it has to do with the GLSL it says is unavailable in the line above the game.irr line?
It does say unable to open, but there is a file called game.irr made by irredit in that scenes folder seen above. Is it possible it has to do with the GLSL it says is unavailable in the line above the game.irr line?
-
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm
sorry,
your right, here is some of the necessary information
the code in the file I compiled is as follows
This error I'm receiving is this:

and inside the scenes folder it talks about (which is a direct subdirectory of the .exe file) looks like this

There is a copy of Irrlicht.dll in the folder with the exe as well.
Does anyone know what sort of error this is?
the code in the file I compiled is as follows
Code: Select all
#include <irrlicht.h>
#include <iostream>
#include <direct.h>
using namespace irr;
IrrlichtDevice* Device = 0;
class EventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(const SEvent & event)
{
// close app when user presses escape
if(event.KeyInput.Key == KEY_ESCAPE)
Device->closeDevice();
return false;
}
};
int main()
{
chdir(".."); // change to the main irredit directory
Device = createDevice(video::EDT_OPENGL,
core::dimension2d<s32>(640, 480));
EventReceiver receiver;
Device->setEventReceiver(&receiver);
Device->setWindowCaption(L"A Game");
scene::ISceneManager* smgr = Device->getSceneManager();
smgr->loadScene("scenes/game.irr");
smgr->addCameraSceneNodeFPS(); // create fps camera
Device->getCursorControl()->setVisible(false);
while(Device->run())
if (Device->isWindowActive())
{
Device->getVideoDriver()->beginScene(true,
true, video::SColor(0,200,200,200));
smgr->drawAll();
Device->getVideoDriver()->endScene();
}
Device->drop();
return 0;
}

and inside the scenes folder it talks about (which is a direct subdirectory of the .exe file) looks like this

There is a copy of Irrlicht.dll in the folder with the exe as well.
Does anyone know what sort of error this is?
this line,
comment it out, could be your problem
Code: Select all
chdir(".."); // change to the main irredit directory -
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm
-
Irrlicht Engine
- Posts: 12
- Joined: Thu Apr 10, 2008 11:21 pm



