| Mirage Source http://web.miragesource.net/forums/ |
|
| Mirage File - Compile Error http://web.miragesource.net/forums/viewtopic.php?f=201&t=5127 |
Page 1 of 1 |
| Author: | Lochie [ Thu Feb 26, 2009 9:50 pm ] |
| Post subject: | Mirage File - Compile Error |
Right, it's been a very long time since I've looked at any code and the first issue I have come across is this. Compile Error: Method or Data Member not found. This occurs when I try to compile run the client. This issue occurs when running the below code and I've highlighted where the fault starts. Code: Public Sub TcpInit() ' used for parsing packets SEP_CHAR = vbNullChar ' ChrW$(0) END_CHAR = ChrW$(237) ' check if IP is valid If IsIP(GAME_IP) Then frmMirage.Socket.RemoteHost = GAME_IP frmMirage.Socket.RemotePort = GAME_PORT Else MsgBox GAME_IP & " does not appear as a valid IP address!" DestroyGame End If End Sub This is what Visual Basic highlights Code: frmMirage.Socket.RemoteHost = GAME_IP This is most likely a simple problem that loads of people have fixed and maybe the answer is already on this forum but through my searching I have only seen one post similar. Their problem was that the server did not have a Winsock object. Mine does, and I am also using MS4 ( well MS 3.76 ). If anyone could help me out, I'd really appreciate it. Thanks. -Lochie |
|
| Author: | Rian [ Thu Feb 26, 2009 10:11 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Set your GAME_IP to = "127.0.0.1" |
|
| Author: | Lochie [ Thu Feb 26, 2009 10:17 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
It is set to "127.0.0.1", that is it's default address. |
|
| Author: | Matt [ Thu Feb 26, 2009 10:21 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
It can't find the physical socket. |
|
| Author: | Lochie [ Thu Feb 26, 2009 10:25 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Yeah I was thinking that too. I just tried finding the object "frmMirage.Socket" and it is a Picture Box, that's not right. |
|
| Author: | Rian [ Thu Feb 26, 2009 10:29 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Then delete it, add another Winsock Control to frmMirage, and name it Socket. |
|
| Author: | Lochie [ Thu Feb 26, 2009 10:30 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Screw it, I fixed it. Well not me, but VB did. All I had to do was add the Winsock component to the Tool bar. Simple as that. What a silly mistake and noob-like attitude I had. Sorry for wasting space. Lol. -Lochie |
|
| Author: | Matt [ Thu Feb 26, 2009 10:38 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Hey, you're new to all this. Don't consider it wasting space. We'd have bashed you if you were doing that. Lol. |
|
| Author: | Lochie [ Thu Feb 26, 2009 10:43 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
New to this? Me? I'm not new to Visual Basic 6 or to Mirage source, well this new one is a little different. If you check my profile you'll see I've been a member for quite some time. Obviously it's been a long time since I've come to this site. The last engine I worked on was Elysium. Which obviously is a re-make of this. I've just not used VB6 in about 3 years. Visual Basic is a thing of the past in my life, C++ and Java seem to have taken over. Recently I heard that Mirage has a new owner and it getting back to the old way so I thought I'd pop in and have a look. Using a Vista computer now so I'm bound to back in the error section soon. Thanks again though for you help and speed in which you replied. It's nice to see this forum becoming more active. I remember when I was the only one online for a while. I should have taken advantage really and spammed. -Lochie |
|
| Author: | Lea [ Thu Feb 26, 2009 10:46 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Um..... who are you? |
|
| Author: | Matt [ Thu Feb 26, 2009 10:47 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
Vista doesn't mean errors. Trust me. Just right click the shortcut for VB6, go to properties, go to the compatibility tab and check the "disable desktop composition" or w/e it is. It'll disable the Aero UI while VB is open. Helps when messing with forms and such. Other than that, you gotta have UAC disabled to register the right files and shit you need. After all that, it's just like running it on XP. |
|
| Author: | Lochie [ Thu Feb 26, 2009 10:52 pm ] |
| Post subject: | Re: Mirage File - Compile Error |
My vista theme is off already and UAC is the most annoying feature of Vista. They are always deactivated. Also I enable the Administrator account via DOS to eliminate any other issues that may occur from all this unwanted sercurity. Lea wrote: Um..... who are you? Why do you ask? I'm silent normally, don't often post. So you wouldn't know me, although saying that I don't recognise half the names I've seen around. Besides Mith, although he's on every forum to do with RPG Engines. I was so eager to see him complete Godborn. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|