game within world in 0.4.7?

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

game within world in 0.4.7?

by leetelate » Fri Sep 27, 2013 21:14

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...
Last edited by leetelate on Fri Sep 27, 2013 21:35, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Sep 27, 2013 21:54

I haven't found any evidence of this feature in the code
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Sep 27, 2013 22:03

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 .
Last edited by kaeza on Fri Sep 27, 2013 22:05, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

leetelate
Member
 
Posts: 205
Joined: Thu Aug 29, 2013 18:07

by leetelate » Fri Sep 27, 2013 23:11

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!
Last edited by leetelate on Fri Sep 27, 2013 23:24, edited 1 time in total.
MT IS MC'S SMARTER BROTHER
minetest 0.4.8 compiled from latest git on linux mint 15 with qjoypad and wired 360 controller
freeminer, pilztest, buildcraft and next are the idea factories
my minetest page is http://1337318.zymichost.com if zymic isn't down - meh, it is free...
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 4 guests