1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

DebugSrv v3

Discussion in 'Programming Released Codes' started by krypt-lynx, Jan 30, 2019.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. krypt-lynx

    krypt-lynx Apprentice Engineer

    Messages:
    175
    Script to show debug output of another scripts on LCD panel.
    https://steamcommunity.com/sharedfiles/filedetails/?id=784906165

    Basically, one of my script development tools which I'm created for myself.

    - Able to handle multiline output
    - Supports word wrap
    - Keeps log between game save/load
    - Does not consumes more instructions then necessary

    Instalation:
    - install Programmable Block and load this script into it
    - rename it to "DebugSrv"
    - install lcd panel and add "|debuglog" to the end of its name.

    To log something use this method:
    Code:
    void Log(string message)
    {
    	var dServer = GridTerminalSystem.GetBlockWithName("DebugSrv") as IMyProgrammableBlock;
    	dServer?.TryRun("L" + message);
    }
    
     
    Last edited: Jan 30, 2019
Thread Status:
This last post in this thread was made more than 31 days old.