Skip to content

sc_entities_v1.last_error

The reason for self’s last failed call (“” if none), NUL-terminated, with the size handshake (*inout_size: capacity in; bytes written, or needed with SCO_TOO_MANY, out). self NULL: the last failure of a call made without a plugin handle (alive’s neighbours: class_of, get_transform, query_radius). Any thread.

sco_result (*)(sco_plugin *, char *, uint32_t *)

Service index

Property Value
Symbol sc_entities_v1.last_error
Record ID sc-entities-v1-last-error
Service game.entities
Table sc_entities_v1
Version macro SC_ENTITIES_VERSION_1_1
Packed table version 65537
Since / availability size >= 88; 1.0
Complete member extent (x64 bytes) 88
Table size (x64 bytes) 96

Header source

sco_result (*last_error)(sco_plugin* self, char* out, uint32_t* inout_size);
The reason for self’s last failed call (“” if none), NUL-terminated, with the size handshake (*inout_size: capacity in; bytes written, or needed with SCO_TOO_MANY, out). self NULL: the last failure of a call made without a plugin handle (alive’s neighbours: class_of, get_transform, query_radius). Any thread.

BAD_ARG invalid/released non-NULL self or buffer; TOO_MANY required bytes. NULL self selects no-self failures; stopped-service refusal unspecified (no started check).

unspecified

Caller buffers; no allocation crosses boundary. Host owns entity/watch tracking; IDs are session values. Internal allocation unspecified.

Any thread; diagnostic scope as described; recursive reentrancy unspecified.

unspecified

unspecified

No in-flight cancellation entrypoint; owned entities removed and watches ended on ordinary unload/non-retained crash cleanup, except kept entities. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sc_entities.h
(*last_error)
cpp typed-wrapper include/scosdk/game/entities.hpp
sco_result r = t_->last_error(who, s.data(), &size);
csharp typed-wrapper sdk/csharp/Sco.Sdk/Game/Entities.cs
return Storage.Sized((buf, size) => ((ScEntitiesV1*)t)->last_error((void*)who, buf, size), out byte[] b) == ScoResult.Ok
lua restricted plugins/lua/sco_lua_game.c
if (GAME_MEMBER(e, sc_entities_v1, last_error) && e->last_error(NULL, msg, &size) == SCO_OK && msg[0]) { lua_pushstring(L, msg); return 3; }

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.