sc_vehicles_v1.last_error
The reason for the last failed call (“” if none), NUL-terminated, with sco.storage’s size handshake: *inout_size is out’s capacity on entry and the bytes written (NUL included) on SCO_OK, or the bytes needed on SCO_TOO_MANY. out may be NULL when *inout_size is 0. On the game thread: the newer of your own last failed call (functions with self) and the last failed query (functions without self, by any plugin); ask right after the call. On another thread: the last refusal on that thread. Any thread.
Signature
Section titled “Signature”sco_result (*)(sco_plugin *, char *, uint32_t *)Service and availability
Section titled “Service and availability”| Property | Value |
|---|---|
| Symbol | sc_vehicles_v1.last_error |
| Record ID | sc-vehicles-v1-last-error |
| Service | game.vehicles |
| Table | sc_vehicles_v1 |
| Version macro | SC_VEHICLES_SERVICE_VERSION |
| Packed table version | 65536 |
| Since / availability | size >= 64; 1.0 |
| Complete member extent (x64 bytes) | 64 |
| Table size (x64 bytes) | 64 |
Parameters and buffers
Section titled “Parameters and buffers”sco_result (*last_error)(sco_plugin* self, char* out, uint32_t* inout_size);
The reason for the last failed call (“” if none), NUL-terminated, with sco.storage’s size handshake: *inout_size is out’s capacity on entry and the bytes written (NUL included) on SCO_OK, or the bytes needed on SCO_TOO_MANY. out may be NULL when *inout_size is 0. On the game thread: the newer of your own last failed call (functions with self) and the last failed query (functions without self, by any plugin); ask right after the call. On another thread: the last refusal on that thread. Any thread.
Results and failures
Section titled “Results and failures”BAD_ARG invalid buffer; TOO_MANY required bytes. Game thread selects newer own/shared-query error; other threads their refusal. self validity and stopped-service rejection unspecified; implementation does not enforce them.
Absent capability
Section titled “Absent capability”unspecified
Ownership
Section titled “Ownership”Caller outputs; IDs/seat indexes are streaming-session values. No allocation transfer; internal allocation unspecified.
Thread affinity
Section titled “Thread affinity”Any thread; diagnostic scope as described; recursive reentrancy unspecified.
Callback context
Section titled “Callback context”unspecified
Reentrancy
Section titled “Reentrancy”unspecified
Cleanup and cancellation
Section titled “Cleanup and cancellation”No in-flight cancellation entrypoint; game acceptance need not mean action completed.
Language mappings
Section titled “Language mappings”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_vehicles.h(*last_error) |
| cpp | typed-wrapper | include/scosdk/game/vehicles.hppreturn ref_->last_error(self_, out.data(), &size); |
| csharp | typed-wrapper | sdk/csharp/Sco.Sdk/Game/Vehicles.csreturn Storage.Sized((buf, size) => _t->last_error(Self, buf, size), out byte[] b) == ScoResult.Ok ? Utf8.FromBytes(b) : “”; |
| lua | restricted | plugins/lua/sco_lua_game.cif (GAME_MEMBER(v, sc_vehicles_v1, last_error) && v->last_error(self, msg, &size) == SCO_OK && msg[0]) { lua_pushstring(L, msg); return 3; } |
Examples
Section titled “Examples”None identified in the catalogue; this is not proof none can exist.
- tests/abi_game_vehicles.c
- tests/test_app.cpp
- sdk/csharp/Sco.Sdk.Tests/GameFakeHost.cs
- tests/test_lua.cpp
- tools/test.sh
- sdk/csharp/Sco.Sdk.Tests/GameLayout.cs
ABI pins prove layout, not semantic behavior or a live game session.