High-level, fluent, strongly typed C#/.NET client API for user-facing Cheat Engine workflows, built over CheatEngine.SDK.
Repo CheatEngineNet/CheatEngine.Client, read from GitHub 1 min ago. CheatEngineNet has not joined Take My Repo.
LuaOptional<T> inputs of SDK-supportedout result on a bool binding. Their public surface uses the Client-ownedLuaOptional<T> and its Omitted, Nil and Of factories; omitted arguments, absent results, explicit nil andThe release assets include SHA256SUMS, the SPDX SBOM of each package and their sigstore attestation bundles. RELEASING.md explains how to verify them.
The first release of CheatEngine.Client: high-level, activation-scoped C# APIs for Cheat Engine 7.7 x64 plugins, built
on CheatEngine.SDK 2.0.0. It fixes the public API for the 1.x line, under the versioning rules of the
README and the
public API charter of the CheatEngine.Client.Abstractions README; an API that carries an experimental diagnostic id
(CECLIENT5001 to CECLIENT5004) stays outside that promise until the id is lifted. Changed and Removed
compare this release with the 0.1.0 builds of the repository, which were never published. They summarize by contract
the changes a consumer of those builds meets, not every renamed member: the PublicAPI files of each project list the
exact surface.
CheatEngineClientPlugin builds a new DI provider, scope and ICheatEngineClient onICheatEngineClientModules in registration order, stops them in reverse order and releasesICheatEngineClient exposesDispatcher, Runtime, Processes, Memory, Patterns, Inspection, Tables, Lua, ValueScans,Allocations and Assembly; Epoch and Stopping identify the activation.ICheatEngineRuntime.TryGetClientCapability reports each of the eleven ClientCapabilityIdsEvidence: separate implementation, package, host, live qualification, policy and lifetime gates, and aEffectiveReasonCode; a capability reports Available only when all six gates are satisfied. Every capabilityUnknown until the Client embeds committed evidence that every live scenario of theClient.UnsafeLuaExecution has no scenario, so it stays Unknown). The README[Experimental] until the live scenarios of its capability succeed andCECLIENT5001, value scans: ICheatEngineClient.ValueScans creates IValueScanSessions over CheatEngine.SDK'sMemScan and FoundList, with first and next scans and pages of at most 1024 copied results;ValueScanValue.FromSingle and FromDouble write the value in fixed point with the decimals the caller passes;CECLIENT5002, target allocations: IAllocationClient.Allocate returns an ITargetMemoryLease overAllocatedRegion (AllocationProtection.ReadWrite or ExecuteReadWrite), freed only in theCECLIENT5003, instructions: IAssemblyClient assembles, disassembles and measures one instruction per call,CECLIENT5004, Auto Assembler patches: IAutoAssemblerClient checks a script, or applies it and returns anIAutoAssemblerPatchLease that owns the disable information Cheat Engine returned; it is registered only byEnableAutoAssemblerPatches().ICheatEngineLease:Release() returns aLeaseReleaseOutcome (a LeaseReleaseKind, the host effect, and exactly one of IsComplete, IsRetryable andRequiresManualRecovery), Dispose() never throws, LastReleaseOutcome keeps the attempt that ended the lease, andRequiresManualRecovery says that what the lease owned may remain. Only Unknown and CleanupUnavailable areSelectionEpoch of the process CheatEngine.SDK bound it to, andILuaModuleLease.LastModuleReleaseOutcome keeps what the module reported.CheatEngineFailure.HostEffect says how far the Cheat Engine primitive got: NotStarted,Started, Completed, NotApplied, CleanupUnconfirmed or Unknown. New failure kinds:IndeterminateHostResult (documented causes that cannot be told apart, never absence), TargetChanged,TargetIdentityUnavailable and RuntimeChanged. CheatEngineFailure.Throw(token) throws a failure's exception andToException(token) creates it.IPatternScanner.ScanDetailed returns a PatternScanOutcome: the classification of TryScan,PatternScanMetrics (the route, the host result count, the examined, filtered-out, copied and unread counts, andPatternScanHostOutcomeKind, the PatternScanRouteReasonTargetIdentityVerified. A module or range scan runs Cheat Engine's bounded MemScan on a qualified local targetAOBScan with managed filters elsewhere, whose addresses are never reported asScanProtectionFilter, ScanAlignment) that Core translates theIMemoryClient.ReadBytesDetailed returns the confirmed prefix of a partial byte readMemoryBytesReadOutcome), and ReadPrimitiveBatchDetailed and WritePrimitiveBatchDetailed reportRequestedCount, CompletedCount and a MemoryBatchWriteEffectState. Pointer-typed operations useBitnessCheatEngineRuntimeSnapshot groups the four-part Cheat Engine version, the loadedVersion), and the host operating system andCheatEngineBitness, the TargetBackend, the target architecture, TargetBitness and the configuredPlatform); a fact CheatEngine.SDK could not establish stays unknown. ProcessSnapshot adds Backend,StartTimeUtc and the configured pointer size next to its Bitness (ConfiguredPointerSize,ConfiguredPointerSizeBytes, ConfiguredPointerSizeDiffersFromBitness), and IProcessClient.TryGetLocalProcessesITableClient counts records (GetRecordCount), reads one by index (GetRecordAt),GetSelectedRecord, SelectRecord), and loads and saves trusted tablesCheatTableFiles; a trusted load makes every earlier MemoryRecordId stale.IInspectionClient.TryRegisterSymbol registers through CheatEngine.SDK's owned registration after a collision check,TryResolveAddress takes an AddressResolutionMode.CECLUA1201 to CECLUA1204.memory.At(address) and memory.Batch<T>() on an IMemoryClient, and scanner.Aob(pattern) on anIPatternScanner. The AOB builder takes typed options (Writable(), WithProtection, AlignedTo, LastDigits,WithAlignment), and every terminal documents the exceptions it throws.CheatEnginePluginBuilder.Logging is the ILoggingBuilder of the activation provider, andPluginDirectory is the folder of the plugin assembly, the base for the plugin's own files.builder.Logging.AddCheatEngineHostLog() adds an opt-in logging provider that writes to CheatEngine.SDK's host log.ActivationIdentified) identifies each activation with the Client version and the consumed and loadedExternalLuaStateResetDetected) reports a Lua state that Cheat Engine replaced outsideCECLIENT001 to CECLIENT017, and eachdotnet new ceplugin derives the plugin's display name and its Lua status global (ASCII_status suffix) from the project name, creates a folder named after the project, honors--no-restore and ships a .gitignore. Different project names can derive the same global, which only one pluginPluginDirectory and adds no logging provider; its READMEAddCheatEngineHostLog().PackageReference version to the compiled one.CheatEngineOperationCanceledException, anOperationCanceledException whose Failure.HostEffect says whether Cheat Engine work had started. A token isMemoryBatchWriteEffectState.NotStarted.Cancelled givesCheatEngineOperationCanceledException, ActivationExpired CheatEngineActivationExpiredException, InvalidStateCheatEngineInvalidStateException (formerly CheatEngineClientLifecycleException), and every other kindCheatEngineOperationException. Every exception keeps the complete failure, and no Client exception has a publicCheatEngineFailure.Throw(token) and ToException(token) create them.default request, an undefined enum value or an out-of-range number throwsArgumentException from the Try form as from the throwing form, before the activation check and before anyCheatEngineActivationExpiredException and a stopping one CheatEngineInvalidStateException, under the operation'sTry form lets a CheatEngine.SDK exception escape: an SDK fault raised by Client-internal workCheatEngineFailure chosen by exception type and by the SDK's failure category. Exceptions from your ownActivationExpired, RuntimeChanged, InvalidState or IndeterminateHostResultNotStarted.CheatEngineFailure.Operation is <Service>.<Member> (for example Memory.ReadPrimitive, orClient.Activate for the activation itself), and the default failure is safe to read. An outcome or status ofIndeterminateHostResult, never as a success. ACleanupUnconfirmed, underIndeterminateHostResult or the kind of the failure that caused it. An unavailable Address List or inspection globalCapabilityUnavailable with NotStarted in every lookup, and a record activation refused by its callback, scriptOperationRejected with Started.Dispose(): Release() returns the outcome, and a repeated release returnsRequiresManualRecovery becomes true once a releaseIAutoAssemblerPatchLease.CanDisable is the earlier signal. Core and HostingCleanupUnconfirmed when that rollback is not confirmed.IProcessClient.Attach goes through CheatEngine.SDK's SelectAndObserve and reads theTargetIdentityUnavailable. ARefusedTargetChanged) without freeing anything: release target-bound leases before selecting anotherMaximumResults, Take, FirstOrNone and RequireSingleIndeterminateHostResult instead of OperationRejected: the global route calls CheatEngine.SDK'sAobScanner.TryScanOutcome, and on Cheat Engine 7.7 AOBScan returns nil for zero matches and for some hostnull or NotFound. A result list or MemScan session is released exactlyIndeterminateHostResult, or the kind of the failure that caused it, and CleanupUnconfirmed. IsTruncated meansRequireSingle reports a single match that is not proven unique asIndeterminateHostResult, not AmbiguousMatch.IMemoryClient never resolves a codec: pass the IMemoryCodec<T> in a MemoryReadRequest<T> orMemoryWriteRequest<T>. Primitives take where T : unmanaged and support the 8- to 64-bit integers, float,double and Address; any other T is OperationRejected with NotStarted, without a Cheat Engine call. PointersMemoryStringEncoding.IMemoryCodec<T>.TryRead and TryWrite report an out CheatEngineFailure failure,TryReadBytes and TryWriteBytes. ILuaModule carries its Descriptor, andUnregister() returns a LuaModuleReleaseOutcome. These interfaces are frozen for 1.x.ICheatEngineClient.Scans is ValueScans; IProcessClient.GetCurrent isGetCurrentProcess; ITableClient.GetRecord(int) is GetRecordAt, GetSelected is GetSelectedRecord,TrySelect is TrySelectRecord and Update(update) is Update(id, update); IAssemblyClient.GetInstructionSizeGetInstructionLength and GetPreviousInstruction is GetPreviousInstructionAddress, and ApplyPatch moved toIAutoAssemblerClient; TargetAllocationRequest is AllocationRequest and TargetAllocationAccess isAllocationProtection. Value-scan sessions take ValueScanFirstRequest and ValueScanNextRequest (TryFirstScan,TryNextScan), and TryResolveAddress an AddressResolutionMode, instead of CheatEngine.SDK request and optionICheatEngineDispatcher has explicit overloads instead of an optional token, and ILuaClient oneTryExecute<TOperation, TResult>(in TOperation ...) design.CheatEngineRuntimePlatformInfo.SystemArchitecture is HostArchitecture andTargetPointerSize is TargetBitness; ProcessSnapshot.TargetArchitecture is Architecture andTargetPointerSize is Bitness; IMemoryReadContext.PointerSize gives way to Bitness and the configured pointerVersion and Platform, and its ClientCapabilities isCapabilities; CheatEngineRuntimeVersionInfo.ObservedCheatEngineVersion, a double?, is the four-partCheatEngineVersion. MemoryRecordSnapshot keeps a record's facts only in Content and State, without theirRequestedCount, IsSuccess, Failure and Values instead ofAttemptedCount, Succeeded, Cause and ReadPrefix, and MemoryBatchLimits.MaximumOperations isMaximumOperationCount. The local process catalog types are LocalProcessEnumerationRequest,LocalProcessEnumerationResult and LocalProcessSnapshot, formerly ProcessEnumerationRequest,ProcessEnumerationResult and ProcessInfoSnapshot.int enum with explicit values, and every outcome enum has Unknown = 0.ClientCapabilityEvidenceReasonCode, MemoryBatchWriteEffectState (whose Complete isCompleted) and ValueScanSessionState (whose Disposed is Closed).CapabilityUnavailable before 1.0.0, are operational adapters; Added gives their experimental ids.OperationRejected, andCheatEngineClientOptions.AllowedTableRoots is an IList<string> and MemoryResourceLimits isnull; neither has a setter. Configure the plugin's own files against builder.PluginDirectory, notAppContext.BaseDirectory, which is the folder of the .NET host inside Cheat Engine.readonly structs without equality, each bound once to the service that createdcheatengine_client_plugin_status.Timers, Hotkeys, Debugger, Speed, Hashing, Dbvm, RemoteExecution and Events namespaces, theirICheatEngineClient properties and their capability ids. None of them had an implementation: each always reportedCapabilityUnavailable. IProcessClient.Pause, ResumeExecution, GetPauseState, Create andAttachForeground, and IAssemblyClient.GetComment, are removed for the same reason. TheIMemoryBatchClient (merged into IMemoryClient), IDescribedLuaModule (mergedILuaModule), ILocalProcessDiagnostics (replaced by IProcessClient.TryGetLocalProcesses),CheatEngineClientBuilder.AddMemoryCodec and the implicit codec resolution, ITableClient.GetCurrent (useGetSnapshot), ICheatEngineRuntime.GetSdkCapability and CheatEngineRuntimeSnapshot.SdkCapabilities,ClientCapabilityEvidence.IsExecutable (read AvailabilityState), ILuaModuleLease.Epoch, the ILuaClientILuaOperation<TResult> interface, and the MemoryStringReadRequest.Create andMemoryStringWriteRequest.CreateBounded factories with their WideCharacter flag.CheatEngineClientOptionsSemanticValidator, ValidateCheatEngineClientOptions, now internal), and the constructorBuildServiceProvider of CheatEnginePluginBuilder.Memory entry class, Using(memory) and the overloads that took an IMemoryClient,ReadUtf8, ReadUtf16, WriteUtf8 and WriteUtf16 (use ReadString and WriteString with aMemoryStringEncoding), ReadableExecutable(), WithProtectionFlags(string) and the CheatEngine.SDKAobScanOptions of AobScanBuilder.Options.IUnsafeLuaClient exists only after EnableUnsafeLuaExecution(), and IAutoAssemblerClient onlyEnableAutoAssemblerPatches(): without its opt-in, each capability reports Unavailable and every call isCapabilityUnavailable and NotStarted before any Cheat Engine call (scenario Q44). Table files need anCapabilityUnavailable, and a path outside every AllowedTableRoots entry isOperationRejected.IInspectionClient.TryRegisterSymbol refuses a name that already resolves (a registered symbol,OperationRejected and NotStarted, and a symbol or Lua module releaseCheatEngine.SDK 3.0 or later directly next to this Client fails to buildCECLIENT017. CheatEngineClientAllowUnsupportedSdk=true turns the error into a warning; such a plugin isNU1605.CheatEngineFailure.ToString()LeaseReleaseOutcome.ToString() only the kind and theIncludeFormattedMessages is set. A message built by string interpolation, suchlogger.LogInformation($"Read {address}"), is its own template and carries its values: log constant structuredLoggerMessage methods. The ceplugin template logs a failure's kind, operation and host effect only.CheatEngine.SDK 2.0.0 and declares [2.0.0, 3.0.0). Theeng/CheatEngineSdk.props, and the build refuses a pin outside 2.x or a prerelease pinCHEATENGINECLIENT9016). The loaded CheatEngine.SDK passes the package gate when it has the same major at or aboveCHEATENGINECLIENT9050). No experimental CheatEngine.SDK API is used.Address, PointerSize, ModuleInfo and the