|
Goombert
|
|
Reply #1 Posted on: June 10, 2013, 05:57:27 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
I don't think get_string has been added yet, check the Wiki... http://enigma-dev.org/docs/Wiki/UnimplementedNow if it is, you need to go to ENIGMA->Settings and select a Widget system for anything with GUI controls or font pickers, get_string requires you set a Widget system for the controls, it will not look like GM's. Josh told me it is implemented, so youll just need to set your Widget system, you may need to download and compile wxWidgets, if you have any trouble please visit the IRC at the link below and I will assist you. http://enigma-dev.org/forums/index.php?board=45.0
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
|
|
|
|
gra
|
|
Reply #6 Posted on: June 12, 2013, 11:18:52 am |
|
|
Joined: Feb 2013
Posts: 147
|
in linux i have found a discussion with this command g++ main.cpp -Os -s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs` that solve the problem in c++ compiler that missing gtk/gtk.h , but what is make-file that i do modify? the discussion of ispiration http://www.cplusplus.com/forum/unices/40030/EDIT probaly the function start, but not gtk loading
|
|
|
Logged
|
|
|
|
gra
|
|
Reply #7 Posted on: June 13, 2013, 03:38:07 am |
|
|
Joined: Feb 2013
Posts: 147
|
what is the dependencies packages? i'm on lubuntu. enogma use gtk1 2 or 3, if explain exact name of packages depeendencies is good on wine the functions go, fantastic!!
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #8 Posted on: June 13, 2013, 08:11:31 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
The [snip]get_string[/snip] function is part of the widgets library; you'll need to select one. On Linux, this is a hassle, because only GTK is supported, and GTK is a fat, ever-changing library. To use widgets on Ubuntu, you'll need to install the libgtk2.0-dev packages. Unfortunately, I don't remember their names; I usually tab complete for them. Once you get the widget system working, you should be able to use get_string.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
intygamer
|
|
Reply #9 Posted on: June 13, 2013, 10:54:17 pm |
|
|
Joined: Mar 2013
Posts: 77
|
libgtk-3-0 and libgtk-2.0-0 were already installed on my Ubuntu 12.04. I installed libgtk-3-dev first then tried to run get_string ,it did not work. Then installed libgtk2.0-dev and tried it and that did not work. I installed via Synaptic. I checked the directories for the gtk.h files and they are there. /usr/include/gtk-2.0/gtk/gtk.h libgtk2.0-dev /usr/include/gtk-3.0/gtk/gtk.h libgtk-3-dev I tried to run this command Gra suggested, (g++ main.cpp -Os -s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs`) I got (g++: error: main.cpp: No such file or directory). Also Tried (g++ gtk.cpp -Os -s `pkg-config gtk+-2.0 --cflags` `pkg-config gtk+-2.0 --libs`) with same result (g++: error: gtk.cpp: No such file or directory) Also I noticed when I go into enigma settings api after saving it that the gtk+ selection turns back to none. This primary happens when restarting Enigma, but does happen sometimes after running the get_string. I guess tomorrow I will look into what points Ubuntu to where files and diectories are. Please let me know if you have any suggestions. Thanks for your help Thanks Joe
|
|
|
Logged
|
|
|
|
|
|
Goombert
|
|
Reply #12 Posted on: June 14, 2013, 11:12:53 am |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
ExDeus, no the selection is saved under the EGM format, use EGM format for saving games made with ENIGMA.
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
intygamer
|
|
Reply #13 Posted on: June 14, 2013, 03:55:16 pm |
|
|
Joined: Mar 2013
Posts: 77
|
ok i try to modify the path Code: [Select]
#include <usr/include/gtk-2.0/gtk/gtk.h>
in all ccp files in Code: [Select]
enigma-dev/ENIGMAsystem/SHELL/Widget_Systems/GTK+
but the same problem, not found file I modified the 3 .ccp files, restarted the terminal and LGM and the same error is coming up. ExDeus, no the selection is saved under the EGM format, use EGM format for saving games made with ENIGMA. Logged
Howdy I'm Robert, I like to work on ENIGMA's engine, I also do allot of work on our Wiki and came up with the current design and organization, and I am also working on a new IDE written in C++ Robert I been saving my games as gm 8.1 to be compatible with gamemaker. Should I be saving as EGM? Thanks Joe
|
|
|
Logged
|
|
|
|
|
|