Forum C# StartWithDebugging Doesn't Work

StartWithDebugging Doesn't Work

Postby mfranzs » April 21st, 2011, 3:24 am

Hey:

StartWithDebugging seems like it would be very helpful.

When I try and use it in Startup.cs (Unmodified from the original code)
Code: Select all
// (Uncomment line to start server and make it simulate the user 'bob' connecting for 30 seconds)
// (this is an easy way to debug serverside code)
//
PlayerIO.DevelopmentServer.Server.StartWithDebugging("<Enter your gameid here>", "public", "bob", "", 30000);


I get this error
No overload for method 'StartWithDebugging' takes 5 arguments


Anyone know why? This is exactly the same code from the examples - not changed at all
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am

Re: StartWithDebugging Doesn't Work

Postby Oliver » April 28th, 2011, 9:38 am

It's because we changed the parameters during the last release to support PartnerPay. However, we didn't change that call, since it was commented out. It was a simple oversight, and will be fixed in the next release.

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: StartWithDebugging Doesn't Work

Postby Oliver » April 28th, 2011, 3:47 pm

Hey mfranzs,

I just checked the latest development package, and it works there, so it has nothing to do with PartnerPay.

It must be because you've got an old startup.cs file. In any case you can just add the missing parameters. For example:

PlayerIO.DevelopmentServer.Server.StartWithDebugging("<Enter your gameid here>", "public", "DrawPad", "bob", "", 30000);


Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: StartWithDebugging Doesn't Work

Postby mfranzs » April 30th, 2011, 3:52 am

Thanks!

It works great!

This has sped up my production time a lot :D
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am


Return to C#



cron