kwmsources / pedsyncer Goto Github PK
View Code? Open in Web Editor NEWExperimental resource for AltV to sync peds
Experimental resource for AltV to sync peds
If a Player spawns/is near another player... everyone's pc crash... tested it with Heron, LargePeach & Solid_Snake
There is still a path error, i have the current version. https://i.imgur.com/wSj5fux.png
Please add a .gitignore for your project, you dont want prebuild code, tmp files and user files in your repo
[16:03:29] Search File P:\Programming\AltV\PilotsLifeV\resources/pedSyncer/server/newNavigationMeshes.msgpack
[16:03:29] Could not find dump file at P:\Programming\AltV\PilotsLifeV\resources/pedSyncer/server/newNavigationMeshes.msgpack
[16:03:29] < ==== UNHANDLED EXCEPTION ==== >
Received an unhandled exception from : System.NullReferenceException: Object reference not set to an instance of an object.
at PedSyncer.Control.NavigationMesh..ctor() in F:\Projekte\pedSyncer\src\control\NavigationMesh.cs:line 27
at PedSyncer.Control.NavigationMesh.getInstance() in F:\Projekte\pedSyncer\src\control\NavigationMesh.cs:line 167
at PedSyncer.PedSyncer.OnStart() in F:\Projekte\pedSyncer\src\PedSyncer.cs:line 56
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at PedSyncer.Control.NavigationMesh..ctor() in F:\Projekte\pedSyncer\src\control\NavigationMesh.cs:line 27
at PedSyncer.Control.NavigationMesh.getInstance() in F:\Projekte\pedSyncer\src\control\NavigationMesh.cs:line 167
at PedSyncer.PedSyncer.OnStart() in F:\Projekte\pedSyncer\src\PedSyncer.cs:line 56
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Ped
at PedSyncer.Control.NavigationMesh.getInstance() in F:\Projekte\pedSyncer\src\control\NavigationMesh.cs:line 167
at PedSyncer.PedSyncer.OnStart() in F:\Projekte\pedSyncer\src\PedSyncer.cs:line 56
Hey thanks for this lib, this is really inspiring!
I have a question which might sounds dummy but I'm gonna ask you anyway : looking at your code in pedSyncer.mjs
(and I found it all around on other repositories), there's always a netOwner
responsible for syncing the ped with the server and I have always wondered why this is not the responsibility of the sole server itself (like handling the ped's whole lifetime and syncing it with the clients through events for example). I would have preferred to reach you out by email or Discord but then realized this discussion might also benefit other developers, hence this issue.
[21:14:01] Loading resource pedSyncer2
[INFO] GameEntityResource InitEntitySync startet
Started
[21:14:01] Search File C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\server\newNavigationMeshes.msgpack
[21:14:02] Failed loading dump: MessagePack.MessagePackSerializationException: Failed to deserialize System.Collections.Generic.List1[[NavMesh_Graph.NavigationMeshPolyFootpath, pedSyncer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] value. ---> System.TypeInitializationException: The type initializer for 'FormatterCache
1' threw an exception.
---> System.NotSupportedException: A non-collectible assembly may not reference a collectible assembly.
at System.Reflection.Emit.ModuleBuilder.GetTypeRef(QCallModule module, String strFullName, QCallModule refedModule, String strRefedModuleFileName, Int32 tkResolution)
at System.Reflection.Emit.ModuleBuilder.GetTypeRefNested(Type type, Module refedModule, String strRefedModuleFileName)
at System.Reflection.Emit.ModuleBuilder.GetTypeTokenWorkerNoLock(Type type, Boolean getGenericDefinition)
at System.Reflection.Emit.ModuleBuilder.GetTypeTokenInternal(Type type, Boolean getGenericDefinition)
at System.Reflection.Emit.SignatureHelper.AddOneArgTypeHelperWorker(Type clsArgument, Boolean lastWasGenericInst)
at System.Reflection.Emit.SignatureHelper.AddOneArgTypeHelperWorker(Type clsArgument, Boolean lastWasGenericInst)
at System.Reflection.Emit.SignatureHelper.GetTypeSigToken(Module module, Type type)
at System.Reflection.Emit.ModuleBuilder.GetTypeTokenWorkerNoLock(Type type, Boolean getGenericDefinition)
at System.Reflection.Emit.ModuleBuilder.GetTypeTokenInternal(Type type, Boolean getGenericDefinition)
at System.Reflection.Emit.TypeBuilder..ctor(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)
at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
at MessagePack.Internal.DynamicAssembly.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
at MessagePack.Internal.DynamicObjectTypeBuilder.BuildType(DynamicAssembly assembly, Type type, Boolean forceStringKey, Boolean contractless)
at MessagePack.Resolvers.DynamicObjectResolver.FormatterCache1..cctor() --- End of inner exception stack trace --- at MessagePack.Resolvers.DynamicObjectResolver.GetFormatter[T]() at MessagePack.Resolvers.StandardResolver.FormatterCache
1..cctor()
--- End of stack trace from previous location where exception was thrown ---
at MessagePack.Formatters.ListFormatter1.Deserialize(MessagePackReader& reader, MessagePackSerializerOptions options) at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options) --- End of inner exception stack trace --- at MessagePack.MessagePackSerializer.Deserialize[T](MessagePackReader& reader, MessagePackSerializerOptions options) at MessagePack.MessagePackSerializer.Deserialize[T](ReadOnlyMemory
1 buffer, MessagePackSerializerOptions options, CancellationToken cancellationToken)
at navMesh_Graph_WebAPI.NavigationMeshControl.LoadDataFromDumpFile[TDumpType](String dumpFileName) in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 133
[21:14:02] < ==== UNHANDLED EXCEPTION ==== >
Received an unhandled exception from : System.NullReferenceException: Object reference not set to an instance of an object.
at navMesh_Graph_WebAPI.NavigationMeshControl..ctor() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 25
at navMesh_Graph_WebAPI.NavigationMeshControl.getInstance() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 123
at PedSyncer.PedSyncer.OnStart() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\PedSyncer.cs:line 51
at System.Threading.Tasks.Task.<>c.b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
< ==== UNHANDLED EXCEPTION ==== >
Received an unhandled exception from : System.NullReferenceException: Object reference not set to an instance of an object.
at navMesh_Graph_WebAPI.NavigationMeshControl..ctor() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 25
at navMesh_Graph_WebAPI.NavigationMeshControl.getInstance() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 123
at PedSyncer.PedSyncer.OnStart() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\PedSyncer.cs:line 51
at System.Threading.Tasks.Task.<>c.b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[21:14:02] Loaded resource pedSyncer2
Unhandled exception. [21:14:02] Loading resource 420core
System.NullReferenceException: Object reference not set to an instance of an object.
at navMesh_Graph_WebAPI.NavigationMeshControl..ctor() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 25
at navMesh_Graph_WebAPI.NavigationMeshControl.getInstance() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\control\NavigationMeshControl.cs:line 123
at PedSyncer.PedSyncer.OnStart() in C:\Users\Administrateur\Desktop\Mystery Altv\resources\pedSyncer2\pedSyncer\PedSyncer.cs:line 51
at System.Threading.Tasks.Task.<>c.b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
hi, first thanks for your great work, but i need to rebeluid all the json , how did you do ? i have look up in the free dump but they haven't the same json as you, i think maybe you build them with tool but i don't know what is
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.