[Server] Survival X

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 00:57

good suggestions all, if someone want to code it i will review and consider merging
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
Lone_Wolf
Member
 
Posts: 1910
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 01:22

Lone_Wolf wrote:http://hometownserver.com/viewtopic.php?f=7&t=879#p5875
Would this help? Or do bows use a different type of entity?


nice discussion about bows...but not related ?
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 01:32

FYI: you can punch the basic machines spell (ball) and it will fly away since it has collision detection.
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
Lone_Wolf
Member
 
Posts: 1910
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Server] Survival X

by Lone_Wolf » Tue Jan 09, 2018 01:52

SaKeL wrote:
Lone_Wolf wrote:http://hometownserver.com/viewtopic.php?f=7&t=879#p5875
Would this help? Or do bows use a different type of entity?


nice discussion about bows...but not related ?

Could you apply some of Beerholder's addons to the basic_machines mod?
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 02:16

Lone_Wolf wrote:
SaKeL wrote:
Lone_Wolf wrote:http://hometownserver.com/viewtopic.php?f=7&t=879#p5875
Would this help? Or do bows use a different type of entity?


nice discussion about bows...but not related ?

Could you apply some of Beerholder's addons to the basic_machines mod?


there is no mention at all about detecting entities killing a player detection
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 02:22

UPDATE
Good news everyone, all the refactoring and mobs tuning really payed off ! The measurements showed a lot less lag and now more players can play with much less lag!

i.e.

before:
Code: Select all
spawners_mobs: | 14 | 720879 | 1866 | 0.1 | 99.1 | 20.9


now:
Code: Select all
spawners_mobs: |         0 |     82124 |       350 |   0.0 |  97.9 |   7.1


have fun!
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
GreenDimond
Member
 
Posts: 1179
Joined: Wed Oct 28, 2015 01:26
Location: {x=0,y=0,z=0}
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [Server] Survival X

by GreenDimond » Tue Jan 09, 2018 03:29

SaKeL wrote:
Lone_Wolf wrote:
SaKeL wrote:nice discussion about bows...but not related ?

Could you apply some of Beerholder's addons to the basic_machines mod?


there is no mention at all about detecting entities killing a player detection

He was referring to this:
Beerholder wrote:
Ferrum Princeps wrote:the real problem is not adding ranged weapons but preventing them from being abused at spawn as it would be hard to detect the killer to jail players


Actually, that is super easy and very very trivial 8-) It just needs to be done... In the case of the throwing mod's spawn of the arrow entity, assign the player or player name to a global table and use the entity object as hash:


Code: Select all
throwing.playerArrows = {}
<snip>
local obj = minetest.env:add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, arrow[2])
throwing.playerArrows[obj] = player:get_player_name()
<snip>


And we have now assigned the player who shot the arrow to the arrow object. Which can be retrieved later in the entity's on_step when it hits one or more players, e.g.:


Code: Select all
THROWING_ARROW_ENTITY.on_step = function(self, dtime)
<snip>
local arrow_owner = throwing.playerArrows[self.object]
<snip>


If the target player is in town limits and the target player health is <= 0, send arrow_owner to jail.

This trick of using the entity's object as hash in a global table will work for anything that uses entities and for which you would like to keep track of the owner or other related objects btw (e.g. the type of bow used to fire the arrow with, how long the fire button was pressed before releasing the arrow in order to give it more damage, etc. etc.). In my case, the arrow's owner is determined in order to raise the XP of the player when the player kills a mob with an arrow.
My YuTube channel | I moderate the HOMETOWN Server. | Click here to see my (6) mods! ~Using gradient signatures since 2017. ✂️- - - - -
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Tue Jan 09, 2018 04:14

thanks thats helpful, i have the same idea but dont know if throwing or basic_machines spell is assigning player owner to their entities, it would have to be implemented and tester properly. thanks again have it on my list already for long time
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
Lone_Wolf
Member
 
Posts: 1910
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Server] Survival X

by Lone_Wolf » Wed Jan 10, 2018 02:27

mikeTheDiamont killed me at spawn now...
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Wed Jan 10, 2018 05:08

UPDATE
* added city block jail support for basic machines spells

not extensively tested, so let me know how it works out

have fun!
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
kaadmy
Member
 
Posts: 701
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Server] Survival X

by kaadmy » Wed Jan 10, 2018 06:12

Beerholder wrote:
Ferrum Princeps wrote:the real problem is not adding ranged weapons but preventing them from being abused at spawn as it would be hard to detect the killer to jail players


Actually, that is super easy and very very trivial 8-) It just needs to be done... In the case of the throwing mod's spawn of the arrow entity, assign the player or player name to a global table and use the entity object as hash:


You don't even need the table, entities each have their own metadata so you can store their owner in each entity. I think it's accessible via
Code: Select all
local ent = <however>
ent.get_properties() -- Metadata table


I'm not sure if it's persistent across server restarts, but it doesn't really matter for arrows.

I'm also reading the 0.4.16 documentation, so the latest version may differ.
Never paint white stripes on roads near Zebra crossings.

