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

Announcements / Re: ENIGMA R4
« on: August 10, 2010, 01:55:51 PM »
EDIT: Updated packages (again).  Should work.

Announcements / Re: ENIGMA R4
« on: August 10, 2010, 01:28:01 PM »
Okay, I've finished the GNU/Linux packages.  Here are the current downloads, and if they could be added to the sourceforge page or something, it would be appreciated.  I'll work on RPMs later, but for now, these two should satisfy almost all (if not all) of the current users' needs:
Please refer to the more recent Windows/Linux releases topic:

Announcements / Re: ENIGMA R4
« on: August 10, 2010, 01:05:16 PM »
You mean 326.  And it's 327, now.

Announcements / Re: ENIGMA R4
« on: August 10, 2010, 07:17:57 AM »
Josh, I'll work on assembling a DEB/RPM right now.  I'll also throw in the pacman package just for the hell of it.

EDIT: unipkg is amazing.  I have the package ready, but I need the proper dependencies for Ubuntu/Debian and Fedora/SUSE.

If someone could check the equivalents of these for those systems, it would help:
libgl libx11 mesa zlib libvorbis libmpeg2 dumb gcc gcc-libs make jre

Also, if the system separates the binaries and development files, include both packages.  And if g++ is a separate package, include that too. >_>

General ENIGMA / Re: Someone should
« on: August 09, 2010, 08:51:06 PM »
*loads gun*

General ENIGMA / Someone should
« on: August 09, 2010, 08:21:44 PM »
Make icons for GM5-8 projects (plus an ENIGMA project in the case that it ever gets its own format) so that they can be used for type associations.

Preferably the way that Tango does it, with 16x16, 22x22 (with a 1px transparent border for 24x24), 32x32, and 48x48 (SVG) icons.

I dunno how to do it in Windows (I'm sure that someone here does), but I'll make the config for Linux.

Also, first person to take a the Windows .txt icon and smack a GM logo on it gets shot.

General ENIGMA / Re: collisions....
« on: August 09, 2010, 08:19:25 PM »
I was working on a basic set of shape classes for collisions in C++ but stopped working on them simply because I hate geometry.

Announcements / Re: Shortcuts
« on: August 09, 2010, 08:51:24 AM »
Another thing to mention, in C++0x:

Code: [Select]
int f(int x) { return x; }
double f(double x) { return x; }

This code wouldn't work:
Code: [Select]
variant x;
int y=f(x);
nor would this:
Code: [Select]
variant x;
int y=f((double)x);

Because it's ambiguous.  It won't choose the highest precision by default, because functions could be completely different depending on the type.  This is also in the regular C++ standard for GCC 4.5+, as I believe, which is why I had that ambiguous error in r208 or something like that.

General ENIGMA / ENIGMA Installer for Linux
« on: August 04, 2010, 03:52:06 PM »
Code: [Select]


svn co $_svntrunk

mkdir -p $startdir/pkg/opt/enigma

cp -r $startdir/$_svnmod/trunk -T $startdir/pkg/opt/enigma
cd $startdir/pkg/opt/enigma/CompilerSource

mkdir -p $startdir/pkg/usr/sbin
mkdir -p $startdir/pkg/usr/share/pixmaps
mkdir -p $startdir/pkg/usr/share/applications
mkdir -p $startdir/pkg/usr/share/mime/packages

mv $startdir/pkg/opt/enigma/enigma.svg $startdir/pkg/usr/share/pixmaps
mv $startdir/pkg/opt/enigma/enigma.desktop $startdir/pkg/usr/share/applications
mv $startdir/pkg/opt/enigma/enigma.xml $startdir/pkg/usr/share/mime/packages
mv $startdir/pkg/opt/enigma/enigma $startdir/pkg/usr/sbin

chmod -R 777 $startdir/pkg/opt/enigma
chmod 755 $startdir/pkg/usr/sbin/enigma
chmod 544 $startdir/pkg/usr/share/applications/enigma.desktop $startdir/pkg/usr/share/mime/packages/enigma.xml

make linux
rm -rf $(find $startdir/pkg | grep 'svn$')

rm -r $startdir/pkg/opt/enigma/CompilerSource/.eobjs

This is taken from a PKGBUILD that I made for Arch.  It can be applied to install ENIGMA on Ubuntu and other distros.  The original PKGBUILD can be found here.

To install this, run sudo cp pkg -T /.  Once this is done, run update-mime-database /usr/share/mime to update the MIME database.  In GNOME, run nautilus -q to make the changes take effect immediately, however, a safer way would be to log off and then back on.

This will add a link to ENIGMA (LGM, but it's called ENIGMA) in the applications menu as well as adding MIME association for Game Maker executables (identification even without an extension) and also the ability to run "enigma *file*" from a terminal to open LGM.

If anyone feels like making icons for GM projects, I'll add that as well.

Also, [tt] bbcodes are broken; fix them.

that's dumb

yeah, that

why can't ubuntu just call it dumb like it's supposed to be called

New dependencies:

libvorbis-dev, libmpg123-dev, libdumb-dev

or libvorbis, libmpeg, and dumb

Announcements / Re: Shortcuts
« on: July 30, 2010, 01:28:55 PM »

What about the C++0x for?
Code: [Select]
int array[5] = { 1, 2, 3, 4, 5 };
for (int& x : array)
  x *= 2;

You should probably use that syntax primarily for var considering how it's planned to be an actual element of C++ eventually.

Issues Help Desk / Re: screw angle()
« on: July 25, 2010, 05:19:21 PM »
Yeah, and here's how I fixed it:
Code: [Select]
fmod(value,fabs(max-min))+(value<0 ? std::max(min,max) : std::min(min,max))
It seems to work.

Issues Help Desk / Re: screw angle()
« on: July 25, 2010, 07:42:55 AM »
It fits a number within a range.

makerange(-45,0,360) should return 315, but it doesn't.

Also, I've fixed this:
Code: [Select]
inline double makerange(double value, double min, double max) { return fmod(value,abs(max-min))+(value<0 ? std::max(min,max) : std::min(min,max)); }