EDF custom vehicle rotation doesn't match actual vehicle rotation
还没有人认领这个 Issue。
评估
调研方向
Start by locating the editor resource files mentioned in the report, especially edf and editor_main, and trace how custom vehicle rotations are saved and applied. Compare that with the rotation used when creating a real vehicle through scripting, using the reported x:345, y:180, z:90 values as a reproduction case. Done when both rotations match in the saved map and in game.
由索引模型根据 Issue 内容生成。
描述
Which resource(s) have this problem?
Not sure, edf, editor_main maybe
Describe the bug
The rotation of a custom element represented by a vehicle seems to work differently than the rotation of an actual vehicle.
For example, if I want to use that custom element's rotation to do something with real vehicles, It won't work as expected.
This doesn't happen with all rotations.
To Reproduce
- Define a custom element that is represented by a vehicle, for example:
<element name="customveh" friendlyname="Custom vehicle">
<vehicle editorOnly="true" model="!model!" />
<data name="model" type="vehicleID" default="411" />
<data name="position" type="coord3d" default="0,0,0" />
<data name="rotation" type="coord3d" default="0,0,0" />
</element>
- Place one in a map
- Set it's rotation to x:345 y:180 z:90
- Save the map and play it
- Create a vehicle through scripting and set it's rotation to the same as the custom element in the map file -> Rotations do not match
Expected behavior
If I create a custom element represented by a vehicle it's rotation should match an actual vehicle rotation.
Screenshots
See 'additional context'
Version
1.5.6
Additional context
I made a forum post regarding this problem
https://forum.mtasa.com/topic/117044-possible-editor-bug/
- 主要语言
- Lua
- 星标
- 185
- 派生
- 180
- 平均合并
- 5 天 13 小时
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
multitheftauto/mtasa-resources 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
multitheftauto/mtasa-resources#697 · 7 条评论 · 7 个 reaction ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
multitheftauto/mtasa-resources#564 · 1 个 reaction ·
-
editor: LOD_MAP table is missing some LOD models可能重新可做 关联的 PR 已关闭且未合并。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 36/100
-
enhancement resource:editor
难度 5/5 一周以上 新手友好度 20/100
multitheftauto/mtasa-resources#388 · 3 个 reaction ·
-
help wanted waiting for feedback
难度 5/5 一周以上 新手友好度 12/100
multitheftauto/mtasa-resources#361 · 8 条评论 · 8 个 reaction ·
查看 multitheftauto/mtasa-resources 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
teradata-labs/loom#624 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
rohit746/pdf-view.nvim#109 ·
维护者通常 1 天内回复
-
bug guide
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复