Search found 13 matches

by PackedCrack
Wed Jul 05, 2017 13:49
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

I'm so confused. I tried to pinpoint the file(s) that caused the crash. So I figured I'd copy paste all the lib/dll files that I compiled from my own cegui build folder into my application template folder. Expecting a crash I then figured I copy file for file until it worked. But it still works. Usi...
by PackedCrack
Tue Jul 04, 2017 15:03
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Okey.. So I've stepped through line for line your project and the application template that I compiled (that crashed) side by side. And the code is litterly 100% the same. The only difference is that in the application template that I compiled this if statement on line 170 fails: if ( parser->isProp...
by PackedCrack
Mon Jul 03, 2017 12:25
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Here it is: # This is the CMakeCache file. # For build in directory: d:/cegui-0.8.7/cegui-0.8.7/build # It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the...
by PackedCrack
Sun Jul 02, 2017 03:30
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

!

Completly missed the PM. Downloading now :mrgreen:

Edit:
Works! I guess I have some code comparison to do :hammer:
by PackedCrack
Tue Jun 27, 2017 22:25
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Aah I see. Oki I will look at it. :mrgreen:

That sounds great, thanks mate! :D
by PackedCrack
Tue Jun 27, 2017 21:45
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

So I've been messing around with it for the past 1 hour or so but I can't get it to work. Not sure I fully understand tbh. :oops: The difference I can see is that you call CEGUI::System::getSingleton().getDefaultGUIContext() instead of having a pointer. So I commented out this line 71 in cGUI.cpp //...
by PackedCrack
Mon Jun 26, 2017 23:49
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Exception thrown: read access violation. this->m_context-> was nullptr. :hammer: However, I can now actually see the Taharez cursor being drawn in the middle of the screen! So it's not all bad news :pint: So I copy pasted the code in your comment into cGUI::Init (). And then added m_root = CEGUI::Wi...
by PackedCrack
Mon Jun 26, 2017 15:17
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

That would be great if you could do that. As I'm not nearly experienced with this sort of thing. I've just started learning graphics and this is the first time I've tried adding a GUI to my application :hammer:

[url]
https://minfil.org/85h2Q3b6be/Solution.zip[/url]

Thanks! :pint:
by PackedCrack
Sun Jun 25, 2017 16:18
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Well shit.. Okey :hammer:

Thanks for taking the time guys.
by PackedCrack
Sat Jun 24, 2017 13:32
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Hello! :pint: This is the Log from the application template: 23/06/2017 21:55:20 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 23/06/2017 21:55:20 (Std) + Crazy Eddie's GUI System - Event log + 23/06/2017 21:55:20 (Std) + (http://www.cegui.org.uk/) + 23/06/201...
by PackedCrack
Fri Jun 23, 2017 19:47
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

This is what I did: 1. New empty c++ project in visual studio 2015 2. Add a Main.cpp file 3. Open the SDL2.CPP file from the application_templates folder inside CEGUI-0.8.7. 4. CTRL-A and CTRL-C 5. CTRL-V into the Main.cpp file that I added to my new empty project. 6. Add all the include directories...
by PackedCrack
Fri Jun 23, 2017 17:49
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

Re: injectMousePosition returning nullptr

Acctually had no idea there were such a thing. But I looked into it. Compiled it. But when running it I get close to the same result. If I launch the application when the cursor is outside the window, it runs fine. Renders everything ect. But as soon as I move the cursor inside the window I get: Exc...
by PackedCrack
Fri Jun 23, 2017 00:43
Forum: Help
Topic: injectMousePosition returning nullptr
Replies: 23
Views: 17507

injectMousePosition returning nullptr

Namaste 8) Okey so, I am trying to send the SDL events to CEGUI. However, it always returns nullptr and I can't for the life of me figure out why. Now it's probably me that have done a dumb mistake somewhere along the way. :hammer: But since I can't find the error maybe you guys can. So this is the ...

Go to advanced search