Lemon Pie
 Joined: Mar 2012
Posts: 9
|
 |
Posted on: January 30, 2013, 08:52:07 PM |
|
|
Ever since I updated Java to the newest iteration (which, I'm pretty sure, fixed the massive security issues) I've been getting this error when I attempt to start ENIGMA; Checking configuration Scouring for Java java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing) Calling `java -jar l*.jar`
Error: Unable to access jarfile l*.jar Press any key to continue . . .
LateralGM starts up fine when if I execute the JAR directly. I've tried moving ENIGMA to the root & redownloading & such, but it still pops up with this error. System Specs; http://pastebin.com/2Prz7csa
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #1 Posted on: January 30, 2013, 09:06:34 PM |
|
|
|
It's a Java issue. I've been hearing about it a lot, recently, and I wish people would start directing these posts to Oracle so they'd fix it. Basically, someone decided that wildcards in Java filenames was a bad idea, and so they randomly and unceremoniously dropped support for it.
I'm sure if I said that to the wrong person, I'd get a lecture about how this has been the plan since dinosaurs roamed the earth, because * is terrible practice and isn't anything like how the filesystem actually works, and causes security holes from ninjas who pretend to be the file you're trying to execute... but in the meantime, I'm going to be pissed that they broke it.
Also in the meantime, I'll see about rebuilding ENIGMA.exe for Windows to run it with the full filename.
|
|
|
IsmAvatar
LateralGM Developer
 Joined: Apr 2008
Posts: 877
|
 |
Reply #2 Posted on: February 01, 2013, 10:58:30 PM |
|
|
|
On the other hand, I've always preferred LGM be called directly by name rather than by wildcard, but alas, butting heads with the writer of ENIGMA.exe, I won't win unless I write it myself.
Anyway, thanks for letting us know. We should have it fixed sometime soon. In the meantime, running LGM directly is a valid solution, provided you have already run ENIGMA.exe successfully once in the past.
|
|
|
Lemon Pie
 Joined: Mar 2012
Posts: 9
|
 |
Reply #3 Posted on: February 02, 2013, 04:12:05 AM |
|
|
Quote from: IsmAvatar on February 01, 2013, 10:58:30 PM On the other hand, I've always preferred LGM be called directly by name rather than by wildcard, but alas, butting heads with the writer of ENIGMA.exe, I won't win unless I write it myself.
Anyway, thanks for letting us know. We should have it fixed sometime soon. In the meantime, running LGM directly is a valid solution, provided you have already run ENIGMA.exe successfully once in the past.
Glad I could help.
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #4 Posted on: February 07, 2013, 07:23:58 PM |
|
|
|
I've committed a fix to ENIGMA.exe. I am getting sick of this patch-maintenance bullshit; this is something this server ought to be doing for us. Or, if we must, EnigmaBot's server. Point is, compiling ENIGMA.exe is trivial, albeit not something Linux ought to do. Downloading a zip file from GitGub and packing in some files? That's trivial and something the server ought to be doing.
Anyone want to volunteer to write a PHP script to (optionally) compile ENIGMA.exe, download the repository from GitHub, and pack in the Additional files?
Would be great if it could generate deb/rpm packages, too.
|
|
|
daz
 Joined: Jul 2010
Posts: 167
|
 |
Reply #5 Posted on: February 08, 2013, 12:24:59 AM |
|
|
If your server has curl + the php module, I'd be up for writing a script for the Windows bits. A couple of things though
- This would be difficult to test without having server access. Not having linux or a cross compiling chain setup for that matter, there's only so much I could do. You could probably edit the script though
- I don't know how to call the cross compiler. If you give me the full command to do that, great.
- This bitch is gonna time out. You'd have to call the script from the CLI I'd guess, or pick a new language, hell you could set php's timeout to 8 years if you really wanted.
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #6 Posted on: February 08, 2013, 01:49:32 AM |
|
|
|
It takes about .25 seconds to compile ENIGMA.exe. The download should not take that long (ENIGMA is less than 2MB), but in the event that it does, I suppose we can schedule it as a cron job and just offer the zips as they become available.
|
|
|
Lemon Pie
 Joined: Mar 2012
Posts: 9
|
 |
Reply #7 Posted on: February 08, 2013, 07:18:45 AM |
|
|
Quote from: Josh @ Dreamland on February 07, 2013, 07:23:58 PM Point is, compiling ENIGMA.exe is trivial, albeit not something Linux ought to do. Downloading a zip file from GitGub and packing in some files? That's trivial and something the server ought to be doing.
Excuse my newbiness but how exactly does one compile ENIGMA for Windows? I've been trying with Code::Blocks for the past few days to no avail... The search bar held no helpfulness on the matter... Of course I could just be an idiot.
|
|
|
Josh @ Dreamland
Prince of all Goldfish
 Joined: Feb 2008
Posts: 2,950
|
 |
Reply #8 Posted on: February 08, 2013, 08:02:32 AM |
|
|
|
The compiler project is in CompilerSource. You're best letting LGM compile it, though. ENIGMA.exe is in CompilerSource/stupidity-buffer. This is the shiny thing that runs LGM (but since broke). The engine project is in ENIGMAsystem/SHELL. Compiling this with C::B will do you no good.
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #9 Posted on: February 08, 2013, 06:30:21 PM |
|
|
|
I was able to do that. I ran C::B, at top chose Release and Compile (also set toolchain in options) and it worked. I don't remember what exactly I compiled, but I did compile something. But I haven't done this in about a year now.
|
|
|
|