SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/01/2017, 11:52 PM   #1
dotSILENT
Little Clucker
 
dotSILENT's Avatar
 
Join Date: Aug 2016
Location: Poland
Posts: 21
Reputation: 35
Lightbulb [DISCUSSION] Server & client sided SAMP extension?

Hi,

For some longer time, I've been thinking about something: a client & server sided extension/plugin which would aim to fix some minor & bigger SAMP and GTA bugs, provide more control & information of player's game to the server, and maybe provide a client-sided scripting language (probably JavaScript).

Basic functions would be "exposed" to the scripting language such as: object related, textdraw related, vehicle related (?), and maybe some other. This would put off a lot of job from the server (for example: the object streamer, it could be entirely made on the client's side, with bigger visible objects limit).
The plugin would also allow admins to create better anti-cheats (although that is still questionable, since everything can be bypassed, but providing more information to the server would obviously make it easier to detect stuff)
Seeing the actual situation, we may probably not expect any future updates, so this could also in some way keep SAMP up-to-date. Things like downloading textures, objects, sounds from the server could be provided.

Of course the plugin would be open source, otherwise noone would trust it. It would also require a lot of security checks in the client (and server too) and fast bug fixes to prevent any possible "hacking" through exploits (I'm having some buffer overflows on my mind, just like SAMP had in textdraws etc). It would automatically update itself so it would be easier to keep players safe.


This is all just a theory though, since I haven't even started any work on this (don't even have much time to do that now), but I'd like to see some opinions about this.
I know there have been some attempts to create similar things previously, but most of them based on simple fixes and providing 10000 new checkpoint colours, this would provide a much bigger set of possibilities, and if many servers used it and required it I think it would work out.

Edit
To be clear, I don't aim at over complicating it, the plugin would still keep SAMP the "vanilla" way, without altering the game too much. It would just "connect" SAMP with the game more, in a better way, providing much more functions.
dotSILENT is offline   Reply With Quote
Old 21/01/2017, 12:39 AM   #2
renatog
Huge Clucker
 
Join Date: Mar 2016
Posts: 313
Reputation: 34
Default Re: [DISCUSSION] Server & client sided SAMP extension?

I was thinking about it today. A client integration would be good to save CPU and do anti cheater things. But open source anti cheat things is a good way to tell the cheater creator how to bypass the security. Thinking on that I realized that we will have just abandoned projects like SAMP+. A server and client integration have to be a private project and hard do evade.
renatog is offline   Reply With Quote
Old 21/01/2017, 05:50 AM   #3
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Location: Greenville, NC, USA
Posts: 462
Reputation: 130
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Good luck man, it's a lot of time to do something like that.
__________________
GitHub

Author of SA-MP AC

Whitetiger is offline   Reply With Quote
Old 21/01/2017, 10:55 AM   #4
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,314
Reputation: 1171
Default Re: [DISCUSSION] Server & client sided SAMP extension?

You are in giddy land right now, a project like this has such a low success probability you shouldn't waste your time. This has been done and every attempt so far has had poor results not in functionality but in terms of adoption.
Pottus is offline   Reply With Quote
Old 21/01/2017, 02:06 PM   #5
dotSILENT
Little Clucker
 
dotSILENT's Avatar
 
Join Date: Aug 2016
Location: Poland
Posts: 21
Reputation: 35
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Implementing some simple client scripting language with basic functions shouldn't take that long, and that would be the main goal of the plugin besides fixing bugs and providing more functionalities.
I know it would take a long time, it would probably require more than one person, but looking at current SAMP situation, we are probably not getting any next update (cmon, last update was in 2015) and if this plugin would be the next "future" of SAMP and some bigger servers would start to use it then it would maybe work. Ssome servers use custom launchers to provide custom objects and stuff for the players, wtih this plugin they just woulndn't need to, and players would have less job - install once and don't worry ever more. We could also introduce some new server browser, which would also fix the internet list (or implement the fix that is already out there somewhere) and do much much more.
dotSILENT is offline   Reply With Quote
Old 21/01/2017, 04:29 PM   #6
DeitY
Huge Clucker
 
DeitY's Avatar
 
Join Date: Aug 2012
Location: Serbia
Posts: 289
Reputation: 9
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Mate, its awesome idea. But since its client, it has to be downloaded(big - for morons without brain). Im talking about anticheat mostly. For other stuff, i think its not possible. If you make this somehow, you'll be new Kalcor.
__________________
Serbian RolePlay Server! 7 Years Community so far and going~

DeitY is offline   Reply With Quote
Old 21/01/2017, 07:18 PM   #7
dotSILENT
Little Clucker
 
dotSILENT's Avatar
 
Join Date: Aug 2016
Location: Poland
Posts: 21
Reputation: 35
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Whats not possible? Implementing a client sided scripting language? Downloadable resources? That's actually probably the easiest part. It would make lots of things that are impossible (or inefficient) now POSSIBLE, you could even do some calculations to detect if you ride behind a vehicle and do some "draft" race class like in NFS, modify the vehicle handling, and basically everything else (but in a reasonable manner, we don't want to make some other game out of our old good SA).
We could also implement some fixes for the poor streaming distance in GTA (who else is annoyed as hell by trees loading 10 meters in front of you when riding a car fast?)
Nowadays computers could run this GTA 100 times while maintaining 100fps, I know the game is poorly optimized because it's a console port but some things can be fixed/made better.
dotSILENT is offline   Reply With Quote
Old 21/01/2017, 07:24 PM   #8
KnowNN
Little Clucker
 
