UKADOC Project
SHIORI Resource

SHIORI Resource originated as a request for retrieving simple string information, such as displaying owner-draw menus and homeurl, defined by the legacy protocol SHIORI/2.5.
This specification allows such information to be controlled according to the ghost's state.

In SHIORI/3.0 and later, as a result of organizing the legacy specification, it is not clearly distinguished from ordinary SHIORI Events in terms of implementation.

Unlike ordinary SHIORI Events, its return value is treated as plain (short) text rather than Sakura Script (including bool-like values). Also, request IDs do not begin with "On", and alphabetic characters are written in lowercase.

SHIORI information

Requests for the following four IDs are normally returned automatically by SHIORI and are not handled by individual ghost authors.

version

Occurs immediately after SHIORI is loaded.
In response to this event, SHIORI returns its version information (not the SHIORI protocol version).

  • Materia
  • SSP
  • CROW
craftman

Occurs immediately after SHIORI is loaded.
In response to this event, SHIORI returns the name of the SHIORI author. Only 7-bit characters can be used.

  • Materia
  • SSP
  • CROW
craftmanw

Occurs immediately after SHIORI is loaded.
In response to this event, SHIORI returns the name of the SHIORI author. In addition to 7-bit characters, 8-bit characters and multibyte characters in the default encoding can also be used.

  • Materia
  • SSP
  • CROW
name

Occurs immediately after SHIORI is loaded.
In response to this event, SHIORI returns its name (not the ghost name). Only 7-bit characters can be used.

  • Materia
  • SSP
  • CROW
log_path

Occurs when you select "Open" in the developer palette. Returns the full path to the SHIORI log file.
See also SHIORI Event : enable_log.

  • SSP

Ghost information

homeurl

The location of the network update files.
Can also be specified in descript.txt as a backup in case a serious problem occurs with SHIORI.
See the descript.txt description to determine which specification takes precedence.

  • Materia
  • SSP
  • CROW
  • Ninix
useorigin1

The starting number for file counts during network updates.
1 starts counting from file 1; 0 starts from 0, as in MATERIA.

  • SSP
  • CROW
username

The user's name.

  • Materia
  • SSP
  • CROW
  • Ninix
sakura.defaultx

The X coordinate of the default position for the main character (\0). The surface's reference point (usually its bottom center) is placed at this position.
The default position is used when no display position has been saved, such as on first startup or after resetting the display position. If none is specified, the character is placed at the bottom right of the primary monitor's work area.
The value is in pixels, in screen coordinates with the origin at the top left of the primary monitor (the position within the entire virtual desktop in a multi-monitor setup).
A negative value specifies the distance from the right edge of the primary monitor's work area. -0 is the right edge itself.[2.9.13]
To specify a negative coordinate directly, such as for a monitor to the left of the primary monitor, use two consecutive minus signs, as in --100 (X coordinate -100 in this example).[2.9.13]
If sakura.defaultleft is also specified for the same axis, this setting (defaultx) takes precedence.
The same entry can also be specified in the ghost or shell descript.txt[2.9.13]. The SHIORI resource takes precedence.
This setting has no effect when the character is configured to appear along the left or right edge of the desktop, because the X coordinate is determined by that setting.

  • SSP
kero.defaultx

The default X coordinate of the partner (\1). The format and meaning are the same as for sakura.defaultx.
If none are specified, the partner is placed to the left of the main character.

  • SSP
char*.defaultx

The default X coordinate of the *th character (\p[*]). The format and meaning are the same as for sakura.defaultx.
Used mainly for the third and later characters (char2 and later). char0 and char1 are used when sakura and kero are not specified.
If none are specified, the character is placed to the left of the preceding character.

  • SSP
sakura.defaulty

The Y coordinate of the default position for the main character (\0). The surface's reference point (usually its bottom center) is placed at this position.
The situations in which the default position is used, the unit, and the coordinate system are the same as for sakura.defaultx.
A negative value specifies the distance from the bottom edge of the primary monitor's work area. -0 is the bottom edge itself. Here, the bottom edge is shifted upward by the amount specified in SSP's "Desktop bottom edge offset" setting.[2.9.13]
Two consecutive minus signs specify a negative coordinate directly (--100 is Y coordinate -100).[2.9.13]
If sakura.defaulttop is also specified for the same axis, this setting (defaulty) takes precedence.
The same entry can also be specified in the ghost or shell descript.txt[2.9.13]. The SHIORI resource takes precedence.
This setting has no effect when the character is configured to appear along the top or bottom edge of the desktop, because the Y coordinate is determined by that setting (it takes effect in free movement mode, for example).

  • SSP
