Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

pls improve map validation tool (upload vs server pathing)

未关闭
#364 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
32/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
api, backend

调研方向

从 /maps/validate 端点开始,比较上传版本和服务器创建版本的 map-name 与 scenario.lua 路径验证输出。结合上传流程确认预期的文件夹约定,然后定义应如何选择这两种模式,以及一致的验证输出和上传行为意味着什么。

由索引模型根据 Issue 内容生成。

描述

First of all, I love our new validation tool: https://api.faforever.com/maps/validate
But I found some Issues that should be improved...

Validate Map Name
The map name validation for Adaptive Map says adaptive_map.v0001 for the folder.

  • That folder name and path is created while map upload and in FAF Editor

  • server created version = /maps/adaptive_map.v0001/adaptive_map.scmap

Validate scenario.lua
But in the validation of the obviously wrong path in the scenario content, it gives you a folder path without .v0001 /maps/adaptive_map/adaptive_map.scmap

  • As far as I know, that path is created in GPG Editor and needed to be applied for map upload (without .v0001 in folder and file path)? Please correct me if I'm wrong.

  • upload version = /maps/adaptive_map/adaptive_map.scmap

#0

Conclusion
FAF Editor version = server created version = /maps/adaptive_map.v0001/adaptive_map.scmap
GPG Editor version = upload version = /maps/adaptive_map/adaptive_map.scmap

That's why I think, the tool is confusing how it is now and leads to maps not being able to load. It would be nice to clarify if an upload version or an server created version should be validated.
It would be nice to give both options to a map maker. And validate consistently over name and scenario validation, like in picture 2#. A checkbox could be a solution to enable the map maker to get the right information. Because I really like to prevent issues like this while uploading:
foldername - scenario_error
foldername - script_error

Bad example
1# difference in validated name and scenario folder naming
#1

Good example
2# example for constant folder naming with .v0001 like in the server created version
#2

One additional question
Isn't it possible to also allow an upload with the version number in the folder?
That would be awesome. This way there is no difference between GPG Editor and FAF Editor maps and both can simply be uploaded. No broken files due to upload process ;)

主要语言
Java
星标
31
派生
30
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FAForever/faf-java-api 的其他 Issue

查看 FAForever/faf-java-api 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。