Knuckle Cracker

Knuckle Cracker => Support => Topic started by: cclloyd9785 on August 02, 2011, 07:54:57 PM

Title: Linux version
Post by: cclloyd9785 on August 02, 2011, 07:54:57 PM
Is there going to be any development for a Linux version?  I got it working using wine, but not perfectly by far, and since it emulates a gpu it does lag usually.

If anything, it doesn't even have to be like normal programs and can be like Chrome, where it is put in the /opt directory instead, and requires a lot less messing with Linux directories and such.
Title: Re: Linux version
Post by: Grauniad on August 03, 2011, 08:52:17 AM
You should ask the question of Adobe. When they release AIR for Linux, then CW will run on it. :)
Title: Re: Linux version
Post by: Ebon Heart on August 03, 2011, 10:09:39 AM
I think there's a topic about this here. http://knucklecracker.com/forums/index.php?topic=6877.0
Title: Re: Linux version
Post by: cclloyd9785 on August 03, 2011, 04:09:02 PM
There already is Air for Linux.  I have it on my Ubuntu right now...
Title: Re: Linux version
Post by: knucracker on August 03, 2011, 04:25:58 PM
Future versions of AIR on linux may not happen (at least not from Adobe).
http://blogs.adobe.com/open/2011/06/focusing-on-the-next-linux-client.html
Title: Re: Linux version
Post by: MadMag on August 03, 2011, 04:51:32 PM
CW3 = html5 or Frostbite 4 :)
Title: Re: Linux version
Post by: Grauniad on August 03, 2011, 05:38:28 PM
Quote from: cclloyd9785 on August 03, 2011, 04:09:02 PM
There already is Air for Linux.  I have it on my Ubuntu right now...

Then I'm not sure I understand what you are asking for. there is no apecific version of CW for Windows or Mac, simply a version for AIR, yet you ask for a specific version for Linux? or what am I missing? 

