Comments (5)
Is it an issue with the included test file only? Or does this issue happen also
with your own saved files?
With the test file, it is a known behavior since it was saved on windows in OS
X seems to not accept "\" file separator in a path, unlike linux and windows.
Anyway, the next revision of the tool will be platform independant for the
paths and will support "\" and "/", so a file saved on Windows will work on OS
X and vice-versa.
Original comment by aurelien.ribon
on 9 Sep 2011 at 7:33
from box2d-editor.
It's a problem with the included test file, and my own saved file.
Original comment by [email protected]
on 14 Sep 2011 at 8:50
from box2d-editor.
Actually, after looking at the source, now I'm not sure about my last statement.
The bug is on line 69 of IO.java:
String name = is.readUTF();
Should be:
String name = FileUtils.convertSystemPath(is.readUTF(), File.separator);
Where the method I added is:
public static String convertSystemPath(String path, String pathSeparator) {
if (pathSeparator.equals("/")) {
return FilenameUtils.separatorsToUnix(path);
}
else if (pathSeparator.equals("\\")) {
return FilenameUtils.separatorsToWindows(path);
}
else {
throw new IllegalArgumentException("Unrecognised dir separator '" + pathSeparator + "'");
}
}
Original comment by [email protected]
on 15 Sep 2011 at 7:32
from box2d-editor.
Thanks, that's what I included to make the next revision system-independent. I
was absent for a week but will fix these errors ASAP now.
Original comment by aurelien.ribon
on 16 Sep 2011 at 8:27
- Changed state: Accepted
- Added labels: Priority-High, Usability
- Removed labels: Priority-Medium
from box2d-editor.
This issue was closed by revision 90414bcc76d9.
Original comment by aurelien.ribon
on 28 Sep 2011 at 8:58
- Changed state: Fixed
from box2d-editor.
Related Issues (20)
- Program unusable if iBus is on (add to documentation?) HOT 1
- Help screen lacks a close button HOT 2
- "imagePath":null HOT 3
- Loader deliberately gpl2? HOT 3
- Tagging polygons HOT 3
- Can not use textures from other drive HOT 1
- JDK 1.7 is used by some methods HOT 6
- crash on big pictures HOT 1
- Editor not running
- Allow fixture userData
- Patch for /loader-libgdx/src/aurelienribon/bodyeditor/BodyEditorLoader.java HOT 2
- Latest libgdx's json loader changed behavior for Long/Floats HOT 10
- Reference Point: set to center of graphic
- BodyEditor Libgdx Demo doesn't work, GdxRuntimeException:NoSuchMethodError HOT 21
- Physics body editor not working HOT 4
- Use of deprecated Vector2.mul HOT 1
- On MacOS X 10.8.4 images are not appear. HOT 1
- NPE when clearing points with bodies in world
- Patch for /loader-libgdx/src/aurelienribon/bodyeditor/BodyEditorLoader.java HOT 1
- Not Launching on Mac OSX Yosemite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box2d-editor.