Page 1 of 1

how do i push a new texture to the client?

PostPosted: Thu Nov 14, 2013 20:14
by leetelate
i make a overhead-view mapping function (90% working yay) that actually maps at mapgeneration - but there is a nasty problem!

ok, i have my nice map, generated on-the-fly during mapgen, now how do i get it to the player(s)? - the minetest says dummy image unless i quit out and restart minetest - grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

is there a way to push the image to the player so the player will get it withou thaving to quit and come back in?

a new node definition or object maybe? but no that isn't working either - client still gets dummy

bah! this is a bad thing!

(regaining composure...breathe...breathe)

so the question is actually a simple one: must all textures be in the game at startup to be seen by the player(s)? - if i change a texture or create a new texture, is there any way for the player(s) to get it without quitting and restaring minetest? - is there a hacky fix around this?

PostPosted: Thu Nov 14, 2013 20:18
by sfan5
You could change the server code to send the texture to every client, but this does not work for two reasons.
If you send more media than announced to the client it will throw an error.
If you annouce more media than sent it will not enter the game.
-> This is currently not possible

PostPosted: Thu Nov 14, 2013 20:27
by leetelate
#^(^&%*(&(^*%^(^(%^$^(&(

thanks

i suppose i could build a world map before...cry....well that kinda just took a dumpf on mapping on-the-fly

its always the creeper you don't know about that kills you ><

thanks anyway

PostPosted: Thu Nov 14, 2013 20:56
by leetelate
suicide buffalo chicken (makes 1 dozen)
boneless chicken bites
bottle of The Source hot sauce
microwave

(several bites later..)
i could make a single-player varsion since they are usually on the same machine (jack damn this stuff is hot) and hacky swap the texture via the os through lua

or just go back to building a world map, then mapgen to fit that map - with the huge delay - but with the added bonus of tweaking the map

meh, either way, i WILL have my map!

thanks everybody - panic mode off, beer mode on

PostPosted: Thu Nov 14, 2013 21:07
by sfan5
leetelate wrote:hacky swap the texture via the os through lua

Won't work, it loads the texture on connect and not for every render.

PostPosted: Thu Nov 14, 2013 21:36
by leetelate
sfan5 wrote:Won't work, it loads the texture on connect and not for every render.


then i guess it's back to the world map (and switching to makgeolli from beer)

luckily i have saved the previous 2 million versions of the world map code

just have to take the performance hit with the worldmap->mapgen - thanks again

SOLVED

i just wish i had some soju