Giter Club home page Giter Club logo

Comments (4)

mmatyas avatar mmatyas commented on June 14, 2024

Hi, for historical reasons the game is portable by default, ie. looks for the datadir next to the executable. You can use the --datadir option to set its path. This is handled by the desktop entry, but not by the executable itself at the moment.

from supermariowar.

Thanatermesis avatar Thanatermesis commented on June 14, 2024

Hi @mmatyas , I tried adding these options but gives the same error, the files are correctly installed but the binary seems to not find the correct place 🤔

from supermariowar.

mmatyas avatar mmatyas commented on June 14, 2024

The command here should be smw-leveledit --datadir /usr/share/games/smw/; does this not work in your case?

from supermariowar.

Thanatermesis avatar Thanatermesis commented on June 14, 2024

Ah yes, this one does, mmh... I just created a patch for my build, maybe you want to add something similar:

--- a/src/common/MapList.cpp
+++ b/src/common/MapList.cpp
@@ -125,7 +125,7 @@ MapList::MapList(bool fWorldEditor)

     //TODO: add proper test via size
     if (maps.empty()) {
-        printf("ERROR: Empty map directory!\n");
+        printf("ERROR: Empty map directory! Try adding the --datadir parameter\n");
         throw std::runtime_error("ERROR: Empty map directory!");
     }

from supermariowar.

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.