SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 31/12/2010, 12:27 AM   #1
jaymac407
Little Clucker
 
Join Date: Jun 2009
Posts: 19
Reputation: 0
Default [DEV] .NET Scripthook for SA-MP (VB.NET, C#)

Future releases discontinued as of 30/03/2011
This project is the effort to port SA-MP API and callbacks to .NET languages.

What?
This is a plugin which allows you to use .NET languages to create SA-MP scripts.

Why?
You can use ultra cool .NET languages to program scripts in! Beginner? Go for VB.NET. Know a little more than some and want a C-like language? Go for C#.

Linux?
Because we use the Mono .NET compatiblity layer, we have a Linux version available that will run the .dll scripts just like on Windows.

Can I have?
Sure, alpha versions (for development purposes) are below.

Progress
Callbacks fully implemented:
  • OnPlayerConnect(playerid)
  • OnPlayerDisconnect(playerid)
  • OnPlayerText(playerid, text[]) - In Alpha 3
  • OnPlayerCommandText(playerid, commandtext[])
  • OnPlayerRequestClass(playerid, classid)
  • OnPlayerDeath(playerid, killerid, reason)
  • OnPlayerRequestSpawn(playerid)
  • OnPlayerSpawn(playerid)
  • OnPlayerUpdate(playerid) - In Beta 1
  • OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

Updates
31/12/2010: Expected alpha version to be released between today and 3rd January.
01/01/2011: Alpha 1 released.
02/01/2011: Alpha 2 released.
04/01/2011: Alpha 3 released.
30/03/2011: Release of future versions discontinued.

Downloads

NO SUPPORT FOR THE ALPHA RELEASE

ONLY FOR EXPERIENCED USERS

Alpha 3 release: http://www.lcpdfr.com/cops/forum/ind...pha-3-release/
- Alpha 3 changelog: http://forum.sa-mp.com/showpost.php?...4&postcount=43
- Windows and Linux binaries included
- Base C# source + script included
- Base VB.NET source + script included
- Base compiled script included

Place your script as 'Script.dll' in the SA-MP directory to have it loaded.
Use the object explorer inside Visual Studio to see what functions/natives are available at this stage.

Requested Feedback
I need to know what natives to implement as a matter of priority. The goal is to implement them all, but I'd like some structure to it.

Brought to you by G17 Media, creators of one of the most popular GTA IV modifications LCPD First Response

Last edited by jaymac407; 30/03/2011 at 09:45 AM. Reason: title..
jaymac407 is offline   Reply With Quote
Old 31/12/2010, 12:33 AM   #2
Maikel
Gangsta
 
Join Date: Nov 2006
Posts: 937
Reputation: 25
Default Re: [DEV] .NET for SA:MP

Hell yea, this is what I were waiting for! Great! Sadly enough I must wait some time longer.
Maikel is offline   Reply With Quote
Old 31/12/2010, 12:39 AM   #3
[L3th4l]
Guest
 
Posts: n/a
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

How's the speeds compared to pawno?

Great job btw!
  Reply With Quote
Old 31/12/2010, 12:41 AM   #4
jaymac407
Little Clucker
 
Join Date: Jun 2009
Posts: 19
Reputation: 0
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

Quote:
Originally Posted by [L3th4l] View Post
How's the speeds compared to pawno?

Great job btw!
I haven't run any formal tests, but I'm assuming it will be a tad slower.
Although it does use JIT to compile the .NET code, I'm guessing the .NET/Mono runtime will be lagging it somewhat.
I'll try and post some basic tests later.
jaymac407 is offline   Reply With Quote
Old 31/12/2010, 12:46 AM   #5
Souvlaki
Huge Clucker
 
Souvlaki's Avatar
 
Join Date: Jan 2010
Location: hacked
Posts: 420
Reputation: 1
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

This is sick :P. Can't wait for the ALPHA release.
Souvlaki is offline   Reply With Quote
Old 31/12/2010, 09:50 AM   #6
Yagoda
Little Clucker
 
Join Date: Oct 2010
Posts: 36
Reputation: 0
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

This is very good !
The example in for VB.NET right?
Can you please make an example for C# because i know C# and i want to see how its going to work.
Yagoda is offline   Reply With Quote
Old 31/12/2010, 10:26 AM   #7
Bumbis
Huge Clucker
 
Bumbis's Avatar
 
Join Date: Jan 2010
Location: Latvia
Posts: 217
Reputation: 4
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

Excellent and perfect. I like C# it will be interesting to try this. Thanks!!
__________________
Filterscripts:
Speedo & Radar
Fishing System
Maps:
Los Santos Pier
Bumbis is offline   Reply With Quote
Old 31/12/2010, 12:09 PM   #8
Aleks7
Big Clucker
 
Join Date: Sep 2009
Location: Poland
Posts: 56
Reputation: 2
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

I can't wait
Aleks7 is offline   Reply With Quote
Old 31/12/2010, 12:52 PM   #9
Hiddos
High-roller
 
Hiddos's Avatar
 
Join Date: Sep 2008
Posts: 3,928
Reputation: 1858
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

This might be a nice opportunity for me to learn more about other programming languages, I'm sure to try this out!
__________________
Don't PM me.
Quote:
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline   Reply With Quote
Old 31/12/2010, 01:11 PM   #10
billiout
Huge Clucker
 
billiout's Avatar
 
Join Date: Apr 2010
Location: Greece
Posts: 248
Reputation: 0
Default Re: [DEV] .NET for SA:MP (VB.NET, C#)

finally i will use a lang that i know very well (c#) thanks i cant wait to be released
__________________
Click here for my toolkit.
billiout 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



All times are GMT. The time now is 02:48 PM.


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