Wow thanks!!
A couple of small issues since the change.
Clicking on browse mods caused the window to open behind all the other windows, so took me a while to realise it was there (using Ubuntu 14.04), and ditto going back from database window, clicking doesn't bring the main window forward. What about a pop-out list, so it's only a single window?
It doesn't seem to be able to move directories from it's home sub to the mod.. Oh just remembered by default it selects your mod directory, so fails as there is no martin on my system...
Also just a thought, if you autosaved any new mods to a file, it would make it easier for us to upload and add to your list).
I wonder if it would be possible to access it direct from the game. One simple, way would be easy to create a gitsync mod which ran gitsync from a button. If you had command-line arguments you could have it run directly, but even without, you could have the gitsync window popup direct from minetest. I think the lua forms for the front page are under /usr/local/share/minetest/builtin/mainmenu, so could be worth a play to integrate it directly. Lua code to run the python script would be rather like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
if fields.gitsync then
-- run the python script to generate the map (could be run in background by appending an '&' to the string, but texture might be corrupted or out of date for current load)
local osx = "python \"/home/david/.minetest/mods/MT-GitSync/gitsyncpy\" --updateall y --moddir \"/home/david/.minetest/mods/\" --with arguments
local osx = "python \"/home/david/.minetest/mods/MT-GitSync/gitsyncpy\" --without
os.execute(osx)
print("mapit: Updated map for ".. worldName)
minetest.chat_send_player(mapitPlayerName, "Map Updated. Please exit and re-enter world to reload the texture", false)
end