Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导出为XML或者IMG时排序问题 #173

Closed
beloved26 opened this issue Apr 9, 2022 · 3 comments
Closed

导出为XML或者IMG时排序问题 #173

beloved26 opened this issue Apr 9, 2022 · 3 comments

Comments

@beloved26
Copy link

beloved26 commented Apr 9, 2022

如果有手动添加节点如:动画帧技能等子节点时:
在导出成到出成IMG或者服务端XML会出现乱序,如下:
/**
canvas name="1"/
canvas name="2"/
canvas name="6"/
canvas name="7"/
canvas name="3"/
canvas name="4"/
canvas name="5"/
*/
这会导致客户端在遍历播放动画帧时出现鬼畜行为(乱序)。
请在导出XML或IMG,保存WZ时将节点进行一次排序

@beloved26 beloved26 reopened this Apr 9, 2022
@beloved26
Copy link
Author

image

@Arnuh
Copy link
Contributor

Arnuh commented Apr 13, 2022

Order matters a lot and shouldn't be forced by the tool, an option when importing is perfectly fine tho.

Also I think maplelib in general has issues with keeping order when loading&saving data and should be looked into. Obvious case is footholds being moved around despite not changing them.

@lastbattle
Copy link
Owner

lastbattle commented Oct 31, 2022

Got it, working on it right now. Canvas nodes will be sorted as they're saved.

@Arnuh and you're right, not keeping the orders of FH causes issues with the field saved via HaCreator.
Side note: Now that the FH nodes are sorted, on every edits with HaCreator the server's file needs to be updated at the same time.

lastbattle added a commit that referenced this issue Oct 31, 2022
lastbattle added a commit that referenced this issue Oct 31, 2022
… saving process also

for field footholds saved with HaCreator
see: #173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants