![]() ![]() You can take a look at some examples in the Screepers' Snippets on Github, or check out the #client-abuse channel on Slack. This can be very helpful to add extra information into console, or make it more dynamic / easier to access rooms and much more. ![]() This is due to console being mainly able to accept HTML, which allows for a whole host of things ranging from playing audio, creating links and buttons, to actually adding onto the UI itself. While a User should not modify the console.log itself, (the developers have warned against this) it is quite possible to use the console in many ways beyond simple text-output. You can see some examples of this in Screeps' official docs page on debugging, along with helpful tips about how returns from methods work and can be displayed.Ĭonsole & Client-Abuse ![]() If you want to see plain-text versions of objects (as they would print as in most cases) you can use JSON.stringifiy() to convert the object to plain text which makes it much easier to determine many things. Console.log() will print to the game's console, you can add various variables, strings and the like to the printout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |