2019-05-29 23:02:42 +10:00
ClassiCube is a custom Minecraft Classic and ClassiCube client written in C that works on Windows, OSX, Linux, BSD, Solaris, and in a browser.
2015-07-01 11:15:53 +10:00
**It is not affiliated with (or supported by) Mojang AB, Minecraft, or Microsoft in any way.**
2017-05-25 02:13:33 -07:00
![screenshot_n ](http://i.imgur.com/FCiwl27.png )
2015-10-29 06:28:23 +11:00
2015-10-23 18:23:03 +11:00
2019-06-28 00:50:10 +10:00
You can grab the latest stable binaries [from here ](https://cs.classicube.net/c_client/release ) and the very latest builds [from here ](https://cs.classicube.net/c_client/latest ).
2015-07-01 11:15:53 +10:00
2019-02-02 13:26:33 +11:00
#### What ClassiCube is
2016-01-12 21:53:17 +11:00
* Works with both ~~minecraft.net~~ (classic has been removed by Mojang) and classicube.net accounts.
2015-07-01 11:15:53 +10:00
* Lightweight, minimal memory usage compared to the standard client.
2015-09-19 13:25:11 +10:00
* Works with effectively all graphics cards that support OpenGL or Direct3D 9.
2016-01-12 21:53:17 +11:00
* Provides single-player support, and both a flatgrass and vanilla-type map generator.
2015-07-01 11:15:53 +10:00
2015-09-30 08:33:35 +10:00
It **does not** work with 'modern/premium' Minecraft servers.
2015-07-01 11:15:53 +10:00
#### Requirements
2019-07-12 20:04:26 +10:00
* Windows: 2000 or later. (Windows 98 with KernelEx also *technically* works)
2019-09-07 09:40:10 +10:00
* OSX: OSX 10.5 or later. (Can be compiled to work with 10.4 though)
2019-02-02 13:26:33 +11:00
* Linux: libcurl and libopenal.
2015-07-01 11:15:53 +10:00
#### Instructions
2019-02-02 13:26:33 +11:00
Initially, you will need to run ClassiCube.exe to download the required assets from minecraft.net.
2016-01-12 21:53:17 +11:00
Just click 'OK' to the dialog menu that appears when you start the launcher.
2015-07-01 11:15:53 +10:00
2015-09-30 09:10:55 +10:00
**Singleplayer**
2019-02-02 13:26:33 +11:00
Run ClassiCube.exe, then click Singleplayer at the main menu.
2015-07-01 11:15:53 +10:00
2015-09-30 09:10:55 +10:00
**Multiplayer**
2019-02-02 13:26:33 +11:00
Run ClassiCube.exe. You can connect to LAN/locally hosted servers, ~~minecraft.net servers,~~ and classicube.net servers through the launcher.
2015-07-01 11:15:53 +10:00
2017-10-23 11:07:33 +11:00
###### *Windows specific*
*If you are stuck using the built-in OpenGL 1.1 software renderer, you can use the MESA software renderer from either [here ](http://download.qt.io/development_releases/prebuilt/llvmpipe/windows/ ) or [here ](https://wiki.qt.io/Cross_compiling_Mesa_for_Windows ) for slightly better performance. Typically though, this occurs because you have not installed GPU drivers.*
2015-10-23 18:33:51 +11:00
#### Tips
2018-02-28 13:12:29 +11:00
* Press escape (after joining a world) or pause to switch to the pause menu.
2018-10-08 12:30:09 +11:00
* Pause menu -> Options -> Controls lists all of the key combinations used by the client.
2016-01-12 21:53:17 +11:00
* Note that toggling 'vsync' to on will minimise CPU usage, while off will maximimise chunk loading speed.
2015-10-23 18:23:03 +11:00
* Press F to cycle view distance. A smaller number of visible chunks can improve performance.
* If the server has disabled hacks, key combinations such as fly and speed will not do anything.
2018-10-08 12:30:09 +11:00
* To see the list of built in commands, type `/client` .
2019-02-02 13:26:33 +11:00
* To see help for a given built in command, type `/client help <command name>` .
2019-02-18 14:30:23 +11:00
2019-03-04 09:27:53 +11:00
### Compiling
2019-03-11 03:24:28 +11:00
#### Windows
##### Compiling with Visual Studio:
Open ClassiCube.sln and compile it.
2019-06-27 23:06:17 +10:00
If you get a ```The Windows SDK version 5.1 was not found` `` compilation error, [see here for how to fix ](misc/compile-fixes.md#visual-studio-unsupported-platform-toolset )
2019-03-11 03:24:28 +11:00
##### Compiling with MinGW-w64
I am assuming you used the installer from https://sourceforge.net/projects/mingw-w64/
1. Install MinGW-W64
2. Use either *Run Terminal* from Start Menu or run *mingw-w64.bat* in the installation folder
2019-03-12 08:53:28 +11:00
3. Compile with the same flags as under **Cross Compiling for windows** , but use *gcc* instead of *i586-mingw32msvc-gcc*
2019-03-11 03:24:28 +11:00
2019-03-23 21:09:51 +11:00
##### Compiling with MinGW
I am assuming you used the installer from http://www.mingw.org/
1. Install MinGW. You need mingw32-base-bin and msys-base-bin packages.
2. Run *msys.bat* in the *C:\MinGW\msys\1.0* folder.
2019-08-25 19:51:21 +10:00
3. Compile with the same flags as under **Cross Compiling for windows** , but use *gcc* instead of *i586-mingw32msvc-gcc*
2019-03-23 21:09:51 +11:00
2019-03-04 09:27:53 +11:00
#### Linux
2019-02-18 14:30:23 +11:00
2019-03-29 10:15:21 +11:00
Install appropriate libs as required. For ubuntu these are: libx11-dev, libgl1-mesa-dev, libopenal-dev, libcurl4-gnutls-dev or libcurl4-openssl-dev
2019-02-18 14:30:23 +11:00
2019-03-29 10:15:21 +11:00
```gcc *.c -o ClassiCube -lm -lpthread -lX11 -lGL -lcurl -lopenal -ldl` ``
2019-02-18 14:30:23 +11:00
2019-03-29 10:15:21 +11:00
##### Cross compiling for windows:
2019-02-18 14:30:23 +11:00
```i586-mingw32msvc-gcc *.c -o ClassiCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9` ``
2019-04-03 17:32:55 +11:00
#### Mac OSX
```gcc *.c -o ClassiCube -framework Carbon -framework AGL -framework OpenAL -framework OpenGL -lcurl` ``
2019-02-18 14:30:23 +11:00
2019-03-29 10:15:21 +11:00
#### FreeBSD
2019-02-18 14:30:23 +11:00
2019-07-28 07:48:32 +10:00
```clang *.c -o ClassiCube -I /usr/local/include -L /usr/local/lib -lm -lpthread -lX11 -lGL -lcurl -lopenal -lexecinfo` ``
2019-02-18 14:30:23 +11:00
2019-03-04 09:27:53 +11:00
#### OpenBSD
Install libexecinfo package if needed.
2019-04-07 11:43:59 +10:00
```gcc *.c -o ClassiCube -I /usr/X11R6/include -I /usr/local/include -L /usr/X11R6/lib -L /usr/local/lib -lX11 -lGL -lcurl -lopenal -lexecinfo` ``
2019-03-04 09:27:53 +11:00
2019-03-09 13:33:08 +11:00
#### NetBSD
2019-03-29 10:15:21 +11:00
```gcc *.c -o ClassiCube -I /usr/X11R7/include -I /usr/pkg/include -L /usr/X11R7/lib -L /usr/pkg/lib -lpthread -lX11 -lGL -lcurl -lopenal -lexecinfo` ``
#### Solaris
```gcc *.c -o ClassiCube -lm -lsocket -lX11 -lGL -lcurl -lopenal` ``
NOTE: You have to change entry->d_type == DT_DIR to Directory_Exists(& path) (TODO do this automatically)
2019-04-20 22:21:32 +10:00
#### Web
```emcc *.c -s FETCH=1 -s ALLOW_MEMORY_GROWTH=1 --preload-file texpacks/default.zip` ``
2019-06-27 23:06:17 +10:00
The generated javascript file has some issues. [See here for how to fix ](misc/compile-fixes.md#webclient-patches )
2019-05-29 23:02:42 +10:00
##### Other
2019-03-29 10:15:21 +11:00
You'll have to write the necessary code. You should read portability.md in misc folder.
2019-03-09 13:33:08 +11:00
2019-05-29 23:02:42 +10:00
### Known compilation errors
2019-06-27 23:06:17 +10:00
[Fixes for compilation errors when using musl or old glibc for C standard library ](misc/compile-fixes.md#common-compilation-errors )
2019-05-29 23:02:42 +10:00
2019-02-18 14:30:23 +11:00
### Documentation
Functions and variables in .h files are mostly documented.
2019-03-29 10:15:21 +11:00
Further information (e.g. portablity, style) for the game's source code can be found in the misc folder.