UScript for Unturned: Difference between revisions

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 6: Line 6:
Information on Ster's discord server is more current than what you will find here.  This page is only a reference and maintenance is dependent on volunteers.
Information on Ster's discord server is more current than what you will find here.  This page is only a reference and maintenance is dependent on volunteers.


== installation ==
Clarification:  There are currently two version of uScript.  Although we reference "uScript" we refer to specifically [[uScript2]] the second release of the scripting engine for [[Unturned]].


How to install:
See also: [[UScript Installation]]


Quick:
[[Category:Unturned]]
# Download uScript2.zip from the Discord #loader-download channel.
[[Category:uScript]]
# Extract uScript2.zip into your root Unturned directory.
# Restart your server.
# Navigate to the generated Servers/YourServer/uScript directory in your server files.
# You can now create a new script. It can be named virtually anything, but MUST have the .uscript extension.
# Save your script in the Servers/YourServer/uScript/Scripts directory.
# Load your new script by using the command /script reload.
* Note that all scripts in your Scripts directory will be loaded automatically when your server starts.
 
Modules:
 
If you have any other uScript-compatible modules you want to add. Add their respective DLLs to Servers/YourServer/uScript/Modules
 
Commands:
 
(Anything in square brackets [] is optional)
* /script load [scriptName]
* /script reload [scriptName]
* /script unload [scriptName]
 
Tips:
 
* If you are using Notepad++, you can add syntax highlighting by going to Language > Define Your Language > Import and then import npp_lang.xml from the documentation.
 
* You can just do "/script reload" to reload all of your scripts without needing to restart your server (useful for when you have changed/added multiple scripts).
 
* You can setup multiple servers to use the same script, module, and/or data directory via the configuration.

Latest revision as of 09:36, 1 February 2025

uScript is a scripting language for the Steam game Unturned. uScript uses C# like syntax although there are some subtle differences and limitations.

uScript is created by Ster and has a Discord:

  • The latest version of uScript is available on the uScript Discord Server posted by its creator, Ster.

Information on Ster's discord server is more current than what you will find here. This page is only a reference and maintenance is dependent on volunteers.

Clarification: There are currently two version of uScript. Although we reference "uScript" we refer to specifically uScript2 the second release of the scripting engine for Unturned.

See also: UScript Installation