EchoLiao / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Can't play replay from command line #897

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/usr/lib/hedgewars/bin/hwengine stupid\ AI.49.hwd 
Attempting to play demo file "stupid AI.49.hwd"
Hedgewars engine 0.9.21-r10717 (dd5e2427b3b2) with protocol #49
Init SDL... ok
Init SDL_ttf... ok
Init SDL_image... ok
Loading /Graphics/hwengine.png [flags: 8] ok (32x32)
Number of game controllers: 0
Not using any game controller
Loading progress sprite: Loading /Graphics/Progress.png [flags: 6] ok (324x972)
Getting game config...
Init sound...ok
Init SDL_mixer... ok
Reading objects info...
Bad data or cannot access file /Themes/Autumn_v1/theme.cfg

shouldn't  it just play flawlessly?

thanks

Original issue reported on code.google.com by gianfran...@abinsula.com on 27 Dec 2014 at 9:16

GoogleCodeExporter commented 9 years ago
Missing a custom theme.
2 explanations.  You are on a machine without the custom theme, or you have an 
alternate Hedgewars config dir that you did not specify when launching the 
demo...

Original comment by kyberneticist@gmail.com on 27 Dec 2014 at 8:39

GoogleCodeExporter commented 9 years ago
nope, this is something that I don't understand, because:

1) I created the demo with the same computer/hardware/hedgewars version
2) I can play it with no problems at all inside hedgewars
3) I do not have this Autumn_v1 theme in /usr/share/games/hedgewars/, neither 
in ~/.hedgewars

how do you explain this? shouldn't hwengine be able to be called also from 
outside, right?

Original comment by gianfran...@abinsula.com on 28 Dec 2014 at 7:49

GoogleCodeExporter commented 9 years ago
http://hedgewars.org/content.html

Autumn v1 is one of Luelle's themes
It'll be in NewThemesByLuelle_v2.hwp probably.

But playing in hwengine vs playing in hedgewars itself strongly implies 
different paths.

Try hwengine --user-prefix "$HOME/.hedgewars"

Original comment by kyberneticist@gmail.com on 28 Dec 2014 at 7:56

GoogleCodeExporter commented 9 years ago
Just verified exactly same behaviour over here w/ a luelle pack.
Unsurprising since cDefaultPathPrefix is defined in the engine from 
HEDGEWARS_FULL_DATADIR which is derived from cmake -DDATA_INSTALL_DIR= etc

However the user directory is not defined.

That said, when you use the "associate" button in the frontend which associates 
demos and saves with hwengine for use in file managers and browsers, it does 
add the user directory.
So, that should work just fine.
Running it otherwise does require adding that tho.

Original comment by kyberneticist@gmail.com on 28 Dec 2014 at 8:03

GoogleCodeExporter commented 9 years ago
yes, I was using --prefix instead of --user-prefix...

it works, I'm wondering if a fallback into the user home is feasible or not...
anyway seems not a bug :)

thanks!

Original comment by gianfran...@abinsula.com on 28 Dec 2014 at 8:14