Search found 95 matches

by Morgawr
Wed Mar 12, 2008 4:46 pm
Forum: Beginners Help
Topic: Code Problem
Replies: 11
Views: 978

Re: Code Problem

hi, i am new at the irrlicht scene and just have a problem. I have some years programm experience in Basic and already some experience in C++. But with irrlicht i am a total noob. Sorry for the nothing-saying title but it's hard to explain your Problem with just a few words ;). Here we go: I downlo...
by Morgawr
Wed Mar 12, 2008 4:41 pm
Forum: Beginners Help
Topic: Get GUIElement from IGUIEnvironment
Replies: 2
Views: 205

CuteAlien wrote:env->getRootGUIElement ()->getElementFromId (s32 id, bool searchchildren);
Whoa thanks a lot! Fastest reply ever! That's just what I was looking for! :oops: :lol:
by Morgawr
Wed Mar 12, 2008 4:26 pm
Forum: Beginners Help
Topic: Get GUIElement from IGUIEnvironment
Replies: 2
Views: 205

Get GUIElement from IGUIEnvironment

Hello everyone... Is there a way to get a GUIElement (e.g. a button) previously stored inside the Enviroment with env->addButton(etcetc); without having it saved inside a button object? Just by passing the ID of the said button to the IGUIEnvironment. something like button=env->getElement(ID);?? A f...
by Morgawr
Sat Mar 08, 2008 4:53 pm
Forum: Beginners Help
Topic: Creating an IGUIEnvironment
Replies: 5
Views: 429

After posting this topic, and before reading your replies, I solved this problem myself.. Also I read that Gamestate on gameDev and I realized I did something which is similar to what is explained there.. only it's called GameScene instead of Gamestate... anyways my solution is that every GameScene ...
by Morgawr
Fri Mar 07, 2008 11:04 pm
Forum: Beginners Help
Topic: Creating an IGUIEnvironment
Replies: 5
Views: 429

Creating an IGUIEnvironment

Hello everybody, how do I create and use an IGUIEnvironment without having to get it from the IrrlichtDriver? I want to make different environments for my different scenes which, at certain points, will change the environments loading a different one depending on the scene I'm at.. I can't find a fu...
by Morgawr
Sun Feb 03, 2008 11:49 am
Forum: Beginners Help
Topic: Working with XML, anyone knows a nice guide?
Replies: 24
Views: 1833

hybrid wrote:irrXML is also available separately :roll:
by including irrXML.h instead of irrlicht.h right? :oops:
by Morgawr
Sun Feb 03, 2008 10:22 am
Forum: Off-topic
Topic: Dreams of a far off future (warning huge post)
Replies: 6
Views: 803

I stopped reading halfway but I'm pretty sure Perfect World has a similar "kingdom" system and there's another MMORPG I played that has 3 kingdoms with the "champion" of the current kingdom in charge of everything etc etc etc and the merchant system is in every mmorpg I've ever p...
by Morgawr
Fri Feb 01, 2008 10:07 pm
Forum: Off-topic
Topic: How to check if code's leakin, how much mem takes etc..
Replies: 9
Views: 1394

I don't know about programmatically, i'm sure there's something in the windows API that will allow you to see how much memory is free. But you could just look at the task manager and see if the memory usage for your app keeps on rising when it shouldn't or is just generally high. An interesting not...
by Morgawr
Fri Feb 01, 2008 10:02 pm
Forum: Off-topic
Topic: New Social Networking Site!
Replies: 12
Views: 1090

Those social networking sites really annoy me. I have to have a facebook so I get invited to parties by people who I haven't seen in years, but the bastards who run them are collecting data on me and selling to the highest bidder. The future of the internet in anonymity, everyone will have a differ...
by Morgawr
Fri Feb 01, 2008 9:54 pm
Forum: Everything 2d/3d Graphics
Topic: NGE Logo Competition!
Replies: 23
Views: 5421

JP wrote:I have to say i quite like your current logo. The only problem with it really is that it's a bit low quality; jagged edges and the like.
I agree with JP, I like the current logo :?
by Morgawr
Fri Feb 01, 2008 9:48 pm
Forum: Beginners Help
Topic: Where to start
Replies: 10
Views: 601

Re: Where to start

Im finally ready to start the coding for my MMO But where to start? I really dont know what to start on first. I've always loved writing an MMO myself, and that was before the "mmo-spree" that we're getting these days, since I was 14 (I'm almost 18 now) I've started thinking about it, not...
by Morgawr
Fri Feb 01, 2008 9:38 pm
Forum: Beginners Help
Topic: How to change a variable from const char* to c8*?
Replies: 11
Views: 436

I must apologize for my newbiness here now.. :oops: I took a whole day of lurking in the API and I honestly didn't notice stringc and stringw before in Irrlicht.. I was basically using c8* as a string but since now I've found stringc and stringw, I'm sticking to them! Sorry for this stupid thread, I...
by Morgawr
Fri Feb 01, 2008 10:11 am
Forum: Beginners Help
Topic: How to change a variable from const char* to c8*?
Replies: 11
Views: 436

hybrid wrote:Better use the string classes core::Stringc and core::Stringw for these purposes. Otherwise you have to cope with all the memory allocation stuff like in plain C.
ehm? Where do I find those? They are in Irrlicht? :oops:

can you post an example code please? :roll:
by Morgawr
Fri Feb 01, 2008 8:54 am
Forum: Beginners Help
Topic: How to change a variable from const char* to c8*?
Replies: 11
Views: 436

Do you want to copy the string/data or do you only want to save the pointer? In first case you can use some C-functions like strncpy or sprintf: const char* source = "Hello World"; c8* dest = new c8[100]; strncpy(dest, source, strlen(source)); // way 1 sprintf(dest, "%s", source...
by Morgawr
Fri Feb 01, 2008 8:38 am
Forum: Beginners Help
Topic: How to change a variable from const char* to c8*?
Replies: 11
Views: 436

How to change a variable from const char* to c8*?

Hello everyone, I have a little minor problem... I have gotten from an XML file an attribute as a const char* using the XMLFile->getAttributeValue("attribute_name") and I want to save it into a c8* variable (because that's what I use in my program). How can I convert it? I tried casting it...