Advertisement
fakuivan

tf2idb "bug"

May 15th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. [23:44:18] <fakuivan> What are the odds of a global database handle turning to 0 between OnPluginStart and when its natives are ready?
  2. [23:45:15] <fakuivan> Without ever setting it to 0
  3. [23:46:00] <fakuivan> and checking for INVALID_HANDLE on SQLite_UseDatabase
  4. [23:52:21] <KyleS> fakuivan: what's the value of INVALID_HANDLE?
  5. [23:56:40] <fakuivan> zero?
  6. [23:58:58] <fakuivan> oh
  7. [00:00:00] - {Day changed to domingo, 14 de mayo de 2017}
  8. [00:01:19] <fakuivan> AskPluginLoad2: "Called *before* OnPluginStart..."
  9. [00:02:18] <fakuivan> So it's more like turning to 0 between when its natives are registered and OnPluginStart
  10. [00:55:39] <Fyren> Show us your code.
  11. [06:25:34] <asherkin> fakuivan: what you can do in AskPluginLoad2 is very restricted
  12. [06:26:00] <asherkin> it is only to be used for compatability checks and registering natives
  13. [08:46:13] <fakuivan> Fyren: https://pastebin.com/raw/L0umGfZU
  14. [08:47:38] <fakuivan> It's not my, code but I am helping this dude with an issue he opened here https://github.com/FlaminSarge/tf2idb/issues/15
  15. [08:56:24] <asherkin> fakuivan: tf2_taunts_tf2idb.sp is calling into that plugin in OnPluginStart, not waiting until OnAllPluginsLoaded
  16. [08:57:25] <fakuivan> Oh
  17. [08:57:34] <fakuivan> I didn't know that existed
  18. [08:58:10] <fakuivan> That is called on late load right?
  19. [08:58:33] <asherkin> yes
  20. [08:59:22] <fakuivan> Thanks, I'll push an update when I get it fixed
  21. [09:01:20] <fakuivan> I thought that sm would resolve dependencies before calling OnPluginStart
  22. [09:01:50] <fakuivan> Would that be possible with the information provided by plugins?
  23. [09:01:56] <asherkin> they are resolved, but load passes are not ordered internally
  24. [09:02:02] <asherkin> SM supports circular dependencies
  25. [09:04:16] <asherkin> fakuivan: if tf2idb could do all its work in APL2 you wouldn't see any issue, but different plugins' OnPluginStart is not ordered
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement