Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: shiv on March 21, 2007, 12:50:50 pm

Title: FRED for GNU/Linux
Post by: shiv on March 21, 2007, 12:50:50 pm
Is avaible any FRED for GNU/Linux?
Title: Re: FRED for GNU/Linux
Post by: castor on March 21, 2007, 12:58:43 pm
Nope, but (AFAIK) it works with WINE.
Title: Re: FRED for GNU/Linux
Post by: shiv on March 21, 2007, 01:10:12 pm
I'e tried to run it with wine, but when I'm cliking it nowhting happens.
Title: Re: FRED for GNU/Linux
Post by: taylor on March 21, 2007, 01:29:23 pm
You have to run it with the full Windows path, it won't work with a Linux path (which is the default).  Normally run it from the terminal (for debugging purposes) with "wine `winepath -w fred2_open_d.exe`".  I keep working builds in ~/tmp/freespace2 though, so I can also run it from an icon with "wine j:\\tmp\\freespace2\\fred2_open_d.exe -fredhtl" as the command.  It doesn't work perfectly due to some Wine bugs, but those bugs are known and will get fixed at some point.

Oh, and be sure to install OpenAL in Wine as well, so FRED2 can actually start up.
Title: Re: FRED for GNU/Linux
Post by: shiv on March 21, 2007, 01:43:48 pm
Okay... I've installed OpenAL for Windows thrugh the WINE. I've launched terminal. I've entered my FS2 directory and wrote:
Code: [Select]
wine fred2_open_3_6_9.exe -fredhtl
But I'm getting this error:
Code: [Select]
fixme:midi:OSS_MidiInit Synthesizer supports MIDI in. Not yet supported.What should I do?
Title: Re: FRED for GNU/Linux
Post by: taylor on March 21, 2007, 02:32:03 pm
Okay... I've installed OpenAL for Windows thrugh the WINE. I've launched terminal. I've entered my FS2 directory and wrote:
Code: [Select]
wine fred2_open_3_6_9.exe -fredhtl
You have to run it with a full path like I mentioned earlier.  So do this instead:
Code: [Select]
wine `winepath -w fred2_open_3_6_9.exe` -fredhtl

But I'm getting this error:
Code: [Select]
fixme:midi:OSS_MidiInit Synthesizer supports MIDI in. Not yet supported.What should I do?
It's not an error, just ignore it.  There will likely be quite a few other such things too, just ignore those as well.
Title: Re: FRED for GNU/Linux
Post by: shiv on March 24, 2007, 08:44:28 am
Thanks! Now I can run a FRED, but I'm getting this when I'm moving objects (FRED Retail runs properly):

(http://img108.imageshack.us/img108/8604/zrzutekranu3bx4.th.jpg) (http://img108.imageshack.us/my.php?image=zrzutekranu3bx4.jpg)

Title: Re: FRED for GNU/Linux
Post by: Turey on March 24, 2007, 02:26:35 pm
Thanks! Now I can run a FRED, but I'm getting this when I'm moving objects (FRED Retail runs properly):

(http://img108.imageshack.us/img108/8604/zrzutekranu3bx4.th.jpg) (http://img108.imageshack.us/my.php?image=zrzutekranu3bx4.jpg)



It does that. There's not much that can be done about it. Simply let go of it, and it should be fine.
Title: Re: FRED for GNU/Linux
Post by: shiv on March 24, 2007, 02:47:25 pm
Isn't it rendered in D3D? Maybe switching to OGL could help? But how?
Title: Re: FRED for GNU/Linux
Post by: taylor on March 24, 2007, 03:04:20 pm
Isn't it rendered in D3D? Maybe switching to OGL could help? But how?
FRED only uses OGL, so that's not an issue.

The problem is something I seen before, but only recently.  I get something a little bit different though.  What version of Wine do you have?  I only noticed it around 0.9.29+, but I'm not sure if it was actually Wine's fault, or some change in the FSO code that attributed to the problem.  I'm pretty sure that it's not an issue under native Windows, so I'm leaning towards Wine.  I know basically what code changes I made around that same time, so I might try and test some things just to make sure it wasn't something that I b0rked up.
Title: Re: FRED for GNU/Linux
Post by: shiv on March 24, 2007, 04:28:42 pm
I'm using the newest version of wine.

How to fix this bug?
Title: Re: FRED for GNU/Linux
Post by: karajorma on March 26, 2007, 05:42:55 pm
It's not completely unknown on windows to be honest. Just try moving around, say, the Object editor.