Opened 20 months ago

Last modified 20 months ago

#6622 new defect

In some cases, 0ad falsely detects mod incompatibility — at Initial Version

Reported by: Andy Alt Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords:
Cc: Patch:

Description

If the name field in mod.json is "foo-bar" but the mod directory is "foo_bar" or "foo-bar-1.0", then someone attempting to join from the lobby receives an incompatibility message and cannot join.

When 0ad installs mods from mod.io, mod.io will convert underscores (_) to hyphens (-).

The workaround to prevent the incompatibility message is to make sure your mod name doesn't use underscores and the mod directory is exactly the same as what's in the name field in mod.json.

The modding guide on the wiki should be reviewed; it might be important to make this more clear.

For a more robust fix, I suggest that 0ad should only do comparisons with the mod.json file between host and client, not its parent directory.

Related tickets: https://github.com/0ad-matters/community-maps-2/issues/52

Change History (1)

by Andy Alt, 20 months ago

Attachment: mod_incompatibility.png added

Shows incompatibility message

Note: See TracTickets for help on using tickets.