Giter Site home page Giter Site logo

Comments (4)

Blad3forc3 avatar Blad3forc3 commented on September 22, 2024 1

Thanks Ruan!

It does actually work fine.
I managed to extract and rebuild the flatimage following your exact instructions.
I have also managed to write a basic script and desktop file to add to my dolphin right click menu , kservicemenu, to automate this in the folder of the FlatImage I want to change

Great Stuff!

from gameimage.

ruanformigoni avatar ruanformigoni commented on September 22, 2024

Hi @Blad3forc3 ! Issue acknowledged, I'm creating a simple script for this, will post here when it is finished.

Also what is the process to extract a flatimage?

Currently that is no direct method to extract, you can use:

# Mount
./game.flatimage fim-mount some-folder
# Copy
cp -r ./some-folder some-other-folder
# Unmount
fusermount -u some-folder

from gameimage.

Blad3forc3 avatar Blad3forc3 commented on September 22, 2024

Thanks Ruan. I'll try the fusermount option. Just be handy now and again. If I've extracted the contents of the flat image would I just need to replace the contents of the flat image with the contents of my game image build folder and re-run game image to pack it again?

from gameimage.

ruanformigoni avatar ruanformigoni commented on September 22, 2024

No problem. It would not be that simple because the games are stored in compressed filesystems inside flatimage. The flatimage method of doing things does not require to extract everything to modify like it was with AppImage. Here are some examples, (make a backup before trying):

List the filesystems inside the image

$ ./tomb-raider-collection.flatimage fim-dwarfs-list
tomb-raider-anniversary
tomb-raider-legend
tomb-raider-underworld
usr
wine

Extract a game from the flatimage to the current directory (from the previous list):

./tomb-raider-collection.flatimage fim-exec cp /fim/dwarfs/tomb-raider-anniversary.dwarfs .

Extract a dwarfs file to a folder:

mkdir tomb-raider-anniversary
tomb-raider-collection.flatimage fim-exec dwarfsextract -i tomb-raider-anniversary.dwarfs -o tomb-raider-anniversary

Move the tomb-raider-anniversary directory and the tomb-raider-anniversary.dwarfs filesystem to the build directory of gameimage. On the creator, create click on '+', for adding a new game, type the same name of the directory/dwarfs file tomb-raider-anniversary and it should detect the folder and executables inside, without having to reinstall.


Update wine, with a new version downloaded from the gameimage-runners github. The name of the filesystem should be wine.dwarfs, the last argument is the mountpoint, games look for wine in this location.

./tomb-raider-collection.flatimage fim-dwarfs-add wine.dwarfs /fim/mount/wine

Note that I have not exposed this features yet because it is a bit experimental, if it is working I recommend to just leave it.

from gameimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.