IsmAvatar
|
|
Reply #45 Posted on: April 22, 2010, 12:26:49 pm |
|
|
LateralGM Developer
Location: Pennsylvania/USA Joined: Apr 2008
Posts: 877
|
whenever i use window_set_caption() it doesn't throw errors.... or do anything....
I used the room_caption variable. My guess is window_set_caption isn't fully implemented or gets overwritten with room_caption. To test this theory, if you're using Xlib (unix), before you compile your game, go to C::B > Game > Sources > Platforms > xlib > XLIBwindow.cpp, line 87. Move the line down so that line 87 is blank, and then put the following in line 87: printf("~%s~\n",caption.c_str()); Then compile, and run your game from a terminal. If you see lines with ~tildes~, that's when it's setting the caption, and anything between the tildes is what it's setting the caption to. If, for instance, you see ~The Caption I provide~ ~~ then either you're calling window_set_caption("") or ENIGMA is overwriting (e.g. room_caption). To further test this, try setting room_caption.
|
|
« Last Edit: April 22, 2010, 12:36:02 pm by IsmAvatar »
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #46 Posted on: April 22, 2010, 01:06:10 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
whenever i use window_set_caption() it doesn't throw errors.... or do anything....
I used the room_caption variable. My guess is window_set_caption isn't fully implemented or gets overwritten with room_caption.
I try my best to warn people about this; unfortunately it can hardly apply to either of you because you're on Linux. If it doesn't work in ENIGMA, and you think it should, be sure it works in GM. You are correct that it gets overwritten with room_caption, Ism. This is the behavior of GM, also. The function room_set_caption() is useful only when a script is looping for a long time and needs some way of outputting a percentage. There's no bug here, and no need for printf(); just use room_caption as people do in GM.
|
|
|
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
|
|
|
|
Josh @ Dreamland
|
|
Reply #48 Posted on: April 22, 2010, 05:22:13 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
The 11th plague of Egypt-- If you install MinGW right to C:\, both ENIGMA and Code::Blocks should detect it. If Code::Blocks doesn't detect it, just reinstall it (Code::Blocks). If it still doesn't detect it, feel free to give up. ENIGMA will be done soon enough.
I don't really "need" new testers, as it seems most of what will break has broken on the three platforms I now have access to, but a "yeah, it works!" is always nice to hear.
|
|
|
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
|
|
|
|
The 11th plague of Egypt
|
|
Reply #50 Posted on: April 23, 2010, 08:15:24 am |
|
|
Joined: Dec 2009
Posts: 274
|
The 11th plague of Egypt-- If you install MinGW right to C:\, both ENIGMA and Code::Blocks should detect it. If Code::Blocks doesn't detect it, just reinstall it (Code::Blocks). If it still doesn't detect it, feel free to give up. ENIGMA will be done soon enough.
I don't really "need" new testers, as it seems most of what will break has broken on the three platforms I now have access to, but a "yeah, it works!" is always nice to hear.
Cool, it worked straight after I installed MinGW. Still I don't know what's wrong about Cygwin. Enigma compiled without giving any errors or warnings on my Windows 7 32 bits. LGM started and let me open the game, but the Run button is not responding, not even after I click Compile. BTW how do I start LGM again without rebuilding Enigma? Josh said to start it using the terminal, but I don't think he's referring to the Windows terminal. I see there is a terminal entitled C:\Windows\System32\java.exe running right now. Is that it?
|
|
« Last Edit: April 23, 2010, 08:20:38 am by The 11th plague of Egypt »
|
Logged
|
|
|
|
|
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #57 Posted on: April 23, 2010, 02:44:12 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
"I just clicked the Buid and Run button, Enigma compiled and LGM run." I "..."'d for a moment before I remembered I set it up to do that. XD "Found it, the bastard was named ENIGMAengine for some reasons. It works, but it's not fun. The dot doesn't move until I mouse over it, unlike the gm clown which kept movin." Didn't realize that constituted fun...
|
|
|
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
|
|
|
|
Josh @ Dreamland
|
|
Reply #59 Posted on: April 23, 2010, 03:39:09 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
I believe I did. Though it was a little after my time...
|
|
|
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
|
|
|
|