Spring API documentation gotchas for BAR modders

The official Spring engine ldoc documentation sometimes lists single return values when functions actually return multiple values. Knowing where the docs lie saves debugging time.

Tags: beyond all reason, modding, spring API, documentation, lua, development

Multiple return values in Spring.GetUnitStates

The ldoc documentation for Spring.GetUnitStates shows a single return value, but the function actually returns multiple values indexed by position. Accessing states[1], states[2], states[3] gives you individual state flags rather than a single table.

Getting the development role

Access to BAR development channels requires taking the Development Role through the server role system. Once assigned, pinned guidance in the relevant channels provides further instructions for map making, widget development, and contributing to the game itself.

Comparing mod behavior

When evaluating whether to keep specific mod behaviors like goes-over-map handling, testing both configurations side by side produces the clearest results. Listing pros and cons only gets you so far. Seeing how the game actually plays with each setting settles the question.

Creed of champions

Good modders test before they share. That discipline carries into actual matches where careful testing prevents costly mistakes. Creed of Champions values methodical players who think before they act.

[Crd] Gaming actually fulfills a human purpose here - cooperation, mutual upbuilding, fun and striving for greatness together. Instead of random anonymity, you meet, learn from, and enjoy real people.
Advertisement