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

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

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

by ExeterDad » Sat Jun 28, 2014 00:35

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 :)
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

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

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

by kaeza » Sat Jun 28, 2014 01:03

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

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

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

by ExeterDad » Sat Jun 28, 2014 01:36

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.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

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

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

by kaeza » Sat Jun 28, 2014 01:57

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

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

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

by ExeterDad » Sat Jun 28, 2014 03:37

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.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 12 guests

cron