Tile - YDebug - Write To Log – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ")
No edit summary
(5 intermediate revisions by 3 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 Ylands installation directory '''...\Ylands_Data'''
**'''log_userscripts.txt''' - current userscript log
**'''userscript.js''' - currently running userscript code
**'''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**.




Line 25: Line 33:


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

Revision as of 12:15, 12 November 2021

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**.