Page 1 of 1

trying to understand a server mod that is also on a client.

PostPosted: Sat Jun 28, 2014 00:35
by ExeterDad
I've placed many mods on my server and even tweaked a few of them a bit, and as expected... they worked.
I tried a small edit to the bones mod that is within the standard minetest game (on the server box). But nothing happened at all. So I guess I want to know if I tweak the bones mod on the server, will it affect the clients since they already have their own bones mod within the game?

Thanks in advance for putting my brain out of its misery :)

Re: trying to understand a server mod that is also on a clie

PostPosted: Sat Jun 28, 2014 01:03
by kaeza
Mods only run on the server. The server only sends media (textures and sounds) to the client, in addition to metadata about the blocks (like how hard they are, which node is set when you "place" the item, etc).

As for your small edit to the bones mod, what was the modification you made? Some modifications may not have an apparent effect immediately.

Re: trying to understand a server mod that is also on a clie

PostPosted: Sat Jun 28, 2014 01:36
by ExeterDad
Thanks for your quick answer kaeza.

Turns out it was a typo in my code so naturally it didn't work as expected. Pretty bold of me to assume I wasn't at fault? lol

All I was doing is announcing player death in chat and in server log. So I don't have to work so hard in locating my childrens bones so they can recover whatever treasures they have lost.

I fixed the mistake and now it's working as expected.

Edit: Mods running only on server answer clears many questions in my head. I can sleep tonight.

Re: trying to understand a server mod that is also on a clie

PostPosted: Sat Jun 28, 2014 01:57
by kaeza
Glad to be of help :)

By the way, related to your changes, if you don't like your kids losing their items on death, you may safely move the `bones' folder/mod out of the game folder to disable this completely, or a modification could be made so only certain players lose their items, so your kids (or you) can optionally enable it as a sort of challenge.

Re: trying to understand a server mod that is also on a clie

PostPosted: Sat Jun 28, 2014 03:37
by ExeterDad
kaeza wrote:Glad to be of help :)

By the way, related to your changes, if you don't like your kids losing their items on death, you may safely move the `bones' folder/mod out of the game folder to disable this completely, or a modification could be made so only certain players lose their items, so your kids (or you) can optionally enable it as a sort of challenge.

Interesting.
Although disabling bones would be sad as we get a kick out of seeing where each other has met our maker. And like the challenge getting our treasures back. Death hurting makes it funner for us. But when the bone are in a maze of a cavern, the challenge is a bit too much for the kids. My seven year old daughter enjoys collecting everyone's bones and burying them under a tombstone in a graveyard she's created. Yet another use for the flowers LOL
I'm thinking about making the bone emit some sort of beacon via chat command. Much like waypoints do on the Unified Inventory mod.
Announcing the player death and the co-ordinates was just a quick and dirty solution.