1 (edited by sfan5 2012-07-21 06:56:27)

Topic: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

I wrote a Mod Manager in Python.
http://pastebin.com/SNZsgGcz
==How to set up==
Install Python, if you haven't already.
Go to http://pastebin.com/download.php?i=SNZsgGcz and save the file as mm.py
Go to the Command Line and type ./mm.py add-repo sfan.sf.funpic.de
You just added my Reposity to ModManager!
Type ./mm.py config moddir "path_to_your_minetest_mod_folder".
Example: "./mm.py config moddir ~/.minetest/data/mods"
Type ./mm.py update to update the Package List.
Now try ./mm.py install coalmod
coalmod.zip should appear in your folder and the folder coalmod should appear in your minetest mod folder
==Host your own Repo==
Create a Folder called minetest in the root of your Website.
e.g. "yoursite.com/minetest" not "yoursite.com/myfolder/docs/minetest"
Create a file called "PackageList" with a List of your Packages in it(1 Line = 1 Package)
Create a File called Pkg-name for each.
Fill it with this Information and adjust the Name and so on.
Now, upload the tar.bz2/tar.gz/zip/tar of your mod folder to your Site.
You can try installing your Package now:

./mm.py add-repo mysite.com
./mm.py update
./mm.py install yourmod

Browse my Repo for Examples
===Creating a Package which downloads your Gitorious-Repo===
Delete the "File: ..." Line from your Pkg-yourmod
Add "Gitorious:project_name,repo_name,branch" to the file.
Example: http://sfan.sf.funpic.de/minetest/Pkg-worldedit

PS.: I can host your Mods on my Repo if you want: http://sfan.sf.funpic.de/minetest/

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Minetest 0.1?

3 (edited by sfan5 2011-12-24 10:46:41)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

The Version of the Mod Manager is 0.1 Alpha
I changed the Title

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Nice and simple. I like it. However, you may want to look into compiling the python script to an exe for Windows at least since many will not install python just for a mod manager.

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Could you make it decompress packages?

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Is there a certain folder I have to run it from?  When I first try to add your repo, I get this:

IOError: [Errno 2] No such file or directory: '/home/user/.mm/repos.txt'

If I make that folder, I get this:

OSError: [Errno 17] File exists: '/home/user/.mm'

MC "block" = MT "node", MC "chunk" = MT "block". Don't mix up terms!
There is no such thing as a "plugin", we call those "mods" here.
My Server: Menche's Freebuild

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Menche wrote:

Is there a certain folder I have to run it from?  When I first try to add your repo, I get this:

IOError: [Errno 2] No such file or directory: '/home/user/.mm/repos.txt'

If I make that folder, I get this:

OSError: [Errno 17] File exists: '/home/user/.mm'

I was testing this on Windows XP and came across a similar error. It seems it expects a folder in C:\Documents and Settings\User\.mm but it doesn't exist. If you make it, it still wont work lol. If I knew more about python I'd try to see if I could fix it.

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

sfan5, your add-repo code only creates the directory if the directory is already there. Reverse the condition:

if(not os.path.exists(homedir + "/.mm")):

I'm not sure if that will work in Python 3, though....

Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

xyz wrote:

Could you make it decompress packages?

In a later Version

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

MarkTraceur wrote:

sfan5, your add-repo code only creates the directory if the directory is already there. Reverse the condition:

if(not os.path.exists(homedir + "/.mm")):

I fixed it, please redownload ModManager

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Menche wrote:

Is there a certain folder I have to run it from?  When I first try to add your repo, I get this:

IOError: [Errno 2] No such file or directory: '/home/user/.mm/repos.txt'

If I make that folder, I get this:

OSError: [Errno 17] File exists: '/home/user/.mm'

Its a bug, please redownload ModManager:

MarkTraceur wrote:

sfan5, your add-repo code only creates the directory if the directory is already there. Reverse the condition:

if(not os.path.exists(homedir + "/.mm")):
My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

When I try to do an update I get error 303.

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

13 (edited by Menche 2011-12-23 20:19:51)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

When I  update it does this:

Fetching Packages from 'sfan.sf.funpic.de
'..
Traceback (most recent call last):
  File "mm.py", line 90, in <module>
    con.connect()
  File "/usr/lib/python2.7/httplib.py", line 754, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

MC "block" = MT "node", MC "chunk" = MT "block". Don't mix up terms!
There is no such thing as a "plugin", we call those "mods" here.
My Server: Menche's Freebuild

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

