ToEE Front-End X for Linux/Mono BETA

Discussion in 'ToEE Front-End X' started by Agetian, Dec 12, 2010.

Remove all ads!
Thread Status:
Not open for further replies.
  1. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,029
    Likes Received:
    42
    Okay, I understand (more or less).

    I saw toee.cfg mentioned up the thread, but I'm still not aware of that being an issue as it's not in the modpack. But yeah, we ship temple.dll in addition to toee.exe.

    Anyway, I don't know that Agetian has implemented anything in TFE-X for Linux/Mono that would address the varying case issues from release to release, so I'll point him to this thread again. We'll get that addressed, thanks.
     
  2. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,029
    Likes Received:
    42
    Just FYI, unfortunately this did not get addressed for the latest release. Sorry.
     
  3. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    I'm trying to run TFE-X-linux in Mac OS X (10.7) and I receive the following error:

    ./TFE-X-linux
    -bash: ./TFE-X-linux: cannot execute binary file

    Do you know whether the source to build TFE-X-linux is available? I'm not really sure what the problem is. Hopefully it's a simple, "I did something incorrectly when copying the files/installing things." Otherwise, perhaps I need to build TFE-X-linux from source?

    I have toee 6.1 NC running nicely on the mac, using TFE-X.exe, although I do get some errors when launching that frontend.
     
  4. SCO

    SCO Member

    Joined:
    Jan 2, 2011
    Messages:
    58
    Likes Received:
    0
    macos x....

    No guarantee, but try to install mono. Check the executable permission however you do that in Jobs-lala-land.

    Failing that, use wine (you already must have installed it if you want to run the game), mono for windows using wine and "winetricks", and use the windows version.

    No further help offered from me, google it yourself, blah blah.
     
  5. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    Alright, so I have already done the following:

    1. Installed wine
    2. Setup winetricks script
    3. Installed mono28 and dotnet20 (using winetricks, so they'd be available to my wine programs).
    4. Installed GOG's toee
    5. Installed Co8's modpack 6.1.0 NC

    With the above setup, I've been able to run toee just fine on my mac. I had actually already completed all of the above prior to posting my question about TFE-X-linux. The issue has been that:

    1. The installation of mono28 was having no impact at all on the failure to execute the binary file TFE-X-linux
    2. The dotnet20 package (ms .NET 2.0) made the game playable using TFE-X.exe
    3. Running TFE-X.exe with wine and dotnet20 generates error messages and TFE-X.exe does not display properly.

    So, naturally, SCO, I could google how to run TFE-X-linux on mac OS, but that would take me right here, wouldn't it?

    The thing is, I have extensive knowledge in the use of windows, mac os, and linux, and I have no difficulty understanding how to install all the needed packages and check the permissions. What I'm not clear on, is why TFE-X-linux is not executable in mac os. I can help you guys figure out the answer to that question, provided I'm given some useful information on what system TFE-X-linux is being compiled on, the compiler, etc.

    It seems that if there is a method for making toee playable on mac systems, without numerous error messages and hiccups, that it would be a good thing. I'm willing to do that, and the fact that TFE-X-linux is already built is awesome, because it should be trivial to port it to mac.
     
  6. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    OK, got it.

    Maybe this is common sense, but anyways:

    # mono TFE-X-linux

    works just fine for launching TFE-X-linux on mac os. No nasty errors like with the exe version.
     
  7. WinstonShnozwick

    WinstonShnozwick Established Member

    Joined:
    Mar 2, 2011
    Messages:
    628
    Likes Received:
    23
    Is there a way to make it so the Front End X can be opened without having to run as administrator every time?
     
  8. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    Im not running it as an admin.
     
  9. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,029
    Likes Received:
    42
    Hi roolark. Am I correct that you have it working now? This isn't something I can really help you with myself ... Agetian is the guy behind our mono/linux efforts, but he hasn't been available lately.
     
  10. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    Gaear, the answer is kind of.

    TFE-X-linux now launches just fine if I use the terminal command "mono TFE-X-linux"

    It does not, however, properly start toee when I click the play button. It simply crashes to the desktop with error:

    local mono[4654] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
    roo-mac:toee

    So I'm almost there, but not quite.
     
  11. SCO

    SCO Member

    Joined:
    Jan 2, 2011
    Messages:
    58
    Likes Received:
    0
    And it wont. You only use the front end to configure the module, to play the game you need to use wine (though this could probably be fixed by calling "wine ToEE.exe").

    So you either:
    use the "native" mono to run the linux frontend to configure it.
    play using wine and the ToEE exe
    Be careful of the error explained on the previous pages here if you do this.

    or
    use the windows mono and wine to run the windows frontend and configure it.
    play using wine and the ToEE exe

    Resuming: the option to run the frontend as native executable is kinda useless unless you don't want to download the windows mono version for wine, or it simply does not work in the current wine version.
     
  12. roolark

    roolark Member

    Joined:
    Dec 14, 2011
    Messages:
    7
    Likes Received:
    0
    So is it correct then that the "play" button on TFE-X-linux does not work for any of the various linux distros (at least, those tested)?

    Would it be difficult to call "wine toee.exe" when the play button is selected? It seems that, considering the rest of the linux frontend options are working OK, that adding the "wine toee.exe" to the play button would be the (or a) remaining step to having this work perfectly.
     
  13. SCO

    SCO Member

    Joined:
    Jan 2, 2011
    Messages:
    58
    Likes Received:
    0
    It does work if you use wine and windows mono version.

    These "universal language runtimes", mono, java; though i love them dearly can't port other external programs by themselves.

    If they think they are running in linux, why should they think you'd want to run a windows program (unless the programmer bolted it in).

    So although the mono version of TFE-X can be "fixed" to remove that requirement by detecting the operating system and calling "wine toee" if in linux (and complaining if wine not there), that loses the idea of a portable language (what about BSD eh? And what about "OS from the future mark XVIII that is not named windows but still runs windows programs" - would you like it complaining in that case? )

    Just use it to configure and run the executable outside of it with wine.

    Possibly there is some wizardry you can do with ubuntu to let the default app launcher for exe's be wine and maybe that would work too (dunno if it would in bash).
    Right click on toee.exe, open with tab, move wine up.

    OR call "wine TFX-E" from a console, if you installed mono for windows with wine

    (winetricks mono26 i think - on a console).
     
    Last edited: Jan 3, 2012
  14. Agetian

    Agetian Attorney General Administrator

    Joined:
    Aug 14, 2004
    Messages:
    2,526
    Likes Received:
    0
    UPDATE (21 FEB 2012): After a long (over a year?..) break in coding the project I'm finally uploading the updated version of TFE-X-linux that aims at fixing the common issue with inconsistent character case in file names. During the initial deployment, TFE-X-linux will now correct the cases of toee.exe, toee.cfg, and temple.dll, making them all consistently lowercase to avoid possible filename clashes and conflicts. The Co8 mod (as of v7.0.0) also uses consistently lowercase filenames, so there should not be an issue here anymore unless someone deliberately messes up file name cases after installing the Co8 mod (but why would one want to do that? ;)).

    I've read the problem with calling ToEE.exe to play the game but at least on my two Linux distros (Ubuntu 11.10 and Linux Mint 12) I can't reproduce the issue. The basic setup of Mono 2.6 and Wine (I'm using the latest version from the PPA) allows me to use the front-end fully (including launching the game), while changing the process call line to call "wine toee.exe" instead of just "toee.exe" makes TFE-X-linux crash for me. :\ I'm not sure what the issue here is, I'm still rather new to coding for Mono in Linux, so I'll keep investigating when I have time (unfortunately, I have a critical shortage of it these days...).

    P.S. Download link for the new version of the TFE-X-linux front end is in the first post. Before testing it, make sure you make a completely clean installation of ToEE and the Co8 modpack from scratch. This version alters the deployment procedure, so just tossing in the new executable into your old (and possibly messed-up, in case you have file names with different cases of characters already) installation will not do.

    - Agetian
     
  15. SOIMiMozO

    SOIMiMozO Member

    Joined:
    Jun 7, 2009
    Messages:
    3
    Likes Received:
    0
    Hello there.
    I am running Mint 13 and facing a problem mentioned some posts above.
    Executing TFE-X-Linux from WM brings an error, saying I should run it from ToEE root folder, or check if I have the Atari patch 2 installed.
    Running it through terminal with a
    Code:
    mono TFE-X-Linux
    does the job.
    Looks like simple doubleclick way just forces it to run at different location somehow.
     
Thread Status:
Not open for further replies.
Our Host!