kero.defaulty

The default Y coordinate of the partner (\1). The format and meaning are the same as for sakura.defaulty.
If none are specified, the partner is placed at the same height as the main character.

  • SSP
char*.defaulty

*The Y-coordinate of the default position of the character (\p[*]). The format and meaning are the same as sakura.defaulty.
char0 and char1 are used when sakura and kero are not specified.
If none are specified, the character is placed at the same height as the previous character.

  • SSP
sakura.defaultleft

The X coordinate of the default position for the main character (\0). The left edge of the character window is placed at this position.
The situations in which the default position is used, the value's units and coordinate system, and the conditions under which it is ignored are the same as for sakura.defaultx. If sakura.defaultx is also specified, it takes precedence.
A negative value is the distance from the right edge of the primary monitor's work area to the right edge of the character. -0 aligns it exactly with the right edge. This allows the position to be specified as a margin from the right edge of the screen without regard to the surface width.[2.9.13]
Using two consecutive minus signs specifies a negative coordinate itself (--100 is X coordinate -100).[2.9.13]
The same item can also be specified in the ghost and shell descript.txt files. The SHIORI resource takes precedence.

  • Materia
  • SSP
  • CROW
kero.defaultleft

The default X coordinate of the partner (\1). The format and meaning are the same as for sakura.defaultleft.

  • Materia
  • SSP
  • CROW
char*.defaultleft

The X coordinate of the default position of the *th character (\p[*]). The format and meaning are the same as sakura.defaultleft.
char0 and char1 are used when sakura and kero are not specified.

  • Materia
  • SSP
  • CROW
sakura.defaulttop

The Y coordinate of the default position for the main character (\0). The top edge of the character window is placed at this position.
The situations in which the default position is used, the value's units and coordinate system, and the conditions under which it is ignored are the same as for sakura.defaulty (effective in free movement mode, among others). If sakura.defaulty is also specified, it takes precedence.
A negative value is the distance from the bottom edge of the primary monitor's work area to the bottom edge of the character. -0 aligns it exactly with the bottom edge. Here, the bottom edge is shifted upward by the amount specified in SSP's "Desktop bottom offset" setting.[2.9.13]
Using two consecutive minus signs specifies a negative coordinate itself (--100 is Y coordinate -100).[2.9.13]
The same item can also be specified in the ghost and shell descript.txt files. The SHIORI resource takes precedence.

  • SSP
kero.defaulttop

The default Y coordinate of the partner (\1). The format and meaning are the same as for sakura.defaulttop.

  • SSP
char*.defaulttop

*th character (\p[*]) default position Y-coordinate. The format and meaning are the same as sakura.defaulttop.
char0 and char1 are used when sakura and kero are not specified.

  • SSP
(input box type).defaultleft (input box type).defaulttop

The initial screen X and Y coordinates of an input box. left is X, and top is Y. These are valid only when both left and top are returned.
If the position where the user moved the input box has been saved, that position takes precedence.
Negative values indicate the distance from the right/bottom edge of the work area on the monitor displaying the main window to the right/bottom edge of the input box. -0 places it exactly at the right/bottom edge.[2.9.13]
Prefixing the value with two hyphens makes it a negative coordinate as-is (--100 means coordinate -100).[2.9.13]
The box types are as follows: communicatebox、scriptbox、addressbar、teachbox、dateinput、timeinput、ipinput、sliderinput、passwordinput、inputbox

  • SSP
sakura.recommendsites

The recommendations list on the main character's side.
The value
is returned in the following format:
Item name 1[byte value 1]URL 1[byte value 1]banner image path 1[byte value 1]talk script on selection 1[byte value 2]item name 2[byte value 1]...
However, SHIORI may perform the conversion to this format internally. See the documentation for each SHIORI for details.
The talk script portion is not plain text, but Sakura Script.
If the URL portion contains a description beginning with script: instead of a URL, that script is executed (for example, \![raise] is also possible).

  • Materia
  • SSP
  • CROW
  • Ninix
