OpenMW appimage

Get help on how to use the AppImageKit SDK to produce AppImages

OpenMW appimage

Postby sirherrbatka » Mon Oct 31, 2011 9:41 am

Hi,

I was looking for a solution to distribute OpenMW on a systems without recent libbullet, OIS, outdated OGRE and so one. I have download tar.gz with binary. It looks like that:

.
|-- games
| |-- omwlauncher
| `-- openmw
`-- share
|-- applications
| `-- openmw.desktop
|-- games
| `-- openmw
| `-- resources
| |-- caelum
| | |-- AtmosphereDepth.png
| | |-- CaelumGroundFog.cg
| | |-- CaelumLayeredClouds.cg
| | |-- CaelumPhaseMoon.cg
| | |-- CaelumPointStarfield.cg
| | |-- CaelumSkyDome.cg
| | |-- CloudCoverLookup.png
| | |-- DepthComposer.cg
| | |-- DepthComposer.compositor
| | |-- DepthComposer.material
| | |-- DepthRender.program
| | |-- EarthClearSky2.png
| | |-- GroundFog.material
| | |-- GroundFog.program
| | |-- Haze.program
| | |-- LayeredClouds.material
| | |-- MinimalCompositorVP.cg
| | |-- MinimalCompositorVP.program
| | |-- PointStarfield.material
| | |-- Precipitation.cg
| | |-- Precipitation.compositor
| | |-- Precipitation.material
| | |-- SkyDome.material
| | |-- Starfield.jpg
| | |-- Starfield.material
| | |-- Sun.material
| | |-- SunGradient.png
| | |-- moon.material
| | |-- moon_disc.dds
| | |-- noise1.dds
| | |-- noise2.dds
| | |-- noise3.dds
| | |-- noise4.dds
| | |-- precipitation_drizzle.png
| | |-- precipitation_hail.png
| | |-- precipitation_icecrystals.png
| | |-- precipitation_icepellets.png
| | |-- precipitation_rain.png
| | |-- precipitation_smallhail.png
| | |-- precipitation_snow.png
| | |-- precipitation_snowgrains.png
| | |-- sphere.mesh
| | `-- sun_disc.png
| `-- mygui
| |-- Comic.TTF
| |-- VeraMono.ttf
| |-- bigbars.png
| |-- black.png
| |-- core.skin
| |-- core.xml
| |-- mwgui.png
| |-- mwpointer.png
| |-- openmw.font.xml
| |-- openmw.pointer.xml
| |-- openmw_box.skin.xml
| |-- openmw_button.skin.xml
| |-- openmw_chargen_birth_layout.xml
| |-- openmw_chargen_class_description_layout.xml
| |-- openmw_chargen_class_layout.xml
| |-- openmw_chargen_create_class_layout.xml
| |-- openmw_chargen_generate_class_result_layout.xml
| |-- openmw_chargen_race_layout.xml
| |-- openmw_chargen_review_layout.xml
| |-- openmw_chargen_select_attribute_layout.xml
| |-- openmw_chargen_select_skill_layout.xml
| |-- openmw_chargen_select_specialization_layout.xml
| |-- openmw_console.skin.xml
| |-- openmw_console_layout.xml
| |-- openmw_dialogue_window_layout.xml
| |-- openmw_edit.skin.xml
| |-- openmw_hud_box.skin.xml
| |-- openmw_hud_energybar.skin.xml
| |-- openmw_hud_layout.xml
| |-- openmw_infobox_layout.xml
| |-- openmw_interactive_messagebox_layout.xml
| |-- openmw_inventory_window_layout.xml
| |-- openmw_layers.xml
| |-- openmw_list.skin.xml
| |-- openmw_mainmenu_layout.xml
| |-- openmw_mainmenu_skin.xml
| |-- openmw_map_window_layout.xml
| |-- openmw_messagebox_layout.xml
| |-- openmw_progress.skin.xml
| |-- openmw_stats_window_layout.xml
| |-- openmw_text.skin.xml
| |-- openmw_text_input_layout.xml
| |-- openmw_windows.skin.xml
| |-- smallbars.png
| `-- transparent.png
`-- pixmaps
`-- openmw.png

If I understand correctly I need to put /games to the appdir too. Right?
sirherrbatka
 
Posts: 5
Joined: Mon Oct 31, 2011 9:33 am

Re: OpenMW appimage

Postby probono » Mon Oct 31, 2011 7:52 pm

