Coder Social home page Coder Social logo

partycraft's Introduction

PartyCraft

PartyCraft is a Minecraft 1.6.2 multiplayer server based on Craft.Net.

Features

PartyCraft is incomplete. However, it aims to eventually reproduce the functionality of the vanilla Minecraft server. In addition, PartyCraft should use significantly less CPU and memory on the host machine when operating a server. For more information on progress, see the latest Milestone.

If there are any additional features you would like, or any problems you encounter while using PartyCraft, please do not hesitate to create an issue.

Keep in mind that most of PartyCraft's features actually come from Craft.Net before you submit your problems.

Snapshot Support

PartyCraft supports most Minecraft development snapshots through Craft.Net. If you want support for the latest snapshot, run the following commands on your git repository:

cd externals/Craft.Net
git pull origin snapshot
git checkout snapshot
cd ../..

You'll now be using the snapshot branch of Craft.Net, with support for more recent pre-release versions of Minecraft.

Usage

On Linux and Mac, you will need to install Mono first.

Simply run PartyCraft.exe from the command line (Linux/Mac: "mono PartyCraft.exe") to start the server. If a world is not found in the same directory (in the "world" subdirectory by default), it will be created. The default world generator is flatland. If an Anvil world does exist in the specified directory, PartyCraft will use the existing world.

If a vanilla-style server.properties file is provided, PartyCraft will use it. Otherwise, a config.xml file will be produced and populated with default values. You may use a plugin to change the settings format, such as JSON, YML, or SQL.

After starting the server at the command line, you should be free to connect to it.

Contributing

If you wish to contribute your own code to PartyCraft, please create a fork. You are encouraged to follow the code standards currently in use, and pull requests that do not will be rejected. You are also encouraged to make small, focused pull requests, rather than large, sweeping changes. For such changes, it would be better to create an issue instead.

Getting Help

You can get help by making an issue on GitHub, or joining #craft.net on irc.freenode.net. If you are already knowledgable about using PartyCraft, consider contributing to the wiki for the sake of others.

Licensing

PartyCraft uses the permissive MIT license.

In a nutshell:

  • You are not restricted on usage of PartyCraft; commercial, private, etc, all fine.
  • The developers are not liable for what you do with it.
  • PartyCraft is provided "as is" with no warranty.

Minecraft is not officially affiliated with PartyCraft.

partycraft's People

Contributors

aholmes avatar ddevault avatar joshuaferrara avatar nsdex avatar pdelvo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

partycraft's Issues

Server crashes after player joins

I join, i spawn underneath a bedrock layer. I opped myself from console and used '/gamemode 1' in the game, then started flying up. After maybe 30 seconds, though, the server crashed with this error:

C:\Users\Steven\workspace\PartyCraft\PartyCraft\bin\Debug>PartyCraft.exe
Use /stop to kill the server.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
   at System.Threading.Monitor.Enter(Object obj, Boolean& lockTaken)
   at Craft.Net.Anvil.Region.Save() in c:\Users\Steven\workspace\PartyCraft
      \externals\Craft.Net\source\Craft.Net.Anvil\Region.cs:line 205
   at Craft.Net.Anvil.World.Save() in c:\Users\Steven\workspace\PartyCraft
      \externals\Craft.Net\source\Craft.Net.Anvil\World.cs:line 175
   at Craft.Net.Anvil.Level.Save() in c:\Users\Steven\workspace\PartyCraft
      \externals\Craft.Net\source\Craft.Net.Anvil\Level.cs:line 278
   at PartyCraft.Server.<Start>b__0(Object o) in c:\Users\Steven\workspace\PartyCraft
      \PartyCraft\Server.cs:line 57
   at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext 
      executionContext, ContextCallback callback, Object state, Boolean 
      preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext 
      executionContext, ContextCallback callback, Object state, Boolean 
      preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()
   at System.Threading.TimerQueue.AppDomainTimerCallback()

Windows 7, 3GB ram, running minecraft on same machine as server, compiled with Xamarin Studio 4.0.12 from http://monodevelop.com

Can't compile

