Page 1 of 1

game within world in 0.4.7?

PostPosted: Fri Sep 27, 2013 21:14
by leetelate
docs say it is possible but i swear i have tried EVERY permutation and even checked the cpp as much as i could

if i have:

/worlds
..../myworld
.........world.mt -> gameid = mygame
........./game
............./mygame
...................game.conf -> name = mygame
...................init.lua
................../mods

it simply never finds mygame

if i put mygame into the global /games folder, it finds it without a problem

even if i put the whole minetest-game within the game folder inside the world and set it up that way as a test, it doesn't find that either

um, is it enabled? what should the folder structure be?

thanks - your kung-fu is the best!


hmmm, i think i'll try downloading the latest code...

PostPosted: Fri Sep 27, 2013 21:54
by sfan5
I haven't found any evidence of this feature in the code

PostPosted: Fri Sep 27, 2013 22:03
by kaeza
sfan5 wrote:I haven't found any evidence of this feature in the code

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L81

Edit:
Just copy your game to the world directory and rename the folder as simply "game".
No need to tweak anything in world.mt .

PostPosted: Fri Sep 27, 2013 23:11
by leetelate
thanks kaeza! counter-intuitive but HOLY JACK!!! IT WORKS!!!

testing...

the game doesn't show up - no icon, or header, but it is there working, hidden

so you can't make another game based on the game, but you can play this one

also world.mt is basically ignored if it sees /game - game.conf is ignored too - the worldlist says (minetest) after the game name, but minetest game isn't active

compiled just now using the latest git

and thanks sfan5 -> that was the problem i had too - in the 0.4.7 minetest-minetest-d470842 i had 'findWorldSubgame' in 'subgame.cpp' was not there and i was like what?

you guys rock!