how do i push a new texture to the client?

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

how do i push a new texture to the client?

by leetelate » Thu Nov 14, 2013 20:14

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?
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 » Thu Nov 14, 2013 20:18

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
Last edited by sfan5 on Thu Nov 14, 2013 20:19, edited 1 time in total.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

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

by leetelate » Thu Nov 14, 2013 20:27

#^(^&%*(&(^*%^(^(%^$^(&(

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
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...
 

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

by leetelate » Thu Nov 14, 2013 20:56

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
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 » Thu Nov 14, 2013 21:07

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.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

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

by leetelate » Thu Nov 14, 2013 21:36

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
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 General

Who is online

Users browsing this forum: No registered users and 6 guests