sakura.portalsites

The portal list on the main character's side.
The value
is returned in the following format:
Item name 1[byte value 1]URL 1[byte value 1]banner image path 1[byte value 1]talk script on selection 1[byte value 2]item name 2[byte value 1]...
However, SHIORI may perform the conversion to this format internally. See the documentation for each SHIORI for details.
The talk script portion is not plain text, but Sakura Script.
If the URL portion contains a description beginning with script: instead of a URL, that script is executed (for example, \![raise] is also possible).

  • Materia
  • SSP
  • CROW
  • Ninix
kero.recommendsites

The recommendations list on the partner side.
The value
is returned in the following format:
Item name 1[byte value 1]URL 1[byte value 1]banner image path 1[byte value 1]talk script on selection 1[byte value 2]item name 2[byte value 1]...
However, SHIORI may perform the conversion to this format internally. See the documentation for each SHIORI for details.
The talk script portion is not plain text, but Sakura Script.
If the URL portion contains a description beginning with script: instead of a URL, that script is executed (for example, \![raise] is also possible).

  • Materia
  • SSP
  • CROW
  • Ninix
char*.recommendsites

The recommendation list for \p[*].
The value is
returned in the following format:
Item name 1[byte value 1]URL 1[byte value 1]banner image path 1[byte value 1]talk script on selection 1[byte value 2]item name 2[byte value 1]...
However, SHIORI may perform the conversion to this format internally; see the documentation for each SHIORI for details.
The talk script part is Sakura Script, not plain text.
Instead of a URL, a value beginning with script: in the URL part executes that script (including \![raise]).

  • SSP
sakura.recommendbuttoncaption

The name of the recommendations on the main character's side.

  • Materia
  • SSP
  • CROW
sakura.portalbuttoncaption

The name of the portal on the main character's side.

  • Materia
  • SSP
  • CROW
  • Ninix
kero.recommendbuttoncaption

The name of the recommendations on the partner side.

  • Materia
  • SSP
  • CROW
  • Ninix
char*.recommendbuttoncaption

The name of the recommendation button for \p[*].

  • SSP
  • Ninix
updatebuttoncaption

The name of the network update command.

  • Materia
  • SSP
  • CROW
  • Ninix
vanishbuttoncaption

The name of the vanish notice.

  • Materia
  • SSP
  • CROW
  • Ninix
readmebuttoncaption

The name of Read Me!.

  • Materia
  • SSP
vanishbuttonvisible

Whether to show the vanish notice. 1 to show, 0 to hide. Shown if there is no response.

  • Materia
  • SSP
  • CROW
  • Ninix
sakura.popupmenu.visible

Whether to show the owner-drawn menu on the main character's side. 1 to show, 0 to hide. Shown if there is no response.

  • SSP
  • Ninix
kero.popupmenu.visible

Whether to show the owner-drawn menu on the partner side. 1 to show, 0 to hide. Shown if there is no response.

  • SSP
  • Ninix
char*.popupmenu.visible

Controls whether the owner-draw menu for \p[*] is displayed. 1 to display, 0 to hide. The menu is displayed if there is no response.

  • SSP
sakura.popupmenu.type

Changes the owner-drawn menu on the main character's side. 0 for the main menu, 1 for the abbreviated menu.

  • SSP
kero.popupmenu.type

Changes the owner-drawn menu on the partner side. 0 for the main menu, 1 for the abbreviated menu.

  • SSP
char*.popupmenu.type

Changes the owner-draw menu for \p[*]. 0 for the baseware menu, 1 for the simplified menu.

  • SSP
sakura.popupmenu.applybindtoself

Changes the behavior of the dressup menu when the type of owner-drawn menu changes.
Change according to the menu type = 0; show dressup for the scope (character ID) the menu belongs to = 1
The default setting is 1, which differs from the behavior before SSP 2.7.25. To restore the previous behavior, explicitly set this to 0.

  • SSP2.7.26
kero.popupmenu.applybindtoself

