SA-MP Forums Archive
[Plugin] Shoebill 1.1 - SA-MP Java Development Kit - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Shoebill 1.1 - SA-MP Java Development Kit (/showthread.php?tid=397735)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

Is your OnPlayerCommandText problem now fixed?


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

Yes. Can you give me a bare.pwn? (because in full package this file doesn't contains all callbacks)
My solution for OnPlayerCommandText was returning 1 in my blank gm for this callback, but AFAIK default-generated pawn gm doesn't contains all callbacks.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

I think I'm sure that the provided files contain all callbacks.

bare.amx: https://www.dropbox.com/s/erhyldeqigo0sf4/bare.amx?dl=1


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

On my server I have an auth system. It shows me dialog when I connects (between client messages "Connected. Joining the game..." and "Connected to servername"). If I enter my pass wery fast (before the message "Connected to servername" appears), everything works well, but if it appears before entering the pass, server will crash. It happends when I'm using your fs and gm. With my default gm there are no problems here. (it is very strange, because when I used it at first time, it works well, or maybe I didn't notice how fast I entered my pass)


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

Maybe you still use the old plugin version? Please update with shoebill-updater (update-shoebill.bat/sh)


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

No, I use the newest version (I updated it several times)


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

This is really strange, I can take a look at your setup using TeamViewer if you want.
You can give me your TV-Connection details via private message.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

Or you simply can give me correct bare.pwn (not amx) and I will compare it to my gm. I will try to solve my problem. If I won't solve it, I'll pm you


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

Every needed file is in the download package, the filter script and gamemode + source of it. You just need to copy it...


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

In provided sources of gm there are not all callbacks, but, as you said, they should be. And I supposed that you put wrong sorces with the server


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

Ok, I'm sorry, I accidentally put the wrong source into the package:

Gamemode: http://pastebin.com/JZJKAWgz
Filterscript: http://pastebin.com/75pfhjbd

but I think the .amx files are correct.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 27.01.2015

I found why this error occurred! When I have a lot of vehicles loaded (from default gm vehicle files) and registred VehicleData.class it happens!


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 27.01.2015

The problem is not the VehicleLifecycleHolder. I made a little mistake in the example gamemode, where I add a BeforeCheck Handler to the TestCommands class which checks if the player is a admin. So, if he's not a admin no commands will be executed, and the event won't be canceled -> goes to next event handler which is probably your "Unknown command" handler. You can see my commit here: https://github.com/Shoebill/example-...f92276bf8dfc43
You should change it in your gamemode too, if you want it to work.

(I also added it into the wrong CommandGroup, that was the main problem which triggered all the problems)


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 28.01.2015

You don't understand me. I fixed "Unknown command" error by adding your fs and gm. My last message was about this problem:

Quote:

On my server I have an auth system. It shows me dialog when I connects (between client messages "Connected. Joining the game..." and "Connected to servername"). If I enter my pass wery fast (before the message "Connected to servername" appears), everything works well, but if it appears before entering the pass, server will crash. It happends when I'm using your fs and gm. With my default gm there are no problems here. (it is very strange, because when I used it at first time, it works well, or maybe I didn't notice how fast I entered my pass)

When I comment string, which loads all vehicle, everything works. And when I comment strings, connected with VehicleLifecycleHolder, it also works well.

UPD: If there are too many vehicles with VehicleData - the error, which I expained, occurs. When I removed some vehicle files (decreased veh num), it worked well.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - stokdam - 28.01.2015

I get theese errors both in Windows and Linux:

Код:
[2015-01-28 11:45:03][ERROR][err] java.lang.NoClassDefFoundError: net/gtaun/shoebill/event/server/GameModeInitEvent
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.initialize(ShoebillImpl.java:277)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.access$100(ShoebillImpl.java:47)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl$1.onShoebillLoad(ShoebillImpl.java:260)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$7/2865743.call(Unknown Source)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onShoebillLoad$16(SampCallbackManagerImpl.java:42)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$6/20091363.accept(Unknown Source)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(ConcurrentLinkedQueue.java:851)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onShoebillLoad(SampCallbackManagerImpl.java:42)
[2015-01-28 11:45:03][ERROR][err] Caused by: java.lang.ClassNotFoundException: net.gtaun.shoebill.event.server.GameModeInitEvent
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[2015-01-28 11:45:03][ERROR][err] 	at java.security.AccessController.doPrivileged(Native Method)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
[2015-01-28 11:45:03][ERROR][err] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:798)
[2015-01-28 11:45:03][ERROR][err] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[2015-01-28 11:45:03][ERROR][err] 	... 18 more
[2015-01-28 11:45:03][ERROR][err] net.gtaun.shoebill.exception.CreationFailedException: java.lang.NoClassDefFoundError: net/gtaun/shoebill/event/server/GameModeInitEvent
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.SampObjectManagerImpl.createPickup(SampObjectManagerImpl.java:232)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.SampObjectFactory.createPickup(SampObjectFactory.java:357)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.object.Pickup.create(Pickup.java:77)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.example.lvdm.LvdmGamemode.onEnable(LvdmGamemode.java:65)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.resource.Resource.enable(Resource.java:88)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.resource.ResourceManagerImpl.loadGamemode(ResourceManagerImpl.java:181)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.resource.ResourceManagerImpl.loadAllResource(ResourceManagerImpl.java:62)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.loadPluginsAndGamemode(ShoebillImpl.java:290)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl.access$200(ShoebillImpl.java:47)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.ShoebillImpl$1.onAmxLoad(ShoebillImpl.java:234)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$null$17(SampCallbackManagerImpl.java:52)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$30/12007611.call(Unknown Source)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onAmxLoad$18(SampCallbackManagerImpl.java:52)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$29/11689498.accept(Unknown Source)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(ConcurrentLinkedQueue.java:851)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[2015-01-28 11:45:03][ERROR][err] 	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onAmxLoad(SampCallbackManagerImpl.java:52)
[2015-01-28 11:45:03][ERROR][err] Caused by: java.lang.NoClassDefFoundError: net/gtaun/shoebill/event/server/GameModeInitEvent
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.object.impl.PickupImpl.<init>(PickupImpl.java:56)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.object.impl.PickupImpl.<init>(PickupImpl.java:43)
[2015-01-28 11:45:03][ERROR][err] 	at net.gtaun.shoebill.SampObjectManagerImpl.createPickup(SampObjectManagerImpl.java:230)
[2015-01-28 11:45:03][ERROR][err] 	... 25 more
[2015-01-28 11:45:03][ERROR][err] Caused by: java.lang.ClassNotFoundException: net.gtaun.shoebill.event.server.GameModeInitEvent
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[2015-01-28 11:45:03][ERROR][err] 	at java.security.AccessController.doPrivileged(Native Method)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
[2015-01-28 11:45:03][ERROR][err] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[2015-01-28 11:45:03][ERROR][err] 	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:798)
[2015-01-28 11:45:03][ERROR][err] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[2015-01-28 11:45:03][ERROR][err] 	... 28 more
I'm using the latest version.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 28.01.2015

I have a suggestion. Can you change (or add another one) method get(playername) in the Player class, because sometimes I need to get player by short name. Of course, I can write my own method, but it will be easier to write cmds (now I should create another cmd with String player param to find player by using my method).


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - TheRaGeLord - 28.01.2015

hmmmm... Nice


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - SetupDLL - 28.01.2015

world.getWeather() always returns 0


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - mk124 - 28.01.2015

@stokdam: You are using an old version of shoebill-api at runtime.
@SetupDLL: world.getWeather() & player.get() will be in the next push.
About your crash problem, please use crash detect and give me the log. Also give me your code where you created your dialogs.


Re: [SNAPSHOT][Java 8] Shoebill 1.0 - SA-MP Java Development Kit - stokdam - 28.01.2015

I just downloaded the full package from the main post. Same problem with the basic one.