Auto download Module/Tool

  • Refering to this suggession.

    I create a tool to automatically download several modules into ..\modules_ext\*.*

    [attach]648._xfImport[/ATTACH]
    The tool is https://github.com/zomagic/Cerberus_Modext

    WARNING!! All existing module that share the same name will be replace by the new version if you run with -update.
    Please backup your modules if necessary.

  • [QUOTE="MikeHart, post: 5192, member: 3"]Windows only? [/QUOTE]
    Source code is in purebasic so no problem porting to mac and linux. I can port to mac soon but i don't have linux.

    Quote

    If a CX version of a module exists, you should refer to that


    The list of Module is really draft. I just pick randomly from our forum. Actually, you can change it in "modext.txt". But if anyone know any CX module to include, I can add to the list.

    The tool is just start. At this moment it can only download a module host from Github.

    PC with Windows 11

  • I improved the tool to be able to download from other sources (not just GutHub).
    I also update the list of modules, with the modules reported here in this forum/UserModule
    I make sure using version for CX but I not very sure about diddy, sdl2mixer and gif loader. Its seem like it still using MX ;(

    PC with Windows 11

  • [QUOTE="magic, post: 5199, member: 153"]I make sure using version for CX but I not very sure about diddy, sdl2mixer and gif loader. Its seem like it still using MX ;([/QUOTE]
    What I ment was, when there is a CX version of a module like fantomX->fantomCX then link to the CX version.

  • [QUOTE="MikeHart, post: 5201, member: 3"]What I ment was, when there is a CX version of a module like fantomX->fantomCX then link to the CX version.[/QUOTE]
    I did it. For example on this latest list I change to fantomCX already. Mmm but may be I name the folder wrongly :(

    PC with Windows 11

  • [QUOTE="magic, post: 5203, member: 153"]Mmm but may be I name the folder wrongly[/QUOTE]
    No worries, works great so far. Downloading Vortex takes very long but I guess it is a slow connection.

    To make this app even better, it should have a gui where someone can select the modules they want to install. anyway, great job so far.

  • Awesome, thank you. Actually, I was thinking about the gui again. Better leave it like it is right now.

  • Could you add some app parameters?
    1. A flag which tells the app not to clear the target extraction folder
    2. Setting the target extraction folder. Default is module_ext

  • Quote

    A flag which tells the app not to clear the target extraction folder


    Currently by default it didn't clear the folder. By default it replace any folder

    Quote

    Setting the target extraction folder. Default is module_ext


    good idea

    PC with Windows 11

  • [QUOTE="magic, post: 5212, member: 153"]Currently by default it didn't clear the folder. By default it replace any folder[/QUOTE]
    Doooh, I should have read you warning above more correctly. :rolleyes:

  • i really worry is someone say, have working hard improve diddy for himself, then my app come and replace for the original one. all his work would be gone. that not good. that why i put big warning.

    PC with Windows 11

  • I added a commandline

    Code
    modext.exe [-into=modulefolder][-update[=folder,folder,...]]

    Use -into to give a folder name for your external module. If not supply default will use as modules_ext

    If not supply -update in commandline(default) then the existing module will not be replace. Only new module will be download.

    -update[=folder,folder,...]
    If you didn't suply the list of folder, ALL module will be update. If supply, those list will be force to be update

    both win an macos version is up to date

    PC with Windows 11

  • What is missing from CX to port this to CX? I would like to add this tool to the official distribution.

  • I will only add it if an exe can be created with freely available software. Sadly Purebasic isn't.
    I will look myself then what is missing in CX. Thanks anyway.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!