Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenRA #1612

Closed
wants to merge 12 commits into from
Closed

OpenRA #1612

wants to merge 12 commits into from

Conversation

probonopd
Copy link
Member

@probonopd
Copy link
Member Author

probonopd commented Jun 1, 2019

Dune 2000 requires Mono 4.2 or greater and the cert-sync utility.
Please install Mono using your system package manager.

AppImages must come bundled with everything that cannot reasonably be expected to be "there" on each target system (distribution) in the default installation.

@fusion809
Copy link

fusion809 commented Jun 1, 2019

Yep, sadly the AppImages so far have been lacking Mono. Version 4.2 and later of Mono is pretty ubiquitous though, so it should be no big drama to get it on most distros. But, I am pleased to say, the next playtest and releases will have Mono bundled with them (thanks to OpenRA/OpenRA#16316), partly because they kind of have to as they're increasing the minimum Mono version required to 5.12.x (that PR I referenced included 5.10.x, but it was found that was insufficient, so a later PR bumped the included Mono to 5.20.x), which is absent from the repos of many of the more conservative distros.

@fusion809
Copy link

fusion809 commented Jun 1, 2019

I have my own fork that builds the Mono-inclusive AppImages from the latest commits: https://github.com/fusion809/OpenRA/releases, if you feel like testing them out. The only thing I've changed in my fork is the .travis.yml file (if you want to confirm this feel free to look at: OpenRA/OpenRA@bleed...fusion809:bleed), so I can get the packages/installers/AppImages built for the latest commits uploaded to the releases page.

@probonopd
Copy link
Member Author

This looks much better. But on my test machine there is no sound card (headless server). Hence getting

AL lib: alsa_open_playback: Could not open playback device 'default': No such file or directory
Renderer initialization failed. Check graphics.log for details.
Exception of type `System.InvalidOperationException`: Failed to initialize platform-integration library. Check graphics.log for details.
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x00156] in <ef93451137954f4d8f0e54cab002e841>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00006] in <ef93451137954f4d8f0e54cab002e841>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00044] in <ef93451137954f4d8f0e54cab002e841>:0 

So seems we are blocked by travis-ci/travis-ci#1754 as far as this test goes.

probonopd added a commit that referenced this pull request Jun 1, 2019
@probonopd
Copy link
Member Author

Any help appreciated on how to run this on a soundcard-less server.

@fusion809
Copy link

fusion809 commented Jun 1, 2019

OpenRA/OpenRA#12300 is the upstream issue relating to this problem, but no solution has been found for it.

@Mailaender Mailaender mentioned this pull request Mar 17, 2020
---
layout: app

permalink: /OpenRA_Red_Alert/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
permalink: /OpenRA_Red_Alert/
permalink: /OpenRA/

layout: app

permalink: /OpenRA_Red_Alert/
description: Reimagining of early Westwood Games
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Reimagining of early Westwood Games
description: Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert

- OpenRA_Red_Alert/screenshot.png

authors:
- name: OpenRA

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: OpenRA
- name: OpenRA developers

- type: GitHub
url: OpenRA/OpenRA
- type: Download
url: https://github.com/OpenRA/OpenRA/releases

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: https://github.com/OpenRA/OpenRA/releases
url: https://www.openra.net/download/


links:
- type: GitHub
url: OpenRA/OpenRA

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: OpenRA/OpenRA
url: https://github.com/OpenRA/OpenRA/releases

- name: OpenRA
url: https://github.com/OpenRA

links:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting a few more:

links:
  - type: Web
    url: https://www.openra.net
  - type: Chat
    url: irc://chat.freenode.net/openra
  - type: Build
    url: https://github.com/OpenRA/OpenRA/blob/bleed/INSTALL.md
  - type: Readme
    url: https://github.com/OpenRA/OpenRA/blob/bleed/README.md
  - type: License
    url: https://www.openra.net/license/
  - type: Authors
    url: https://github.com/OpenRA/OpenRA/blob/bleed/AUTHORS

data/OpenRA_Red_Alert Outdated Show resolved Hide resolved
[Desktop Entry]
Type=Application
Version=1.0
Name=OpenRA - Dune 2000

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that you auto-generated scripts pick the first in alphabetical order. You may want to change this to

Suggested change
Name=OpenRA - Dune 2000
Name=OpenRA - Red Alert

though. As it is the eponymous default mod.

GenericName=Real Time Strategy Game
GenericName[de]=Echtzeit-Strategiespiel
Comment=Reimagining of early Westwood Games
Icon=openra-d2k

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Icon=openra-d2k
Icon=openra-ra

GenericName[de]=Echtzeit-Strategiespiel
Comment=Reimagining of early Westwood Games
Icon=openra-d2k
Exec=openra-d2k %U

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Exec=openra-d2k %U
Exec=openra-ra %U

Exec=openra-d2k %U
Terminal=false
Categories=Game;StrategyGame;
MimeType=x-scheme-handler/openra-d2k-release-20190314;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MimeType=x-scheme-handler/openra-d2k-release-20190314;
MimeType=x-scheme-handler/openra-ra-release-20200202;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe even omit the version to keep this timeless.

Terminal=false
Categories=Game;StrategyGame;
MimeType=x-scheme-handler/openra-d2k-release-20190314;
StartupWMClass=openra-d2k-release-20190314

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
StartupWMClass=openra-d2k-release-20190314
StartupWMClass=openra-ra-release-20200202

StartupWMClass=openra-d2k-release-20190314

[AppImageHub]
X-AppImage-UpdateInformation=zsync|https://master.openra.net/appimagecheck?mod=d2k&channel=release

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
X-AppImage-UpdateInformation=zsync|https://master.openra.net/appimagecheck?mod=d2k&channel=release
X-AppImage-UpdateInformation=zsync|https://master.openra.net/appimagecheck?mod=ra&channel=release

Doesn't really matter as the releases are synchronized.

@Mailaender
Copy link

I am not sure if the audio crash is resolved, but I assume this will crash then as no OpenGL is present on a headless server. You may want to harvest screenshots from https://github.com/OpenRA/OpenRAWeb/tree/master/content/images/screenshots instead.

@Mailaender
Copy link

You can also add

tags:
  - official

@probonopd
Copy link
Member Author

probonopd commented Mar 17, 2020

Thanks @Mailaender for your review. However, all the information is pulled out of the contents of the AppImage automatically and must not be edited here by hand. The only input to this repo is the link to the AppImage, everything else is extracted from there.

I have changed the link to the AppImage to the URL you posted.

If you would like to get your other changes applied, then please work with the https://github.com/OpenRA/OpenRA/ team to get them into the AppImage. Thanks for your understanding, and please reply here in case something I wrote should not be clear.

@probonopd
Copy link
Member Author

Seemingly we are unable to take a screenshot automatically, do you have any idea why that might be?

@Mailaender
Copy link

I assume this will crash then as no OpenGL is present on a headless server. You may want to harvest screenshots from https://github.com/OpenRA/OpenRAWeb/tree/master/content/images/screenshots instead.

@probonopd
Copy link
Member Author

Ah, right. Thing is, the way this repo is set up it must pass the test (which includes taking a screenshot) before it can be merged, because otherwise when I merge it will still not show up on the website which kinda defeats the purpose. So it looks like we need to find some way to get OpenGL running without the headless server having a certain type of GPU. Unfortunately I don't know where to even start...

@Mailaender
Copy link

There is https://www.mesa3d.org/osmesa.html but I doubt it works.

@Mailaender Mailaender mentioned this pull request Dec 12, 2022
@Mailaender
Copy link

Superseded by #3071.

@probonopd probonopd closed this Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants