Reddit-Mud / RMUD

A MUD written in C# using the fantastique literary genre, started by redditors.
MIT License
25 stars 8 forks source link

Build fails #105

Closed Trevoke closed 9 years ago

Trevoke commented 9 years ago

Core/Accounts.cs(7,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference? Task "Csc" execution -- FAILED Done building target "CoreCompile" in project "/Users/aldric/src/projects/RMUD/RMUD/RMUD.csproj".-- FAILED

Where's the Newtonsoft library? Please add it to the repo/project.

Blecki commented 9 years ago

Nuget should automatically pull it for you. I guess it doesn't work for mono?

Trevoke commented 9 years ago

What's Niger?

On Sat, Oct 18, 2014 at 2:45 PM, Blecki notifications@github.com wrote:

Niger should automatically pull it for you. I guess it doesn't work for mono?

— Reply to this email directly or view it on GitHub https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59625145.

Blecki commented 9 years ago

Phone autocorrect of nuget.

Sent from my HTC One on the Verizon Wireless 4G LTE network

----- Reply message ----- From: "Aldric Giacomoni" notifications@github.com To: "Reddit-Mud/RMUD" RMUD@noreply.github.com Cc: "Blecki" jm@omnisu.com Subject: [RMUD] Build fails (#105) Date: Sat, Oct 18, 2014 3:16 PM

What's Niger?

On Sat, Oct 18, 2014 at 2:45 PM, Blecki notifications@github.com wrote:

Niger should automatically pull it for you. I guess it doesn't work for

mono?

Reply to this email directly or view it on GitHub

https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59625145.

— Reply to this email directly or view it on GitHub. {"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59626166","name":"View Issue"}}

Trevoke commented 9 years ago

I opened Xamarin instead of using my command-line compile script and it seems to have worked, but now:

Unhandled Exception: System.ObjectDisposedException: The object was used after being disposed. at System.Net.Sockets.Socket.EndAccept (System.Byte[]& buffer, System.Int32& bytesTransferred, IAsyncResult asyncResult) [0x00000] in

:0 at System.Net.Sockets.Socket.EndAccept (IAsyncResult result) [0x00000] in :0 at RMUD.TelnetClientSource.OnNewClient (IAsyncResult _asyncResult) [0x00000] in :0

On Sat, Oct 18, 2014 at 3:44 PM, Blecki notifications@github.com wrote:

Phone autocorrect of nuget.

Sent from my HTC One on the Verizon Wireless 4G LTE network

----- Reply message ----- From: "Aldric Giacomoni" notifications@github.com To: "Reddit-Mud/RMUD" RMUD@noreply.github.com Cc: "Blecki" jm@omnisu.com Subject: [RMUD] Build fails (#105) Date: Sat, Oct 18, 2014 3:16 PM

What's Niger?

On Sat, Oct 18, 2014 at 2:45 PM, Blecki notifications@github.com wrote:

Niger should automatically pull it for you. I guess it doesn't work for

mono?

Reply to this email directly or view it on GitHub

https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59625145.

— Reply to this email directly or view it on GitHub. {"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":" https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59626166","name":"View Issue"}}

— Reply to this email directly or view it on GitHub https://github.com/Reddit-Mud/RMUD/issues/105#issuecomment-59627113.

Trevoke commented 9 years ago

When I do start the server and try to register a user:

Missing method DeserializeObject in assembly /home/alg/rmud/RMUD.exe, type Newtonsoft.Json.JsonConvert 10/18/14 15:58:12 -- Error while handling client command. Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. at RMUD.Mud.FindAccount (System.String UserName) [0x00000] in :0 at RMUD.Commands.RegistrationProcessor.Authenticate (RMUD.Client Client, System.String UserName, System.String Password) [0x00000] in :0 at RMUD.PasswordCommandHandler.HandleCommand (RMUD.Client Client, System.String Password) [0x00000] in :0 at RMUD.Mud.ProcessIndividualCommand () [0x00000] in :0

Trevoke commented 9 years ago

Oh blast, hang on...

Trevoke commented 9 years ago

Okay, let me sort out the conversations we need to have.

Trevoke commented 9 years ago

Summary of this:

A new dll gets created by the build tool but I didn't know about it, so my build/deploy script did not take it into account. This is now fixed and should not be a problem anymore.