RAPHAEL wrote:

When I try to do an update I get error 303.

I don't know how to fix it

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

A 303 is a url redirect status code normally you only get this error when the client thinks the url is supposed to be redirected and the response doesn't contain an alternative url.

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

How would the Pkg file look if the mod had multiple dependencies? Like is there a space between the mods it depends on? A comma no space? A comma then a space? If you can show an example.

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

RAPHAEL wrote:

How would the Pkg file look if the mod had multiple dependencies? Like is there a space between the mods it depends on? A comma no space? A comma then a space? If you can show an example.

A comma without space
e.g.:

Name: My Mod
Depends:flowers,collisionlib
File:mymod.zip
Version:1.0
My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

18 (edited by sfan5 2011-12-24 15:54:21)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Update!
0.1.2 Alpha out.
Changelog:

  • Fixed bug when a Repo has more than 1 Package

  • Added Support for tar.gz, zip and tar

  • Auto-Extracting of Mods to your Mod Folder

  • Added Support for Gitorious Repos

PS.: I can host your Mods on my Repo if you want!

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

19 (edited by RAPHAEL 2011-12-24 20:09:42)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

sfan5 wrote:

Update!
0.1.2 Alpha out.
Changelog:

  • Fixed bug when a Repo has more than 1 Package

  • Added Support for tar.gz, zip and tar

  • Auto-Extracting of Mods to your Mod Folder

  • Added Support for Gitorious Repos

PS.: I can host your Mods on my Repo if you want!

I tried setting up my own repo at dtamedia.com for testing before i finished it and it seems the error 303 still exists. Updating your repo gives 303 as well.

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

RAPHAEL wrote:
sfan5 wrote:

Update!
0.1.2 Alpha out.
Changelog:

  • Fixed bug when a Repo has more than 1 Package

  • Added Support for tar.gz, zip and tar

  • Auto-Extracting of Mods to your Mod Folder

  • Added Support for Gitorious Repos

PS.: I can host your Mods on my Repo if you want!

I tried setting up my own repo at dtamedia.com for testing before i finished it and it seems the error 303 still exists. Updating your repo gives 303 as well.

Please post any file in .mm, so I can try to fix it!

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

sfan5 wrote:

Please post any file in .mm, so I can try to fix it!

In the .mm theres 2 text files. pkgs.txt and repos.txt. pkgs is empty and repos contains a single line of:
sfan.sf.funpic.de

"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

RAPHAEL wrote:
sfan5 wrote:

Please post any file in .mm, so I can try to fix it!

In the .mm theres 2 text files. pkgs.txt and repos.txt. pkgs is empty and repos contains a single line of:
sfan.sf.funpic.de

I don't know how to fix that, try removing .mm and configurating it again

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

It adds your repository fine, but when I try to update afterwards:

ModManager 0.1.2 Alpha
Fetching Packages from 'sfan.sf.funpic.de
'..
Traceback (most recent call last):
  File "mm.py", line 177, in <module>
    con.connect()
  File "/usr/lib/python2.7/httplib.py", line 754, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

In ~/.mm there is an empty file called pkgs.txt, and repos.txt with one line that says: sfan.sf.funpic.de

MC "block" = MT "node", MC "chunk" = MT "block". Don't mix up terms!
There is no such thing as a "plugin", we call those "mods" here.
My Server: Menche's Freebuild

24 (edited by sfan5 2011-12-25 07:43:27)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Menche wrote:

It adds your repository fine, but when I try to update afterwards:

ModManager 0.1.2 Alpha
Fetching Packages from 'sfan.sf.funpic.de
'..
Traceback (most recent call last):
  File "mm.py", line 177, in <module>
    con.connect()
  File "/usr/lib/python2.7/httplib.py", line 754, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

In ~/.mm there is an empty file called pkgs.txt, and repos.txt with one line that says: sfan.sf.funpic.de

I don't know how to fix that, try removing .mm and configurating it again.
If that doesn't work post the content of the files in a hexadecimal format

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

25 (edited by sfan5 2012-01-06 09:44:02)

Re: Minetest ModManager 0.1.4 Alpha <- You can upload your Mods to my Repo

Update!

  • Fixed "socket.gaierror: [Errno -2] Name or service not known" Bug

  • Added List of installed Packages

If you got the "socket.gaierror: [Errno -2] Name or service not known" Error, delete your .mm/repos.txt and add your Repos again

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows