SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 23/07/2015, 07:27 PM   #411
DrumYum
Big Clucker
 
Join Date: Oct 2011
Location: Russia
Posts: 186
Reputation: 2
Default Re: AW: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

Quote:
Originally Posted by mk124 View Post
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!
__________________
Sorry for my bad English, I'm from Russia
DrumYum is offline   Reply With Quote
Old 16/08/2015, 05:28 PM   #412
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 319
Reputation: 59
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

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/
__________________
mk124 is offline   Reply With Quote
Old 25/08/2015, 03:37 PM   #413
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 319
Reputation: 59
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

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
__________________
mk124 is offline   Reply With Quote
Old 26/08/2015, 02:08 AM   #414
!damo!spiderman
Huge Clucker
 
!damo!spiderman's Avatar
 
Join Date: Oct 2006
Posts: 244
Reputation: 160
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

Quote:
Originally Posted by mk124 View Post
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
__________________
!damo!spiderman is offline   Reply With Quote
Old 26/08/2015, 01:49 PM   #415
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 319
Reputation: 59
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

@!damo!spiderman: They are hosted on dropbox and are working fine for me. Maybe Dropbox is restricted in your country?
__________________
mk124 is offline   Reply With Quote
Old 16/10/2015, 05:33 PM   #416
dusk
High-roller
 
dusk's Avatar
 
Join Date: Jul 2008
Posts: 1,113
Reputation: 46
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

I would like to discuss the PickupModel class...I see it is an enum, but ANY object can be used as a pickup, so why did you limit that enum to only some values?
dusk is offline   Reply With Quote
Old 22/10/2015, 06:19 PM   #417
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 319
Reputation: 59
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

@dusk: We are currently only including weapons and pickups in the enum (http://weedarr.wikidot.com/pickups).
If you want, you can always use your own modelId when using Pickup.create(). You cannot dynamically add items to an enum, that's why not every object is included in the list.
__________________
mk124 is offline   Reply With Quote
Old 26/10/2015, 06:09 PM   #418
dusk
High-roller
 
dusk's Avatar
 
Join Date: Jul 2008
Posts: 1,113
Reputation: 46
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

I have a suggestion:

I always code in english, so all my variables, methods and such are in english. It seems that sheobill generates command help messages from command method argument names and that is a problem for me as my server is deisgned for non english speaking users.

Would it be possible/practical to add some annotation before command parameters to rename them?

For example:

pawn Code:
@Command
public bool hello(Player p, Player @CommandParam("ąęųįčę")p2)
{
    return true;
}
And when the user forgets to enter a player identifier it would say "Usage /hello [ąęųįčę]".


And a question: If I return false in a command method, will the usage method be sent?
dusk is offline   Reply With Quote
Old 28/10/2015, 07:18 PM   #419
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 319
Reputation: 59
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

@dusk: It's currently not possible to set custom names for your parameters, but you can use the @CommandHelp Annotation as a workaround. After that, you can override the default UsageMessageSupplier to output your custom parameters:

PHP Code:
@Command
@CommandHelp("[myCustomArgumentText] [mySecondCustomArgumentText]")
public 
boolean givecash(Player pPlayer targetint amount)
{
    ...

PHP Code:
commandManager.setUsageMessageSupplier((issuercommandprefixargumentshelp) -> {
    if(
help != null//if @CommandHelp has been supplied
        
return "Correct usage: " prefix command " " help;
    else { 
//If not, use parameterNames from Java
        
String paramsString "";
        for(
int i 0arguments.lengthi++) {
            
paramsString += "[" arguments[i] + "]";
            if(
arguments.length)
            
paramsString += " ";
        }
        return 
"Correct usage: " prefix command " " paramsString;
    }
}); 
If you return false in a Command, the CommandManager will try to find another matching callback, but if it won't find any, the PlayerCommandEvent will not be interrupted. This way, you can make a "Command not found" message using events:

PHP Code:
eventManagerNode.registerHandler(PlayerCommandEvent.class, HandlerPriority.BOTTOM, (e) ->
{
    
Player player e.getPlayer();
    
player.sendMessage(Color.RED"Unknown command. Type /help to see help.");
    
e.setProcessed();
}); 
(It's important to use HandlerPriority.BOTTOM, because otherwise it would not be called at the end)
__________________
mk124 is offline   Reply With Quote
Old 08/11/2015, 08:16 AM   #420
Piranha19
Little Clucker
 
Join Date: May 2010
Posts: 1
Reputation: 0
Default Re: [UPDATE][SNAPSHOT][Java 8] Shoebill 1.1 - SA-MP Java Development Kit

Unfortunately the CI Server is down
Piranha19 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [SHOEBILL] Gamemode Reloader mk124 Tools and Files 10 16/05/2016 06:29 PM
[Plugin] [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701) mk124 Plugin Development 57 05/04/2016 08:23 PM
[GameMode] [Java] PROJECT NEW WL-World (Based on Shoebill, WIP) mk124 Gamemode Scripts 12 01/11/2014 11:16 PM
[FilterScript] Dealership plugin for shoebill (Java) 123marvin123 Filterscripts 4 08/06/2014 02:17 PM


All times are GMT. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.