About Store Forum Documentation Contact



Post Reply 
Problem building.
Author Message
Mastermind Offline
Member

Post: #1
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".

[Image: 14xmdqo.jpg]


I also tried doing it the way tutorials explain but I think they might be outdated?

[Image: bi12lh.jpg]
08-28-2014 07:57 PM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Mastermind Offline
Member

Post: #3
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
Find all posts by this user Quote this message in a reply
Dwight Offline
Member

Post: #4
RE: Problem building.
Did you add the declarations as well?
08-28-2014 10:46 PM
Find all posts by this user Quote this message in a reply
Mastermind Offline
Member

Post: #5
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?

[Image: fpcmcx.jpg]

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
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #6
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:
Code:
GUI ANewGUI;
Gui is what you want. Somewhere in the engine is
Code:
GUI Gui;

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
Find all posts by this user Quote this message in a reply
Mastermind Offline
Member

Post: #7
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".

[Image: 2nrk2fp.jpg]
(This post was last modified: 08-29-2014 12:02 AM by Mastermind.)
08-29-2014 12:00 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
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
Find all posts by this user Quote this message in a reply
Mastermind Offline
Member

Post: #9
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 smile
08-29-2014 05:42 AM
Find all posts by this user Quote this message in a reply
Post Reply