Skip to content

Properties offset due to duplicates in ServerClasses #12

@p2r3

Description

@p2r3

Hi, yes, it's me again!

In some demos (TurretIntro.zip), the list of server classes reported by the DataTables message inexplicably contain duplicates, while the DataTables themselves do not. This causes the class-to-property mapping to desync.

This can be fixed by matching classes by data table name, not index.

So here:

SendTable table = _dtRef.Tables[serverClass.DataTableId];

... a valid fix would be to instead search _dtRef.Tables for an entry where dataTable.Name == serverClass.DataTableName.

Sorry for the issue spam. I'd love to PR these things myself, but as I've said in a prior issue, I have zero experience with C# or its environment. Hopefully my explanations of the proposed fixes make it clear enough what needs to be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions