UKADOC Project

install.txt

install.txt

Overview

See also the page File structure: “Installation”.

An installation settings file for Ukagaka/SSP content archives (.nar, etc.), such as ghosts, balloons, and shells. All archives can also be installed manually by extracting them, but the presence of a properly configured install.txt enables the installer feature, allowing installation through simple means such as drag and drop.

Example and basic usage

For a ghost (balloons and plugins work in much the same way; just change the type value)

charset,Shift_JIS
name,凡例さん
type,ghost
directory,example

For an additional shell

charset,Shift_JIS
name,凡例さんアルティメットフォーム
type,shell
directory,ultimate
accept,凡例さん

For a ghost supplement (additional files)

charset,Shift_JIS
name,凡例さん猫化パッチ
type,supplement
accept,凡例さん

To include a balloon with a ghost

charset,Shift_JIS
name,凡例さん
type,ghost
directory,example
balloon.directory,example_balloon
balloon.source.directory,balloon

※SSP only: Place this at the top level of a package for installing multiple items
(The install.txt files placed with each included item can use the usual format)

charset,Shift_JIS
name,凡例さんファミリー一括入居パッケージ
type,package

The charset must be specified on the first line (it can be omitted for Shift_JIS).

name and type are required. directory is also required unless type is supplement or package.
Specify the other entries as needed.

For additional shells and supplements, you can use accept to avoid installing them on an unintended ghost.
This is especially important for supplements, which pose a risk of accidentally overwriting and corrupting unexpected files.
Note that accept uses the baseware-side name, not the ghost name.

In SSP, use *.directory when including a balloon or plugin with a ghost or shell.
For details, see “Simultaneous installation”.

The name is used mainly for the notification content in the Reference of installation-related SHIORI Events.
Some ghosts use this information to switch to the newly installed item immediately after installation. However, if the actual ghost name in descript.txt differs from the name given in install.txt, this switching may not work correctly.

Simultaneous installation

Overview

In SSP, you can include a balloon or other content in a ghost or shell archive and install them together.
Specify the included content with an entry that begins with “*.”; the * part takes the type of content being included.

The following five types can be written in place of *.

balloon
balloon
headline
headline sensor
plugin
plugin
calendar.skin
calendar appearance file
calendar.plugin
calendar schedule sensor

Note that unlike the notation in type, calendar-related entries use dot separators (calendar.skin, not calendar skin).

This works regardless of the archive's own type, but in practice it is used with archives whose type is ghost or shell.

Numbering when including multiple items

To include multiple items of the same type, append a zero-based number after the type in place of *, such as balloon0, balloon1, … (SSP 2.7.00 and later).

Items are searched for in the order unnumbered → 0 → 1 → 2…, and the search stops when a number is missing.
Therefore, do not leave gaps in the numbering. For example, if you specify only balloon0 and balloon2, the search stops when balloon1 is missing, so balloon2 is not read.

Unnumbered entries and entries numbered 0 are treated separately. If you specify both balloon and balloon0, two balloons will be installed.

*.directory, *.source.directory, *.refresh, and *.refreshundeletemask can each be specified independently for every number.

Note that only the first item is configured as the balloon associated with the ghost or shell.
The second and subsequent items are installed, but do not become that ghost's default balloon.

Example

To include two balloons and one plugin with a ghost

charset,Shift_JIS
name,凡例さん
type,ghost
directory,example
balloon0.directory,example_balloon
balloon0.source.directory,balloon_normal
balloon1.directory,example_balloon_ex
balloon1.source.directory,balloon_special
plugin0.directory,example_plugin
charset,character encoding

The character encoding to display. Shift_JIS is recommended for compatibility with older environments; otherwise, UTF-8 is recommended.

(OS default setting or SSP->Internationalization->Default character encoding->Text definitions)

  • SSP
  • CROW
name,object name

The name of the object.

Required

  • Materia
  • SSP
  • CROW
type,Type

The type of content in the archive. The types are as follows.

