SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/07/2011, 03:55 PM   #1
mk124
Little Clucker
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 42
Reputation: 24
Post [ALPHA] Project Shoebill - SA:MP Gamemode Development Kit for Java - Milestone 1 (20110703)

Project Shoebill - SA:MP Gamemode Development Kit for Java (Windows Only)
Milestone 1 (20110703) - Release



<- Shoebill



This is an Object-Oriented Java library for developing SA-MP gamemode,
consist of two parts, plugin and java library.

Features:
Java development
Object-Oriented
Event handling
Codepage/Unicode support

System requirements:
Must be Windows
JRE/JDK 6
Environment variable "PATH" must include (java dir)\bin\client or (java dir)\bin\server

What this can do?
With this, you can develop new gamemode with object-oriented programming, in java.
By borrowing Java's develop capability, you can program a very powerful gamemode.

Why no Linux?
The main reason is, libiconv doesn't support transformation between simplified chinese and traditional chinese.
and I dont know how to cross platform!

Project:
Hosted at GitHub:
https://github.com/mk124/Shoebill

Contributors:
MK124 <mk124a@gmail.com>
JoJLlmAn <jojllman@gmail.com>

License:
Apache License, Version 2.0

Javadoc:
http://gtaun.net/shoebill/doc
We dont have any comment on javadoc yet, sorry for that.

Update:
Milestone 1 (20110703): enabled JIT, improved the performance.

Downloads:
AMX&DLL&JAR: Shoebill.zip
Source: Shoebill_SRC.zip

Performance:
Shoebill Milestone1 (20110703) Simple performance test


Appreciation to all the support, especially to June, 258921, and Shindo.
English translation by JoJLlmAn and he says: Sorry for my poor english. =)

Other Language: [中文/Chinese]

Last edited by mk124; 24/07/2011 at 12:05 AM.
mk124 is offline   Reply With Quote
Old 01/07/2011, 03:57 PM   #2
mk124
Little Clucker
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 42
Reputation: 24
Default Re: [ALPHA] Java for SA:MP Development Kit - Milestone 1

Preparation for Shoebill development (ex. Eclipse)

1. Eclipse -> File -> New -> Java Project -> Enter your project name -> Finish.
2. Right click at the new project -> new -> Choose "Folder" -> enter "lib" -> Finish.
3. Copy the Shoebill.JAR into the new "lib" folder in your project.
4. Right click at the project -> Properties -> Java Build Path -> Libraries -> Add JARS -> find lib/Shoebill.JAR
5. Create your own GameMode class, and extend net.gtaun.samp.GameModeBase.
6. Finished! Now you can program your own code.

*How To export your gamemode to JAR?
Just right click at your project -> export -> JAR File -> assign where to save your .jar


Preparation for Shoebill execution

1. Prepare samp_server folder, include samp_server.exe
2. Copy Shoebill.AMX & Shoebill.JAR into "gamemodes". Copy Shoebill.DLL into "plugins"
3. Copy your own gamemode.jar(ex. LVDM.JAR) into "gamemodes"
4. Prepare server.CFG. Modify gamemode0 to "gamemode0 Shoebill 1", and plugins to "plugins Shoebill", and delete the filterscripts line.
5. Add a new line into server.CFG, that would be "modeclass [your GameMode class name]" (ex. "modeclass com.samp.lvdm.GameMode")
6. Prepare your scriptfiles for GameMode
7. Now you can try to execute the samp-server.exe


Example GameMode: LVDM

Download: LVDM(Java).zip
(Updated in 02/07/2011)

*Convertd by JoJLlmAn, all copyright belongs to Jax and SA-MP TEAM.


That's it!, enjoy using it.
Greetings to all Java lovers.

Last edited by mk124; 02/07/2011 at 03:00 AM.
mk124 is offline   Reply With Quote
Old 01/07/2011, 04:04 PM   #3
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,408
Reputation: 1130
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1

One of the best ideas I have seen so far.
Have you tested the speed yet? I guess java will be slightly slower, but OO is a great feature that could compensate it, nice to see it already works.
Mauzen is offline   Reply With Quote
Old 01/07/2011, 05:17 PM   #4
JernejL
Beta Tester
 
JernejL's Avatar
 
Join Date: Jan 2006
Location: Slovenia
Posts: 577
Reputation: 372
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

A suggestion on optimization, initialize all amx_FindFunction(***) pointers in initialization and CACHE them so they aren't always looked up on each native calls, but are known in advance.
__________________


samp://198.50.173.59:7777 - Partyserver - TurtleServer (now with extra turtles)!

SA-MP map editor: Not a in-game script but a proper windows application!
http://forum.sa-mp.com/showthread.php?t=282801
JernejL is offline   Reply With Quote
Old 01/07/2011, 05:23 PM   #5
langricr
Big Clucker
 
langricr's Avatar
 
Join Date: Jun 2011
Location: Bowmanville, Ontario
Posts: 73
Reputation: 1
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

Awesome work, I was initially developing a Java-based gamemode that would communicate with the native server using my plugin. This cuts out the middle man, good luck!
__________________
WinSock Plugin - Create socket connections using your server for network I/O


langricr is offline   Reply With Quote
Old 01/07/2011, 05:46 PM   #6
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,535
Reputation: 154
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

This is very nice! Still kinda bummed about the Linux thing though ;-;.
Toni is offline   Reply With Quote
Old 01/07/2011, 06:13 PM   #7
Gomma
Big Clucker
 
Gomma's Avatar
 
Join Date: Mar 2011
Posts: 73
Reputation: 1
Default AW: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

This sounds pretty epic. But it kinda sucks that it won't be compatible with Linux.
Gomma is offline   Reply With Quote
Old 01/07/2011, 06:47 PM   #8
Steven82
High-roller
 
Join Date: Nov 2009
Posts: 2,627
Reputation: 169
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1

Quote:
Originally Posted by Mauzen View Post
One of the best ideas I have seen so far.
Have you tested the speed yet? I guess java will be slightly slower, but OO is a great feature that could compensate it, nice to see it already works.
I second that, nice work.
Steven82 is offline   Reply With Quote
Old 01/07/2011, 10:52 PM   #9
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,432
Reputation: 2600
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

This is a very impressive piece of work, though some things do seem like a lot of work - is that really the only way to set a vehicles numberplate on spawn!?

Now a Haskell GM system would be awesome!
Y_Less is offline   Reply With Quote
Old 01/07/2011, 11:05 PM   #10
Rock_Ro
Huge Clucker
 
Join Date: Mar 2011
Location: Los Santos
Posts: 280
Reputation: 2
Default Re: [ALPHA] Project Shoebill - Java for SA:MP Development Kit - Milestone 1 (20110701)

Hard...i will try but i am 100% sure that i can't use it.
Rock_Ro 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
JustEngine RP GameMode in Development [ Pre-Alpha Testing 7 ] d3n4 Screenshots and Videos 0 29/03/2011 01:34 PM
HTML/JAVA/PHP DRIFT_HUNTER Everything and Nothing 5 03/09/2010 04:34 AM
C++ vs Java? v0nz Everything and Nothing 9 20/08/2010 06:02 AM


All times are GMT. The time now is 06:05 AM.


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