EDF custom vehicle rotation doesn't match actual vehicle rotation

Đang mở
#150 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
lua
Lĩnh vực
game-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug resource:edf

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

  1. 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>
  1. Place one in a map
  2. Set it's rotation to x:345 y:180 z:90
  3. Save the map and play it
  4. 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/

Ngôn ngữ chính
Lua
Star
185
Fork
180
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của multitheftauto/mtasa-resources

Tất cả issue của multitheftauto/mtasa-resources

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.