Broken path after duplicating objects
Posted: Mon Sep 21, 2015 1:04 pm
Hi,
I'm currently working on an importer for our cross-platform game engine V-Play http://v-play.net/ based on Qt. There are a few issues I came across while evaluating RUBE. Our main focus is currently on sidescroller and platformer games.
The two bugs occur on Windows 10 64bit when duplicating items:
1. Duplicating fails if the rube file of the object is in a protected directory e.g. "C:\Program Files (x86)\rube-win32-1.7.3" even when the user has the privileges to read and write. The object is created with a correct path but it can't be show until re-opening the scene. If I have the rube files for example in a directory in user/documents..., then it never happens.
2. Sometimes, the paths are messed up after duplicating. This might only happen if I duplicate several different objects at once. "../assets/img/flake_0.png" becomes something like "../../../../../../../../../../../../../../../Users/pherl/Documents/IT/projects/RubeSidescroller/assets/img/flake_0.png"
Here are some things I found strange concerning the JSON file:
- Why are objects exported? They don't seemt necessary atm because their position offset and scale are calculated into the child items. Therefore, it isn't even helpful to have these objects as scene nodes.
- Why isn't the rotation of images exported? I only need the angle, center and size. I can get this information out of the vertex data but it's much more complicated.
- body.path leads to object.name. But this name property is NOT unique. Luckily it doesn't really matter, because I don't need the objects anyway.
- The image.body is the index of a body in the body array. Works fine but could be better to link to body.name with unique names? You could just add a running number.
And some (subjective) feedback to the GUI:
- The mode switching (i, o, p, b,...) takes a bit time to get used to. I found it quite unintuitive that the item viewer (F6) doesn't reflect the current mode. Combining the object selector with the selection mode could be nice.
- When I click on point where multiple items are overlapping all items are selected. Then I must de-select single items until I have the one I want with right click menu. This is just annoying. Instead, the selection should cycle through the items with left clicks. To select all, you can still select them by spanning a box.
- If the multi-selection is nicer a "select all" mode would be cool.
- Rotate / scale around the selection center should be the default.
Can you please fix the duplication issues? And can you tell me a bit more about the other things?
Cheers,
Philipp
I'm currently working on an importer for our cross-platform game engine V-Play http://v-play.net/ based on Qt. There are a few issues I came across while evaluating RUBE. Our main focus is currently on sidescroller and platformer games.
The two bugs occur on Windows 10 64bit when duplicating items:
1. Duplicating fails if the rube file of the object is in a protected directory e.g. "C:\Program Files (x86)\rube-win32-1.7.3" even when the user has the privileges to read and write. The object is created with a correct path but it can't be show until re-opening the scene. If I have the rube files for example in a directory in user/documents..., then it never happens.
2. Sometimes, the paths are messed up after duplicating. This might only happen if I duplicate several different objects at once. "../assets/img/flake_0.png" becomes something like "../../../../../../../../../../../../../../../Users/pherl/Documents/IT/projects/RubeSidescroller/assets/img/flake_0.png"
Here are some things I found strange concerning the JSON file:
- Why are objects exported? They don't seemt necessary atm because their position offset and scale are calculated into the child items. Therefore, it isn't even helpful to have these objects as scene nodes.
- Why isn't the rotation of images exported? I only need the angle, center and size. I can get this information out of the vertex data but it's much more complicated.
- body.path leads to object.name. But this name property is NOT unique. Luckily it doesn't really matter, because I don't need the objects anyway.
- The image.body is the index of a body in the body array. Works fine but could be better to link to body.name with unique names? You could just add a running number.
And some (subjective) feedback to the GUI:
- The mode switching (i, o, p, b,...) takes a bit time to get used to. I found it quite unintuitive that the item viewer (F6) doesn't reflect the current mode. Combining the object selector with the selection mode could be nice.
- When I click on point where multiple items are overlapping all items are selected. Then I must de-select single items until I have the one I want with right click menu. This is just annoying. Instead, the selection should cycle through the items with left clicks. To select all, you can still select them by spanning a box.
- If the multi-selection is nicer a "select all" mode would be cool.
- Rotate / scale around the selection center should be the default.
Can you please fix the duplication issues? And can you tell me a bit more about the other things?
Cheers,
Philipp