Mastermind
Member
|
Problem building.
I have just installed esenthel newest version on windows 8.
Tried a simple test by adding a new application "Test" and a new code "Main".
I also tried doing it the way tutorials explain but I think they might be outdated?
|
|
08-28-2014 07:57 PM |
|
Rubeus
Member
|
RE: Problem building.
(08-28-2014 07:57 PM)Mastermind Wrote: I have just installed esenthel newest version on windows 8.
Tried a simple test by adding a new application "Test" and a new code "Main".
I also tried doing it the way tutorials explain but I think they might be outdated?
Differences from the tutorial:
Code:
Window window; // gui window
Text text ; // gui text
Button button; // gui button
Declarations of the objects
Code:
Gui +=window.create(....
Gui is the GUI object; GUI is the class. C++ is case-sensitive.
Code:
window+=text .create(...
window+=button.create(...
Again, notice the use of 'text' and 'button' instead of 'Text' and 'Button'.
The blue color gives you a hint that it's a keyword rather than a variable, too.
|
|
08-28-2014 08:33 PM |
|
Mastermind
Member
|
RE: Problem building.
I tried it like you said using only small letters for window, text and button but it doesn't fix the problem.
|
|
08-28-2014 09:36 PM |
|
Dwight
Member
|
RE: Problem building.
Did you add the declarations as well?
|
|
08-28-2014 10:46 PM |
|
Mastermind
Member
|
RE: Problem building.
That seems to have made progress but still not working.
Also, am I correct then that the tutorials are outdated because it doesn't say I need to make those declarations in them?
I don't see where I am missing any ";" before line 17 and I'm also wondering what the first line in the output is about a warning: "Platform 'Emscripten'..."?
|
|
08-28-2014 10:55 PM |
|
Rubeus
Member
|
RE: Problem building.
As I said:
(08-28-2014 08:33 PM)Rubeus Wrote:
Code:
Gui +=window.create(....
Gui is the GUI object; GUI is the class. C++ is case-sensitive.
The blue color gives you a hint that it's a keyword rather than a variable, too.
GUI is wrong. It is used to declare a new GUI:
Gui is what you want. Somewhere in the engine is
And you probably have to make the window, text, and button objects global.
I would really recommend brushing up on your C++.
(This post was last modified: 08-28-2014 11:12 PM by Rubeus.)
|
|
08-28-2014 11:11 PM |
|
Mastermind
Member
|
RE: Problem building.
Yeah, I am a bit rusty, been a while since I used C++.
But I think it's a bit different here still since I don't really know how the engine works.. If their tutorial tells me to do something a certain way.. I could get the app running by changing that line as you suggested but it's just a white screen, didn't get any window or any ok button to press.. Tried making those 6 lines global but then I got massive amount of errors again.. If I could just get this basic app running then I believe I should have a much better understanding of how this engine works in it's "basic core".
(This post was last modified: 08-29-2014 12:02 AM by Mastermind.)
|
|
08-29-2014 12:00 AM |
|
Esenthel
Administrator
|
RE: Problem building.
Please put the variables "Window window" outside of the function, and place them in global space.
Code:
Window window;
bool Init()
{
Gui+=window.create..
There are GUI tutorials included in the engine, I recommend checking them out.
|
|
08-29-2014 05:01 AM |
|
Mastermind
Member
|
RE: Problem building.
Ah, I been such a dumbass really, there was nothing wrong with the tutorials, I was just rushing through them I guess.. Really sorry everyone, everything works now and I appreciate all the help
|
|
08-29-2014 05:42 AM |
|