Steve_Yorkshire Posted July 20, 2018 Posted July 20, 2018 Is there some info lying about which I have missed on how to install/link/exec/into .modules in the Templates folder?I did actually get it working by just execing in random place in init.cs but I'm pretty sure that's not how it's designed. :? Quote
OTHGMars Posted July 21, 2018 Posted July 21, 2018 (edited) Check that you have a ModuleDatabase.scanModules call being executed. It's in main.cs in the templates. See: https://github.com/GarageGames/Torque3D/blob/development/Engine/source/module/moduleManager_ScriptBinding.h#L37-L41. If the argument is empty, the default will be game/ and your modules will need to be located there. After that the call to ModuleDatabase.LoadGroup( "Game" ); should load and execute the create() function (if it's in group=”Game”). Edited July 21, 2018 by OTHGMars Quote
OTHGMars Posted July 21, 2018 Posted July 21, 2018 Official docs are here. I found them through here. Quote
Steve_Yorkshire Posted July 21, 2018 Author Posted July 21, 2018 Cheers. I ended up execing your inputMonitor via init.cs, it worked but obviously wasn't the correct way to go about it. ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.