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
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 307
Reputation: 47
Post [ALPHA] Project Shoebill - SA:MP Gamemode Development Kit for Java - Milestone 1 (20110703)

Has moved to: http://forum.sa-mp.com/showthread.php?t=397735
__________________

Last edited by mk124; 06/04/2016 at 01:49 PM.
mk124 is offline   Reply With Quote
Old 01/07/2011, 03:57 PM   #2
mk124
Huge Clucker
 
mk124's Avatar
 
Join Date: Jul 2007
Location: Nanning, China
Posts: 307
Reputation: 47
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,979
Reputation: 1408
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: 610
Reputation: 407
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: 72
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,514
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: 69
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,621
Reputation: 170
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.
__________________
I do not play anymore. If you see my name on a server, it is not me. What a ride SA-MP has been, thankful for the people I met and the memories I have made while playing. God speed.
Steven82 is offline   Reply With Quote
Old 01/07/2011, 10:52 PM   #9
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,537
Reputation: 2828
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: 274
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 02:30 PM.


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