![]() ![]() This example will disable auto-completion features in the default programs. setting's name and value is separated by an equals sign ( =).each setting is separated by a comma ( ,).You can change or add default settings for all computers through ComputerCraft.cfg. then all regular defaults will apply except for the use of multishell, which will be disabled. If a file titled ".settings" is saved to the root of a given computer's drive, it will be automatically loaded after the default settings on boot (note "after", as opposed to "instead of").įor example, if the file simply contains: list.show_hidden - determines, whether the List program will list hidden files or not.shell.allow_startup - if there is a 'startup' script in a computer's root, this setting allow to automatically run that script when the computer runs.shell.allow_disk_startup - if a Disk Drive with a Disk inside that has a 'startup' script is attached to a computer, this setting allows to automatically run that script when the computer starts.e_multishell - enables Multishell on Advanced Computers, Turtles, Pocket Computers and Command Computers.tocomplete - enables auto-completion in the Edit program.lua.autocomplete - enables auto-completion in the Lua program.tocomplete - enables auto-completion in the Shell.= true -# (for all Computer types except Command Computers), These are the default settings of a computer (as seen in CC 1.77 and later): Setting's values can only be serializable types: string, number, boolean or table.Setting's names can only be of type string.Settings changed via this API are not automatically saved to a file, you have to do this manually.Returns a numerically-indexed table of all the setting's names. Returns the setting's name value, or default if the setting does not exist. It became available as of ComputerCraft 1.77, the first build for Minecraft 1.8.9. Settings can also be changed and added to all computers through ComputerCraft.cfg's S:default_computer_settings value. settings sitting in the root of the computer. The settings API allows to store values and save them to a file for persistent configurations for your and CraftOS programs. ![]()
0 Comments
Leave a Reply. |