Pixture
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Wed Jan 10, 2018 14:27

seems like it is crashing the server atm so i will disable it again.. if someone wants to code this i will consider it, im pretty busy with other stuff atm
Last edited by SaKeL on Wed Jan 10, 2018 14:38, edited 1 time in total.
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Wed Jan 10, 2018 14:37

kaadmy
metadata are send to the server and are persistent after restart, global table is only at clients memory (if im not mistaking) - what should be enough for this concept - but it all also depends on different mods and the implementation of them (throwing, shooting swords, spells...)
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
RWЯ
Member
 
Posts: 111
Joined: Thu Jun 29, 2017 11:21
GitHub: DreamCrusher
IRC: DabbetulArz
In-game: Hood

Re: [Server] Survival X

by RWЯ » Thu Jan 11, 2018 13:33

I made short video about new tnt. No problem
https://youtu.be/BMR-nWvQTT8
If I feel it then I do it (I don’t need a reason why)
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Thu Jan 11, 2018 14:52

RWЯ wrote:I made short video about new tnt. No problem
https://youtu.be/BMR-nWvQTT8


Nice video! this seems like before the fix though... :P
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Thu Jan 11, 2018 19:25

UPDATE
- many tweaks to mobs_monsters in order to reduce lag which means less mobs and less intelligent mobs - performance improvements
- changed server restart, backup and update from 2 times to 1 time in 24 hours - fixed bugs in backup scripts
- basic_machines ball spell will send you to jail when you kill in the city
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Fri Jan 12, 2018 04:02

UPDATE
* obsidian mese chest performance improvements
* obsidian mese engraved sword bugfixes, performance improvements
* you can now enchant the obsidian mese engraved sword
* obsidian mese engraved sword is compatible with city block - killing someone with the shooting bullet will send you to jail

FYI: obsidian mese engraved sword echant are only for melee and not for the bullet

have fun!
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Sun Jan 14, 2018 09:09

UPDATE
This was already a long time overdue but finally got to it on my list. The big players cleanup took place:
* around ~206335 players were removed (still 11310 players are kept behind)
* auth file got from 89MB to 4MB

All players from 1-Jan-2018 are kept!

This is a huge performance improvement and will reduce LAG a lot!
Also this is a 1st step for cleanup of this kind. In the near future this gets more progressive and automated, so server does't have to look through more than 200.000 files and 90 MB of another file each few minutes and give everyone a lag.

Have fun!
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Sun Jan 14, 2018 20:25

ANNOUNCEMENT
The next step of cleanup will remove all the deleted players chests, doors, vending machines, basic machines, enchantment tables, city blocks and protection logos/blocks from the world! This will free-up some more space what is currently occupied and blocked by players what are not playing anymore.

If the players what were removed will not login until the end of the month (January 2018) all their above mentioned blocks will be removed.
Last edited by SaKeL on Sun Jan 14, 2018 22:38, edited 2 times in total.
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
bosapara
Member
 
Posts: 341
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
In-game: Jozet

Re: [Server] Survival X

by bosapara » Sun Jan 14, 2018 20:58

>The next step of cleanup will remove all the deleted players chests, doors, vending machines, basic machines, enchantment tables and protections logos from the world!

good news.
__________

How about to add in rules not build over another areas?
An example here ufa's papyrus dont grow more, cuz some one like to build over another areas
Image
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Sun Jan 14, 2018 22:37

i would like to have that rule, but who is going to police that ? I would suggest protecting your area above when you don't want others to build there or make alliances.
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

User avatar
bosapara
Member
 
Posts: 341
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
In-game: Jozet

Re: [Server] Survival X

by bosapara » Mon Jan 15, 2018 00:48

SaKeL wrote:i would like to have that rule, but who is going to police that ? I would suggest protecting your area above when you don't want others to build there or make alliances.


All simple, just we can ask (old players) new players who build over another area avoiding the removal of their buildings by mod cuz its:
1. looks ugly and unreal (home in air)
2. can interfere with light and plants will not grow
3. some spawners will not works too
 

tobi
Member
 
Posts: 47
Joined: Sat May 27, 2017 22:22
GitHub: +tobi
IRC: Tobiyt
In-game: DAO

Re: [Server] Survival X

by tobi » Mon Jan 15, 2018 00:54

Good Morning Today is in my friend's house
when suddenly it arrives Seraphina and puts protectors on top of the casde mine friend
he killed us several times
I could do something =) ?
 

User avatar
SaKeL
Member
 
Posts: 528
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Mon Jan 15, 2018 03:35

tobi wrote:Good Morning Today is in my friend's house
when suddenly it arrives Seraphina and puts protectors on top of the casde mine friend
he killed us several times
I could do something =) ?


What did Seraphina said after you confronted him/her ?
Follow my Collection for more Minetest creations found on my server or join the Community for the latest Server updates and news.

SaKeL
 

PreviousNext

Return to Servers



Who is online

Users browsing this forum: No registered users and 8 guests