NearbySpy

Passive player recorder for WoW — Forever, Classic Era and Retail — feeding the RealmPulse realm demographics site
Back to Files

NearbySpy-v1.6.7.zip

File nameNearbySpy-v1.6.7.zip
Uploader
wlf10wlf10
Uploaded
Dec 1, 2026
Downloads
216
Size
350.9 KB
Flavors
ForeverRetail
File ID
9952748
Type
R
Release
Supported game versions
  • 12.1.7
  • 1.60.1

What's new

1.6.7

Fixed: the database can no longer be lost in one silent moment

SavedVariables is compiled as a single Lua chunk, and a chunk may hold at most 262 143 constants. Measured on files of this shape: 66 000 records load, 68 000 fail with "constant table overflow" — and on 29 November the saved file crossed that line, so the client could not read it and the addon wrote a fresh empty database over it. The database now holds at most 10 000 records (about 15 % of the limit); the oldest are evicted as new ones arrive, in one amortised pass every 500 records. Age is taken from the packet time too, so a record learned through the channel is not discarded as ancient just because you never met that player. Eviction is announced in chat on the first pass of a session, and /nspy mem shows "records N of 10000" with the total dropped.

Fixed: a meeting just past the ceiling was lost instead of evicting an old one

Eviction touched a counter table declared lower in the file, which in Lua 5.1 resolved to an empty global: the call failed before the new player was written, so every encounter beyond the 10 000 ceiling vanished in silence. The table is now declared before it is used.

Fixed: the realm is found again, and the "?" is gone from the list

The client in Forever returns an empty string from GetRealmName() every time, so 5 552 of 10 142 records in a live save carried realm="?" — every one of your own sightings — and the list drew that as a question mark on every second row.

  • A row with an unknown realm now carries no realm line at all; "unknown" stays in the player card.
  • Auto-detection walks every known path to the realm name — GetRealmName, GetNormalizedRealmName, GetPlayerInfoByGUID (every return value, not a fixed position), the Battle.net account record, guild info and the guild roster — and accepts an answer only when it matches a realm name from the site snapshot. A guessed realm would rewrite record keys and corrupt the upload.
  • If the client stays silent, one command sets it: /nspy realm lists the realms the site knows, /nspy realm 3 picks one, /nspy realm <name> sets an exact name. /nspy realm probe shows what the client actually returns.
  • Your own records are rewritten and re-keyed with duplicates merged; records learned over the peer channel are left untouched, because their "?" refers to another player, not to you.

New: the PvE or PvP rules of your realm are named

No client function returns the realm type, so it is derived from the realm name (... PvE, ... PvP, ... RP PvP) and cross-checked with your PvP flag. The flag is deliberately silent where it proves nothing — inside an instance, in a sanctuary, in your own capital — and the addon then says nothing rather than guessing. /nspy realm prints the rules of the selected realm.

Improved: the DETECTED counter shows the full number, as the site does

The card, the faction line, the level chart and the class bars read the census snapshot from the bundled NearbySpy_Data module (total, levels, classes, factions) instead of walking your database, so the counter keeps showing the realm-wide number and not the size of the local record list — which is now capped at 10 000. The card label carries the snapshot date (DETECTED · 30.11): a number from the site is data as of a date, not a live counter. Without the data module the window falls back to local numbers. The bundled snapshot refreshes weekly on its own.

Improved: the inspection window keeps its item tooltips

In a busy place the inspect window opened with icons but hovering a slot gave an empty tooltip: the client holds the data of one inspected player, and the passive queue sends NotifyInspect every 0.9–1.8 seconds, replacing the set the window draws tooltips from. Passive inspection now stands down while the window is shown, and hooks NotifyInspect to notice an inspection it did not start: the next request then waits 6 seconds.

Fixed: the inspect window opens on the first click

The same single-slot limitation from the other side: the client allows one inspection at a time and answering takes about a second, so the slot was busy with the addon's own request 35–50 % of the time and a click landing in that window was refused. Your request is now repeated after 1.0, 2.2, 3.5 and 5.5 seconds until it is answered, the passive queue slows down for a minute afterwards, and it steps aside for the player you are looking at. Success is judged by the data being readable, not by the event arriving. /nspy gear prints the counters, so a failed window can be explained from chat instead of guessed at.

New: your own record is published to the channel

Until now only encountered players travelled through the channel, so you appeared in someone else's database only when they saw you. Your character now publishes itself — name, realm, class, level, race, faction, zone — on login, on a new level, on a zone change and every 30 minutes. The receiving side marks the record inside the existing flag mask: unlike an ordinary shared record, which carries the realm of the sender, a self record carries the realm of the player it describes.

New: /nspy me takes a snapshot of your own gear

A character cannot inspect itself, and the offline 3D model build needs your own race, gender and 19 slots. /nspy me writes them into the saved file; the file is written on logout or /reload, so run the command and then /reload.

Fixed: vendor prices no longer stop being recorded

A vendor could carry a GUID the client marks as secret; comparing it with an empty string threw an error and the vendor registration failed as a whole. A plain GUID behaves exactly as before, a secret one falls back to the name@zone key.

Fixed: the Exchange tab shows refreshes, not only brand-new players

The tab listed only players the channel taught us for the first time, so a refresh of someone you had already met updated the database and never appeared there. Refreshed records now carry their own mark — a third bit in the existing flag mask, no new record slot — and the tab counts them.

Fixed: the Exchange tab counts arrivals while the window is open

Channel packets arrive without a sighting of our own, so they never entered the list the tab is built from, and the window only repainted on click. Incoming records now enter the buffer by their packet time, and the window repaints two seconds after the last arrival.

Fixed: live encounters no longer go missing while a big transfer arrives

Receiving had one budget for everything (120 messages a minute), shared with bulk transfers over the same channel, so while a large transfer was arriving, ordinary packets from the capital were dropped as "rate limit" — live encounters were lost. Bulk and ordinary packets now have separate budgets (240 and 120) with a combined guard of 300, and every tenth message of a transfer yields the send slot to a waiting live record. Throughput is unchanged; what is gone is the two-minute blockage.

New: gender is recorded for every player you meet

Gender is read on each observation and stored inside the existing flag mask, so no record grows and older files still parse. It is filled on first sighting and never overwritten, the same rule as race. The site's 3D viewer needs it to pick the right character model.

Changed: the "Fresh" tab is now the sum of "New" and "Exchange"

It used to be a bare five-minute window, so on a long session it read lower than the two tabs it is made of: New 900, Exchange 400 and Fresh 60 were three numbers that could not be compared. Fresh now counts its own window plus own finds of this session plus channel records of this session. The "ACTIVE < 5 MIN" metric card keeps the pure five-minute count, as its label promises.

This mod has no additional files