Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - RetroX

General ENIGMA / Builds, Packages, Releases, etc.
« on: November 03, 2010, 08:44:37 PM »
The contents/links of this page may be outdated. We have instead starting hosting our installation links and directions on the wiki:


Note that ENIGMA is still in the beta stage and that not all systems are finished.  This is not a topic to ask for things to be finished, nor is it for commenting on releases.  It's merely a place to keep the releases in a nice place.  All of the releases below are of the latest SVN revision, or close to it.


The latest windows version can be found here.  Run ENIGMA.exe to install and run ENIGMA.

Mac OS X, iPhone, Android

These platforms don't currently have builds.  You can try them out from the SVN.  You can either use this command:
Code: [Select]
svn co enigma-devOr, alternatively, you can use another SVN client with as a server.


Currently, the only packages that have been built are for Ubuntu and Arch Linux.  I'll eventually create one for Fedora, but for now, it's just those two.


Note: If you get a file conflict error, try removing the old package before installing the new one.
To install ENIGMA, you need to add the ENIGMA repo to your list of repositories.  To do this, navigate to System > Administration > Software Sources.  You might have to edit the menu for it to show up; right click the menu and choose "edit menu" to do this.

There, navigate to the Other Software tab and add a repository with the following code:
Code: [Select]
deb natty main
Now, this should create two repositories - one for binaries and one for source; delete the source version, because it does not exist, and will create an error.

Note that I've labeled it as natty, but it will work for any version of Ubuntu.  If you're still on the maverick version, it'll give you a 404 error.

If Ubuntu doesn't ask you to automatically update the package database, go to a terminal and run:
Code: [Select]
sudo apt-get update
Then, you can install ENIGMA (enigma-dev-svn) via the software center, synaptic, or command-line with the following command:
Code: [Select]
sudo apt-get install enigma-dev-svn
If it asks to install even if the package isn't authenticated, say yes.

Arch Linux

To add the repository in Arch Linux, add the following to /etc/pacman.conf:
Code: [Select]
Server =$arch

And run the following to update the database:
Code: [Select]
sudo pacman -Sy
ENIGMA can be installed via command-line with:
Code: [Select]
sudo pacman -S enigma-dev-svn
Running ENIGMA

To launch ENIGMA, you can either run "enigma-dev" or "lateralgm" in a terminal or use the launcher in the Applications > Programming menu.  Note that launching ENIGMA from the menu will create a terminal to display the output of LGM and the compiler.  LGM will be associated with Game Maker files even if they don't have a file extension.

For people that want the package source, you can get it here:

I'm going to be running the build script every once in a while, so, don't expect a version for every commit.  I also am not keeping old packages/releases for the sake of web space.  If I do happen to forget to make a new package/release, let me know on the IRC or something.

Function Peer Review / Re: action_move
« on: November 03, 2010, 04:55:52 PM »

In that case, never mind.

Function Peer Review / Re: action_move
« on: November 03, 2010, 03:57:55 PM »
Instead of using a string of 9 bytes, why not just use unsigned char with flags?

Code: [Select]
const unsigned char e  = 1;
const unsigned char ne = 2;
const unsigned char n  = 4;
const unsigned char nw = 8;
const unsigned char w  = 16;
const unsigned char sw = 32;
const unsigned char s  = 64;
const unsigned char se = 128;

General ENIGMA / Re: DnD Functions
« on: November 03, 2010, 03:28:09 PM »
variant::operator bool() { return dval > .5; }
Shouldn't that be >=?

General ENIGMA / Re: DnD Functions
« on: November 01, 2010, 03:55:46 PM »
That works.  I personally didn't know how LGM handled it, and assumed that action_if() was just used as an if macro.

General ENIGMA / DnD Functions
« on: October 30, 2010, 04:13:21 PM »
Not like anyone here uses DnD, but they might as well be done. :P

#define action_if(x) if(x)
#define action_while(x) while(x)


Function Peer Review / Re: GML: All draw_text functions (WIP)
« on: October 30, 2010, 09:21:35 AM »
Ou, so we don't need to add that for every draw text function? :D Nice. :)
I'd assume that a better way to do it would be to name them as draw_test_pound and draw_text_newline or something like that and let the parser pick one.

Function Peer Review / Re: GML: All draw_text functions (WIP)
« on: October 30, 2010, 09:20:42 AM »
1) It is \r\n
2) The \r is optional in everything not strictly Microsoft (IE, not Notepad).
Okay, it is \r\n. :V

Function Peer Review / Re: GML: All draw_text functions (WIP)
« on: October 29, 2010, 06:36:12 PM »
Right.  I'll let you work on that.

Why does \r\n have to be used?  That's not even a correct escape for Windows; it's \n\r.  Why not just use \n?

Function Peer Review / Re: GML: All draw_text functions (WIP)
« on: October 29, 2010, 06:26:48 PM »
Eh, I messed up.
Code: [Select]
for (size_t i = 0; i < str.size(); i++)
  if (str[i] == '#')
    if (i > 0 || str[i-1] == '\\')

Function Peer Review / Re: GML: All draw_text functions (WIP)
« on: October 29, 2010, 04:27:09 PM »
It's even simpler than that.

Code: [Select]
for (size_t i = 0; i < str.size(); i++)
  if (str[i] == '#' && (i == 0 || str[i-1] != '\\'))

Also, it's C++0x, not C++x0.  The standard C library supports regex, and I think that it would be a good idea to implement it into ENIGMA.

Function Peer Review / Re: move_towards_point + move_snap
« on: October 25, 2010, 07:33:36 PM »
You also have to realise how macros are not functions and that they result in terribly awkward syntax errors when not done correctly.

Function Peer Review / Re: move_towards_point + move_snap
« on: October 25, 2010, 06:21:11 PM »
Why not use an inline function? :/

Issues Help Desk / Re: Can't compile anymore? Whats up with that?
« on: October 24, 2010, 08:36:09 PM »
I have never had luck using the MinGW that comes with Code::Blocks. I have no idea why. It doesn't seem much older than the one that comes with ENIGMA...
It's 3.4.5 instead of 4.5.1.

It's really old.

General ENIGMA / Re: TGMG - A word...
« on: October 24, 2010, 08:30:47 PM »
Can't you guys just run some kind of automated script to replace tabs with spaces? Perhaps some SVN plugin?
expand -t 2 file