[Help] 5095 StarServer.

10/10/2010 02:39 pro4never#16
Let me introduce you to my friend..

try{}
catch{}


Place your entire content of your function inside a trycatch and it will print out the exact exception and what lines are throwing it vs just the generic one you are getting


eg

try{

//blablabla
//loading lots of random stuff

}

catch (Exception P){Console.WriteLine(P);}

or program.writeline I suppose if you are using elitecoemu.
10/10/2010 02:43 { Angelius }#17
ohh well i did my best and thats all i have an i cant go farther than this

good luck bro
10/10/2010 02:52 killersub#18
Quote:
Originally Posted by pro4never View Post
Let me introduce you to my friend..

try{}
catch{}


Place your entire content of your function inside a trycatch and it will print out the exact exception and what lines are throwing it vs just the generic one you are getting


eg

try{

//blablabla
//loading lots of random stuff

}

catch (Exception P){Console.WriteLine(P);}

or program.writeline I suppose if you are using elitecoemu.
okay I did dat and I got the error so what u want me to do now?
10/10/2010 03:42 pro4never#19
.... well that would depend on what error it is

/facepalm

He is most likely correct though. One of the methods you are calling from within your startup method is what is causing the problem (eg starting a new listener thread)
10/10/2010 04:18 killersub#20
Quote:
Originally Posted by pro4never View Post
.... well that would depend on what error it is

/facepalm

He is most likely correct though. One of the methods you are calling from within your startup method is what is causing the problem (eg starting a new listener thread)
sorry for not being "smart" about it but I haven't had time lately...and I will check that in a bit...

@Edit

I tried looking for the problem and commenting lines out but it still gave me an error within the StartServer void...any ideas?
10/10/2010 14:56 killersub#21
here is 2 of the big errors it gives me once I use a breakpoint and the try{} catch{} blocks...

Code:
{"Could not load type 'CoEmu_v2_GameServer.DMapProcessor.DMap' from assembly 'CoEmu v2 GameServer, Version=2.0.3935.8547, Culture=neutral, PublicKeyToken=null' because the method 'Check' has no implementation (no RVA).":"CoEmu_v2_GameServer.DMapProcessor.DMap"}
Code:
   at CoEmu_v2_GameServer.Nano.StartServer()
   at CoEmu_v2_GameServer.Program.Main(String[] args) in C:\Users\owner\Desktop\CoEmu v2\CoEmu v2 GameServer\Main.cs:line 32
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
will that have to do with anything?

btw this is my msn just in case u wanna see the error urself...

MSN: [Only registered and activated users can see links. Click Here To Register...]
10/11/2010 04:13 { Angelius }#22
Quote:
at CoEmu_v2_GameServer.Program.Main(String[] args) in C:\Users\owner\Desktop\CoEmu v2\CoEmu v2 GameServer\Main.cs:line 32
what dose it say on that line ?
if you can post the whole line so i can see it
10/11/2010 05:11 killersub#23
Quote:
Originally Posted by { Angelius } View Post
what dose it say on that line ?
if you can post the whole line so i can see it
lol like I said before, it is this line:

Code:
Nano.StartServer();
10/11/2010 05:20 pro4never#24
You are running 64 bit?

Looks to me like it's a problem with the dmap handler. Try switching project to 32 bit (follow korv's guide)

"Could not load type 'CoEmu_v2_GameServer.DMapProcessor.DMap' from assembly 'CoEmu v2 GameServer, Version=2.0.3935.8547, Culture=neutral, PublicKeyToken=null' because the method 'Check' has no implementation (no RVA).":"CoEmu_v2_GameServer.DMapProcessor.DMap"

Generally that means a compatibility issue between 32/64 bit.
10/11/2010 05:28 killersub#25
Quote:
Originally Posted by pro4never View Post
You are running 64 bit?

Looks to me like it's a problem with the dmap handler. Try switching project to 32 bit (follow korv's guide)

"Could not load type 'CoEmu_v2_GameServer.DMapProcessor.DMap' from assembly 'CoEmu v2 GameServer, Version=2.0.3935.8547, Culture=neutral, PublicKeyToken=null' because the method 'Check' has no implementation (no RVA).":"CoEmu_v2_GameServer.DMapProcessor.DMap"

Generally that means a compatibility issue between 32/64 bit.
I have a 32-bit windows 7, sir. but anyways I'm gonna try korv's guide and see if that advances my problem a bit :D
10/11/2010 05:46 pro4never#26
Could be you are using a 64 bit version of the dll's.

Seems to me though it's a problem with the dllimport. I could be wrong though.
10/11/2010 05:51 killersub#27
Quote:
Originally Posted by pro4never View Post
Could be you are using a 64 bit version of the dll's.

Seems to me though it's a problem with the dllimport. I could be wrong though.
not to be changing topic here but I tried korv's 32 bit project change but when I try and debug I get this unknown error:

Quote:
Error while trying to run the project: Cannot start debugging. The assembly to be debugged was built with a platform incompatible with the current system
10/11/2010 09:20 Korvacs#28
The method check has no implementation, find the Check method and see whats in it.
10/11/2010 22:08 killersub#29
Quote:
Originally Posted by Korvacs View Post
The method check has no implementation, find the Check method and see whats in it.
I'm a noob coder remember >.<...

an example of that or how to do it would be...O_O?

Edit:

no responses? I really need to fix this. (not saying I'm not doing any discovering myself.)

any help guys? I'm really troubled with this error.
10/13/2010 23:43 Korvacs#30
Well couple of ways you could have done it:

1st: Search the project for the word Check.
2nd: Navigate to CoEmu_v2_GameServer.DMapProcessor.DMap And find the Check Method
3rd: Load the project into debug mode and recreate the problem, the project will then display exactly where the exception has occured.

You need to try harder, learn to use google and your initiative.