ghost
ghost
shell
Additional shell for a ghost
supplement
Additional files for a ghost
balloon
balloon
plugin
plugin
headline
headline sensor
language
(SSP only) language pack
calendar skin
(SSP only) calendar appearance file
calendar plugin
(SSP only) calendar schedule sensor
package
(SSP only) package for installing multiple items

[Legacy specification](install-txt/SSPのみ) Writing only calendar is treated the same as calendar skin.
This is for compatibility with the time before calendar plugin existed, and must not be written now.

Cannot be omitted

  • Materia
  • SSP
  • CROW
accept,Baseware-side name

The baseware-side name of a ghost that can receive archives (= the \0 name, sakura name).
Alternatively, the name set in the ghost's descript.txt install.accept can also be used.
This must always be used for content intended for a specific ghost, such as additional shells or additional files (supplements).

No behavior

  • Materia
  • SSP
  • CROW
directory,directory name

The directory name after the archive is installed. ASCII alphanumeric characters are recommended.

Required, except for type,package.

  • Materia
  • SSP
  • CROW
bootghost,directory name

Valid only for type,package. Specifies the directory name of the ghost to launch when SSP is started from initial_install.nar or via a nar association.

  • SSP2.7.52
refresh,numeric value

If the value is set to 1, all files in the same directory are deleted before installation.

Any value other than 1 (refresh disabled)

  • Materia
  • SSP
  • CROW
refreshundeletemask,filename1:filename2...

Filenames to exclude from deletion by refresh.
Separate multiple names with a colon “:”.
Paths cannot be specified. Files with the specified names are excluded in all directories.

No behavior

  • Materia
  • SSP
  • CROW
*.directory,directory name

The directory name to use after installing the included content. ASCII alphanumeric characters are recommended.
For how to write the * portion and number multiple items of the same type, see “Simultaneous installation”.
Only a single-level directory name can be specified here; path separators are not allowed (they are replaced with “_”).
This works regardless of the archive's own type, but in practice it is used with archives whose type is ghost or shell.

No behavior

  • SSP
*.source.directory,Directory Name

The directory name within the archive for content to be installed at the same time. ASCII alphanumeric characters are recommended.
Set this when the directory name after installation differs from the directory name within the archive for content to be installed at the same time.
Numbered entries (such as balloon0.source.directory) can also be specified in the same way.

Starting with SSP 2.9.00, you can also specify a relative path that traverses directories within the archive, such as extra\bal1.
Either「\」or「/」can be used as a separator. References to parent directories using「..」are not allowed (they are removed).
Before 2.9.00, separators are replaced with「_」, so only a single-level directory name can be specified.

Directory name set by *.directory

  • SSP
*.refresh,numeric value

The refresh setting for the content being installed at the same time.
Numbered entries (such as balloon0.refresh) can also be specified.

Any value other than 1 (refresh disabled)

  • SSP
*.refreshundeletemask,filename1:filename2...

The refreshundeletemask setting for the content being installed at the same time.
Numbered entries (such as balloon0.refreshundeletemask) can also be specified.

No behavior

  • SSP

delete.txt

delete.txt

Overview

See also the File structure: “Network Updates” page.

When updating, the client's (user's) files are only overwritten by the server's (author's) files; they are not synchronized.
In other words, files once downloaded or created on the client cannot be removed even if they are deleted on the server.
Therefore, if a file that was published needs to be removed after release, it must be listed in delete.txt.
Note that delete.txt is not automatically deleted after the deletion is performed; once listed, its contents will continue to be excluded indefinitely unless changed.

The following specification applies to SSP only.

charset,(character encoding)
Specify the file's character encoding

Example

ghost\master\ai.dtx
ghost\master\testdict\
shell\master\surface110.png
Relative path

List the files to delete during network updates as paths relative to the ghost's home folder.
Separate levels in a relative path with “\”.
Folders can also be specified; in that case, end the path with \.

No behavior

  • Materia
  • SSP
  • CROW

developer_options.txt

developer_options.txt

Overview

