PDA

View Full Version : Welcome to the Scripting Support forum.



AndyRage
07-14-2011, 10:30 AM
In this forum you will find help for writing, recording, and using ArtRage script files. Here you can discuss ways to make scripts and share snippets of scripting code.


Sharing Scripts

Script files (.arscript) can be uploaded directly to the forum if they are 500kb or less. Package Files and large script files cannot be hosted on the forums, but can be uploaded elsewhere and linked to directly. You can also significantly reduce the size of an .arscript file by adding it to a zipped (compressed) folder. Staff may also add scripts to the official online resources (https://www.artrage.com/manuals/categories/resources/) on the main site.

If you're posting actual scripting code, enclose it inside the
CODE /CODE tags (surround the tags with square braces [], which I cant show because then it turns it into a block of code. :) )
The button for the code tags '#' is in the forum message toolbar.

For example:


// ArtRage script code
int n = 20;


This will make it easy for anyone who wants to copy the code to get the actual code block, and you can use nice indenting and formatting.


ArtRage Script Resources

Introduction to Scripts: https://www.artrage.com/manuals/scripts/
Using Scripts inside ArtRage (normal recording and playback): https://www.artrage.com/manuals/scripts/script-files/
ArtRage Script Guide for Programmers: https://www.artrage.com/files/artrage_advancedscriptingguide.pdf
Advanced script editing resources: pending!

Script Downloads:
http://www.artrage.com/manuals/scripts/script-downloads/
https://forums.artrage.com/showthread.php?52913-Custom-Scripts

AndyRage
07-14-2011, 11:00 AM
ArtRage script files need to be a Unicode UTF16 file. This is so we can allow script writers to use other characters in the script strings for internationalizing.

Unicode UTF16 uses two bytes per character, where standard Ascii text uses only one byte per character.

So how do you make a Unicode UTF16 file?

On Windows: Start Notepad (or whatever is your favourite text editor)
Write some text, or paste some script code from here.
From the Notepad 'File' menu, select 'Save As...'
Just to the left of the 'Save' button you'll see an 'Encoding:' selection box. Choose 'Unicode' from the list.

57717


On Mac OSX: Start TextEdit (or whatever...) and enter some text or copy some script code.
From the TextEdit 'File' menu, select 'Save As...'
From the 'Plain Text Encoding:' list, choose 'Unicode (UTF-16)

57723