stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 329

Day 329 of 365 · Expert · Month 11: Optimisation and debugging

Review week 47: style and sharing

Ten questions on style and sharing: the guide, documentation, instruction.xml, game updates and code golf.

Review 12 min Week 47

What you learn today

  • Quiz on style, documentation and updates

This week was about making your scripts work for others too – and for you in half a year. For review:

  • Guide: define and alias consistently, sections, labels, Average, yield, comments without special characters, ASCII names in HASH("…").
  • Documentation: header with purpose, version and device list, settings with unit, range and effect. Long version in the library, game version in the chip.
  • Sharing: instruction.xml under scripts\<Title>, version in three places, a self-test for other people's bases.
  • Updates: deprecated LogicTypes return nothing, wrong prefab names return NaN, strict mode and test cases expose it.
  • Code golf: select, comparisons as numbers and clamp save without harm, safety is never cut.

You pass from 60 %.

Weekly quiz

10 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere