Players can set homes inside foundationFixed
There is a bug when a player can still install a house inside the foundation:
- First, a low foundation is established close to the ground;
- On this foundation, the player sets a home;
- Next to it is built exactly the same low foundation;
- Then the first foundation is removed, and in its place a high foundation is put on the ground (equal in height to a full one floor). The second low foundation remains nearby too.
- The teleportation point is maintained, despite the fact that the first low foundation has been removed (since it is somehow associated with the second low foundation).
- And when teleporting home - the player appears inside a high foundation (usually from HQM).
- No standard settings of the plugin "N Teleportation" help to remove this bug.
The players lay the foundations of high quality metal and shoot other players from there (since the textures of such HQM foundations are transparent and sweep from the inside), but the players cannot see the inside and outside of the foundations from outside.
Plugin version - v1.0.43. The Oxide version is 2.0.4103.
Rust protocol 2140 (Patched for January 3rd update).
Can someone know how to remove this bug by customizing the plugin?
But most likely here need to somehow adjust the plugin code. Since here the low foundation is not under the high foundation, but next to it (there is nothing under the high foundation, but the teleportation point is kept under it).


So far I have been unable to create foundation that high above the old one.  However, I was able to create one starting at half-height and then one half above that.  I made some progress and can now detect that a foundation exists above the original spot.  I will take some more time tomorrow to try to get this working.
In response to rfc1920 ():
So far I have been unable to create foundation that high above the old one.  However, I was able to...
To build a high foundation (which is equal to the height of an ordinary wall), it is necessary to temporarily place intermediate foundations made of straw (half a floor high) on the side, which are placed near the low foundation. Then these foundations are removed from the straw. The most important thing is to find a suitable place on the map, it must be level to build such a structure.
In the private message you can write any server and I can go in and show how to do it.

Merged post

To solve this bug, it is necessary that when you remove the foundation on which the house was originally preserved, so that the saved house is also deleted. But at the present time, the house is not removed if there is some other foundation nearby, and the house is tied to it (using the /home radius command shows that the house becomes on the next foundation if you remove the original foundation). A preserved house is only removed if nearby foundations are destroyed. It may be necessary to reduce the radius of binding the point of the house to the foundation (or something like that, because I am not very good at programming) so that the house is tied only to one foundation and not reassigned to the neighboring foundation (when removed). Since the teleportation is carried out on the old place (according to the coordinates on which the house was saved initially). That is why you can safely remove a low foundation and put a high foundation in its place.
Please try version 1.0.44 and let me know.
In response to rfc1920 ():
Please try version 1.0.44 and let me know.
In the new version of the plugin (1.0.44), I still can save the point of the house on a low foundation, then remove this foundation, and put a high foundation in its place, and teleport home into the interior of the foundation.
And accordingly, the player can still shoot from the inside of the foundation at other players (and be invulnerable inside). The bug is not fixed.

If you feel comfortable with this, save a copy and change line 2957 to:

foreach(var hit in Physics.RaycastAll(position, up, 5f, buildingLayer))

That might be enough to hit the higher foundation.  Otherwise, I will keep trying to make that full height foundation and see if that number works for me.
This change did not help.Teleporting inside the foundation still works.

Merged post

I wrote above one of the possible solutions to this bug (post #3).
After all, the bug lies precisely in the fact that when you remove the original low foundation - the house itself is not removed (if there is another low foundation next to it).But if the house is also removed (with the destruction of the foundation), then there will be no opportunity to teleport to the high foundation.
That's not I rewrite I would look forward to, but knock yourself out.  In the meantime, I will work on the issue as I can in my spare time.
In parallel, I wrote to the developers of the game RUST (through feedback, in the Bugs section), so that they could, if possible, make from the inside the opaque textures of the foundation (from HQM). And so that the developers of RUST made it so that it was impossible to shoot from within the high foundations. Then the meaning will simply be lost to dishonest players to climb inside the foundations (if they will not see anything and will not be able to shoot anyone).
But it is necessary that someone else wrote the game developers (on the official website of the game, through feedback, in the Bugs section). After all, the more reports and complaints there are, the more likely they are to fix this bug faster.
Since this is a real problem on many modified servers (when one player finds out about the bug, others repeat after it), i.e. players kill other players from such high foundations.
If the game developers hear and see this (and most importantly, correct it), then there will be no need to correct the Teleportation plugin, since it will be meaningless to teleport inside the high basement (nothing will be visible from the inside, and the basement will not be shot through). And so that the players do not hide the loot (boxes and sleeping bags) inside the high foundations - there is a separate plugin that prohibits installing any objects under the foundation.
True it is not known what will be fixed earlier: either the textures in the game itself, or the plugin N-Teleportation ))
Well I guess they get paid and can also afford to work on this all day.  Then again they have their priorities - moar pumpkins!

Merged post

I was able to set the double-height foundations somewhat reliably and so was able to add a second check for them to version 1.0.45.  May still need some fine-tuning but should be close.  Let me know.
In the current version of the plugin (v1.0.45) - the error seems to be fixed!
A house stored on a low foundation is removed if a high foundation is placed in its place.
Correspondingly, the player will no longer climb inside the high base.
The issue is resolved!
And about the warning about the possible removal of ordinary homes, I didn’t see any problems. At different heights of the foundation - the houses remain and do not disappear. The plugin works without errors. But in any case, time will tell, if suddenly something is found.
Thanks for testing.  I'll give it a couple of days and then remove that EXPERIMENTAL message if appropriate.
In response to rfc1920 ():
Thanks for testing.  I'll give it a couple of days and then remove that EXPERIMENTAL message if appr...
Again, there were players who hid in the foundation, but now a little differently. Previously, near the low foundation they set a high foundation (equal to the height of one floor). And now, near the low foundation, a half-high foundation is put (equal to the height of half of one floor). Naturally, prior to the installation of the semi-high foundation, first a low foundation is established in its place, on which the point of the house is kept, and then one low foundation is removed (the other low foundation remains nearby).
After removing the low foundation - the point of the house is not removed, and when installing a half-high foundation - the player gets into it during teleportation. And he is still invulnerable and can shoot at other players (there is enough space in height).
Apparently, in the plugin, a check for the detection of the foundation above the saved point of the house is designed only for a completely high foundation, but it does not work for a half high one (and the home is not removed).
What was done was to add the second check for the higher foundation whereas the first check was done for the half-height foundation.  Will check.

Merged post

I was not able to duplicate this.
Hi,
This problem is still possible even with the latest version of the plugin.
Is it possible to correct as soon as possible?
All the players are screaming ... I will soon ban everyone: p
Locked automatically