External Publication
Visit Post

WIP Mods • Re: [mod] Automated Storage & Retrieval System [asrs]

Luanti Forums - Index page [Unofficial] April 28, 2026
Source

Some three-minute bloviations: I found src/network/serverpackethandler.cpp#L868

Code:

bool Server::checkInteractDistance(RemotePlayer *player, const f32 d, const std::string &what){ ItemStack selected_item, hand_item; const ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item); f32 max_d = BS * getToolRange(tool_item, hand_item, m_itemdef); // Cube diagonal * 1.5 for maximal supported node extents: // sqrt(3) * 1.5 ≅ 2.6 if (d > max_d + 2.6f * BS) { actionstream << "Player " << player->getName() << " tried to access " << what << " from too far: " << "d=" << d << ", max_d=" << max_d << "; ignoring." << std::endl; // Call callbacks m_script->on_cheat(player->getPlayerSAO(), "interacted_too_far"); return false; } return true;}

Where it checks the tool range of the node def. Perhaps you can experiment with adjusting the defined range of the tool. It does the check in C++ rather than lua, and maybe that will not be as un-performant as you fear?

Now, changing the "tool range" on your ASRS remote access pad means that you will be able to point to nodes this far away, which probably doesn't matter since the pad doesn't interact with nodes directly that you point to. But the selection bounding box could be off in the distance.

Statistics: Posted by bgstack15 — Tue Apr 28, 2026 12:35


Discussion in the ATmosphere

Loading comments...