[Server] Survival X

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

Re: [Server] Survival X

by SaKeL » Post

good suggestions all, if someone want to code it i will review and consider merging

User avatar
Lone_Wolf
Member
Posts: 2326
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Server] Survival X

by Lone_Wolf » Post

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

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

Re: [Server] Survival X

by SaKeL » Post

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 ?

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

Re: [Server] Survival X

by SaKeL » Post

FYI: you can punch the basic machines spell (ball) and it will fly away since it has collision detection.

User avatar
Lone_Wolf
Member
Posts: 2326
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Server] Survival X

by Lone_Wolf » Post

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: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Post

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

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

Re: [Server] Survival X

by SaKeL » Post

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!

User avatar
GreenXenith
Member
Posts: 1312
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: SCP-3008
Contact:

Re: [Server] Survival X

by GreenXenith » Post

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.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.

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

Re: [Server] Survival X

by SaKeL » Post

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

User avatar
Lone_Wolf
Member
Posts: 2326
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

Re: [Server] Survival X

by Lone_Wolf » Post

mikeTheDiamont killed me at spawn now...

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

Re: [Server] Survival X

by SaKeL » Post

UPDATE
* added city block jail support for basic machines spells

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

have fun!

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

Re: [Server] Survival X

by kaadmy » Post

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: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Post

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.

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

Re: [Server] Survival X

by SaKeL » Post

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

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Я » Post

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: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Post

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

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

Re: [Server] Survival X

by SaKeL » Post

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

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

Re: [Server] Survival X

by SaKeL » Post

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!

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

Re: [Server] Survival X

by SaKeL » Post

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!

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

Re: [Server] Survival X

by SaKeL » Post

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.

User avatar
bosapara
Member
Posts: 575
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
Contact:

Re: [Server] Survival X

by bosapara » Post

>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: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Post

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.

User avatar
bosapara
Member
Posts: 575
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
Contact:

Re: [Server] Survival X

by bosapara » Post

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 » Post

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: 653
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Server] Survival X

by SaKeL » Post

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 ?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests