Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused grass (seed) implementation from both client and N3ME. #258

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

stevewgr
Copy link
Member

Description

This pull request removes an unused grass (or seed) implementation from both the client and N3ME. This feature, referenced as "seed" in N3ME and "grass" in the client, is not utilized in the official game, making it unnecessary to maintain.

Details

  • The grass/seed feature was never used in the official release, as verified by examining the Misc/grass files, which have remained unchanged since the game's initial release. It also seems like a work-in-progress implementation.
  • Based on the code in both the client and N3ME, it appears the original developer had plans for this feature to integrate with terrain data (gtd). However, in the official implementation, grass and seeds were added as shapes in the opd file with basic textures and no collision, rather than being part of the terrain data.

Rationale

Given its lack of use and maintenance, removing this redundant implementation reduces complexity and potential confusion in the codebase. This change helps streamline development by eliminating an unused feature that provides no functional benefit.

In N3ME, this feature is referred to as "seed," while in the client, it
is called "grass". This functionality is unused in the official release
and does not justify ongoing maintenance.

Reviewing the code and files in Misc/grass, which haven't been modified
since the game's release, confirms it is unused. The original developer
appears to have intended for grass/seeds to be part of terrain data (gtd).
However, in the official implementation, they are added to the opd file
as shapes with simple textures and without collision, making the grass
implementation redundant.
@stevewgr
Copy link
Member Author

stevewgr commented Nov 13, 2024

@srmeier @xGuTeK thoughts?

For the record, build is passing: https://github.com/ko4life-net/ko/actions/runs/11809857978

but I'll still wait to hear your thoughts / review before merging.

Copy link
Contributor

@xGuTeK xGuTeK left a comment

Choose a reason for hiding this comment

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

If it's not being used, I agree that it should be removed because there's no reason for it to clutter the code.

I also tested it in the game, and the map renders correctly.

@stevewgr stevewgr merged commit 0d42465 into master Nov 13, 2024
2 checks passed
@stevewgr stevewgr deleted the n3me-remove-grass branch November 13, 2024 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants