Skip to content

Implement basic multiplayer functionality#96

Closed
simulpingus wants to merge 2 commits intosmartcmd:mainfrom
simulpingus:main
Closed

Implement basic multiplayer functionality#96
simulpingus wants to merge 2 commits intosmartcmd:mainfrom
simulpingus:main

Conversation

@simulpingus
Copy link
Contributor

Pull Request

Description

Implements basic LAN functionality
launch_arguments:

name: -name usage: "-name " description: Sets your in-game username.
name: -ip usage: "-ip " description: > Manually connect to an IP if LAN advertising does not work or if the server cannot be discovered automatically.
name: -port usage: "-port " description: > Override the default port if it was changed in the source.
example: command: "Minecraft.Client.exe -name Steve -ip 192.168.0.25 -port 25565"

Changes

See commit

Directly sourced from https://github.com/LCEMP/LCEMP
image

if (m_SessionsUpdatedCallback == NULL)
return;

static DWORD lastSearchTime = 0;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can just use "int" here because weren't in Microsoft specific code (at least I don't think)

#else
typedef struct _GameSessionData
{
unsigned short netVersion; // 2 bytes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably worth keeping it here for the sake of structure alignment purposes

delete (*it);
}
}
delete m_currentSessions;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that this is sufficient for all compilers?

@void2012
Copy link
Collaborator

void2012 commented Mar 2, 2026

This PR seems to be outdated. Is the fork being the test site for current?

@void2012 void2012 added priority: low multiplayer Multiplayer, CO-OP, Hot Seat, call it whatever you want. labels Mar 2, 2026
@void2012 void2012 marked this pull request as draft March 2, 2026 16:28
@lspepinho lspepinho mentioned this pull request Mar 2, 2026
@simulpingus simulpingus closed this Mar 2, 2026
void2012 pushed a commit that referenced this pull request Mar 2, 2026
* Implement basic multiplayer functionality

* Update README.md

---------

Co-authored-by: Slenderman <ssimulpong@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiplayer Multiplayer, CO-OP, Hot Seat, call it whatever you want. priority: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants