Search found 23 matches

by Dreadstew
Tue Mar 13, 2018 10:51 pm
Forum: Game Programming
Topic: Coding Evolution
Replies: 5
Views: 4123

Re: Coding Evolution

I think the easiest way to write a self-generating program would be to have the main program generate code in a new file, run the compiler on it, then kick it off as a new process from the main program. Really interesting idea. I've thought about this before... skynet poop lol.
by Dreadstew
Tue Mar 13, 2018 10:32 pm
Forum: Bug reports
Topic: [no]Bug in IFileSystem::createAndOpenFile || IReadFile
Replies: 3
Views: 2951

Re: [no]Bug in IFileSystem::createAndOpenFile || IReadFile

Oh I should have known! So I don't get this problem with ifstream because I don't use ios::binary (or something like that). Maybe provide a text file version of createAndOpenFile?
by Dreadstew
Tue Mar 13, 2018 10:21 pm
Forum: Game Programming
Topic: Opinion - Should createDevice throw when returning null?
Replies: 13
Views: 4111

Re: Opinion - Should createDevice throw when returning null?

Ight, no exceptions then! The common idea behind exceptions increasing size - I think they just mean code size. I was throwing exceptions after checking for null pointer, but instead I decided to just use MessageBox and display an error. Got my init code all jazzed up with error checking! lol... tha...
by Dreadstew
Mon Mar 12, 2018 9:21 pm
Forum: Bug reports
Topic: [no]Bug in IFileSystem::createAndOpenFile || IReadFile
Replies: 3
Views: 2951

[no]Bug in IFileSystem::createAndOpenFile || IReadFile

Hi, I load a file two different ways. Irrlicht has exponents tacked onto the end. Must have happened in openFile or ReadFile. Not sure. But it makes the irrlicht file loader unusable for me. io::IReadFile* ini = filesystem->createAndOpenFile(io::path("C:/Users/cool_/Documents/VisualStudio2017Pr...
by Dreadstew
Mon Mar 12, 2018 9:15 pm
Forum: Game Programming
Topic: Opinion - Should createDevice throw when returning null?
Replies: 13
Views: 4111

Re: Opinion - Should createDevice throw when returning null?

I knew it wouldn't be a popular idea lol. I agree with you all except Mel, the point of irrlicht throwing the exception would be to keep my code cleaner, I'd only have to wrap everything in a try catch
by Dreadstew
Mon Mar 12, 2018 5:53 am
Forum: Game Programming
Topic: Opinion - Should createDevice throw when returning null?
Replies: 13
Views: 4111

Opinion - Should createDevice throw when returning null?

Hi, I just started up a game and got sucked into little details. We have to check the returned pointer from createDevice and calls like device->getDriver(). It would clean up client code to have them throw an exception when returning NULL. What do you think? I'll add it if people want it. If it gene...
by Dreadstew
Fri Apr 03, 2015 5:36 pm
Forum: Code Snippets
Topic: TextArea GUI Element [v1.0]
Replies: 37
Views: 98779

Re: TextArea GUI Element [v1.0]

Wow I can't believe you replied it's been so long. Sweet deal! I had trouble enabling scrolling so I changed a few lines of your code. Around line 90 I put autoScroll = false; so that when you scroll with your mouse in the textArea autoScroll gets disabled. Around line 242 I put autoScroll = true; s...
by Dreadstew
Wed Apr 01, 2015 5:29 pm
Forum: Code Snippets
Topic: TextArea GUI Element [v1.0]
Replies: 37
Views: 98779

Re: TextArea GUI Element [v1.0]

I get a bug when using your code. If you enter lines that wrap scrolling no longer works properly. startIndex isn't large enough to deal with all the lines and when it changes from 1 to 0 and back to 1 instead of scrolling it jumps a lot of lines. I don't think your variables startIndex or maxLines ...