Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add endpoints for most recent pvp kills #11

Merged
merged 6 commits into from
Aug 4, 2023
Merged

Conversation

DarkAtra
Copy link
Owner

@DarkAtra DarkAtra commented Jul 30, 2023

Adds an endpoint that returns the most recent pvp kills similar to what the player-activity endpoint does for connects and disconnects.

See: #10

@DarkAtra
Copy link
Owner Author

DarkAtra commented Aug 1, 2023

currently fails with:

[Error  :Il2CppInterop] During invoking native->managed trampoline
Exception: Il2CppInterop.Runtime.Il2CppException: System.ExecutionEngineException: Attempting to call method 'Unity.Entities.EntityManager::GetComponentData<ProjectM.VampireDownedBuff>' for which no ahead of time (AOT) code was generated.
--- BEGIN IL2CPP STACK TRACE ---
System.ExecutionEngineException: Attempting to call method 'Unity.Entities.EntityManager::GetComponentData<ProjectM.VampireDownedBuff>' for which no ahead of time (AOT) code was generated.

--- END IL2CPP STACK TRACE ---

   at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36
   at Unity.Entities.EntityManager.GetComponentData[T](Entity entity)
   at v_rising_discord_bot_companion.killfeed.VampireDownedServerEventSystemPatches.handleDownedEntity(Entity entity)
   at v_rising_discord_bot_companion.killfeed.VampireDownedServerEventSystemPatches.Postfix(VampireDownedServerEventSystem __instance)
   at DMD<ProjectM.VampireDownedServerEventSystem::OnUpdate>(VampireDownedServerEventSystem this)
   at (il2cpp -> managed) OnUpdate(IntPtr , Il2CppMethodInfo* )

@DarkAtra
Copy link
Owner Author

DarkAtra commented Aug 4, 2023

VWorld.Server.EntityManager.TryGetComponentData<VampireDownedBuff>(entity, out var buff); works

@DarkAtra DarkAtra merged commit 7ab4442 into main Aug 4, 2023
2 checks passed
@DarkAtra DarkAtra deleted the feat/gh-10_killfeed branch August 4, 2023 18:11
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant