[Request] Increase MAX_CUSTOM_MODELS to match the CPE protocol

Open
#1,615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
networking

Research direction

Start by reading the CPE handlers for DefineModel, DefineModelPart, and UndefineModel, then find where MAX_CUSTOM_MODELS is defined and used. Check how the client advertises protocol support and how older clients can remain compatible. Done means supporting the requested model ID range and negotiating the supported maximum with servers.

Written by the indexing model from the issue text.

Description

The current network protocol (DefineModel, DefineModelPart and UndefineModel) packets use an unsigned byte for the Model ID (0-255), while the client only supports Model ID's of 0-63. This is not documented on the CPE spec either. I've looked through the commits on the relevant code and can't find any documented reason why it was limited to 64 except the original proposal itself in #671.

I am requesting that MAX_CUSTOM_MODELS be bumped from 64 to 256. If this is implemented, it would make sense to also expand the protocol so servers can request the MAX_CUSTOM_MODELS supported by the client to maintain support with older clients.

Dominant language
C
Stars
2.1k
Forks
338
Avg merge
2d 10h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClassiCube/ClassiCube

All issues in ClassiCube/ClassiCube

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.