Packaging Flare after the game/engine split
Hi,
Creating a source package for Flare (git version) after the split, I first went on and tried to have two different packages — flare(-game) and flare-engine —.
I soon realized that was not the way to package it, since there were several conflicting files, so I just updated the existing flare package to point to the new repo.
But when I installed that package, I could not get it to start a game. I mean: I get the main screen, but the Play button is disabled.
I got the following output:
[gallaecio@afonsox flare-git]$ /usr/games/flare
Unable to open engine/tileset_config.txt! Defaulting to 64x32 isometric tiles.
Unable to open engine/misc.txt!
Unable to open engine/combat.txt!
Unable to open engine/elements.txt!
No joysticks were found.
Using joystick #0.
Mix_LoadMUS: Couldn't open '/usr/share/games/flare/music/title_theme.ogg'
So… Is the master code not working? Or is this not the right way to package the game now?
flare-game has all the files necessary to run the game. It sounds like, though, you have a bad mods.txt files (located in flare/mods/). I'd check that, or check the mods you have activated in your in-game configuration screen.
The warnings you're seeing are because there were no Mods enabled in flare-engine by default. If you use the mods/mods.txt file from flare-game, it should clear up those warnings. That mods.txt file defines the default enabled mods. For flare-engine it's an empty file. For flare-game it uses fantasycore and alpha_demo.
The flare-engine repo is a "clean slate" for modders who want to make a new game, or keep their engine up to date by using that upstream repo.
You could package flare (the game) by just using the flare-game repo, using the same techniques you used to package the old flare repo. If your main intent is to release the game, that's the way to go.
One day we might release the raw flare-engine with no mods enabled as the primary engine package, but we're not ready for that yet.
[gallaecio@afonsox flare-git]$ sudo pacman -Ql flare-git | grep mods.txt
flare-git /usr/share/games/flare/mods/mods.txt
[gallaecio@afonsox flare-git]$ cat /usr/share/games/flare/mods/mods.txt
# Mods lower on the list will overwrite data in the entries higher on the list
fantasycore
alpha_demo
[gallaecio@afonsox flare-git]$ /usr/games/flare
Unable to open engine/tileset_config.txt! Defaulting to 64x32 isometric tiles.
Unable to open engine/misc.txt!
Unable to open engine/combat.txt!
Unable to open engine/elements.txt!
No joysticks were found.
Using joystick #0.
Mix_LoadMUS: Couldn't open '/usr/share/games/flare/music/title_theme.ogg'
[gallaecio@afonsox flare-git]$
Does the mods folder actually contain the fantasycore and alpha-demo mods? Those are in flare-game.
http://paste.kde.org/554978/
Hm. I can't figure out what's going on.
When you run the game, I assume you're getting the "default" mod at least? Are the title screen buttons a plain grey style?
Try opening the Configuration menu, the Mods tab. What does it show for available mods and enabled mods?
Fixed…
It must have been something to do with the configs from the previous version getting in the way.
I did as you said and access the Mod tab in the Configuration menu, and there were the three mods, disabled. I enabled them, and then the game style changed to the one I got used to from the previous version, and hitting Play would take me to the screen to chose a slot.
There, the first slot was occupied. Then was when I realized I had still the previous settings. Sadly, the game overwrote the mods.txt settings file when I enabled the mods, so I guess I cannot recover the old content to check what the hell was in it not to let the game start.
Thanks a lot for all the support. Now time to play! :D