I do understand that in many environments, the open source drivers (for instance) for graphics cards perform worse than the manufacturer versions for Windows. Is this the problem that you are experiencing?
Title: Re: Linux version
Post by: MadMag on August 03, 2011, 06:32:26 PM
As it is now it is working for Linux, no problem there.
Title: AIR for Linux is DEAD
Post by: offsides on August 23, 2011, 01:32:32 PM
As of the 2.7 release of Adobe AIR, all Linux support has been dropped.  This means that the most recent CW2 patch, which (at least as shipped) requires AIR 2.7, breaks for Linux users.  I have attempted to run it using AIR 2.6 on Linux after editing the application.xml file to use that version, but that gives "error while loading initial content" and dies.  As a result, if I update the latest version of CW2, I can no longer play it on my normal desktop (I use Linux almost exclusively, and the things I do that aren't on Linux are grudging).

I don't know if AIR for Windows will work properly under wine - that's my next thing to investigate, but unless CW2 can be rebuilt to run using AIR2.6, it looks like native Linux CW2 is no longer an option :(
Title: Re: Linux version
Post by: knucracker on August 23, 2011, 02:15:46 PM
Yeah, I had to move to the latest AIR to get the latest webkit browser for the custom maps.  And as you have noted, Adobe has dropped support for Linux.  In theory, it should work under Wine....
Title: Re: Linux version
Post by: Echo51 on August 23, 2011, 04:22:00 PM
Is the latest webkit browser actually required by you virgil? surely you aren't making a robust webbrowser, but the sites it visit are already decided upon, so shouldn't be that hard to suit it to use the older webkit, or am i wrong? :)
Title: Re: Linux version
Post by: knucracker on August 23, 2011, 04:31:47 PM
You'd think.... but older versions of AIR with the slightly older webkit browser don't let me intercept link clicks and handle them manually (like when you click a download link on a custom map).
Title: Re: Linux version
Post by: jkljkljkljkl on August 24, 2011, 12:37:17 PM
Quote from: virgilw on August 23, 2011, 04:31:47 PM
You'd think.... but older versions of AIR with the slightly older webkit browser don't let me intercept link clicks and handle them manually (like when you click a download link on a custom map).

This is an immense shame (for me) as I do not have any Windows machines. Since there is no official Linux version of CW2, there are unlikely to be any usage stats. Would you consider running a poll to count the number of Linux users to see if we are a large enough fraction of your customer base to make writing a workaround worthwhile?

I'd be happy with copying the map files to a suitable directory and restarting CW2. In fact, I already did that with the hacked up custom map which was posted a while ago...

I've greatly enjoyed CW1 and 2 and I've been looking forward to custom maps for a while.
Title: Re: Linux version
Post by: Grauniad on August 24, 2011, 01:33:08 PM
Have you tried running under WINE? That would be the first step.
Title: Re: Linux version
Post by: offsides on August 24, 2011, 03:15:13 PM
Base CW2 install ran fine under WINE (technically Crossover 10 Professional).  However, if I try to upgrade to the 307 patch, the AIR updated tells me something is corrupted and the whole thing is borked (and won't even try to run again).  The only way to even get CW2 reinstalled was to manually purge all traces of it and start over...

This is really disappointing, especially since Adobe fully supports AIR for Android, which is just Linux running on a different hardware achitecture...
Title: Re: Linux version
Post by: Karsten75 on August 24, 2011, 03:28:05 PM
You guys should go moan at Adobe. Virgil is not in a position to help with this. It speaks to the market-/mind-share of Linux after nearly 20 years of development. Great for servers, not so great for consumer desktops.

Title: Re: Linux version
Post by: knucracker on August 24, 2011, 03:33:31 PM
Here are Adobe's reasons:
(From http://kb2.adobe.com/cps/408/kb408084.html )

"Why did Adobe decide to discontinue further support for Adobe AIR for desktop Linux®?

As the market shifts to mobile devices, Adobe is investing in bringing its runtime technologies to new hardware and operating systems. Adobe is increasingly investing in mobile authoring. The recent Creative Suite 5.5 release is focused on enabling customers to deliver their experiences across devices using Adobe's technologies. Adobe has responded to the changing market trends by providing AIR support for a growing number of platforms. These platforms include Android, iOS and BlackBerry Tablet OS, televisions, and set-top boxes. Lifetime AIR for Linux desktop downloads represent less than 0.5% of total AIR desktop downloads, which number over 450 million. Therefore, Adobe has decided to change the distribution model for Linux and direct these resources toward its mobile efforts. Adobe's efforts are focused on supporting operating systems that are most important to its customers, and that demonstrate the greatest opportunity for future growth for its partners and developers. Adobe continues to provide partners the opportunity to license source code through the Open Screen Project. You can download AIR 2.6, the last version to support Linux, at the archive build page.

Adobe no longer supports the full AIR developer SDK for desktop Linux implementations. And, the AIR Debug Launcher (ADL) is no longer supported in the SDK."
Title: Re: Linux version
Post by: jkljkljkljkl on August 24, 2011, 03:52:32 PM
Quote from: Grauniad on August 24, 2011, 01:33:08 PM
Have you tried running under WINE? That would be the first step.

I have now tried.  I downloaded and installed the latest version of Adobe Air (version 2.7.1) and it installed.

After several hours and an immense amount of fiddling and trying variations, I eventually got it to install. The only way it works is to simply blow away .wine, reinstall adobe air then install the 0307 "patch" directly. If it has seen CW2 before, then the patch won't install.

It seems to run, but the kicker is that the "find maps online" feature doesn't work.  :(



Title: Re: Linux version
Post by: knucracker on August 24, 2011, 04:12:47 PM
Out of curiosity, what does the "find maps online" do?
Title: Re: Linux version
Post by: jkljkljkljkl on August 24, 2011, 04:48:18 PM
Quote from: offsides on August 24, 2011, 03:15:13 PM
Base CW2 install ran fine under WINE (technically Crossover 10 Professional).  However, if I try to upgrade to the 307 patch, the AIR updated tells me something is corrupted and the whole thing is borked (and won't even try to run again).  The only way to even get CW2 reinstalled was to manually purge all traces of it and start over...

This is really disappointing, especially since Adobe fully supports AIR for Android, which is just Linux running on a different hardware achitecture...

This worked for me:

erase .wine, destroying everything installed under wine

Install adobe air.

then execute cw2PATCH-0307.air

If you have already installed another version of CW2, then the patch won't install.

Title: Re: Linux version
Post by: jkljkljkljkl on August 24, 2011, 04:51:10 PM
Quote from: Karsten75 on August 24, 2011, 03:28:05 PM
You guys should go moan at Adobe. Virgil is not in a position to help with this. It speaks to the market-/mind-share of Linux after nearly 20 years of development. Great for servers, not so great for consumer desktops.

Well, Adobe won't listen. Virgil will at least find out if Linux users are a significant enough portion of his customers to worry about. If not then bad for us, but OK for Virgil.
Title: Re: Linux version
Post by: jkljkljkljkl on August 24, 2011, 04:52:17 PM
Quote from: virgilw on August 24, 2011, 04:12:47 PM
Out of curiosity, what does the "find maps online" do?

A large white box appears in the widget area below the buttons. It looks like a widget of some sort has popped up, then failed to execute.
Title: Re: Linux version
Post by: jkljkljkljkl on August 25, 2011, 07:09:29 AM
Quote from: virgilw on August 24, 2011, 04:12:47 PM
Out of curiosity, what does the "find maps online" do?

Also, there are several more bugs (probably wine specific).

CW2 doesn't remember which maps have been played, so the list of maps and times is always empty.

If you have quick-saved a custom map, then restart jumps to the quicksave point.
Title: Re: Linux version
Post by: Grauniad on August 25, 2011, 09:39:14 AM
Quote from: jkljkljkljkl on August 25, 2011, 07:09:29 AM
Quote from: virgilw on August 24, 2011, 04:12:47 PM
Out of curiosity, what does the "find maps online" do?

Also, there are several more bugs (probably wine specific).

CW2 doesn't remember which maps have been played, so the list of maps and times is always empty.

If you have quick-saved a custom map, then restart jumps to the quicksave point.

Strange. This was the behavior of Restart at one point in the game development. Are you sure you're running a latest version?
Title: Re: Linux version
Post by: jkljkljkljkl on August 25, 2011, 06:16:42 PM
Quote from: Grauniad on August 25, 2011, 09:39:14 AM
Quote from: jkljkljkljkl on August 25, 2011, 07:09:29 AM
Quote from: virgilw on August 24, 2011, 04:12:47 PM
Out of curiosity, what does the "find maps online" do?

Also, there are several more bugs (probably wine specific).

CW2 doesn't remember which maps have been played, so the list of maps and times is always empty.

If you have quick-saved a custom map, then restart jumps to the quicksave point.

Strange. This was the behavior of Restart at one point in the game development. Are you sure you're running a latest version?

Certainly - the custom maps button works. Having investigated it further, it bugs out when there are no games saved in the main slots, and doesn't seem to when some (not investigated fully) games have been saved.



Title: Re: Linux version
Post by: krazykit on September 04, 2011, 09:25:25 PM
Seems a shame that the new update isn't compatible :/. I was looking forward to custom maps.
Title: Re: Linux version
Post by: Grauniad on September 04, 2011, 09:43:39 PM
Try Wine?
Title: Re: Linux version
Post by: krazykit on September 04, 2011, 11:53:59 PM
I did, but I can't get the game to install at all. Air gives the utterly useless message "Something went wrong trying to install this application. Please install the latest version of Adober AIR from ... and then try again.", which won't really help anything, as this is a fresh .wine directory and the latest version of AIR.

I'd hate to have to go back to running a VM for creeper world :/
Title: Re: Linux version
Post by: Grauniad on September 05, 2011, 12:10:33 AM
Try getting the actual AIR install from the Adobe site.

Then extract the CW2 .AIR package from the .exe file you download and see if that will install...  Just an idea, not sure it will help any.
Title: Re: Linux version
Post by: krazykit on September 05, 2011, 12:53:27 AM
That's exactly what I did. I get the same error using either the first installer or the patch.

wine airappinstaller.exe /path/to/cw2.air
Title: Re: Linux version
Post by: jkljkljkljkl on September 08, 2011, 06:42:15 AM
Quote from: krazykit on September 05, 2011, 12:53:27 AM
That's exactly what I did. I get the same error using either the first installer or the patch.

wine airappinstaller.exe /path/to/cw2.air

I got it to install under Wine and it works, for moderate values of "works". I posted instructions earlier in the thread.

If there is _any_ trace of CW2, then the patch won't install. I found the easiest way was to blow away .wine (rm -r) and install from scratch. THIS WILL DESTROY ALL YOUR WINE DATA so don't do it if you already use wine.

You can play custom maps, but the interface is broken. The following things are bad:


You can also play most custom maps natively with the older version of CW2. Simply copy your .cw2 file to ~/.appdata/CreeperWorld2/slot0.cw2 and then load the first savegame slot. This mostly works, though some maps don't work properly. The space-invaders map, for instance completes instantly.


Quote from: Grauniad on September 04, 2011, 09:43:39 PM
Try Wine?

Grauniad, do you know if anyone has had more success under wine? Admittedly, my version is quite old, so the bugs may just be due to that.