Flight Sims: Linux Air Combat READY for Debian Repos

Programming languages, Coding, executables, and scripting.
Message
Author
rjbosen
Posts: 24
Joined: 2020-10-02 04:14

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#21 Post by rjbosen »

Steve:

I have the new version of LAC you've been expecting. It's version 8.47, available through my archive "Lac08p47.tar.gz" here:

https://sourceforge.net/projects/linuxa ... z/download

Here is the relevant portion of its "WhatsNew.txt" file:

Code: Select all

Changes in Lac08p47:

The "Makefile" was enhanced to eliminate an error message that was only seen if the operator issued the "make clean" command when there was no executable file to delete.

Default key mapping for "Fire Secondary Weapon" is now set to the "Alt" key immediately to the right of the spacebar.

If the "DefaultHeightMap.LAC" file is missing, the logic that tries to find a copy elsewhere in the filesystem has been made even more intelligent. Now, in addition to searching filesystem areas that have proven handy in the past, it also looks for a new folder at /etc/LAC, where Repository-oriented installation activities may have left a copy.
One other note: When compiling for the Raspberry Pi on the popular "Raspbian" version of LINUX, it is necessary to edit the "common.h" file to ensure that the following single line of code (located near the top of the file) is NOT commented out:

Code: Select all

// #define RASPBIAN // Raspberry Pi requires a few tweaks. Define RASPBIAN to activate them or comment this line out.
I think this new version of LAC meets all of the requirements you have described, but if other changes are needed, please let me know. I am most anxious to help.

-Bob-

rjbosen
Posts: 24
Joined: 2020-10-02 04:14

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#22 Post by rjbosen »

Steve:

I have learned of your struggles to get LAC to compile successfully on the latest version(s) of Ubuntu for X86 architectures. I haven't suffered with that but there is a discussion about it in one of our forums that you may find helpful. Look here:

https://sourceforge.net/p/linuxaircomba ... 271d3d0fc/

As you can see in that discussion, Daniel Barland had better success after he applied a couple of tiny "tweaks" to our Makefile. Perhaps one of those little adjustments may help you with your problem??? I hope this helps!

-Bob-

User avatar
stevepusser
Posts: 12408
Joined: 2009-10-06 05:53
Has thanked: 7 times
Been thanked: 5 times

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#23 Post by stevepusser »

I'll have time to work on LAC builds tomorrow (California time), so I hope the tweaks from the forum help!
MX Linux packager and developer

rjbosen
Posts: 24
Joined: 2020-10-02 04:14

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#24 Post by rjbosen »

Steve (and all),

Your work continues to inspire related progress. Somebody using the handle "alfrednewman" has created a repository entry for LAC V8.47 in the "Arch User Repository" (AUR), making LAC easily available for Arch Linux and Manjaro Linux. Because Version 8.47 automates an easy fix to the complexity you identified in loading the "DefaultHeightMap.LAC" file, I can confirm that we now have a complete solution for those platforms. Here's a link with further details:

https://sourceforge.net/p/linuxaircomba ... bef7b740d/

Here's a link about and with a YouTube PlayList showing easy success with that AUR repository:

https://sourceforge.net/p/linuxaircomba ... 66d74ce53/

-Bob-

rjbosen
Posts: 24
Joined: 2020-10-02 04:14

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#25 Post by rjbosen »

Steve:

I just confirmed that the LAC repository archive you created for Debian10 works splendidly. First I created a brand-new, "virgin" installation of Debian 10 with the light-weight "xfce" desktop, fully upgraded as of the current date (early June 2021), but without any additional applications. Then I fired up firefox and accessed your LAC repository work from here:

https://build.opensuse.org/package/show ... air-combat

After pressing the prominent "Download package" button, I selected "Download package and install manually". From there I went to the section labeled "For Debian 10 run the following:" That provided me with the text of the following little four-line script to run:

Code: Select all

echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser:/LAC/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser:LAC.list
curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser:LAC/Debian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_stevenpusser_LAC.gpg > /dev/null
sudo apt update
sudo apt install linux-air-combat
I decided to run that script just one line at a time, by simply "pasting" each line into a bash shell.

The "sudo" command in the first line gave me trouble because (from that "virgin" installation of debian) my username did not yet have any authority to run "sudo". I fixed that with the well-known "usermod" program from /sbin/usermod. Because my Debian username on that system is "bbosen", the root-level command I used to fix "sudo" was:

Code: Select all

/sbin/usermod -aG sudo, adm bbosen
After that command completed I had to log out and log back in again before I was able to complete that first line of the script.

The script's second line also failed, because (from that virgin installation of debian) the "curl" command had not yet been installed. I installed it with the following root-level command according to well-established norms:

Code: Select all

apt-get install curl
After that command completed I was able complete the second, third, and fourth line of that little 4-line script without further problems. The entire process required less than 5 minutes start to finish. All of the prerequisite compiling, linking, library, and resource tools were installed and configured automatically without any manual intervention. Easy peasy!

Your install script successfully creates a prominent link to "linux-air-combat" in Debian's main menu under "Games", with the appropriate graphic icon showing a little airplane, exactly as I had hoped. Clicking on that icon immediately starts lac, which performs thereafter exactly as documented.

THANKS for all of your work! None of the little complications were beyond "trivial" to overcome, and none would even be apparent to anybody that was exercising a robust copy of Debian that had already been exercised enough to activate "sudo" and "curl" as a consequence of normal, routine work.

Within the next few days I will create a YouTube Playlist showing the EXACT steps described above.

-Bob-

User avatar
stevepusser
Posts: 12408
Joined: 2009-10-06 05:53
Has thanked: 7 times
Been thanked: 5 times

Re: Flight Sims: Linux Air Combat READY for Debian Repos

#26 Post by stevepusser »

Thanks for the feedback. The "linux-air-combat" symlink to the actual versioned LAC binary (I think LAC0847, offhand, but don't quote me) is actually automatically created in a special "debian/links" file during the packaging, so that the linux-air-combat.desktop file that creates the menu entry doesn't need to change with every updated version, just some other files to install the actual binary.

I'll have to look at the AUR version to see if I can pick up any tips from their build procedure; at the end of the day, I'm still just a hobbyist packager and am always learning new things.
MX Linux packager and developer

Post Reply