Default game scripts and a little story - Printable Version +- Blockland Fan Forums (https://forum.bcs.place) +-- Forum: Blockland Forums (https://forum.bcs.place/forumdisplay.php?fid=1) +--- Forum: Tools and Resources (https://forum.bcs.place/forumdisplay.php?fid=3) +--- Thread: Default game scripts and a little story (/showthread.php?tid=3) |
Default game scripts and a little story - Queuenard - 11-13-2024 This is a little example of how not having the game's default scripts caused headaches over the years and forced scripts to guess, often incorrectly, about default functions... https://notabug.org/Queuenard/Blockland-ProjectileData-onCollision-Plague Analysis of a scripting mistake with the parameters of ProjectileData::onCollision that has plagued Blockland for years I wrote this after discovering this issue in December 2023. This common mistake will make the push broom only able to push players upwards. The most likely cause for scripters getting this wrong was finding information on this function from the stock Torque Game Engine manuals, as Blockland had added a parameter that the stock engine did not have. A big part of the problem was that the default TorqueScript code ("DSO code" or "default scripts") had been obscured in compiled form until a few years ago. The default scripts are available in raw form here and have been available since 2019: https://github.com/Elletra/bl-decompiled |