Changes the behavior of the dressup menu when the type of owner-drawn menu changes.
Change according to the menu type = 0; show dressup for the scope (character ID) the menu belongs to = 1
The default setting is 1, which differs from the behavior before SSP 2.7.25. To restore the previous behavior, explicitly set this to 0.

  • SSP2.7.26
char*.popupmenu.applybindtoself

Changes how the dressup menu behaves when the owner-draw menu type is changed.
Change according to the menu type = 0 Show the dressup options for the scope (character ID) that owns the menu = 1
The default setting is 1, which differs from the behavior before SSP 2.7.25. To restore the previous behavior, explicitly set this to 0.

  • SSP2.7.26
getaistate

The SHIORI/3.0 version of the AI graph.
Draws a radar chart for internal ghost state (number of talks, affection level, etc.).
Return the data in the following format.

Graph display values [byte value 1] graph labels [byte value 1] graph additive values [byte value 1] graph maximum values

Graph display values
Return the values to display on the graph as comma-separated half-width numbers.
Decimal places are supported from 2.4.26.
Graph labels (optional)
Return the labels to display on the graph, separated by commas.
If omitted: Neuron,NeuronM,NeuronK,NeuronD,NeuronE,Synapse
Graph additive values (optional)
Return the graph "additive values" as comma-separated half-width numbers.
Decimal places are supported from 2.4.26.
Additive values are a feature that highlights values increased through learning or values that have changed recently, by adding them to the graph display values.
If omitted: all zero, not displayed
Graph maximum values (optional)
Return the graph maximum values as comma-separated half-width numbers. Maximum value ≧ (display value + additive value).
Decimal places are supported from 2.4.26.
If omitted: calculate display value + additive value and set the maximum of those values for all elements

Example: 1250,1500,45,65,19500,4[b1]horsepower,rpm,km/h,t,kgf,axis[b1]100,50,40,0,0,1[b1]1350,1550,130,96,20000,8
[b1] indicates byte value 1.
The display will look as follows.
AI Graph

  • SSPrecognizes decimal places from 2.4.26
getaistateex

A version of getaisate that allows multiple specifications. Reference0 is passed the index of the graph data being requested (the number is zero-based).
To display only two graphs, respond when Reference0 is 0 or 1, and return no value (204) for 2 or higher.
The format is the same as getaistate.

Reference0
Which graph's data this is (zero-based). 0, 1, 2…
  • SSP2.4.26
legacyinterface

Whether to use the legacy interface in the right-click menu.
Returning 0 for this hides the “switch ghost, shell, and balloon” buttons.
Works only with materia582.

  • Materia

Update Information

other_homeurl_override

In \![updateother] and the simultaneous shell/balloon update function, forcibly replace the update destination URL (homeurl) for the item being updated.
If no replacement is needed, return 204 or an empty string.

Reference0
Type of item being updated (shell,balloon,headline,plugin,language, etc.)
Reference1
Name of the item being updated (name in descript.txt)
Reference2
Author of the item being updated (craftmanname in descript.txt)
Reference3
Folder name of the item being updated.
Reference4
The homeurl that should originally have been used for the update.
  • SSP2.5.33

Owner-Drawn Menu Images

Owner-Drawn Menu Text Color

Owner-Drawn Menu Item Visibility

Events for controlling whether each item is displayed are available by replacing "caption" in the item names below with "visible".
A return value of 1 displays the item; 0 hides it (and prevents it from being clicked).

  • Materia
  • SSP
  • CROW

Owner draw menu item names

Shortcut keys

For SHIORI Resource events that retrieve the following item names, if the returned string contains a character preceded by &, such as &○, that character becomes the shortcut key for the item.
For example, if you return “きほん(&P)” for portalrootbutton.caption, pressing the p key while the owner-draw menu is open selects the portal item (P is underlined in the display).

Half-width alphanumeric characters and symbols are valid. Characters that require the Shift key to type are also valid, but uppercase and lowercase letters are not distinguished.

-

[Cannot be changed]Name for “Language.”

  • SSP
activaterootbutton.caption

Name of the bring-to-front command.

  • SSP
addressbarbutton.caption

Name of the address bar.

  • SSP
alignrootbutton.caption

Name of the free character movement command.

  • SSP
alwaysstayontopbutton.caption

Name for “Always on top.”

  • Materia
  • SSP
  • CROW
alwaystrayiconvisiblebutton.caption

Name for “Always show tray icon.”

  • Materia
  • CROW
balloonhistorybutton.caption

Name for “Balloon (recently used).”

  • SSP
balloonrootbutton.caption

Name for “Balloon.”

  • Materia
  • SSP
  • CROW
biffallbutton.caption

Name for “All accounts.”

  • SSP
biffbutton.caption

Name for “Check mail.”

  • Materia
  • SSP
  • CROW
calendarbutton.caption

Name for “Calendar.”

  • SSP
callghosthistorybutton.caption

Name for “Call another ghost (recently used).”

  • SSP
callghostrootbutton.caption

Name for “Call another ghost.”

  • SSP
callsstpsendboxbutton.caption

Name for “SSTP box.”

  • Materia
char*.recommendsites.caption

Name for recommendations displayed when using \p[*].

  • SSP
charsetbutton.caption

Name for “Character encoding.”

  • SSP
closeballoonbutton.caption

Name for “Close balloon.”

  • SSP
closebutton.caption

Name for “Exit.”

  • SSP
collisionvisiblebutton.caption

Name for “Show head/face/chest hit areas.”

  • Materia
configurationbutton.caption

Name for “Settings.”

  • Materia
  • SSP
  • CROW
configurationrootbutton.caption

Name for “Settings.”

  • SSP
debugballoonbutton.caption

Name for “Show all balloon markers.”

  • Materia
definedsurfaceonlybutton.caption

Name for “Ignore undefined surfaces.”

  • SSP
dressuprootbutton.caption

Name for “Dressup.”

  • Materia
  • SSP
duibutton.caption

Name for “Development interface.”

  • Materia
enableballoonmovebutton.caption

Name for “Enable balloon position adjustment.”

  • SSP
firststaffbutton.caption

Name of the version information item.

  • Materia
  • SSP
  • CROW
ghostexplorerbutton.caption

Name of the Ghost Explorer item.

  • Materia
  • SSP
  • CROW
ghosthistorybutton.caption

Name of the switch-to-ghost item (recently used).

  • SSP
ghostinstallbutton.caption

Name of the ghost installation item.

  • CROW
ghostrootbutton.caption

Name of the ghost item.

  • Materia
  • SSP
  • CROW
headlinesensehistorybutton.caption

Name of the headline sensor item (recently used).

  • SSP
headlinesenserootbutton.caption

Name of the headline sensor item.

  • Materia
  • SSP
  • CROW
helpbutton.caption

Name of the manual item.

  • SSP
hidebutton.caption

Name of the minimize-to-icon item.

  • Materia
  • SSP
  • CROW
historyrootbutton.caption

Name of the recently used items.

  • SSP
inforootbutton.caption

Name of the information item.

  • SSP
leavepassivebutton.caption

Name of the force-exit-restricted-mode item.

  • SSP
messengerbutton.caption

Name of the SSP Messenger item.

  • SSP
pluginhistorybutton.caption

Name of the plugin item (recently used).

  • SSP
pluginrootbutton.caption

Name of the plugin item.

  • Materia
  • SSP
portalrootbutton.caption

Name of the portal item.

  • Materia
  • SSP
  • CROW
purgeghostcachebutton.caption

Name of the purge ghost cache item.

  • SSP
quitbutton.caption

Name of the exit all item.

  • Materia
  • SSP
  • CROW
rateofuseballoonbutton.caption

Name of the balloon-specific usage item.

  • Materia
rateofusebutton.caption

Name of the usage frequency display item.

  • Materia
  • SSP
rateofuserootbutton.caption

Name of the usage graph item.

  • Materia
rateofusetotalbutton.caption

Name of the combined ghost usage item.

  • Materia
readmebutton.caption

Name of the character information item.

  • Materia
  • SSP
termsbutton.caption

Label for the character's terms of use.

  • SSP
recommendrootbutton.caption

Name of the recommendations item.

  • Materia
  • SSP
  • CROW
  • Ninix
regionenabledbutton.caption

Name for displaying without clipping the region.

  • Materia
reloadinfobutton.caption

