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

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

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

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

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

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

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

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

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

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

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!");
});
Reply

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

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

Can you show me your Textdraw init code?
Reply

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

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

this system has extra functions?
Reply

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

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

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

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
Reply

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
Reply


Forum Jump:


Users browsing this thread: 10 Guest(s)