![]() ![]() ![]() ![]() show a pop-up saying the file is encrypted. We eventually determined that was too complicated, so we settled on making the "locked" version of the file function the same no matter what, e.g. Samwich files were originally intended to have two separate functions: one when "locked" and one when "unlocked". If you're using something other than Windows and Notepad to edit these files, make sure you set line breaks to Windows-style format (\r \n).JSON arrays (chardata.hsd, webpages, etc) do not have this issue. Feel free to enter a line-break then "" or similar if you like, just ensure you have SOMETHING after the end of your script/data file after the end of the data. I recommend putting a line-break at the very end of all script, text, data, and ini files, otherwise the hidden character denoting the end of a file can occasionally cause issues with Hypnospace's file reader.Each line break denotes a separate "threaded" script. Advanced users can run multiple, concurrently running scripts in one file, separated by line-breaks.script:openfile:downloads\myimage.png|virus:ButtsDisease For example, here's a virus disguised as an image file: You can even make it appear to be a normal media file but run a script in the background.Simply change the extension to match the format you want. Scripts can be hidden within other file formats (images, videos, etc). ![]() The first few characters of any script file must be exactly "script:".The file extension you use will determine the file's icon in HypnOS. When naming your script files, please use ONLY lowercase letters, and use one of the extensions listed in the Reference Manual. Script files are simply text files containing scripts. Add the script itself, or 'openfile:blah', to your mod's InstallScript or OnBootScript, or UninstallScript.Running the file directly via script (openfile:path\to\file.ext).Downloading the file in-game (downloadfile:path\to\file.ext) and running it by double-clicking the icon.Add a script to a text file by adding "script:" to the beginning of the file and run it by:.When you click this link, the script will run. Type in a script in a webpage's link/script box in the Page Builder.Type in a script and hit Enter (you can also copy a script from elsewhere and paste it using Ctrl V).Press the ~ or ` or § key to bring up the console.Any named Function in the Hypnospace Outlaw code can be run using the same conventions as scripts: NameOfFunc:Param0,Param1. Note: If an action other than the below is used, the Script will assume you're trying to run an internal Function. The above will close the Explorer, give the player the ButtsDisease virus, wait 2 seconds, then open the You Got Hacked webpage. Įxample: closewindow:Explorer|virus:ButtsDisease|wait:2|webpage:hs\04_teentopia\yougothacked.hsp The below assumes you are running Hypnospace Outlaw v2.20 or later! BASIC SCRIPTING CONVENTIONSĪction:Parameters,Separated,By,Comma|Action2:Params. Please be VERY CLEAR in your description if your mod has spoilers or requires knowledge that folks won't have until they beat the game!Īlso, MASSIVE SPOILER WARNING!! PLEASE finish the game before you read this guide! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |