|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Little Clucker
![]() Join Date: Jul 2007
Location: Nanning, China
Posts: 10
Reputation: 7
|
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. |
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Jul 2007
Location: Nanning, China
Posts: 10
Reputation: 7
|
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. |
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2007
Location: Western Germany
Posts: 2,871
Reputation: 618
|
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. |
|
|
|
|
|
#4 |
|
I like turtles
![]() Join Date: Jan 2006
Location: Slovenia
Posts: 531
Reputation: 345
|
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.
|
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jun 2011
Location: Bowmanville, Ontario
Posts: 73
Reputation: 1
|
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!
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2009
Location: United States
Posts: 1,506
Reputation: 154
|
This is very nice! Still kinda bummed about the Linux thing though ;-;.
|
|
|
|
|
|
#7 |
|
Big Clucker
![]() ![]() Join Date: Mar 2011
Posts: 74
Reputation: 0
|
This sounds pretty epic. But it kinda sucks that it won't be compatible with Linux.
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2009
Location: California, USA
Posts: 2,614
Reputation: 162
|
|
|
|
|
|
|
#9 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,313
Reputation: 1909
|
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! |
|
|
|
|
|
#10 |
|
Huge Clucker
Join Date: Mar 2011
Location: Los Santos
Posts: 281
Reputation: 1
|
Hard...i will try but i am 100% sure that i can't use it.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |