Assetto Server - Overtake Script

Опубликовано: 03 Октябрь 2024
на канале: Mr.Assetto
2,143
31

[------------------------------------------------------------------]
Original Script Git -
https://github.com/lucxsm/assettoserv...

CSP Extra Options code-
[SCRIPT_1]
SCRIPT = 'https://pastebin.com/raw/tzZUTTpQ';

if you do your own script make sure it's a raw link!
[---------------------------------------------------------------------------]
Online scripts
Available since 0.1.76. Specify a URL to a bit of code to run on client machines (with some restrictions, such as those scripts would not be able to access files outside of track and cars folders, or run processes, or other things like that). Those scripts can be used to display additional HUD elements, access car state and apply custom penalties, teleport cars upon certain conditions, control cameras, alter restrictor and ballast live, break and fix cars, apply extra forces, load and display new models, update textures live, add post-processing color corrections and much more, pretty much the same set of functions track scripts can do and more.

[SCRIPT_...]
SCRIPT = path ; Path can be either a web URL: for example, you can store your script
; on https://gist.github.com and use the raw link, or you can set a path
; relative to “assettocorsa/extension/lua” for development purposes and
; edit scripts live.
… = … ; Any other parameters set in this section can be accessed by the script,
; thus allowing to configure the same script to use with different servers.
Script URLs also support parameters substitution, so you can have it set like this:

SCRIPT = 'https://myserver.com/script?s={SessionID}&t={SteamID}&c={CarID}&k={CarSkinID}&v={CSPBuildID}'
With that, some basic server can respond with a different script depending on the client, sending one script to a regular player and another to an admin (also, scripts can verify if player has admin rights live as well). All the parameters:

SessionID: 0-based index of entry list used by the player;
SteamID: player’s Steam ID;
CarID: name of the user’s car folder;
CarSkinID: name of the user’s skin folder;
CSPBuildID: CSP build number;
ServerIP: IP used to connect to the server;
ServerName: server name;
ServerHTTPPort: server HTTP port;
ServerTCPPort: server TCP port;
ServerUDPPort: server UDP port;
Server config can specify multiple scripts, although having too many of them might introduce a slight performance overhead. Don’t worry if it’s just, like, a dozen of those, but if it’s more than that, consider regrouping things somehow.

Info From https://github.com/ac-custom-shaders-...
[---------------------------------------------------------------------------]
#assettocorsaserver #assettocorsaserversetup #assettocorsaserverwithtraffic #assettocorsaserverhosting #assettocorsaservercontainsunavailablecontent #assettocorsaservermanager #assettocorsaservernodlc #assettocorsaserverswithmods #assettocorsaserverwithtrafficsetup #assettocorsaserverportforwarding #assettocorsaservercontentmanager #assettocorsaservertutorial #assettocorsaservernotworking #assettocorsaservermanagerguide #assettocorsacantloadanyinformation #assettotroubleshootings #assettotroubleshootingserver #assettotroubleshootingguide #assettocorsaovertake #assettocorsabestovertakes #assettocorsaovertakerun #assettocorsaf1overtakes #assettocorsacompetizioneovertakes #assettocorsatougeovertake #assettoovertakescripts #assettocontrollerscript #assettocorsacontrollerscriptthatfeelslikecarx #assettocorsacontrollerscriptgrip #assettocorsaweatherscript #assettocorsacontrollerscriptforracing #assettocorsapurescript #assettocorsascriptabledisplay #projectassettoscript #assettocorsacontrollerscriptnotshowing #assettocorsawheelscript #assettocorsamousescript #assettocorsascriptablefilters #assettocorsacontrollerscriptps4