Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Fractux on August 07, 2005, 03:01:35 pm

Title: Using Fred2_Open in lnux
Post by: Fractux on August 07, 2005, 03:01:35 pm
I'm just wondering if there's any other way to get Fred2_OGL work in linux without the need to use wine, or if there is another windows emulator that I can try that may not have as many of the graphical anomalies present. Currently using Wine 20050628.

It's fully functional (well, what's I've used so far) other than the menues not being displayed, so It's not really that important, but I was just wondering.

Cheers!
Title: Using Fred2_Open in lnux
Post by: Mr_Maniac on August 07, 2005, 03:28:58 pm
Well... ATM wxFred2 is in developement...
But it's in a very early stage of development...
I don't know how far it works, because it won't compile for me :(
But you can try...

./configure --enable-wxfred2
make
Title: Using Fred2_Open in lnux
Post by: WMCoolmon on August 21, 2005, 05:56:34 am
Nope. You could try Cedega, I suppose, but all my efforts with that have ended with it griping that I can't run it from a root directory.
Title: Using Fred2_Open in lnux
Post by: Kamikaze on September 06, 2005, 02:47:07 am
Sorry for the thread resurrection, but I just got wxFred2 to compile. Currently it appears to be a bunch of menus and that's about it.
Title: Using Fred2_Open in lnux
Post by: WMCoolmon on September 06, 2005, 04:14:49 am
Yeah, it's VERY incomplete. I probably should've mentioned that when I was talking with you.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 12, 2005, 02:35:44 pm
Well... ATM wxFred2 is in developement...
But it's in a very early stage of development...
I don't know how far it works, because it won't compile for me :(
But you can try...

./configure --enable-wxfred2
make

wxFred2?!
I'm not worthy! I'm not worthy!
Title: Re: Using Fred2_Open in lnux
Post by: WMCoolmon on November 12, 2005, 03:07:53 pm
Well, noone's working on it right now, and it requires some kind of resource tool to make dialogs, but it's there.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 12, 2005, 04:52:14 pm
Well, noone's working on it right now, and it requires some kind of resource tool to make dialogs, but it's there.

Yaay! Thanks for bringing my hopes up & then down again :P j/k :) Great progress here, i'm happy ^^
BTW, is there a launcher for the linux version aswell? didn't see it after compiling the game
Title: Re: Using Fred2_Open in lnux
Post by: taylor on November 12, 2005, 07:31:02 pm
BTW, is there a launcher for the linux version aswell? didn't see it after compiling the game
It's in the works.  As I mentioned in the other thread, I'm working on a fully cross-platform launcher for the new code I'm working on, since the old launcher won't work with it.  Given how many people on the OS X side have practically demanded a launcher though I've started with a base code from the new launcher in order to make a new cross-platform one to replace the current launcher until all of my new stuff is complete.  It's going to work much like the curent launcher and won't be as streamlined and the newer one but it will do the job until I can eventually find the time to complete the newer code.  I may have something available for testing next weekend but that only depends on how busy I end up getting with work this week.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 13, 2005, 05:12:30 am
No worries, just let me know when/where the source is & i'll test the crap out of it :D
Title: Re: Using Fred2_Open in lnux
Post by: Mr_Maniac on November 13, 2005, 05:58:31 pm
Nope. You could try Cedega, I suppose, but all my efforts with that have ended with it griping that I can't run it from a root directory.

I had this problem, too, but I managed to start fred2!
You need a drive-letter for the Partition/Drive where fred2 lies...
I tried to start it then, but I was so blind, that it took me hours to figure out that I need to write Backslashes and to "escape" them...

It's like this:
winelauncher d:\\GAMES\FreeSpace2\\FRED2_Open.exe
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 14, 2005, 12:16:24 pm
Well, noone's working on it right now, and it requires some kind of resource tool to make dialogs, but it's there.

Didn't ask this before.... what exactly do you mean with resource tool to make dialogs ?
Oh, and how do i compile it? :D
Title: Re: Using Fred2_Open in lnux
Post by: Goober5000 on November 14, 2005, 12:29:42 pm
DialogBlocks is what we've been using.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 14, 2005, 12:57:34 pm
DialogBlocks is what we've been using.

Not familiar with DialogBlocks, or wxwidgets for that matter, but shouldn't it be possible to write a basic dialog function that takes arguments in the form of a buttonlist, a description, and perhaps some other items...
Title: Re: Using Fred2_Open in lnux
Post by: WMCoolmon on November 14, 2005, 01:00:00 pm
A GUI can be easier to use to design a GUI.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 14, 2005, 01:13:23 pm
A GUI can be easier to use to design a GUI.

Don't look at me, i'm a cli guy ;)
Title: Re: Using Fred2_Open in lnux
Post by: CaptJosh on November 15, 2005, 07:44:54 am
You might consider using GTK+. gaim, an open source IM client uses it and it's cross-platform with only the need to have gtk+ installed. Then you could program the gui the same way for both the windows and linux. Might save some time and effort in the long run.
Title: Re: Using Fred2_Open in lnux
Post by: Amon_Re on November 15, 2005, 09:45:56 am
Actually, wxWidgets are cross platform too, but for some reason i can't compile wxfred2, i'll post the compiler errors later, most likely a dependency or version conflict....
Title: Re: Using Fred2_Open in lnux
Post by: WMCoolmon on November 15, 2005, 09:45:06 pm
The reason why it's wxWidgets is because it can use GTK, or it can use Qt if you like, or whatever.

AFAIK it's not a matter of the tools not being cross-platform (it makes little sense to NOT write a GUI design tool for wxWidgets with wxWidgets). It's that no one has the time to work on it, or are working on other things.

I don't really agree with the decision to require a GUI tool to work on wxFRED, but AFAIK that hasn't definitely stopped anyone from working on it, so it's really a non-issue at this point.
Title: Re: Using Fred2_Open in lnux
Post by: Mr_Maniac on November 19, 2005, 09:43:21 am
For those who could need it...
Here's a little bash-script to make starting FRED2 easier... ;)

Code: [Select]
#!/bin/bash

WINE="winelauncher" # The wine-launcher
FRED="FRED2_open_r-Inf20051117.exe" # Name of the FRED2 executable
OPTIONS="-fredhtl -jpgtga -img2dds" # Commandline-Options vor FRED2
DIR="y:\\.fs2_open\\" # y: is my home-dir as drive-letter

EXE="${WINE} ${DIR}${FRED} ${OPTIONS}" # Combine these Variables

$EXE # Start the whole thing ;)
Hope you like it ;)

EDIT: Of course, you need to know / set the wine-drive-letters and directories where your FRED2-Exec lies...