Bug 32765 - curse of war (SDL) is not able to be invoked
Summary: curse of war (SDL) is not able to be invoked
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://a-nikolaev.github.io/curseofwar/
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-01-25 01:20 CET by Ben McMonagle
Modified: 2024-02-04 03:50 CET (History)
4 users (show)

See Also:
Source RPM: curseofwar-1.3.0-2.mga9.src.rpm
CVE:
Status comment:


Attachments
lspcidrake -v (4.08 KB, text/plain)
2024-01-25 02:43 CET, Ben McMonagle
Details

Description Ben McMonagle 2024-01-25 01:20:12 CET
Description of problem: attempting to invoke curse of war (SDL), the application exits silently.
attempting: $ curseofwar-sdl 
returns:
$ curseofwar-sdl 
Unable to load bitmap: Parameter 'src' is invalid

Version-Release number of selected component (if applicable):
curseofwar-1.3.0-2.mga9


How reproducible: always


Steps to Reproduce:
1. create a new install, LXDE only, with sufficient root partition space to install task-games (+20GB) and update to latest.
2.install task-games.
3.attempt to invoke curse of war (SDL) from application launcher or commandline.
sturmvogel 2024-01-25 01:31:15 CET

Source RPM: task-games-9-1.mga9 => curseofwar-1.3.0-2.mga9.src.rpm

Comment 1 Ben McMonagle 2024-01-25 02:43:10 CET
Created attachment 14291 [details]
lspcidrake -v
Comment 2 Otto Leipälä 2024-01-27 19:56:05 CET
Game is dead in upstream.
Last commit in git is year 2017.
https://github.com/a-nikolaev/curseofwar
Comment 3 Lewis Smith 2024-01-31 21:50:24 CET
 https://github.com/a-nikolaev/curseofwar/commits/master/
shows most recent activity:
 Commits on Oct 7, 2021
Merge pull request #45 from smcameron/master
a-nikolaev
committed
3 years ago
No sign of version numbers, presumably akien knows about. Do we need to update it? I did not see any download link here, but the project URL looks more hopeful. Except the 'How to install' page talks about building it from source..

Cauldron log:
Oct 18 2020 by akien
Version 1.3.0

BTAIM I just installed & terminal-launched it - and whatever it is, it stays up & presumably works. A pair of white brackets can be moved around with arrow keys.
I realise that I just invoked it with its name
 $ curseofwar
not the parameter that Ben cites. To come back to.

CC: (none) => lewyssmith
URL: (none) => https://a-nikolaev.github.io/curseofwar/

Comment 4 Ben McMonagle 2024-02-01 00:44:45 CET
(In reply to Lewis Smith from comment #3)

> BTAIM I just installed & terminal-launched it - and whatever it is, it stays
> up & presumably works. A pair of white brackets can be moved around with
> arrow keys.
> I realise that I just invoked it with its name
>  $ curseofwar
> not the parameter that Ben cites. To come back to.
2 versions to choose:
curseofwar => curse of war (ascii ) seems to work, both from terminal and menu.
curseofwar-sdl does not, either from terminal or menu
Comment 5 Lewis Smith 2024-02-01 06:32:09 CET
Yes indeed:
 $ curseofwar-sdl
 Unable to load bitmap: Parameter 'src' is invalid

 https://a-nikolaev.github.io/curseofwar/install/
Build from sources
It’s not hard to build the game from sources.
Ncurses version:
$ make

SDL version:
$ make SDL=yes

I suppose our build does this. Have to ask the packagers, hopefully akien. Be ready to drop/obsolete it. Clearly no-one has used it for ages, otherwise Ben's discovery would already be known.

CC: lewyssmith => rverschelde
Assignee: bugsquad => pkg-bugs

Comment 6 Rémi Verschelde 2024-02-01 09:53:02 CET
I'll take a look.

Status: NEW => ASSIGNED

Comment 7 Rémi Verschelde 2024-02-01 10:34:15 CET
There was a typo in my patch so it couldn't find the game images in /usr/share/games/curseofwar. Now fixed.

Advisory
========

Updated curseofwar packages fixes starting SDL version

  The 'curseofwar-sdl' frontend for curseofwar didn't start properly due to not
  finding the necessary data files. This has now been fixed.

SRPM in core/updates_testing:
=============================

curseofwar-1.3.0-2.1.mga9

RPMs in core/updates_testing:
=============================

curseofwar-1.3.0-2.1.mga9

Assignee: pkg-bugs => qa-bugs

Comment 8 Rémi Verschelde 2024-02-01 10:35:36 CET
Note for testing, it's a pretty minimalist game with no clear tutorials. It's probably enough to check that it starts, and to quit the only option seems to be the 'Q' hotkey (I suppose by design, though it's weird, but I don't intend to patch the game to change it).

If anyone is curious to actually play the game, see the README in /usr/share/doc/curseofwar/, or on the GitHub repo: https://github.com/a-nikolaev/curseofwar/
Marja Van Waes 2024-02-01 15:33:23 CET

Keywords: (none) => advisory
CC: (none) => marja11

Comment 9 katnatek 2024-02-02 03:00:32 CET
Tested in real hardware mageia 9 x86_64

Install current version
- curseofwar works
- curseofwar-sdl 
Unable to load bitmap: Parameter 'src' is invalid

Update to testing package without issue
Now both curseofwar & curseofwar-sdl wokrs

Whiteboard: (none) => MGA9-64-OK

Comment 10 Thomas Andrews 2024-02-02 03:50:49 CET
Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Comment 11 Mageia Robot 2024-02-04 03:50:49 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0034.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.