@ -22,20 +22,21 @@ def error(*args, **kwargs):
try :
try :
import mtanalyze
import mtanalyze
except ModuleNotFoundError as ex :
except ModuleNotFoundError as ex :
tryMTA = os . path . join ( profile , " git " , " mtanalyze " )
# tryMTA = os.path.join(profile, "git", "mtanalyze")
tryMTA = os . path . abspath ( os . path . join ( " .. " , " mtanalyze " ) )
if os . path . isdir ( tryMTA ) :
if os . path . isdir ( tryMTA ) :
sys . path . append ( tryMTA )
sys . path . append ( tryMTA )
import mtanalyze
import mtanalyze
else :
else :
error ( " " )
error ( " " )
error ( " You must install mtanalyze in the directory alongside " )
error ( " You must install mtanalyze alongside " )
error ( " EnlivenMinetest or as ~/git/mtanalize " )
error ( " EnlivenMinetest such that ../mtanalize/mtanalize exists " )
error ( " such as via: " )
error ( " such as via: " )
error ( " git clone https://github.com/poikilos/mtanalyze ~/git/mtanalize " )
error ( " git clone https://github.com/poikilos/mtanalyze {} "
" " . format ( tryMTA ) )
error ( " " )
error ( " " )
# raise tryMTA
# raise tryMTA
exit ( 1 )
exit ( 1 )
print ( " This doesn ' t work (not yet implemented) " )
# from mtanalyze import profile_path
# from mtanalyze import profile_path
@ -48,7 +49,7 @@ gamespec['remove_mods'] = [
" emeralds " , # See https://github.com/poikilos/EnlivenMinetest/issues/497
" emeralds " , # See https://github.com/poikilos/EnlivenMinetest/issues/497
" give_initial_stuff " , # or make it configurable (It only uses a give_initial_stuff boolean, no configurable item list)
" give_initial_stuff " , # or make it configurable (It only uses a give_initial_stuff boolean, no configurable item list)
]
]
myDir = os . path . dirname ( __file__ )
myDir = os . path . dirname ( os . path . abspath ( __file__ ) )
mods_stopgap = os . path . join ( myDir , " patches " , " mods-stopgap " )
mods_stopgap = os . path . join ( myDir , " patches " , " mods-stopgap " )
if not os . path . isdir ( mods_stopgap ) :
if not os . path . isdir ( mods_stopgap ) :
error ( " Error: \" {} \" is missing. " . format ( mods_stopgap ) )
error ( " Error: \" {} \" is missing. " . format ( mods_stopgap ) )
@ -56,48 +57,56 @@ if not os.path.isdir(mods_stopgap):
gamespec [ ' local_mods_paths ' ] = [ ]
gamespec [ ' local_mods_paths ' ] = [ ]
gamespec [ ' local_mods_paths ' ] . append ( mods_stopgap )
gamespec [ ' local_mods_paths ' ] . append ( mods_stopgap )
# NOTE: get a git repo's origin via: git remote show origin
# NOTE: get a git repo's origin via: git remote show origin
def getSGPath ( stopgap_mod_name ) :
return os . path . join ( mods_stopgap , stopgap_mod_name )
gamespec [ ' add_mods ' ] = [
gamespec [ ' add_mods ' ] = [
# "https://github.com/poikilos/homedecor_ua",
# {'repo':"https://github.com/poikilos/homedecor_ua"},
" animal_materials_legacy " ,
{ ' src_path ' : getSGPath ( " animal_materials_legacy " ) } ,
" https://github.com/minetest-mods/ccompass.git " ,
{ ' repo ' : " https://github.com/minetest-mods/ccompass.git " } ,
" https://github.com/octacian/chat3.git " ,
{ ' repo ' : " https://github.com/octacian/chat3.git " } ,
" https://github.com/poikilos/compassgps.git " ,
{ ' repo ' : " https://github.com/poikilos/compassgps.git " } ,
" elk_legacy " ,
{ ' src_path ' : getSGPath ( " elk_legacy " ) } ,
" https://github.com/MinetestForFun/fishing.git " ,
{ ' repo ' : " https://github.com/MinetestForFun/fishing.git " } ,
" glooptest_missing " ,
{ ' src_path ' : getSGPath ( " glooptest_missing " ) } ,
" https://github.com/minetest-mods/item_drop.git " ,
{ ' repo ' : " https://github.com/minetest-mods/item_drop.git " } ,
" https://github.com/poikilos/metatools.git " ,
{ ' repo ' : " https://github.com/poikilos/metatools.git " } ,
" nftools_legacy " ,
{ ' src_path ' : getSGPath ( " nftools_legacy " ) } ,
" https://github.com/poikilos/slimenodes.git " ,
{ ' src_path ' : getSGPath ( " glooptest_missing " ) } ,
" https://github.com/BenjieFiftysix/sponge.git " ,
{ ' repo ' : " https://github.com/poikilos/slimenodes.git " } ,
" https://github.com/poikilos/throwing.git " , # Can utilize toolranks, toolranks_extras, wielded_light
{ ' repo ' : " https://github.com/BenjieFiftysix/sponge.git " } ,
" https://github.com/poikilos/throwing_arrows.git " , # Can utilize mesecons, mesecons_button
{ ' repo ' : " https://github.com/poikilos/throwing.git " } , # Can utilize toolranks, toolranks_extras, wielded_light
" https://gitlab.com/VanessaE/biome_lib.git " ,
{ ' repo ' : " https://github.com/poikilos/throwing_arrows.git " } , # Can utilize mesecons, mesecons_button
{ ' repo ' : " https://gitlab.com/VanessaE/biome_lib.git " } ,
{
{
' url ' : " https://github.com/Poikilos/vines.git " ,
' repo ' : " https://github.com/Poikilos/vines.git " ,
' branch ' : " Bucket_Game " , # git clone <url> --branch <branch>
' branch ' : " Bucket_Game " , # git clone <url> --branch <branch>
} ,
} ,
" https://github.com/MinetestForFun/unified_inventory " ,
{ " https://github.com/MinetestForFun/unified_inventory " } ,
]
]
'''
# Items with no URL below are from EnlivenMinetest
# Items with no URL below are from EnlivenMinetest
# - [x] Ensure everything is in gamespec['add_mods']
minimum_live_server_based_on_bucket_game_200527 = [
minimum_live_server_based_on_bucket_game_200527 = [
{ ' dir_ name' : ' animal_materials_legacy ' } ,
{ ' name ' : ' animal_materials_legacy ' } ,
{ ' dir_ name' : ' ccompass ' , ' url ' : " https://github.com/minetest-mods/ccompass " } , # Remove this one or point to world-specific spawn area via settings? It is a regular spawn-pointing compass by default
{ ' name ' : ' ccompass ' , ' repo ' : " https://github.com/minetest-mods/ccompass " } , # Remove this one or point to world-specific spawn area via settings? It is a regular spawn-pointing compass by default
{ ' dir_ name' : ' chat3 ' , ' url ' : " https://github.com/octacian/chat3 " } , #Doesn't seem to have any effect
{ ' name ' : ' chat3 ' , ' repo ' : " https://github.com/octacian/chat3 " } , # Doesn't seem to have any effect
{ ' dir_ name' : ' compassgps ' , ' url ' : " https://github.com/poikilos/compassgps " } ,
{ ' name ' : ' compassgps ' , ' repo ' : " https://github.com/poikilos/compassgps " } ,
{ ' dir_ name' : ' elk_legacy ' } ,
{ ' name ' : ' elk_legacy ' } ,
{ ' dir_ name' : ' fishing ' , ' url ' : " https://github.com/MinetestForFun/fishing " } ,
{ ' name ' : ' fishing ' , ' repo ' : " https://github.com/MinetestForFun/fishing " } ,
{ ' dir_ name' : ' glooptest_missing ' } ,
{ ' name ' : ' glooptest_missing ' } ,
{ ' dir_name ' : ' ircpack ' , ' url ' : " " } , # ONLY for servers!
# {'name': 'ircpack', 'repo': ""}, # ONLY for servers!
# {'dir_name': 'item_drop', 'url ': ""}, # In bucket_game now (but see mt_conf_by_mod['item_drop'] for settings)
# {'name': 'item_drop', 'repo ': ""}, # In bucket_game now (but see mt_conf_by_mod['item_drop'] for settings)
{ ' dir_ name' : ' metatools ' , ' url ' : " https://github.com/poikilos/metatools " } ,
{ ' name ' : ' metatools ' , ' repo ' : " https://github.com/poikilos/metatools " } ,
{ ' dir_ name' : ' nftools_legacy ' } ,
{ ' name ' : ' nftools_legacy ' } ,
{ ' dir_ name' : ' slimenodes ' , ' url ' : " https://github.com/poikilos/slimenodes " } ,
{ ' name ' : ' slimenodes ' , ' repo ' : " https://github.com/poikilos/slimenodes " } ,
{ ' dir_ name' : ' sponge ' , ' url ' : " https://github.com/BenjieFiftysix/sponge " } , # In bucket_game but only in coderblocks
{ ' name ' : ' sponge ' , ' repo ' : " https://github.com/BenjieFiftysix/sponge " } , # In bucket_game but only in coderblocks
{ ' dir_ name' : ' throwing ' , ' url ' : " https://github.com/minetest-mod s/throwing " } ,
{ ' name ' : ' throwing ' , ' repo ' : " https://github.com/poikilo s/throwing " } ,
{ ' dir_ name' : ' throwing_arrows ' , ' url ' : " https://github.com/minetest-mod s/throwing_arrows " } ,
{ ' name ' : ' throwing_arrows ' , ' repo ' : " https://github.com/poikilo s/throwing_arrows " } ,
]
]
'''
'''
'''
Remove server_only_mods from the client and packaged copies of
Remove server_only_mods from the client and packaged copies of
@ -105,6 +114,7 @@ ENLIVEN.
'''
'''
server_only_mods = [
server_only_mods = [
' ircpack ' ,
' ircpack ' ,
' chat3 ' ,
]
]
'''
'''
@ -119,12 +129,17 @@ but for now just use
world . conf .
world . conf .
For other conf settings :
For other conf settings :
- patches / subgame / minetest . server - example . conf goes in the server only .
- patches / subgame / minetest . server - example . conf goes in the server only .
- Place the result in the game directory such as will result in
/ opt / minebest / mtworlds / center / ENLIVEN / minetest . conf
- patches / subgame / minetest . client - example . conf goes in clients only .
- patches / subgame / minetest . client - example . conf goes in clients only .
'''
'''
mt_conf_by_mod = {
mt_conf_by_mod = {
' item_drop ' : {
' item_drop ' : {
' item_drop.pickup_radius ' : " 1.425 " ,
' item_drop.pickup_radius ' : " 1.425 " ,
}
}
' throwing_arrows ' : {
' throwing.enable_arrow ' , " true " ,
}
}
}
why = { }
why = { }
@ -179,10 +194,10 @@ WARNINGS:
See < https : / / github . com / poikilos / EnlivenMinetest / issues / 444 >
See < https : / / github . com / poikilos / EnlivenMinetest / issues / 444 >
'''
'''
def main ( ) :
def main ( ) :
pass
pass
print ( warnings )
print ( warnings )
raise NotImplementedError ( " pyenliven build " )
if __name__ == " __main__ " :
if __name__ == " __main__ " :
main ( )
main ( )