SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing

Reply
 
Thread Tools Search this Thread
Old 06-18-2005   #61
Oogaland
 
Oogaland's Avatar
Default SDK

The new version of MSERV.DLL is now ready. I haven't finished documenting it yet, but an SDK can be downloaded here, at the Launcher's page. There's a Visual Basic wrapper included which should be fairly straightforward to use, so the current dearth of documentation shouldn't be much of a problem. I'll post again when the docs are finished, though.

EDIT: Having just read your STH: LOTBB2 page, Hotdog, (and I look forward to seeing it at SAGE), I've remembered you're using VB4. The VB code I've written is designed for VB6, but I don't think I've done anything too outlandish, so the necessary modification should be minimal. I hope.
Oogaland is offline   Reply With Quote
Old 06-18-2005   #62
hotdog003
Default

Aw, that's alright. I'll just have to redraw the forms, but the code should work.
Thanks, Oogland!

EDIT: It doesn't work. There's a problem in your wrapper, there's a run-time error 6: Overflow. I'll try to fix it on my own.

EDIT 2: I got it working. Changing the line
DIM MSsList(512) As serverlist
to
DIM MSsList(0) As serverlist
fixed the problem. Huh.

EDIT #3: I need to know one thing: Does your function return -1 if it can't connect, 0 if there are no games running and 1 if there are? Or, does it return the number of games running, -1 if it can't connect?
hotdog003 is offline   Reply With Quote
Old 06-18-2005   #63
Oogaland
 
Oogaland's Avatar
Default

It returns a negative number if it can't connect: -2, I think, but that doesn't matter; negative return signals error. Otherwise, it returns the number of servers registered.

That overflow error could either be due to my lack of sufficiently thorough testing (I made a few last-minute changes to the array stuff; seemed okay, but maybe not) or possibly a difference in VB4's handling of LBound and UBound. Or summat. I rejigged it to handle any size of array, instead of the stupid 16-element hardwiring it used to use.

I'll try to take another look at it tomorr... today. Sorry for the lack of coherence: it's late, as I've already indicated. :-)

EDIT: I can't reproduce the problem, but now that I've actually looked up the error code (rather than taking it to mean "Subscript out of bounds", which was silly of me), it seems that it could be to do with the size of integer constants, or possibly string lengths. There was a definite bug in the code with respect to the latter, which has now been fixed, in v1.1.2. A possible solution to integer overflow - if that is indeed the problem - has also been added.
Oogaland is offline   Reply With Quote
Old 06-20-2005   #64
hotdog003
Default

Thanks, but I think that I got it to work.
hotdog003 is offline   Reply With Quote
Old 06-20-2005   #65
Oogaland
 
Oogaland's Avatar
Default

Okay. The other bug fix is still necessary, though. Changing all instances of the number 75 to 74 in QueryMasterServer should sort things out; otherwise, you'll get strange things happening when more than one server is registered.
Oogaland is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Netgame Launcher - Updated 21 Jul Oogaland SRB2 Discussion 87 06-10-2010 02:21 PM
I need help wth the net launcher speeddemon Help 4 11-29-2008 05:22 PM
MS launcher! JJ AA Help 5 10-06-2008 11:53 PM
Launcher....? Lan the Hedgehog SRB2 Discussion 11 07-04-2007 08:12 PM
Wad Version = SRB2 Version? Walter RPG“s General Discussion 17 12-12-2005 08:50 PM


All times are GMT. The time now is 08:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.