See also the pages File structure: “Network updates” and File structure: “Installation”.

This file sets options for files targeted when SSP creates archives or network update information files.
SSP can create archives (.nar) or update files (updates2.dau) by dragging and dropping a package folder, such as a ghost, onto SSP; this file is referenced when that feature runs.
Therefore, as a rule, note that this file is completely unrelated if you create those files with other tools, such as “Sodate” or “ghost distribution automation systems.”
As an exception, some tools, such as “Satorist,” implement features that read and use developer_options.txt.

Example

ghost/master/savedata.txt,noupdate
shell/old/,nonar
ghost/master/profile/,nonar,noupdate

Notes

Be aware that settings must be made on one line per target (file or folder). For example, if you write the following, only the setting made later (below) takes effect, and the nonar option is disabled.

ghost/master/profile/,nonar
ghost/master/profile/,noupdate

To specify two options, the correct format is as shown above:

ghost/master/profile/,nonar,noupdate

Write it this way.

Relative path,option 1,option 2,...

Specify options, separated by commas, for files and folders given as paths relative to the ghost's home folder.
Separate levels in a relative path with “/”, not “\”.
When specifying a folder, append a / to the path.
The wildcards * and ? can be used (since SSP 2.5.17)
The available options are as follows.

nonar
Do not include the target in the nar when creating a nar.
noupdate
Do not include the target in updates when creating updates2.dau (updates.txt).


Note that these options control file creation, so they are effective only when creating a nar or update files using SSP or an application that can recognize this file.

No behavior

  • SSP
Items Automatically Excluded

When SSP creates nar/updates2.dau(updates.txt), the following files and folders are automatically excluded even if they are not specified in developer_options.txt.

Files

  • desktop.ini
  • thumbs.db
  • folder.htt
  • mscreate.dir
  • .DS_Store
  • _CATALOG.VIX

Folders

  • profile/
  • var/
  • __MACOSX/
  • XtraStuf.mac/
.narignore / .updateignore / .narinclude / .updateinclude
.narignore / .updateignore

.narignore/.updateignore allows the .gitignore syntax to be used as-is, providing more flexibility than the syntax of developer_options.txt.

For the syntax, see the .gitignore manual, or ask an LLM (text-generating AI) to generate it based on what you want to do.

Unlike .gitignore, however, these files do not work when placed in a subdirectory. They are effective only when placed directly under the ghost's root directory.

As a Ukagaka-specific special feature, the include: directive is available. For example,
include:.narignore
causes the contents of the .narignore file to be processed as if they had been inserted in their entirety at this line.

Relative paths specified in include: are resolved relative to the directory containing the file in which the line is written, not relative to the ghost's root directory. You can also write another include: directive in an included file. In that case, the base directory is updated each time to the directory containing the file just included (the base moves from parent to child, then from child to grandchild).

Recursive loading has a limit: it can traverse a maximum of 3 levels. include: directives deeper than that are rejected. The path separator can be either / or \.

For example, if you write include:sub/extra.txt in the .narinclude file directly under the ghost's root directory, sub/extra.txt is loaded. If you then write include:foo.txt in that extra.txt file, sub/foo.txt is loaded relative to the sub/ directory containing extra.txt, rather than relative to the ghost's root directory.

  • SSP
.narinclude / .updateinclude

These are whitelist versions of .narignore/.updateignore. Only items written here are included in update files/NARs.
Unlike gitignore, subdirectories are handled so that, for example, writing only shell/master without writing shell/ still correctly includes the parent directory.

Also, like .narignore/.updateignore, these files differ from .gitignore in that they do not work when placed in a subdirectory. They are effective only when placed directly under the ghost's root directory.

  • SSP

updates_def.txt

Notes

[Legacy specification]; specify this in developer_options.txt instead.

Relative path,ignore

Specify options separated by commas for files specified by relative paths from the ghost's home folder.
Per-folder specifications are not supported.
If the ignore option is present, the target is excluded from the update targets when updates2.dau (updates.txt) is created.

No effect

  • SSP