When i try to compile PartyCraft i get 3 warnings and 6 errors. i use this .bat file to compile PartyCraft:

git clone --recursive https://github.com/SirCmpwn/PartyCraft.git
cd PartyCraft
c:\Windows\Microsoft.net\Framework\v4.0.30319\msbuild /p:Configuration=Release
pause

I get this:
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18010]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 25-5-2013 17:32:24.
Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Mixed Platforms".
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net\Craft.Net.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net.Data\Craft.Net.Data.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net.Server\Craft.Net.Server.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\externals\fNbt\fNbt\fNbt.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" (1) is building "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft\PartyCraft.csproj" (2) on node 1 (default targets).
Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft\PartyCraft.csproj" (2) is building "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj" (3) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net.Data\Craft.Net.Data.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net.Server\Craft.Net.Server.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net\Craft.Net.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva- /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\PartyCraft.API.dll /target:library /utf8output Plugin.cs IServer.cs ISettingsProvider.cs Properties\AssemblyInfo.cs "C:\Users\niels\AppData\Local\Temp.NETFramework,Version=v4.0.AssemblyAttributes.cs"
IServer.cs(1,7): error CS0246: The type or namespace name 'Craft' could not be found (are you missing a using directive or an assembly reference?) [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
IServer.cs(12,9): error CS0246: The type or namespace name 'MinecraftServer' could not be found (are you missing a using directive or an assembly reference?) [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
Done Building Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj" (default targets) -- FAILED.
Done Building Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft\PartyCraft.csproj" (default targets) -- FAILED.
Done Building Project "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" (default targets) -- FAILED.

Build FAILED.

"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" (default target) (1) ->
"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft\PartyCraft.csproj" (default target) (2) ->
"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj" (default target) (3) ->
(ResolveProjectReferences target) ->
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net.Data\Craft.Net.Data.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net.Server\Craft.Net.Server.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1395,5): warning : The referenced project '....\Craft.Net\Craft.Net\Craft.Net.csproj' does not exist. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]

"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" (default target) (1) ->
(Build target) ->
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net\Craft.Net.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net.Data\Craft.Net.Data.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\Craft.Net.Server\Craft.Net.Server.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]
G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln.metaproj : error MSB3202: The project file "G:\Minecraft Custom\PartyCraft\Batch\PartyCraft..\Craft.Net\externals\fNbt\fNbt\fNbt.csproj" was not found. [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln]

"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.sln" (default target) (1) ->
"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft\PartyCraft.csproj" (default target) (2) ->
"G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj" (default target) (3) ->
(CoreCompile target) ->
IServer.cs(1,7): error CS0246: The type or namespace name 'Craft' could not be found (are you missing a using directive or an assembly reference?) [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]
IServer.cs(12,9): error CS0246: The type or namespace name 'MinecraftServer' could not be found (are you missing a using directive or an assembly reference?) [G:\Minecraft Custom\PartyCraft\Batch\PartyCraft\PartyCraft.API\PartyCraft.API.csproj]

3 Warning(s)
6 Error(s)

Time Elapsed 00:00:00.40

Remove Craft.Net dll and add a submodule instead

Why don't you use a submodule instead of adding the compiled library of Craft.Net?

This has multiple advantages

  • You can view the source code when you work on PartyCraft, and even debug through it.
  • You can make changes to the submodule, committing to it, and pulling it to your main project.
  • You can update a submodule very easy. It is very easy to test Partycraft on different Craft.Net Versions

So I think you really should change that

Is this project still active?

Hi there, I was really interested in hearing that there was a C# based Minecraft server software and I wanted to give it a try, unfortunately I am having trouble actually getting anything to work.

I have downloaded the zip and also downloaded the fNBT library, added all projects to Visual Studio but there are a number of errors created and even after debugging it I wasn't able to get a completed build.

"Simply run PartyCraft.exe from the command line (Linux/Mac: "mono PartyCraft.exe") to start the server."

Is there an executable file available that I'm missing? It would be great to have a project that I can create a build from since that would allow me to add my own customisations etc.

Let me know if I missed something or if you have any suggestions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.