[Plugin] Shoebill 1.1 - SA-MP Java Development Kit

@persianboy: Hi, writing a wiki takes a lot of time. I already started writing one on https://github.com/Shoebill/shoebill-api/wiki but it is far from finished. I will try to add more pages before the Shoebill 2.0 release.
Reply

OK. but you dont need to write everything now. better to start with important things and other things will be easy to understand and they dont need any page just now.
Reply

Quote:
Originally Posted by valych
Посмотреть сообщение
It is possible, that you haven't updated the streamer-wrapper. The version of the plugin in 1.1-snapshot wasn't changed in initial commit. Try to update streamer-wrapper once more (in case you have offlineMode turned on).
EDIT: Same exceptions appear, NullPointerException
Maybe the wrapper isn't updated for the latest streamer plugin version?
Reply

I am facing a problem, I know how to right languages using Java and how to use Maven projects.
If this thread is still working, send me a replay here so I can figure out my issue and you could help me.
Reply

@RobinPotter: What problem exactly are you facing with Java & Maven ?
Reply

I will start exactly with what I did in the first place.

I downloaded jdk1.8.0_92 and jre1.8.0_92 from Java Runtime kit 8 as x64 bit.

I installed it at Programing Files/Java.

After the download is complete, I added C:\Program Files\Java\jre1.8.0_92 to Advanced System Settings as JRE_HOME, (exactly like in the video).

Then I edited the setup file to JRE_HOME=C:\Program Files\Java\jre1.8.0_92 and launched the startup.bat.

The server runs instead, why?
What should I do in this case?
Reply

@RobinPotter: You need a 32 Bit runtime, not a 64 Bit one.
Reply

Worked, thank you.
Reply

Quote:
Originally Posted by Su37Erich
Посмотреть сообщение
Yes, I am using the latest version and the streamer wrapper 1.1

Код:
<dependency>
            <groupId>net.gtaun.shoebill</groupId>
            <artifactId>streamer-wrapper</artifactId>
            <version>1.1-SNAPSHOT</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
I get these messages in the console:
Код:
*** Streamer Plugin v2.8.1 by Incognito loaded ***

   Loaded.
  Loading plugin: Shoebill
   > Shoebill 1.3 NativePlugin for SA-MP 0.3.7 by MK124, JoJLlmAn & 123marvin123
  > Java VM has been created.
   > Shoebill has been initialized.
   Loaded.
  Loaded 2 plugins.
Resolved artifact net.gtaun.shoebill:streamer-wrapper:jar:1.1-20160522.140640-6 from local
With the older version everything was working fine except I had exceptions while deleting objects
I don't know what to add and where, to the file resources.yml I think I don't have to
Having the same problem with Nullpointer exception from Kotlin.

Код:
[2016-07-04 07:00:08][ERROR][err] kotlin.KotlinNullPointerException
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.streamer.Functions.createDynamicPickup(Functions.kt:331)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.streamer.data.DynamicPickup$Companion.create(DynamicPickup.kt:62)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.streamer.data.DynamicPickup$Companion.create$default(DynamicPickup.kt:58)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.streamer.data.DynamicPickup.create(DynamicPickup.kt)
[2016-07-04 07:00:08][ERROR][err] 	at net.paruni.RPG.loadHouses(RPG.java:73)
[2016-07-04 07:00:08][ERROR][err] 	at net.paruni.RPG.onEnable(RPG.java:41)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.resource.Resource.enable(Resource.java:91)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.resource.ResourceManagerImpl.loadGamemode(ResourceManagerImpl.java:179)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.resource.ResourceManagerImpl.loadAllResource(ResourceManagerImpl.java:62)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.loadPluginsAndGamemode(ShoebillImpl.java:289)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.access$100(ShoebillImpl.java:47)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl$1.onAmxLoad(ShoebillImpl.java:233)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$null$80(SampCallbackManagerImpl.java:60)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onAmxLoad$81(SampCallbackManagerImpl.java:60)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at java.util.stream.ReferencePipeline.forEach(Unknown Source)
[2016-07-04 07:00:08][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onAmxLoad(SampCallbackManagerImpl.java:60)
Please assist, thank you.
Reply

@Chaser98 Is the streamer plugin loaded?
Reply

Yes, version 2.8.2 is loaded and added in the server.cfg before Shoebill.
Reply

@Chaser98: I pushed an update for the wrapper (https://github.com/Shoebill/streamer...00aff0d3e84232). Can you try it out for me? It is in the maven repository now.
Reply

I updated the dependencies from maven repo and I still get the same error mk124.
Reply

The maven repo appears to be down! http://repo.gtaun.net/content/groups/public

Can't get the dependencies I need!
Reply

@Ace_Menace: I'm sorry, the server has some problems recently but I am already in contact with the support.
It should be up again now.

@Chaser98: Ok, I will take another look at it.
Reply

@mk124

Forget what I said earlier, I made a typo when loading the plugin in the resources.yml.

Thanks
Reply

Somebody help!

Can I use Java only for filterscripts and pawn for my gamemde? It is much easier for me to write in java, not pawn. I am using a bought gamemode.

Thanks!
Reply

@MrMADRYAN[GREIS]: You can use Shoebill in plugins only mode, but Shoebill 1.3 has some flaws regarding co-existance with amx gamemodes / filterscripts.
Reply

Код:
commandManager.setUsageMessageSupplier((player, cmd, prefix, params, help) ->
{
       return "New usage message";
});
It seems like when using Shoebill 1.3, I can no longer set a custom usage message like this, as it will throw an AbstractMethodError. It works fine on Shoebill 1.2.
Reply

@Chilco: You are using two different versions of shoebill-common. Make sure that the version you use in the pom.xml matches with the one in the resources.yml.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)