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: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 12.07.2015

Nice to see fast update! Thank you developers!

Questions:
About same BeforeCheck problem:
Код:
// ...
private PlayerCommandManager commandManager;

private CommandGroup mainCommandGroup; 
private CommandGroup adminCommandGroup;
// ...
commandManager = new PlayerCommandManager(eventManagerNode);
commandManager.installCommandHandler(HandlerPriority.NORMAL);
// ...
mainCommandGroup = new CommandGroup();
adminCommandGroup = new CommandGroup();
		
mainCommandGroup.registerCommands(new TDMCommands(playerLifecycleHolder, eventManagerNode));
adminCommandGroup.registerCommands(new AdminCommands(playerLifecycleHolder));
		
commandManager.registerGroup(mainCommandGroup);
commandManager.registerGroup(adminCommandGroup);
BeforeCheck only in AdminCommands.


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 12.07.2015

@DrumYum: Thank you for your support.

I think your problem is happening, because of an internal bug in shoebill-common's CommandManager. Before this is fixed, you can try to register your commands without an BeforeChecker with the normal .registerCommands() method of the CommandManager, like this:

Код:
commandManager.registerCommands(new TDMCommands(playerLifecycleHolder, eventManagerNode));
but keep your commands with a BeforeChecker in a separate CommandGroup:

Код:
adminCommandGroup = new CommandGroup();
adminCommandGroup.registerCommands(new AdminCommands(playerLifecycleHolder));
commandManager.registerGroup(adminCommandGroup);
If this doesn't work, you should try to use a prefix:

Код:
commandManager.registerChildGroup(adminCommandGroup, "a"); //Commands now available with: /a kick etc.



Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 12.07.2015

First didn't help, second I'll try later.

Also, I found out that dialogs have two styles(in examples): "Shoebill 1.0" and "Shoebill Milestone2".
What is the difference between them? "Shoebill 1.0" better because it's new?

UPDATE: through childGroup everything working.


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 13.07.2015

@DrumYum: Yes, you should use the Shoebill 1.0 method from shoebill-common, like:

Код:
ListDialog.create(player, eventManager)
    .caption("Test")
    ....
    .build()
    .show()



Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 17.07.2015

What is the matter with applyAnimation for Actor?
denizx sent me a private message, where he can't apply animation for actor because of client crash.
I tested and same for me.
Is it bug or what?

If I process this command I will crash:
Код:
@Command
public boolean testactoranim(Player p)
{
	Actor policeman = Actor.create(new Random().nextInt(11) + 300, p.getLocation());
		
	policeman.applyAnimation("DANCING", "dance_loop", 4.1F, true, true, true, true, 0);
	return true;
}
UPDATE: https://github.com/Shoebill/Shoebill...1defe528abe7e5 , oh, already fixed?


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 17.07.2015

@DrumYum: Yes, it is already fixed. You just need to update your Plugin via the shoebill-updater.


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 23.07.2015

When I click textdraw text don't printed in console:
Код:
eventManager.registerHandler(PlayerClickTextDrawEvent.class, (e) -> 
{
	System.out.println("textdraw clicked!");
}
Is it my bad or plugin bug?


AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 23.07.2015

Is your Plugin even getting enabled? You can take a look at the console. Make sure you put your plugin into the plugins: section of your resources.yml.


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 23.07.2015

My code like this and I see "DrumYum connected!" in console, this mean that problem only in PlayerClickTextDrawEvent, I think.
Textdraw changes color when I hover it by my mouse, but when I click nothing happens.
Код:
eventManager.registerHandler(PlayerClickTextDrawEvent.class, (e) -> 
{
	System.out.println("textdraw clicked!");
});

eventManager.registerHandler(PlayerConnectEvent.class, (e) -> 
{
	System.out.println(e.getPlayer().getName() + " connected!");
});



AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 23.07.2015

Maybe you mixed up PlayerClickTextDraw with PlayerClickPlayerTextDraw? Because my handler is working perfectly fine with clicking text draws.


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 23.07.2015

I created static Textdraw (not PlayerTextdraw), initialize it in constructor and then register handler to click event. I don't know what's wrong with my code.


AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 23.07.2015

Can you show me your Textdraw init code?


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 23.07.2015

This?
Код:
private static Textdraw textDrawLeft;
// ...
public PlayerSpawner(...)
{
    // ...
    textDrawLeft = Textdraw.create(new Vector2D(200F, 300F));
    textDrawLeft.setTextSize(new Vector2D(90F, 90F));
    textDrawLeft.setBackgroundColor(new Color(0));
    textDrawLeft.setFont(TextDrawFont.MODEL_PREVIEW);
    textDrawLeft.setSelectable(true);
    textDrawLeft.setPreviewModel(19131);
    textDrawLeft.setPreviewModelRotation(0, 0, 90F);
    // ... also after all textdraws down here registerHandler for PlayerClickTextdrawEvent
}



AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 23.07.2015

There was a bug in the runtime, i've fixed it now. Please update your shoebill-runtime by deactivating offlineMode. Shoebill will download the new runtime automatically.

(You can download it manually here: http://ci.gtaun.net/job/shoebill-run...1-SNAPSHOT.jar)


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - zSuYaNw - 23.07.2015

this system has extra functions?


AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 23.07.2015

The samp functions are still limited to the server, but you can do all kinds of stuff with a Java Virtual Machine. You can for example connect to a FTP-Server from your gamemode, or make calculations that need more speed than pawn can offer.


Re: AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - DrumYum - 23.07.2015

Quote:
Originally Posted by mk124
Посмотреть сообщение
There was a bug in the runtime, i've fixed it now. Please update your shoebill-runtime by deactivating offlineMode. Shoebill will download the new runtime automatically.

(You can download it manually here: http://ci.gtaun.net/job/shoebill-run...1-SNAPSHOT.jar)
It works! Thanks for fast fix!


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 16.08.2015

We are happy to announce, that Shoebill now offers a Wrapper for Mac OS X.
The wrapper includes everything that's necessary to run a Shoebill SA-MP Server (JDK e.g.).
You just need to double-click the wrapper and the server will start, it can't be easier. There even is a video that demonstrates the usage:

https://www.youtube.com/watch?v=7tzyuoLRnOY
Download: https://mega.nz/#!2hgA2BTK!Xwmv2CKnZ..._A1dYjpOALOULw

Why not also visit our new Github.IO page, to always be up-to-date? http://shoebill.github.io/



Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - mk124 - 25.08.2015

We just updated our presentation layout, please give your feedback on how you like it:
http://forum.sa-mp.com/showpost.php?...77&postcount=1


Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit - !damo!spiderman - 26.08.2015

Quote:
Originally Posted by mk124
Посмотреть сообщение
We just updated our presentation layout, please give your feedback on how you like it:
http://forum.sa-mp.com/showpost.php?...77&postcount=1
All of the images are broken