OpenMW has a lot of nonstandard dependencies. At a minimum, it looks like you need to bundle
libopenal1_1%3a1.13-2
libois-1.3.0_1.3.0
libmpg123-0_1.12.1-3.1
libboost-program-options1.46.1
libboost-filesystem1.46.1
libboost-system1.46.1
libogre-1.7.3_1.7.3-2
libzzip-0-13_0.13.56
libfreeimage3_3.13.1
libboost-thread1.46.1_1.46.1
freeglut3_2.6.0

I tried bundling it but I failed when trying to run the app... all I get is

Code: Select all
No master file given. Assuming Morrowind.esm
Data dir/usr/share/games/openmw/data
ERROR: file Morrowind.esm not found
If you like PortableLinuxApps and the AppImage format, you might consider a donation --> Image
probono
Site Admin
 
Posts: 430
Joined: Sun Apr 25, 2010 9:41 am

Re: OpenMW appimage

Postby sirherrbatka » Tue Nov 01, 2011 8:13 am

hey! You DID THIS! :D

The error you see is related to openmw.cfg Let me quote readme
THE DATA PATH

After the installation OpenMW needs to be told where to find the Morrowind data directory. Create a text file named openmw.cfg (location depends on platform) and enter the following line:

data=path to your data directory

(where you replace "path to your data directory" with the actual location of your data directory)

On Windows a suitable location for the cfg file is alongside the binary. Currently the binary release comes with such a file pre-generated, but you still need to adjust the data setting.

On Linux and Mac the default location will be ~/.config/openmw/openmw.cfg


My guess is that you did the packing correctly but forgot to edit openmw.cfg
sirherrbatka
 
Posts: 5
Joined: Mon Oct 31, 2011 9:33 am

Re: OpenMW appimage

Postby sirherrbatka » Sun Nov 06, 2011 1:21 pm

Well, I would be very thankfull if you could upload this appimage so OpenMW folks can add it to the download section. It's still pre-alpha so this site is probably not perfect place for openmw.
sirherrbatka
 
Posts: 5
Joined: Mon Oct 31, 2011 9:33 am

Re: OpenMW appimage

Postby probono » Sun Nov 06, 2011 4:22 pm

~/.config/openmw/openmw.cfg is in $HOME, AppImage packaging doesn't mess with that. So no, I didn't get this to run yet...
If you like PortableLinuxApps and the AppImage format, you might consider a donation --> Image
probono
Site Admin
 
Posts: 430
Joined: Sun Apr 25, 2010 9:41 am

Re: OpenMW appimage

Postby sirherrbatka » Sun Nov 06, 2011 4:31 pm

the OpenMW is just engine for morrowind in the same way as any doom engine is engine for doom games. You need all data files of morrowind (like complete instalation) and openmw.cfg should point the location of this directory. For version 0.12 it's planned to add autodetection, but probably It will work for windows and maybe wine installed morrowind.

I think that you done the job right. OpenMW loads needed libs and then attempts to load actual data files but it fails since openmw.cfg is not setted right. If you can send me appimage I can do testing. Don't worry, all credits for this package goes to you :-)
sirherrbatka
 
Posts: 5
Joined: Mon Oct 31, 2011 9:33 am

Re: OpenMW appimage

Postby probono » Sat Nov 12, 2011 9:17 am

Hi sirherrbatka, the philosophy of PortableLinuxApps is to have everything that is needed for an app or game to run bundled inside one single file for convenience. In other words, when one launches an AppImage, the user should see some action rather than an error message. Hence I think we should bundle a (tiny sample) game with OpenMW. Can you hint me to one and send me the needed configuration? Thanks.
If you like PortableLinuxApps and the AppImage format, you might consider a donation --> Image
probono
Site Admin
 
Posts: 430
Joined: Sun Apr 25, 2010 9:41 am

Re: OpenMW appimage

Postby sirherrbatka » Sat Nov 12, 2011 5:12 pm

None currently I'm affraid. There is no morrowind total conversion mod that does not require morrowind data files. Ofc, there is no technical reason. And as I said openmw is still pre-alpha state, there is almost no gameplay; now you can just load and view cells. Collison (via bullet) is implented as well as other features but still you can't fight, cast spells, do quests (play).

I'm sorry that I confused you.

All I wanted to get is any easier way to distribute binary. Currently there is deb package for ubuntu but since "stable" distros have so outdated libs It's not a solution.

So the correct place for this particular appimage is openmw page, not portablelinuxapps.org I guess.

I hope that it's not a problem.
sirherrbatka
 
Posts: 5
Joined: Mon Oct 31, 2011 9:33 am


Return to Packaging help

Who is online

Users browsing this forum: No registered users and 1 guest