Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [23:44:18] <fakuivan> What are the odds of a global database handle turning to 0 between OnPluginStart and when its natives are ready?
- [23:45:15] <fakuivan> Without ever setting it to 0
- [23:46:00] <fakuivan> and checking for INVALID_HANDLE on SQLite_UseDatabase
- [23:52:21] <KyleS> fakuivan: what's the value of INVALID_HANDLE?
- [23:56:40] <fakuivan> zero?
- [23:58:58] <fakuivan> oh
- [00:00:00] - {Day changed to domingo, 14 de mayo de 2017}
- [00:01:19] <fakuivan> AskPluginLoad2: "Called *before* OnPluginStart..."
- [00:02:18] <fakuivan> So it's more like turning to 0 between when its natives are registered and OnPluginStart
- [00:55:39] <Fyren> Show us your code.
- [06:25:34] <asherkin> fakuivan: what you can do in AskPluginLoad2 is very restricted
- [06:26:00] <asherkin> it is only to be used for compatability checks and registering natives
- [08:46:13] <fakuivan> Fyren: https://pastebin.com/raw/L0umGfZU
- [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
- [08:56:24] <asherkin> fakuivan: tf2_taunts_tf2idb.sp is calling into that plugin in OnPluginStart, not waiting until OnAllPluginsLoaded
- [08:57:25] <fakuivan> Oh
- [08:57:34] <fakuivan> I didn't know that existed
- [08:58:10] <fakuivan> That is called on late load right?
- [08:58:33] <asherkin> yes
- [08:59:22] <fakuivan> Thanks, I'll push an update when I get it fixed
- [09:01:20] <fakuivan> I thought that sm would resolve dependencies before calling OnPluginStart
- [09:01:50] <fakuivan> Would that be possible with the information provided by plugins?
- [09:01:56] <asherkin> they are resolved, but load passes are not ordered internally
- [09:02:02] <asherkin> SM supports circular dependencies
- [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