RedCube is a Custom ClassiCube client built by TheMrRedSlime It is not affiliated with (or supported by) Mojang AB, Minecraft, or Microsoft in any way.
I do not hold responsible for the things done with RedCube
- Windows: 95 or later
- macOS: 10.5 or later (can be compiled to work with 10.3/10.4 though)
- Linux: libcurl and libopenal
- Android: 2.3 or later
- Use 'Developer Tools for Visual Studio' from Start Menu
- Navigate to directory with game's source code
- Enter
cl.exe *.c /link user32.lib gdi32.lib crypt32.lib ws2_32.lib wininet.lib winmm.lib dbghelp.lib shell32.lib comdlg32.lib /out:RedCube.exe
I am assuming you used the installer from https://sourceforge.net/projects/mingw-w64/
- Install MinGW-W64
- Use either Run Terminal from Start Menu or run mingw-w64.bat in the installation folder
- Navigate to directory with game's source code
- Enter
gcc *.c -o RedCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32
I am assuming you used the installer from http://www.mingw.org/
- Install MinGW. You need mingw32-base-bin and msys-base-bin packages.
- Run msys.bat in the C:\MinGW\msys\1.0 folder.
- Navigate to directory with game's source code
- Enter
gcc *.c -o RedCube.exe -mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32
I am assuming you used tcc-0.9.27-win64-bin.zip from https://bellard.org/tcc/
- Extract the .zip file
- In
ExtMath.C, changefabsftofabsandsqrtftosqrtf - In TCC's
include/math.h, remove the inline definition forfabsat around line 217 - In TCC's
lib/kernel32.def, add missingRtlCaptureContext - Add missing include files from
winapi-full-for-0.9.27.zipas required - ???
Install appropriate libs as required. For ubuntu these are: libx11-dev, libxi-dev and libgl1-mesa-dev
gcc *.c -o RedCube -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl
i686-w64-mingw32-gcc *.c -o RedCube.exe -mwindows -lwinmm -limagehlp
x86_64-w64-mingw32-gcc *.c -o RedCube.exe -mwindows -lwinmm -limagehlp
Although the regular linux compiliation flags will work fine, to take full advantage of the hardware:
gcc *.c -o RedCube -DCC_BUILD_RPI -rdynamic -lm -lpthread -lX11 -lXi -lEGL -lGLESv2 -ldl
cc *.c -o RedCube -framework Carbon -framework AGL -framework OpenGL -framework IOKit
cc *.c interop_cocoa.m -o RedCube -framework Cocoa -framework OpenGL -framework IOKit -lobjc
Open android folder in Android Studio (TODO explain more detailed)
Run gradlew in android folder (TODO explain more detailed)
iOS version will have issues as it's incomplete and only tested in iOS Simulator
Import ios/CCIOS.xcodeproj project into Xcode (TODO explain more detailed)
xcodebuild -sdk iphoneos -configuration Debug (TODO explain more detailed)
Install libexecinfo, curl and openal-soft package if needed
cc *.c -o RedCube -I /usr/local/include -L /usr/local/lib -lm -lpthread -lX11 -lXi -lGL -lexecinfo
Install libexecinfo, curl and openal package if needed
cc *.c -o RedCube -I /usr/X11R6/include -I /usr/local/include -L /usr/X11R6/lib -L /usr/local/lib -lm -lpthread -lX11 -lXi -lGL -lexecinfo
Install libexecinfo, curl and openal-soft package if needed
cc *.c -o RedCube -I /usr/X11R7/include -I /usr/pkg/include -L /usr/X11R7/lib -L /usr/pkg/lib -lpthread -lX11 -lXi -lGL -lexecinfo
cc *.c -o RedCube -I /usr/local/include -L /usr/local/lib -lm -lpthread -lX11 -lXi -lGL -lexecinfo
gcc *.c -o RedCube -lm -lsocket -lX11 -lXi -lGL
Install openal_devel and libexecinfo_devel package if needed
cc *.c Window_Haiku.cpp -o RedCube -lm -lexecinfo -lGL -lnetwork -lstdc++ -lbe -lgame -ltracker
Install SDL2 port if needed
cc *.c -o RedCube -lgl -lSDL2
emcc *.c -s ALLOW_MEMORY_GROWTH=1 \
-s STACK_SIZE=512MB \
-s EXPORTED_RUNTIME_METHODS=['print','UTF8ToString','stringToUTF8','addFunction'] \
-s EXPORT_ALL=1 \
--js-library interop_web.js \
-o a.out.js
WEB AT https://themrredslime.site/redcube.html
The generated javascript file has some issues. See here for how to fix