Name for reloading operation information.

  • SSP
resetballoonpositionbutton.caption

Name for resetting the balloon position.

  • SSP
resettodefaultbutton.caption

Name for restoring settings to their defaults.

  • SSP
scriptlogbutton.caption

Name for the script log.

  • SSP
shellrootbutton.caption

Name for the shell.

  • Materia
  • SSP
  • CROW
shellscaleotherbutton.caption

Name for other scaling options.

  • SSP
shellscalerootbutton.caption

Name for shell scaling.

  • SSP
  • CROW
sntpbutton.caption

Name for synchronizing the clock.

  • Materia
  • SSP
  • CROW
switchactivatewhentalkbutton.caption

Name for always activating while talking.

  • SSP
switchactivatewhentalkexceptupdatebutton.caption

Name for activating except during updates.

  • SSP
switchautobiffbutton.caption

Name for automatic email checking.

  • Materia
switchautoheadlinesensebutton.caption

Name for automatic headline sensing.

  • Materia
switchblacklistingbutton.caption

Name for blacklisting.

  • Materia
switchcompatiblemodebutton.caption

Name for supporting the old specifications.

  • SSP
switchconsolealwaysvisiblebutton.caption

Name for keeping the console always visible.

  • Materia
switchconsolevisiblebutton.caption

Name for hiding the console.

  • Materia
switchdeactivatebutton.caption

Name for sinking behind the desktop after speaking.

  • SSP
switchdontactivatebutton.caption

Name for never appearing in the foreground.

  • SSP
switchdontforcealignbutton.caption

Name for ghost settings.

  • SSP
switchduivisiblebutton.caption

Name for the development interface.

  • Materia
switchforcealignfreebutton.caption

Name for always allowing free movement.

  • SSP
switchforcealignlimitbutton.caption

Name for always enforcing movement limits.

  • SSP
switchignoreserikomovebutton.caption

Name for ignoring SERIKO Move.

  • SSP
switchlocalsstpbutton.caption

Name for local SSTP.

  • Materia
switchmovetodefaultpositionbutton.caption

Label for resetting the shell position.

  • Materia
  • SSP
switchproxybutton.caption

Label for enabling the proxy server.

  • Materia
  • SSP
switchquietbutton.caption

Label for disabling sound.

  • Materia
  • SSP
switchreloadbutton.caption

Label for reloading the ghost.

  • SSP
switchreloadtempghostbutton.caption

Label for keeping the temporarily launched ghost.

  • SSP
switchremotesstpbutton.caption

Label for remote SSTP.

  • Materia
switchrootbutton.caption

Label for the switches.

  • Materia
switchtalkghostbutton.caption

Label for letting the ghost decide when to speak.

  • SSP
systeminfobutton.caption

Label for submitting system information.

  • SSP
updatebutton.caption

Label for network update.

  • Materia
  • SSP
  • CROW
updatefmobutton.caption

Label for cleaning up / updating the FMO.

  • SSP
updateplatformbutton.caption

Label for updating the baseware over the network.

  • SSP
  • CROW
utilityrootbutton.caption

Label for utilities.

  • SSP
vanishbutton.caption

Label for the disappearance notice.

  • Materia
  • SSP
  • CROW
aistatebutton.caption

Name of the AI graph.

  • SSP
dictationbutton.caption

Name for “Speech recognition.”

  • SSP
texttospeechbutton.caption

Label for text-to-speech.

  • SSP

Tooltip events

tooltip

Retrieves the tooltip text for the shell.
Notifies when the mouse cursor is over a shell surface.
If shell-side settings are present, they take precedence.

Reference0
Mouse cursor x-coordinate (local coordinates)
Reference1
Mouse cursor y-coordinate (local coordinates)
Reference2
Always 0.
Reference3
0 for the base character, 1 for the companion. SSP/CROW may also use 2 or higher.
Reference4
Hit-test region identifier.
Reference5
Always 0.
  • SSP
balloon_tooltip

Retrieves the tooltip text for a balloon choice.
Notifies when the mouse cursor is over a choice.

Reference0
Choice text (label).
Reference1
Choice ID.
Reference*
Extended information (third and subsequent arguments in the \q tag).
  • SSP