Using IrrEdit on Linux

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Deathsbreed
Posts: 4
Joined: Mon Oct 27, 2014 5:10 pm
Location: Seville, Spain
Contact:

Using IrrEdit on Linux

Post 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!
"Free software is software that respects your freedom and the
social solidarity of your community. So it's free as in freedom."

- Richard Stallman
CuteAlien
Admin
Posts: 9693
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Using IrrEdit on Linux

Post 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).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Deathsbreed
Posts: 4
Joined: Mon Oct 27, 2014 5:10 pm
Location: Seville, Spain
Contact:

Re: Using IrrEdit on Linux

Post 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.
"Free software is software that respects your freedom and the
social solidarity of your community. So it's free as in freedom."

- Richard Stallman
CuteAlien
Admin
Posts: 9693
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Using IrrEdit on Linux

Post by CuteAlien »

Hm, wasn't there some option to switch between absolute and relative paths?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Deathsbreed
Posts: 4
Joined: Mon Oct 27, 2014 5:10 pm
Location: Seville, Spain
Contact:

Re: Using IrrEdit on Linux

Post 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.
"Free software is software that respects your freedom and the
social solidarity of your community. So it's free as in freedom."

- Richard Stallman
Post Reply