BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
127 stars 53 forks source link

Fix unicycle counting as car #288

Closed sla-ppy closed 7 months ago

sla-ppy commented 7 months ago

Fixes #246.

sla-ppy commented 7 months ago

This is a super dirty fix to the issue. We essentially duct tape a problem which should definitely be revisited later on!

The reason for this dirty fix is because mVehichleData contains both unicycle and vehicle data, and I am unsure if we want it to stay like that.

I propose that in the new protocol we treat unicycle and vehicle data differently because there are questions to be answered like:

Benefit of the proposal:

sla-ppy commented 7 months ago

Please review my code: @lionkor.

Starystars67 commented 7 months ago

Could I further this topic by suggesting that instead a configuration option be added to specify vehicle names that can be added so they bypass the vehicle limit.

This would be for things like the unicycle as default but can then be expanded to items like cones, bollards, concrete barriers or even pucks.

lionkor commented 7 months ago

Could I further this topic by suggesting that instead a configuration option be added to specify vehicle names that can be added so they bypass the vehicle limit.

This would be for things like the unicycle as default but can then be expanded to items like cones, bollards, concrete barriers or even pucks.

I would ask you to make a new feature issue for that, because I'd also like to specify that properly before building it, and I wouldn't want to tack it onto this bug as I want this in the next release.

lionkor commented 7 months ago

@sla-ppy btw in documentate unicycle dirty fix the correct form is document ;)

sla-ppy commented 7 months ago

@sla-ppy btw in documentate unicycle dirty fix the correct form is document ;)

catty