Pages: « 1 2 3
  Print  
Author Topic: Why does it look like nothing's happening?  (Read 11357 times)
Offline (Male) Josh @ Dreamland
Reply #30 Posted on: March 09, 2012, 10:33:39 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
Let's have LGM download itself.

Wait...
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
Offline (Male) cheeseboy
Reply #31 Posted on: March 09, 2012, 11:01:24 AM

Member
Location: The internet
Joined: Mar 2011
Posts: 106

View Profile
Well binaries are no longer a problem. For windows I also think I will be able to compile the ENIGMA.exe, and the .dll. LGM can be downloaded from Ism who should put links to newest LGM available (the link on the wiki seems good for that).

Now the problem is that ENIGMA doesn't actually work. Not because of binaries but because of everything else. Someone should fix that.
I did. if you would just download that 7zip ...
Logged
Offline (Female) IsmAvatar
Reply #32 Posted on: March 09, 2012, 11:32:53 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Your 7zip extracts to 600 MB...
Logged
Offline (Female) IsmAvatar
Reply #33 Posted on: March 10, 2012, 02:37:57 AM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Hey Harri, we might be able to get more people on Windows to try and hack something together if we collaborate on what we've been able to get so far.

If you would, update this wiki page http://enigma-dev.org/docs/Wiki/Install:Git:Windows with what you've done so far. I populated it with the furthest I was able to get.
Logged
Offline (Male) cheeseboy
Reply #34 Posted on: March 10, 2012, 12:07:55 PM

Member
Location: The internet
Joined: Mar 2011
Posts: 106

View Profile
Your 7zip extracts to 600 MB...
mingw is like 500mb msys is like 50mb
Logged
Offline (Unknown gender) TheExDeus
Reply #35 Posted on: March 10, 2012, 07:52:02 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Your 7zip extracts to 600 MB...
mingw is like 500mb msys is like 50mb
I only need the ENIGMA. Your GIT branch shows that you made like 20 line changes, I don't think that would require 600mb of crap. Just share the changed files or something.
Logged
Offline (Male) Josh @ Dreamland
Reply #36 Posted on: March 10, 2012, 08:21:42 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
Why would he need to share the changed files? Just merge them in locally if you want to try them.
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
Offline (Male) ugriffin
Reply #37 Posted on: March 11, 2012, 09:42:42 AM

Member
Location: London, United Kingdom
Joined: Dec 2010
Posts: 23

View Profile WWW Email
I agree with some of the comments in this forum. While GM's LLVM 'compiler' may be light years away, the truth is that they've got their multiplatform C++ runner out now, while ENIGMA has nothing. By the time YoYo has LLVM, if you guys don't at least have something, ENIGMA will have nothing.

The truth is that until we can make ENIGMA usable to make & distribute games, we can't expect more people to join the project, as there's no 'excitement factor' (and all the times I've even tried to use ENIGMA on my Mac something goes wrong anyways).

Another truth is that ENIGMA has the power to simply destroy YoYo's business model, once all the C++ extensibility you're talking about is ready. You'd probably get a good amount of downloads from the Cocos2D community and similar open source engines, as well as prolly half of the GM community would migrate to ENIGMA. Professionals looking for a new development tool? They'd ideally choose something FOSS: right now that option is Cocos2D. As a programmer working professionally in game development, I use Cocos2D as my game engine, partly because GM:Studio isn't finished, and because I know Cocos2D-iPhone (and its sibling Cocos2D-X) is free and extremely powerful. ENIGMA could be the 'alternative' to Cocos: FOSS but easier to use.

So I think we should have *something* out to increase interest in the project, and then move on to new features. Recreate GM61 and then move on from there.

My 2 cents. :)
Logged
Offline (Male) RetroX
Reply #38 Posted on: March 11, 2012, 11:32:08 AM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
We're pretty much all in agreement with regards to the jars. I'm not sure about wgetting them from the makefile though - it's not that simple. The jars update occasionally - maybe once every 5-10 revisions. This means that we might not want to fetch them every time the user invokes make, because that would add an additional download time that usually just results in the same jars. We obviously don't want to do it as a 1-time thing because sometimes the updates are critical. We'd probably want some sort of intermediary to determine if the jars should be updated. Fetch some small information that determines the latest version, and compares it to the user's current version.
Code: [Select]
wget lgm.md5
if md5sum -c --quiet lgm.md5; then
  wget lgm*.jar
fi
For the Linux version, anyway. The Linux version should be managed via the makefile, whereas the Windows version of LGM should just update itself.
(windows/linux "version" meaning when used on said platforms)
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #39 Posted on: March 11, 2012, 12:07:49 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
That's dumb, too. :P Why would we have LGM be responsible for it on Windows but not on Linux? You need elevated privileges either way, because people keep installing ENIGMA in the Program Files on Win 7 (at which point nothing works so they show up on the IRC).

I don't know that LGM's actually going to be capable of updating anything. We'll probably have to maintain installers and patches for each platform, and have enigma.jar invoke the correct installation system on them (the installer on Windows, the package manager on Linux, Steve Jobs on Mac).
« Last Edit: March 11, 2012, 12:18:35 PM by Josh @ Dreamland » 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
Offline (Male) cheeseboy
Reply #40 Posted on: March 11, 2012, 01:05:19 PM

Member
Location: The internet
Joined: Mar 2011
Posts: 106

View Profile
Your 7zip extracts to 600 MB...
mingw is like 500mb msys is like 50mb
I only need the ENIGMA. Your GIT branch shows that you made like 20 line changes, I don't think that would require 600mb of crap. Just share the changed files or something.

You need all the libs I built. Otherwise the links will fail. The files have to be organized in certain way to work. It isn't as simple as uploading a few changes to git.
Logged
Offline (Female) IsmAvatar
Reply #41 Posted on: March 11, 2012, 10:10:16 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Ok. I'll make sure to host an lgm.md5 next to lgm16b4.jar. Likewise, you should also find an enigma.md5. We could probably also combine the two, but I'm not a very fast shell scripter. Here's what I've got so far for producing a release:
Code: (Bash) [Select]
$ cat release.sh
#!/bin/sh
cp ws-git/LateralGM/lgm16b4.jar Dropbox/Public/enigma-dep/lgm16b4.jar
#should probably make it so `release.sh e` does enigma.jar only.
cp enigma-dev/plugins/enigma.jar Dropbox/Public/enigma-dev/enigma.jar
cd Dropbox/Public/enigma-dep
md5sum lgm16b4.jar > lgm.md5
md5sum enigma.jar > enigma.md5

Edit: And here's one I made after I learned some basic SH scripting
Code: (Bash) [Select]
#!/bin/sh
DB=~/Dropbox/Public/enigma-dep

rel_l()
{
  cp ws-git/LateralGM/lgm16b4.jar $DB/lgm16b4.jar
  cd $DB
  md5sum lgm16b4.jar > lgm.md5
  cd -
}
rel_e()
{
  cp enigma-dev/plugins/enigma.jar $DB/enigma.jar
  cd $DB
  md5sum enigma.jar > enigma.md5
  cd -
}

if [ "$#" -gt "0" ]; then
 echo $1 | grep l > /dev/null 2>&1
 if [ $? = 0 ]; then
  rel_l
 fi
 echo $1 | grep e > /dev/null 2>&1
 if [ $? = 0 ]; then
  rel_e
 fi
fi

Kind of annoying that md5sum also outputs the directory, otherwise I could probably simplify it a lot.
« Last Edit: March 27, 2012, 07:16:51 PM by IsmAvatar » Logged
Offline (Female) IsmAvatar
Reply #42 Posted on: March 27, 2012, 07:16:21 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I just wanted to share that the checksums have now been combined into one file:
http://dl.dropbox.com/u/9975312/enigma-dep/update.md5

Apparently you can just chain the binaries onto the end of md5sum and it outputs a newline for each, and then -c will check all lines. It still has the nuisance of outputting the relative path, but I worked around that by just CD'ing first.

Here's the new release.sh

Code: (Bash) [Select]
#!/bin/sh
DB=~/Dropbox/Public/enigma-dep
WORK=~/enigma-dev

if [ "$#" -gt "0" ]; then
 echo $1 | grep l > /dev/null 2>&1
 if [ $? = 0 ]; then
  cp ws-git/LateralGM/lgm16b4.jar $WORK/lgm16b4.jar
  cp ws-git/LateralGM/lgm16b4.jar $DB/lgm16b4.jar
  echo lgm16b4.jar
 fi
 echo $1 | grep e > /dev/null 2>&1
 if [ $? = 0 ]; then
  cp enigma-dev/pluginsource/enigma.jar $WORK/plugins/enigma.jar
  cp enigma-dev/pluginsource/enigma.jar $DB/enigma.jar
  echo enigma.jar
 fi
fi

cd $WORK
md5sum lgm16b4.jar plugins/enigma.jar plugins/shared/jna.jar > $DB/update.md5

I worked around the problem of including the directories to the binaries by copying them to my working copy and then md5summing the binaries in there.

Anyways, at this point, all that's really left is the updater code. Just toying with the code, it would probably look something like this:
Code: (Bash) [Select]
#!/bin/sh
url=http://dl.dropbox.com/u/9975312/enigma-dep
curl -silent $url/update.md5 | md5sum -c --quiet 2> /dev/null
# Next, trim the ": FAILED" from each line
# For each line:
#curl -O $url/$line (might need to do some splicing to not include the relative paths in the url)


Edit:
After some discussion on the IRC between TGMG (mac), bobtheblueberry (oddly), and myself (ubuntu), we've found some tools that we have in common that we might use to develop an update script.

  • md5 - Mac only.
  • md5sum - Ubuntu only.
  • openssl md5 - Both.
  • grep - Both.
  • wget - Linux only.
  • curl - Both.


Here's an example of openssl md5:
Code: [Select]
$ openssl md5 lgm16b4.jar plugins/enigma.jar
MD5(lgm16b4.jar)= febec82e1498ebfab21751764e2e16d3
MD5(plugins/enigma.jar)= b5f6de84285a0795ad74f03c32bccafd
« Last Edit: March 31, 2012, 04:55:01 PM by IsmAvatar » Logged
Pages: « 1 2 3
  Print