Normally, you launch RGSS by double-clicking the icon for thegame file, Game.exe (or Game if the Windowsoption "Hide extensions for known file types" has been turned on).The folder that contains this file is called the gamefolder.
In-progress games can be started up by selecting [Playtest] fromthe menu or [Battle Test] from the Troop database. In both cases,the game will start in debug mode, and the built-in Ruby variable$DEBUG will be setautomatically. While battle testing, the variable $BTEST will alsobe set to true.
Ruby's scripts usually take the form of text files with theextension .rb, but RGSS uses one proprietary packaged file. Thisfile cannot usually be edited without using RPGXP's script editor.The data is comprised of multiple sections and is executed in thelisted order, as displayed.
If you place an RGSS DLL (specified by Library) in the gamefolder without specifying an RTP, you can create a game thatdoesn't require RTP to be installed. This distribution method isn'tactively recommended, but it might be advantageous when a largemajority of the materials used are original creations.
RTP (Run Time Package) is a mechanism that reduces game datasize for distribution. RTP contains standard graphics and audiofiles used across many different games. Installing these materialsas a common file before playing a game eliminates the need todownload duplicate files over and over.
The RGSS-RTP configuration file can use the following methodsfrom the built-in game library to access files as though they werein the game folder. The extensions can be left off the file namesthat are passed to the methods below--their file types (such as.png or .mid) are identified automatically.
RPGXP's default RTP is the single "Standard" type, butstructurally speaking, you can use multiple RTPs at the same time.If you know how to make an installer, follow these steps to createa unique RTP at the user level. However, using common names for RTPtitles, such as "Extension", is not recommended; they mightconflict with the names of new, official RTPs in the future.
The RTP installer creates a string value containing the RTP namein the "HKEY_LOCAL_MACHINE\SOFTWARE\Enterbrain\RGSS\RTP" registrykey and uses it to set the path. RGSS recognizes the stringspecified in this key as the RTP.
Encrypted archives make it difficult for others to analyzeand/or rebuild the game contents. Normally all data and graphicfiles (not audio files) are stored in Game.rgssad. You can createan encrypted archive by checking the [Create encrypted archive] boxwhen compressing the game data.
When there is an encrypted archive in the game folder, thescript data (normally Data\Scripts.rxdata) defined in the Scriptsline of Game.ini will always be read fromthe archive. This is a limitation that prevents files within thearchive from being read by an external script.
Ruby's built-in variable $KCODE (not included in this reference)is set to "UTF8" by default. RPGXP's script data and all otherstring data are also in UTF-8, so you don't have to worry about anyencoding conflicts as you build your game.
RGSS games usually run at 20 frames per second, but you cancheck [Smooth Mode] in the game's Properties to run it at a 40 fpsframerate instead. This is why the scripts move at an internal rateof 40 fps whether [Smooth Mode] is on or off. Be aware that mostvalues, like wait length, will be handled as though they've beendoubled.
d3342ee215