Coder Social home page Coder Social logo

Comments (5)

Artentus avatar Artentus commented on August 23, 2024 1

I have implemented this now finally for the upcoming version 1.7.1.

However there is a catch: the API is actually limiting what I can realistically do here sadly. The complete mod list only returns information about the very latest release of a mod. That means I can only use the Factorio version of the latest release for filtering. For example if a mod has been released for both 0.15 and 0.16, if you filter by Factorio version the mod will only be listed under 0.16.

This is not optimal, however the only way to consider all available Factorio versions is to query the full release list of each mod from the sever. Considering how long it takes to query this information from the server for a single mod (in MMF this happens when clicking on a mod in the list) loading the entire list of currently over 3000 mods would take at least an hour, and that is also a generous estimate.

from modmyfactory.

 avatar commented on August 23, 2024

I created a very hacky version to do this, the Factorio version is hardcoded because I couldn't find where the program stores that. I give no support for it, but I thought it might possibly be useful to someone.
https://github.com/HiddenKn/ModMyFactory/commit/1497cb17c4269c5f5fbd989d13b347aecd672063

Just realized that this only works for the latest version of the mod, so it might not be perfect if you want to filter for older versions of Factorio.

from modmyfactory.

 avatar commented on August 23, 2024

Sorry about that comment. I'm stupid and blind.

from modmyfactory.

 avatar commented on August 23, 2024

Thank you for your hard work on ModMyFactory, by the way.

from modmyfactory.

arnemertz avatar arnemertz commented on August 23, 2024

Thanks so much for the feature! I guess due to the rapid development of Factorio, the vast majority of use cases for this will be to filter for the latest Factorio version. So, the limitation you mention should be fine.

from modmyfactory.

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.