- Steam App
- Homebrew - Patent Unknown (325420)
- Event type
- patch note
- Published
- 17 September 2017 - 20:15:59 UTC
- Source
- steam_community_announcements
From the team Hello everyone! We've been watching closely as people experiment with lua, and have a couple changes towards the lua API. Besides that, we also have 2 new parts to introduce, and a ton of fixes. Lua Changes In the previous version, creating a gadget wasn't too hard, but you had some restrictions when you were designing your gadget or mod. Your classname had to match your filename, the line numbers wouldn't match up on errors, and some other issues, which is why we changed the lua behaviour. What this means for you is, if you have any mods/gadgets, you'll need to add 2 lines. The definition at the top of your file, and the return of your definition at the bottom. local GadgetName={} --The defintion of your gadget table function GadgetName:Awake() print("GadgetName woke up!") end return GadgetName -- The return of your gadget table This is all you'll need to do to get everyth...