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

Is your OnPlayerCommandText problem now fixed?
Reply

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.
Reply

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

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

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)
Reply

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

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

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.
Reply

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
Reply

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

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
Reply

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.
Reply

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!
Reply

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)
Reply

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.
Reply

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.
Reply

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).
Reply

hmmmm... Nice
Reply

world.getWeather() always returns 0
Reply

@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.
Reply

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


Forum Jump:


Users browsing this thread: 19 Guest(s)