Ow Alien that sounded harsh :p Been so busy with my Old Republic early access haven't "had" any time to work

Boggers, didn't check my code back into my repo last time I was working on it, shame on me. I'm at work and will have to wait until I get home before I can post the code up. At the very least I am glad you guys are responsive. I think it's really cool to have a dev team that responds to it's users.
After looking at that link you posted for the IGUISkin code, I know the line that I changed:
Code: Select all
Colors[EGDC_WINDOW] = video::SColor(101,255,255,255);
I changed the color to like SColor(101,255,13,54) or something like that, just sorta made a color up so I could see if it was working. But since it never got that far I wouldn't know.
I'll get the rest of my code when I get home if you need it. I didn't change anything but that line above so I don't really understand why my GUIEnvironment would nil out. And I am not trying to waste your time consider it a philosophical discussion until I post my actual code.
Code: Select all
int main() {
E_DRIVER_TYPE displayDriver = EDT_DIRECT3D9;
IrrlichtDevice *device = createDevice( displayDriver, dimension2d<u32>(640, 480), 32, false, false, false, 0);
if (!device)
return 1;
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
IGUISkin* chaosSkin = new ChaosSkin(EGST_WINDOWS_CLASSIC, driver);
guienv->setSkin(chaosSkin);
IGUIWindow* win = guienv->addWindow(rect<s32>(0,0,400,400));
IGUITabControl* tabcontrol = guienv->addTabControl(rect<s32>(25,20,350,350),win); // Dies after this line/on this line, the debugger moves the program counter back to this line for some reason and then guienv is nil
IGUITab* resourceTab = tabcontrol->addTab(L"Resources",kResourcesTab);
That is pretty damn close to what I have for the code that I have at home. The only thing I can't get right now is the actual implementation of ChaosSkin, but like I already said I copy pasted the CGUISkin.cpp from the source folder and copied the contents of the header into my own. There was no funny business and I didn't change anything but the color of the 3d window. I am trying to make it very clear that I may be doing something wrong or I didn't copy over any of the resources it's trying to use (if it had any) But that doesn't explain why it would totally crap itself.
And for your edit 2 CuteAlien, I was just testing with a color. I had many more things in mind than changing just the color. This was a proof of concept that I was starting to prototype.
I'll edit in copy paste job of ChaosSkin.h and ChaosSkin.cpp tonight when I get home.