KnowNN's Avatar
 
Join Date: Jul 2015
Posts: 42
Reputation: 0
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Kalcor, god of sa-mp, please do something!
KnowNN is offline   Reply With Quote
Old 22/01/2017, 08:17 PM   #9
DeitY
Huge Clucker
 
DeitY's Avatar
 
Join Date: Aug 2012
Location: Serbia
Posts: 289
Reputation: 9
Default Re: [DISCUSSION] Server & client sided SAMP extension?

Quote:
Originally Posted by dotSILENT View Post
Whats not possible? Implementing a client sided scripting language? Downloadable resources? That's actually probably the easiest part. It would make lots of things that are impossible (or inefficient) now POSSIBLE, you could even do some calculations to detect if you ride behind a vehicle and do some "draft" race class like in NFS, modify the vehicle handling, and basically everything else (but in a reasonable manner, we don't want to make some other game out of our old good SA).
We could also implement some fixes for the poor streaming distance in GTA (who else is annoyed as hell by trees loading 10 meters in front of you when riding a car fast?)
Nowadays computers could run this GTA 100 times while maintaining 100fps, I know the game is poorly optimized because it's a console port but some things can be fixed/made better.

WEll, care to explain us how are you going to do that? Also, would be nice if you could somehow implement "downloading" resource onplayerconnect. I'm not that much experienced to talk anything about your new stuff, but i wish you the best.
__________________
Serbian RolePlay Server! 7 Years Community so far and going~

DeitY is offline   Reply With Quote
Old 23/01/2017, 08:36 PM   #10
dotSILENT
Little Clucker
 
dotSILENT's Avatar
 
Join Date: Aug 2016
Location: Poland
Posts: 21
Reputation: 35
Default Re: [DISCUSSION] Server & client sided SAMP extension?

DeitY, having access to the player's game through a client-sided plugin (dll/asi) gives you almost unlimited possibilities (and also some risks)
It just requires implementing a scripting engine and "exporting" some functions such as CreateTextDraw etc, resource downloading would just work on sending files from server to client, or using an external FastDL (ftp) server. Downloading it easy, it would be harder to load the resources to the game (objects, textures etc) at runtime than making the download.
dotSILENT 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
Best Anti-Money Hack Method (Server Sided Money) Discussion Dorito Discussion 15 18/12/2016 03:46 PM
A weird bug not sure whether client or server sided Geazy Scripting Help 7 29/03/2016 10:11 PM
Chat Position (Client Sided) [xT]Emaratii Client Support 1 10/02/2014 05:08 PM
[Tutorial] How to add client sided single player pedestrians to SA-MP Lewwy Tutorials 13 26/03/2011 09:48 PM


All times are GMT. The time now is 12:39 AM.


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