Page 1 of 1

Using IrrEdit on Linux

Posted: Mon Oct 27, 2014 9:44 pm
by Deathsbreed
I've been using wine for IrrEdit and it seems to be working fine in Wine (surprisingly), except I can't seem to find how to export to .irr files without it giving me some weird binary file. From what I know .irr files are xml text files, the example.irr file in this repo: <https://github.com/kexplo/irrlicht_ogl-es]> is pure readable text. But when I try exporting the file it gives me a binary that doesn't work when try to use it in a program (since it probably only works on Windows and I'm running Linux). I don't think I'm exporting this correctly. Is there anyone here that could tell me how to export from IrrEdit (or rather CopperCube) to a .irr file?

Thanks!

Re: Using IrrEdit on Linux

Posted: Tue Oct 28, 2014 11:30 am
by CuteAlien
I'm no expert with IrrEdit, but also thought it exports XML. Maybe ask in the Ambiera forums: http://ambiera.com/
One idea - maybe it is XML but in a format like utf-32/WCS4 which most Linux tools can't handle.
I use the following script to convert such files (I called it utf32to8.sh):

Code: Select all

 
if test $# = 0
then
        echo usage: utf32to8 source [target]
        exit 1
fi
if iconv -f UTF-32 -t UTF-8 $1 > .utf32to8dummy
then
        mv .utf32to8dummy ${2:-$1}
        rm -f .utf32to8dummy
fi
 
Maybe it run it once on such a file and check if it's readable after that. I need this a lot with Irrlicht on Linux (as it always writes utf-32 there), thought with WINE it would surprise me (Irrlicht writes there as utf-16 I think).

Re: Using IrrEdit on Linux

Posted: Tue Oct 28, 2014 5:04 pm
by Deathsbreed
CuteAlien. Turns out that gedit opens it. However, it's hard to do anything with it considering it refers to absolute paths instead of relative paths (relative to my specified working directory or relative to the irr file). I'm going to have to find a way to quickly convert those paths to unix paths. I'll keep this thread open until I find out how, then I'll post it here.

Thanks for the code though, CuteAlien, I could use that for a script to convert paths.

Re: Using IrrEdit on Linux

Posted: Tue Oct 28, 2014 9:25 pm
by CuteAlien
Hm, wasn't there some option to switch between absolute and relative paths?

Re: Using IrrEdit on Linux

Posted: Thu Oct 30, 2014 2:09 am
by Deathsbreed
I recently found this link: http://www.irrlicht3d.org/wiki/index.ph ... rldEditors
This is a great discovery. I still have to try one out to make sure it works, but if it does I'll make sure to post it here.