Tile - YDebug - Write To Log – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added note about YTS)
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Write_to_log.png]]
<!---
*Adds '''text''' entry to '''game log''' file.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Write To Log(Text) ==


==== Single player / Playtest (Editor) ====
[[File:YlandsTile-275.png]]
*All logs are automatically generated in the Ylands installation directory '''...\Ylands_Data'''
**'''log_userscripts.txt''' - current userscript log
**'''userscript.js''' - currently running userscript code (this can be used to learn what [[Ylands Text scripting introduction|Ylands Text Scripting]] would be needed to get the same result as the [[Ylands Visual scripting introduction|Visual Scripting]] being tested)
**'''output_log.txt''' - Unity log
**'''output_log_clean.txt''' - Ylands log


==== Dedicated Servers (Multiplayer) ====
<pre>static log(text: any): void;</pre>
*Owners of the server and game author can download Script logs from the server by typing '''/getuserscripts''' command to chat
=== Parameters ===
*Logs are  downloaded to your Ylands profile '''...\local\FilesFromSessionHost\'''


=Notes=
==== text ====
*'''Steam User data''': <SteamFolder>\userdata\<Your ID>\298610\
 
*'''Steam Ylands installation''': <SteamFolder>\steamapps\common\Ylands\
Texto print in to the log
*Each line written to the log will begin with #. The log also includes warnings and errors with ## and game start and game stop times with ###.
 
*Game log is kept only until next Ylands launch.
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]
 
=== Description ===
 
Adds '''text''' entry to '''game log''' file.
 
=== Notes ===
 
* All logs are automatically generated in the Ylands installation directory '''...\Ylands_Data'''.
* Owners of the server and game author can download '''Script logs''' from the server by typing '''/getuserscripts''' command to chat.
* Logs are downloaded to your Ylands profile **...\local\FilesFromSessionHost**.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Latest revision as of 15:27, 24 November 2023

Write To Log(Text)

YlandsTile-275.png

static log(text: any): void;

Parameters

text

Texto print in to the log

Availability

Server, Custom Controller

Description

Adds text entry to game log file.

Notes

  • All logs are automatically generated in the Ylands installation directory ...\Ylands_Data.
  • Owners of the server and game author can download Script logs from the server by typing /getuserscripts command to chat.
  • Logs are downloaded to your Ylands profile **...\local\FilesFromSessionHost**.