Mirage Source

Free ORPG making software.
It is currently Sun Apr 28, 2024 9:43 am

All times are UTC


Search found 10 matches
Search these results:

Author Message

 Forum: General   Topic: Socket.UBound

 Post subject: Re: Socket.UBound
Posted: Wed Oct 24, 2007 5:54 pm 

Replies: 21
Views: 6359


So simply create the socket array with only a single element in the beginning. Then when new sockets are needed, we can simply add a socket (with the MAX_PLAYERS simply setting a number that the server will not exceed). Then when someone disconnects, check to see what the highest socket number is th...

 Forum: General   Topic: On Error On 1 Line of Code?

Posted: Sun Oct 14, 2007 8:23 pm 

Replies: 22
Views: 8100


Doesn't error handling have to be turned on for every individual subroutine, though? With C++, if you have a function inside of a try block that throws an exception, then the exception isn't just local to the function - it goes all the way back to the try block and then to the catch block (if there ...

 Forum: General   Topic: On Error On 1 Line of Code?

Posted: Sun Oct 14, 2007 7:56 pm 

Replies: 22
Views: 8100


On Error Resume Next pretty much says to just push all errors into the Err object, but keep executing the statements (don't break execution) no matter what. On Error Goto 0 turns this state off and returns the error-handling to it's regular (if something happens, shut everything down and complain a ...

 Forum: General   Topic: Noob Here

 Post subject: Re: Noob Here
Posted: Wed Oct 10, 2007 11:36 pm 

Replies: 21
Views: 7361


Well, I've been watching this forum and I've been trying to program but I'm no good. Can anybody help me start off, what do I need? What version of Mirage Source, programming tutorials, what language does Mirage use and what is Visual Basics 6? Visual Basic 6.0 is the programming language that Mira...

 Forum: General   Topic: Hm..

 Post subject: Re: Hm..
Posted: Sun Sep 30, 2007 3:01 am 

Replies: 21
Views: 5935


I believe there's a "cursor" property for the forms that can achieve this.

 Forum: Resources   Topic: Packet Enum - Completed

 Post subject: Re: Packet Enum - Completed
Posted: Fri Sep 28, 2007 6:01 pm 

Replies: 47
Views: 21687


Oh, wrap all of the Enum variables with CByte(packetID) before you stick it on the packet.

I get it. =x

 Forum: Resources   Topic: Packet Enum - Completed

 Post subject: Re: Packet Enum - Completed
Posted: Fri Sep 28, 2007 3:14 am 

Replies: 47
Views: 21687


You mean a bunch of byte constants?
Or:
Code:
Public Enum Packets As Byte
    Blah = 1
    MoreBlah
    BlahBlah
    FourthBlah
End Enum

Note: No clue if that'd even compile, I don't feel like pulling up VB6 right now. =x

I'm assuming you mean byte constants... which would be the best way to do it.

 Forum: Resources   Topic: Packet Enum - Completed

 Post subject: Re: Packet Enum - Completed
Posted: Thu Sep 27, 2007 6:06 pm 

Replies: 47
Views: 21687


I'd just like to add a little note about this tutorial, if I may. Any variable declared of a custom Enum type will be 4 bytes. I even made a quick test program to confirm this. I had one form, and one module. In the module, I had this code: Public Enum PacketName First = 1 Second Third Fourth Fifth ...

 Forum: Resources   Topic: Optimizing and Coding Standards

Posted: Sat Jun 17, 2006 1:09 am 

Replies: 22
Views: 10002


Yay! I'm helping! Well... looking through the VB6 object browser, looking at the <globals> list, I can see a few more... Date -> Date$ Time -> Time$ ChrB( -> ChrB$( ChrW( -> ChrW$( Command -> Command$ Environ -> Environ$ Error -> Error$ Format(-> Format$( LeftB( -> LeftB$( MidB( -> MidB$( Oct( -> Oc...

 Forum: Resources   Topic: Optimizing and Coding Standards

Posted: Fri Jun 16, 2006 11:34 pm 

Replies: 22
Views: 10002


String( -> String$( Chr( -> Chr$( Trim( -> Trim$( LTrim( -> LTrim$( RTrim( -> RTrim$( Hex( -> Hex$( Space( -> Space$( CurDir( -> ChrDir$( Dir( -> Dir$( Left( -> Left$( Right( -> Right$( Mid( -> Mid$( If I missed any, let me know. Sorry if this is considered to be necroposting, but the bolded commen...
Sort by:  
Page 1 of 1 [ Search found 10 matches ]


All times are UTC


Jump to:  
Powered by phpBB® Forum Software © phpBB Group