SphereCommunity
Source - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Source (/Thread-Source)



Source - Garry_Coleman - 10-27-2018 06:54 PM

Hello guys!!!
I want to test my skills and to merge a lil bit with source, mb to change some things for me personally. Tell me please which soft do I need? I installed Visual Studio 2015. I suffer with question - how to build sphere from source? Cmake ye? Help me please with your solutions and experience.


RE: Source - golfin - 10-28-2018 05:18 AM

Building

Project files can be build on Windows (VS, CMake, MinGW) and Linux (GCC, CMake).

Even using 64bit OS, Sphere must be compiled/executed in 32bit mode to work properly. Project files included on source code will compile it in 32bit mode by default.
Windows

Visual Studio (VS)

Open the project file SphereSvr.vcxproj using Visual Studio
On top menu, select the build configuration (Debug/Local/Nightly/Release) and click on Build > Build Solution to compile

NOTES:

VS > 2010 users: When opening SphereSvr.vcxproj for the first time it will request an update on project file, just click OK to update
VS 2017 users: VS 2017 have an modular installation, it comes with just basic components and extra components must be installed as needed. To use Sphere source you must open Visual Studio Installer to install Desktop Development with C++ workload and Windows Universal CRT SDK individual component
///////////////

Well, here it is well written, good instructions.
https://github.com/Sphereserver/Source


RE: Source - Garry_Coleman - 10-29-2018 01:41 AM

Thank you Golfin! But what about 56b sphere? I can't find SphereSvr.vcxproj in downloaded source.


RE: Source - golfin - 10-30-2018 04:54 AM

56b sphere is very old, I do not think there will be a possibility of source code. But it knows developers sphere.


RE: Source - Coruja - 10-30-2018 01:19 PM

on github page you can find the source code, including the guide to download and compile the code using visual studio
https://github.com/Sphereserver/Source

but it only have branches for latest 56d (active development) and 56c (ended since 2016), unfortunately there's no source code for 56b. Sphere 56b is a really old version from 2009/2013, which also means that its old code is vulnerable to many exploits discovered after that, so it's not recommended to be used on live servers


RE: Source - darksun84 - 10-31-2018 03:08 AM

Here it's the code for 56b but i don't know if it works or not:

https://github.com/Sphereserver/Source/tree/56b-20130616/0.56.b