You are browsing as a guest. Sign up (or log in) to start making projects!

45h 6m 45s logged

devlog 2

In my last post, i said that i wanted to port my Minecraft server library to C. currently i’ve released v0.1.9 which adds C/C++ support with Go bindings. and i spent a LONG time debugging and creating a CMakeLists.txt allowing developers to easily just… (yes that easy)

cmake_minimum_required(VERSION 3.16)
project(example LANGUAGES C)

include(FetchContent)

FetchContent_Declare(
	mcserverkit
	GIT_REPOSITORY https://github.com/mcserverkit/core
	GIT_TAG v0.1.9
)
FetchContent_MakeAvailable(mcserverkit)

add_executable(example main.c)
target_link_libraries(example PRIVATE mcserverkit)

which allows you to do this!

#include "mcserverkit.h"

int main()
{
	Install("1.21.1");
	Create("MyServer", 1);
	Start("MyServer", "4G");
}

and to bundle as an executable run this in your terminal:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

sorry this update took so long…

app progress

Also, I know I’ve just added support for C and C++ but now I NEED to add an adapter for Rust because I switched to Tauri instead of Webview and Tauri uses Rust for the backend instead of C++ and that’s most likely going to be a part of the next log.

Here’s a picture of the app so far, i was inspired by Minecraft’s website ui and wanted it to feel more connected to the official game, it already works cross platform but none of the backend is connected yet because i have to make bindings for Rust.

1
51

Comments 0

No comments yet. Be the first!