Jump to content

Errors on load/unload

Not a Bug 0.1.4

DAXTI
DAXTI

Posted

A hook request for 'OnAnimalDungProduced[728f16]' received:

- The current status is FAILURE: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RidableHorse.DoDung_Patch0 (RidableHorse): IL_009e: stloc.2

- Check for possible errors on the log file

Error while patching hook 'OnAnimalDungProduced[728f16]' (Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RidableHorse.DoDung_Patch0 (RidableHorse): IL_009e: stloc.2 ) at MethodInfo HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo) at MethodInfo HarmonyLib.PatchProcessor.Patch() at MethodInfo HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer) at bool Carbon.Hooks.HookEx.ApplyPatch() in /__w/Carbon/Carbon/Carbon.Core/Carbon/src/Hooks/HookEx.cs:line 173

A general error occured while installing 'OnAnimalDungProduced[728f16]'

IIIaKa

Posted

Changed Status from Pending to Work in Progress

DAXTI

Posted (edited)

Ohh, okay thanks. Also should new players only be added to the MySQL database after unloading and reloading the plugin, or is this behavior related to Carbon?

For example, we have players who already played on the server and since then the plugin was reloaded, so they get added to the DB and their data is updated at each interval. But if a new user joins without any existing data, they aren’t inserted into the DB until the plugin is reloaded (server restart or manually.). 

Edited by DAXTI
IIIaKa

Posted (edited)

On 8/16/2025 at 8:46 PM, DAXTI said:

Ohh, okay thanks. Also should new players only be added to the MySQL database after unloading and reloading the plugin, or is this behavior related to Carbon?

For example, we have players who already played on the server and since then the plugin was reloaded, so they get added to the DB and their data is updated at each interval. But if a new user joins without any existing data, they aren’t inserted into the DB until the plugin is reloaded (server restart or manually.). 

Hello. New players are inserted into the DB during the scheduled data sync(not instantly upon player connected). This behavior is intentional to reduce database load and avoid frequent write operations. The sync interval is configurable in the plugin’s settings(by default 300 seconds, 3rd property), so you can adjust how often data is written to the database.
Additionally, when the plugin is unloaded, a forced data sync is performed. That’s why in your case new players appear in the database only after reloading the plugin, the sync timer simply hasn’t run yet, try check it's value.

Edited by IIIaKa
IIIaKa

Posted

Changed Status from Work in Progress to Not a Bug

IIIaKa

Posted

If you have anything to add, feel free to write in this thread.

2m

Downloads

Total number of downloads.

9.5k

Customers

Total customers served.

138.4k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.