28.05.2016, 19:38
Thank you
I would like to know if there is some problem with the streamer-wrapper, every time I want to create an object I get the follwing exception:
My code
The data:
model: 18449, x: 2953.3, y: -781.94, z:11.45, rx: 0, ry: 0, rz:357.43, distance: 700, streamDistance: 400, interior: -1, virtualworld: -1
I tested it with the 2.7.9 and 2.8.1 streamer plugin version
I would like to know if there is some problem with the streamer-wrapper, every time I want to create an object I get the follwing exception:
Код:
[2016-05-28 14:23:31][ERROR][err] kotlin.KotlinNullPointerException [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.streamer.Functions.createDynamicObject(Functions.kt:185) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.streamer.data.DynamicObject$Companion.create(DynamicObject.kt:145) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.streamer.data.DynamicObject$Companion.create$default(DynamicObject.kt:141) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.streamer.data.DynamicObject.create(DynamicObject.kt) [2016-05-28 14:23:32][ERROR][err] at dev.acesamp.Maps.Map.loadObjects(Map.java:48) [2016-05-28 14:23:32][ERROR][err] at dev.acesamp.Maps.Map.<init>(Map.java:20) [2016-05-28 14:23:32][ERROR][err] at dev.acesamp.Maps$LoadedMap.<init>(Maps.java:33) [2016-05-28 14:23:32][ERROR][err] at dev.acesamp.Maps.Maps.<init>(Maps.java:78) [2016-05-28 14:23:32][ERROR][err] at dev.acesamp.MyGamemode.onEnable(MyGamemode.java:38) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.resource.Resource.enable(Resource.java:91) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.resource.ResourceManagerImpl.loadGamemode(ResourceManagerImpl.java:179) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.resource.ResourceManagerImpl.loadAllResource(ResourceManagerImpl.java:62) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.ShoebillImpl.loadPluginsAndGamemode(ShoebillImpl.java:289) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.ShoebillImpl.access$100(ShoebillImpl.java:47) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.ShoebillImpl$1.onAmxLoad(ShoebillImpl.java:233) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$null$80(SampCallbackManagerImpl.java:60) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14) [2016-05-28 14:23:32][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onAmxLoad$81(SampCallbackManagerImpl.java:60) [2016-05-28 14:23:32][ERROR][err] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [2016-05-28 14:23:32][ERROR][err] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [2016-05-28 14:23:32][ERROR][err] at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(ConcurrentLinkedQueue.java:851) [2016-05-28 14:23:32][ERROR][err] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [2016-05-28 14:23:32][ERROR][err] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [2016-05-28 14:23:32][ERROR][err] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [2016-05-28 14:23:33][ERROR][err] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [2016-05-28 14:23:33][ERROR][err] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [2016-05-28 14:23:33][ERROR][err] at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) [2016-05-28 14:23:33][ERROR][err] at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onAmxLoad(SampCallbackManagerImpl.java:60)
Код:
streamerObjects.add(DynamicObject.create(model, new Location(x, y, z, interior, virtualWorld), new Vector3D(rx, ry, rz), streamDistance, distance));
model: 18449, x: 2953.3, y: -781.94, z:11.45, rx: 0, ry: 0, rz:357.43, distance: 700, streamDistance: 400, interior: -1, virtualworld: -1
I tested it with the 2.7.9 and 2.8.1 streamer plugin version