Guest Posted November 7, 2010 Share Posted November 7, 2010 Hey, I recently purchased the Wind's Nocturne engine and there seems to be a problem with the guild system, if I even do anything with it e.g. promote someone it gives me a mismatch error: 13, I was wondering if anyone had found a fix for it yet? Link to comment Share on other sites More sharing options...
Robin Posted November 7, 2010 Share Posted November 7, 2010 Post the line it errors on. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 ```SendGuildPromote lstGuild.List(lstGuild.ListIndex), Int(txtAccess.text)``` Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Also it I put anything in the textbox above promote like say I put an "a" into it the thing (dunno what you call it, the little "I" symbol that means you're typing there) moves to the actual chatbox. Link to comment Share on other sites More sharing options...
Robin Posted November 7, 2010 Share Posted November 7, 2010 Change 'Int(txtAccess.text)' to 'Val(txtAccess.text)'.Add some checks as well, to make sure you're not entering dodgy data. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Yeah it works now, doesn't give any errors (just figuring out the guild system now, how to add ranks, etc.) Also any ideas about how to fix typing in one box and the text moving to the chat box? It does that in the guild menu and Quest Name in the quest editor. Link to comment Share on other sites More sharing options...
Robin Posted November 7, 2010 Share Posted November 7, 2010 Probably has to do with the form's keyhandler used for movement and the like. When you type something, it'll force focus back to the chatbox. Remove that bit of code. Link to comment Share on other sites More sharing options...
emblem Posted November 7, 2010 Share Posted November 7, 2010 @Robin:> Probably has to do with the form's keyhandler used for movement and the like. When you type something, it'll force focus back to the chatbox. Remove that bit of code.Or make it check that the main form is in focus.Centcent. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Nope, I tried removing the keyhandler and it wouldn't let me press enter. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 What do you mean Tylian? (I'm still learning VB6, haven't learnt all of these terms :P) Link to comment Share on other sites More sharing options...
Bafoon Posted November 7, 2010 Share Posted November 7, 2010 I, myself is learning to . Id say remove a bit of code from the keyhandler. if it fucks up put it back. xD Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 I removed the keyhandler, didn't let me press enter, so it's probably not that. Link to comment Share on other sites More sharing options...
emblem Posted November 7, 2010 Share Posted November 7, 2010 @Rilêy¿!¡:> I, myself is learning to . Id say remove a bit of code from the keyhandler. if it ducks up put it back. xDThat's EXACTLY what Robin said, just with worse spelling and grammar.Well, I don't actually own WN so I wouldn't be able to tell you exactly, but there should be a bit of code like this:```Public Sub SetFocusOnChat() On Error Resume Next 'prevent RTE5, no way to handle error frmMainGame.txtMyChat.SetFocusEnd Sub```Changing that to:```Public Sub SetFocusOnChat() On Error Resume Next 'prevent RTE5, no way to handle error If GetActiveWindow() = frmMainGame.hWnd Then frmMainGame.txtMyChat.SetFocus End IfEnd Sub```Aaand add this to the top of modGeneral.```Public Declare Function GetActiveWindow Lib "user32" () As Long```This in theory should work, can't test it as I don't have your problem on my copy of EO, which like I said is way different from WN. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 EDIT: Alright changed MainGame to Main, still doesnt work (I can get on but the stupid text still moves). Link to comment Share on other sites More sharing options...
emblem Posted November 7, 2010 Share Posted November 7, 2010 @Sekaru:> Says the Variable isn't defined.On which bit?After I'm done seeing if this works, I'll gtfo this topic. It's Robins product he should be providing support. xD Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Basically in WN MainGame is Main so I just changed that, although the text still moves. Link to comment Share on other sites More sharing options...
emblem Posted November 7, 2010 Share Posted November 7, 2010 @Sekaru:> Basically in WN MainGame is Main so I just changed that, although the text still moves.Ah, no clue then. Sorry.You can remove the edits I said to do. :p Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 I did, thanks for trying Tylian. Link to comment Share on other sites More sharing options...
Conscientia Posted November 7, 2010 Share Posted November 7, 2010 If you remove all instances of frmMain.txtMyChat.SetFocus it should work but then you might have some issues with focus later on.. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Hmm…I dunno, I rather not mess with stuff before I know what it does. Link to comment Share on other sites More sharing options...
crzyone9584 Posted November 7, 2010 Share Posted November 7, 2010 Change```' set focus if making it visible If txtMyChat.Visible = True Then txtMyChat.SetFocus```To```' set focus if making it visible If KeyAscii = vbKeyReturn = True Then txtMyChat.SetFocus```Found here, thanks to DJMaxus for the fixhttp://www.touchofdeathforums.com/smf/index.php/topic,65621.0.htmlI was having the same problem when I was typing in the administration menu. Link to comment Share on other sites More sharing options...
Guest Posted November 7, 2010 Share Posted November 7, 2010 Thank you so much Crzy! (and DjMaxus ^^) Link to comment Share on other sites More sharing options...
crzyone9584 Posted November 7, 2010 Share Posted November 7, 2010 No problem. Glad I could help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now