Steve_Yorkshire Posted July 20, 2018 Share 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 Link to comment Share on other sites More sharing options...
OTHGMars Posted July 21, 2018 Share 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 Link to comment Share on other sites More sharing options...
OTHGMars Posted July 21, 2018 Share Posted July 21, 2018 Official docs are here. I found them through here. Quote Link to comment Share on other sites More sharing options...
Steve_Yorkshire Posted July 21, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
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.