**** FOR ADDON DEVS : ADDONS WILL NOW REQUIRE A GAMESTATE CHECK ***** - Printable Version +- MMOMinion (https://www.mmominion.com) +-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87) +--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90) +---- Forum: LUA Modules / Addons (https://www.mmominion.com/forumdisplay.php?fid=102) +---- Thread: **** FOR ADDON DEVS : ADDONS WILL NOW REQUIRE A GAMESTATE CHECK ***** (/showthread.php?tid=13497) |
**** FOR ADDON DEVS : ADDONS WILL NOW REQUIRE A GAMESTATE CHECK ***** - Powder - 08-20-2015 Please be advised that we will be adding a GetGameState() function that you will have to use to run your OnUpdate functions. This will allow use to run Lua in the title and char select screen. GetGameState() returns, 0=Opening, 1=Ingame, 2=Char select screen, 3= Title screen You will be using GameState 1 for 99% of things unless you wish to do stuff in those 2 screens Here is an example how to use it. http://pastebin.com/QLsf5wj0 and this is what the ffxiv.lua looks like with it in. https://www.dropbox.com/s/rdck66emj9kgjb...v.lua?dl=0 Please edit your addons to check for gamestate before pulsing or crashes will happen as soon as you enter the charselect screen or titlescreen. |