PDA

View Full Version : EB on RTW for mac



amdonati
05-01-2010, 15:16
Hi all,

I am happily still playing Europa Barbarorum on my MacBook Pro in a Boot camp partition, which still exists almost only for RTW (that does not seem to like parallels).

I was wondering if it would be possible to install EB in the RTW version for mac that was just released or, as I suppose the installer will not work, is there a walkthrough on what must be done to bring EB in the MAC version of the game.

It would be great if I could stop switching and could play EB directly in OSX!

Many thanks in advance for any help!

amdonati

Tellos Athenaios
05-01-2010, 16:51
If you have your bootcamp partition set up and accessible from within Mac OS X, I gather that some smart copying of files should do the trick. You may want to start small, though: first try to install the Multi Mod Sampler (google it) which is a project to include a tiny piece of a multiple modes (samples) and present them as a mod of its own. (Demo!) The reason why I suggest it is that it is faaar smaller in size but similar in layout to EB (it also used the -mod switch for launching the mod), so it is suitable for quick experiments.

amdonati
05-04-2010, 23:45
Thank you for the feedback.
Yes I do have the Boot Camp partition with the windows version of EB.
But aren't in EB any executables that could not work on the mac?
I do not know the internal logic of the mod and would like be sure that there is a reasonable possibility of success before buying the game again.
MMS seems a win executable as well

Amdonati

Tellos Athenaios
05-05-2010, 01:23
The mod itself is purely a set of files, no executables. The file you download, however is a Windows installer which *is* an executable (usually some variation on a self-extracting archive). So unless you have a program capable of opening and extracting the EB mod files from the installer, your best bet is to *install* EB on the bootcamp partition using Windows; and *copy* the files to your Mac version of RTW. You will need to manually create the necessary shortcuts/launchers or whatever the Mac clone is.

Apart from the mod itself the installer bundles a few other items:
The EB validation tool is written in Java, so if you have the appropriate Java runtime (a Java 1.6. should do) installed on the Mac that works, too.
The recruitment viewer and trivial script won't work; but you can work around the latter issue using shell scripts.

Skullheadhq
05-05-2010, 13:08
using Windows;

Why would he want to play it on the MAC OS X when he has Windows to play it on? Also, do you have "Crossover Games" (http://www.codeweavers.com/products/cxgames/)?

Tellos Athenaios
05-05-2010, 18:35
@skullheadhq:
Read post #1:

It would be great if I could stop switching and could play EB directly in OSX!

And why bother with Crossover when you can have a native version of RTW on the Mac these days?

WinsingtonIII
05-05-2010, 18:39
Why would he want to play it on the MAC OS X when he has Windows to play it on? Also, do you have "Crossover Games" (http://www.codeweavers.com/products/cxgames/)?

Because then you need to keep a partition on your harddrive and reboot every time you want to play. If the only reason you have a windows partition is for EB, I can understand wanting to remove that partition if you are now able to play EB on OSX.

Ludens
05-05-2010, 18:41
Moved this to the tech help forum.

Skullheadhq
05-06-2010, 09:06
Can't you just run a virtual machine and play it that way?

amdonati
05-07-2010, 18:04
This was my first try but unfortunately RTW in Parallels 5 on a Macbook pro with a Core2 Duo 2.4 and nvidia 9400m is absolutely unplayable for its slowness even in the strategic map.
The funny thing is that on the same setup I can play Oblivion!
:-(

Skullheadhq
05-08-2010, 10:25
Same here, 3.0 ghz quadcore and NVIDIA 250 and able to play Crysis, but not EB sadly.

amdonati
05-08-2010, 17:47
Today I have tried to install the mod.
Have made the romedata archive R/W and have copied all the files in eb\data in the data folder, overwriting the original ones.

Interestingly the data folder's dimension moves from 4,6 GB to 2,51 GB and the files number from ca 6000 to 27000

But unfrotunately the game crashes immediately after the introductory video.
Did I forget to copy or adapt something?

Skullheadhq
05-09-2010, 16:30
Interestingly the data folder's dimension moves from 4,6 GB to 2,51 GB


That happens when you .rar it, yes.



Did I forget to copy or adapt something?

I believe you forgot the EDU backup and the preferences and it crashes while trying to loading it.

amdonati
05-10-2010, 22:06
Still no luck.
Eb crashes even before arriving to the introductory FMV!
I have done the following:
1) Overwritten the data folder with the content of:
* EB/data folder
*EB/Lighting/Recommended
*EB/Modesty/Default
*EB/mp game edu backup
2) Copied EB/preferencies in the prefernices folder under library

I could not copy the content of the presets folder as I cannot recognize where the it should go.

I have also noticed that the 2 Eb intro videos (EB logo and Placeholder_intro) are in a wmv format that I cannot see in my mac.
Could this be the reason?
Would it be possible to have the 2 files in mov?
And where should I put the presets files?

Skullheadhq
05-12-2010, 18:08
I would delete everything (just throw TCA map away) and reinstall RTW and EB from scratch. Could you say what happens then?

amdonati
05-13-2010, 10:13
The process mentioned before was done on a fresh install.
The only other think I could post is the error report, but from what I could see there is not much info on where or on what file the crash happened

Skullheadhq
05-14-2010, 12:59
Are you doing this on Rome.exe or BI.exe?

vartan
05-14-2010, 17:34
Sand you're missing a major key component here: the guy is playing on a MAC! for Pete's sake. Do you have the option of disabling intro vids? Someone tell the guy how to set his launch options with the analogue of the "-nm" option. Those WMV's can be deadly.

amdonati
05-14-2010, 18:37
I could not find how to disable the videos but this was an idea I also had.
If someone can help me out here I am happy to try it out

vartan
05-14-2010, 19:13
http://www.feralinteractive.com/?section=buy&game=rometw

I would buy the game for the Macintosh. Buying from the developer costs you no shipping (as long as you're in the US, AFAIK). Buying from other locations (see Google shopping results) will cost you some for shipping. Then, copying over the EB files (overwriting the Rome files) should allow you to launch EB by launching using the Rome launcher. I say this because I don't know how you can keep EB mod-foldered in a Mac and still play it (i.e. how do you set launch options?).

Tellos Athenaios
05-14-2010, 19:16
Add the "-nm" switch (without quotes) to the commandline.

You'd probably put it in a shell script like this:


program="command-to-launch-RTW";
$program -nm;


Or more directly:


command-to-launch-RTW -nm


Where "command-to-launch-RTW" is usually the program (e.g. /usr/local/bin/rome-tw if the thing was ever ported to Linux)

OneoftheLost
05-14-2010, 22:26
Hello all. I'm er... new. One of the EB members on the TWC forums directed me to this thread in reference to my own Mac RTW:G troubles. For the video, when any mac user tries to run RTW, a little popup window will show up, with multiple tabs. Under 'Advanced' check the checkbox next to 'advanced options' and then put -nm to disable the intro movie to the game. Which coincidentally gets you to the main menu ALOT faster then simply cancelling out of the silly video.

Here's MY issue with EB. I'll list the steps below.

1. Installed RTW:G on my Mac.
2. Downloaded EB 1.1
3. Copy the RTW data file, and then, using DiskUtility, I made it 'read-write'
4. Backing up the old files, I put the new Rome Total War Data, in the folder.
5. Opening Rome Total War Data, I then moved everything over from EB. Notice, that on Macs, replace all REALLY does replace all. You have to manually move the files over, or the old folders get deleted, as opposed to Window's merging system. (then again, its been a while since I used Windows...)
6.Now, I wasn't sure what the hell to do with the EB Trivial script, so that went into the Rome Total War folder. While all of the data stuff went into data.
7. put the -nm in the advanced options.

Here is the result. When I start the game it goes to the EB Splash screen. Unfortunately no matter what I press, or how long I wait, it simply hangs there. Pressing enter/return will crash the game to desktop.

That's as far as I can get the game to go on a fresh install. Also, something to note, Mac's can't use .exe files. The Rome Total War.exe is actually RTW.app. While the whole rome total war folder is wrapped into a shell file, or .dmg.

Any help would be greatly appreciated!

vartan
05-15-2010, 00:32
You guys are installing RTW using the MAC version, right? otherwise would be silly. You need a MAC game to mod to play EB.

OneoftheLost
05-15-2010, 00:50
Uhm.. I didn't know you could install using the regular version of RTW, hence the mac release.

For clarification, I am using MAC Rome Total War. Released by Feral Games.

Hope that helps!

vartan
05-15-2010, 02:59
Uhm.. I didn't know you could install using the regular version of RTW, hence the mac release.

For clarification, I am using MAC Rome Total War. Released by Feral Games.

Hope that helps!
So have you tried what Tellos suggested? You have MAC Rome. You have copied over the EB 1.1 + 1.2 installation files into ROME. And you have run the script with -nm and -mod:eb. Try it eh?

OneoftheLost
05-15-2010, 03:26
I didn't apply the 1.2 patch because I didn't think it would work if 1.1 didn't. However, I just applied it, and added -mod:eb to the -nm. Same resultes, I simply can't get past the first splash screen. Any other ideas? Also, everything outside of the data folder should go into the rome total war folder itself right? Nowhere special?

Any other suggestions?

Wait, stop. Run the script? You mean the EB Trivial Script? It's an .exe file, and I can't run it. Should I move the entire installation to a window's comp, and run the script? I didn't actually install the game on a windows computer, I simply installed the mod onto a flashdrive from a windows computer and then moved it over.

*EDIT* Nm, that was me jumping at straws. I just read up on the script. Even looked through the validation faq thingie. Still no dice.

vartan
05-15-2010, 06:08
EB is in a mod folder of its own. One of those folders alone is the 'data' folder. You want the entire EB folder moved into the RTW installation directory. -mod:eb will access that EB folder content as opposed to the default RTW files.

WinsingtonIII
05-15-2010, 06:36
I would really suggest just using bootcamp to install win xp and run windows RTW and EB off of that. I can assure you that this works on my macbook pro. Plus, then you can play others windows games that haven't been released for mac. Also, the price reduction in old windows games in comparison to mac versions of old games (mac RTW gold is $28 as opposed to windows RTW gold, which is $13) means that you make up the expense paid buying windows xp fairly quickly.

However, since you already have mac RTW, I guess you already made the investment, so I wish you luck but I cannot really help you with that issue.

OneoftheLost
05-15-2010, 07:02
Man. All these threads, and a whole lot of pain. Feels kind of anti-climactic that the solution is BRUTALLY simple. You sir, nailed it on the head for me! I am now, happily playing EB. Having never played it before, I checked the main menu, and found the single player campaign started just fine. Then, I went to historical battles... and nothing showed up? Is that normal? Does EB not have any historical battles? Aside from this, I tried a simple battle involving 1 unit of Spartans vs 1 unit of Something Cohort, and a Gallic swordsmen merc unit. The spartans got destroyed. I noticed they didn't have a phalanx formation... anyway. Umm. My only other question is that, when choosing units for custom battles, the Romani only show mercanaries. For me to fight a cohort, I let the computer choose, because I didn't see anything.

Sorry if that's a little long-winded. I'm ecstatic that I finally got EB working! After everyone said it couldn't be done on the mod version. >.< I might even put up a guide or something. Thanks for all your help man!

*EDIT* That was directed at Vartan. The solution was for me to LEAVE THE DAMN EB folder alone. :P I thought I had to pull everything out of the EB folder, and overwrite the RTW's folder. Hence all my issues! I think all of the threads about people not getting mods on the mac, made me overlook the simple stuff. Now I gotta install the 1.2 patch. :)

vartan
05-15-2010, 20:43
OneoftheLost, I'm not sure if this is written in the FAQ, but there are two EDUs for EB. An EDU is simply a text file that lists all the units for the game. The reason EB has two EDUs is that there is a Single Player EDU (for when playing the campaigns), and a Multiplayer EDU, for when playing custom battles, historical battles, or online battles. In Windows, we simply use the Trivial Script software to automatically switch EDUs for us. On a Mac, or a Windows without Trivial Script installed, one must manually switch out the EDUs. I hope someone can explain where the directories exactly are, but essentially, you have the current EDU, the SP (single player) EDU backup file, and the MP (multiplayer) EDU backup file. You want to copy the backup file over the current one, not MOVE it (you always want a backup). Good luck...

OneoftheLost
05-15-2010, 23:06
Oh. Ok. That explains it. Ive been having sound problems as well, but I'm not entirely sure if that's a 'feature' of EB or not. Every few seconds the menu music cuts out. Also, when in battle, the soldiers don't make any sounds for commands. Like they don't shout "Halt" and whatnot. This was in a custom battle, is that due to me not having the proper EDU activated? They also don't announce verbally when the enemy general goes down, or is that a 'feature?'

vartan
05-15-2010, 23:15
That's weird. Need a sound expert for that. IDK the sound file types. They are just referenced in the txt files. Like, certain things cause certain sounds. Mind you, not all units make sounds...good luck. This is all my knowledge.

XSamatan
05-15-2010, 23:21
Seems this is a more popular problem on mac...http://www.twcenter.net/forums/showthread.php?t=358286

OneoftheLost
05-15-2010, 23:41
Err.. no. Not more common, that's me. I figured two communities. More chance of answers? :P

XSamatan
05-17-2010, 17:52
Yeh, you're right...;)

Are the files playing outside EB?

XSamatan

amdonati
05-17-2010, 20:42
This is really great news!
I am very happy to hear that it is possible to play EB on the mac, but I still did not manage to start it :-(

What I did was:
1) copied my EB folder from the windows partition in RomeData.dmg, where I have now 3 folders: BI, data and eb
2) started the game entering in the advanced options field: -mod:eb -nm

Unfortunately the game crashes after a few seconds, while showing the standard RTW by Feral background.
Am I missing something?
Should I put somewhere the config files that are in the main RTW folder in windows (eBChecklist.txt, ebconfig.dat, ebconfig.xml, ebignoreList.txt)?
Should the content of the Lighting, Modesty, presets and sp game edu backup be put somewhere?

Tellos Athenaios
05-20-2010, 00:57
You do not need to touch ebconfig files. EBChecklist.txt or ebChecklist.txt or whatever it is called is a list of MD5 sums which is used by the eb validation program which you can use to check for errors (if you have Java installed, that is).

The sp edu game backup / mp edu game backup folders are used by the trivial script to switch between single and multiplayer versions of EB on the fly (simply by overwriting a few files in the main EB file tree). Trivial script probably doesn't work on the Mac but fortunately a few shell scripts can probably accomplish similar behaviour:



#!/bin/sh
# config values: edit as required
Base="/path/where/EB/is/installed";
MOD="EB"; # should be relative path from $RTW to $Base/EB
RTW="/path/to/RTW";

# sub routine for copying files
file_copy() {
cp "$Base/$1 game edu backup/map.rwm" "$Base/EB/Data/world/maps/base/map.rwm"
cp "$Base/$1 game edu backup/export_descr_unit.txt" "$Base/EB/Data/export_descr_unit.txt"
cp "$Base/$1 game edu backup/Rome.lnt" "$Base/EB/Data/menu/Rome.lnt"
}

# subroutine for displaying help text:
eb_help () {
echo "This program acts as a single/multi player modeswitcher for EB on the MAC

Usage: $0 [-sp|--single-player|-mp|--multi-player|-h|--help]

-sp|--single-player : run EB in single player mode
-mp|--multi-player : run EB in multi player mode
-h|--help : show this \"help\" screen
";
}

# determine which mode we are in: sp or mp
case "$1" in
-sp|--single-player)
file_copy "sp";
;;
-mp|--multi-player)
file_copy "mp";
;;
-h|--help)
eb_help;
exit 0;
;;
*)
echo "Error: \"$1\" is not a valid mode flag!";
eb_help;
exit 2;
;;
esac;;

# pop first argument off the argument list
shift 1;
# run RTW with the remaining arguments
cd $Base; # or try: cd "`dirname $RTW`" if it doesn't work?
$RTW -mod:$MOD "$@";


EDIT: I don't have Mac OS X, and don't have RTW running on a Mac either. So I can't really vouch for the correctness of the script, and you probably have to do some bugfixing on it if I got it wrong.

What it does is fairly straightforward however: Assuming this script is called eb (e.g. ~/eb) and is executable you might run it from a terminal window as follows:


~/eb -sp -show_err -nm

The script consumes the first argument -sp and determines that this refers to running EB in single player mode. It copies the single player backup files to the main EB file tree, and it then proceeds to run RTW with the required -mod switch and the remainder arguments ("-show_err" and "-nm" respectively).

Now the tricky bit in the script is that there might be 3 different ways in how the game must be run. It depends on “the current working directory” or $PWD for short.
(1) One might be that RTW must be run from wherever RTW resides. The mod switch (contents of the MOD variable) would then be the relative path to the main EB file tree. The cd command before running RTW changed the current working directory to the $Base directory, but this would be wrong. It would have to be "`dirname $RTW`" or similar instead.
(2) Another might be that RTW doesn't really care from where it is run (it knows its own location so it can load the core files regardless), as long as that working directory and -mod switch together give a working mod or alternatively the RTW base directory itself. In that case cd $Base is the right thing to do.
(3) A third might be that RTW doesn't really care from where it is run; but that it requires the -mod switch to be a valid relative path from the current working directory to the mod ... in that case cd $Base makes sense because in theory the working directory could be anything prior to that cd command (so it is a matter of pick and choose).

It is however quite clear that on Windows the -mod switch is simply a relative path to a directory. (So you can, in fact, install EB outside of the RTW directory; but you need to know what you are doing in order to make it work.) So I assume that on Mac OS X it is much the same; which means that the default -mod:eb switch was never going to work anyway because EB is installed in a directory called EB. And Mac OS X, unlike Windows uses case sensitive filenames by default. (Windows doesn't, although NTFS does make this distinction...)

EDIT 2: It may be worth contacting Feral for some customer support regarding this issue (it's a simple enough question and it can't hurt to try). Possibly show them this script/thread to help clarify your question.

amdonati
05-20-2010, 21:01
Tellos, thank you for the detailed explanation. I could use your script to know where exactly to copy the files in the sp_EDU folder.
I would like to see EB running before moving on using the script to select the various options...

after copying the files, I left only the data folder in eb and started the game with -mod:eb

Unfortunately the game stops immediately but I could notice 2 things:
* The startup process recognized the eb folder, as it created there the preferences folder
* The game stops after the first background image but without apparently crashing, as the usual windows that appears when a mac program crashes does not pop up.

I do not know how to debug this issue; is the -show_err a standard RTW command? Where does it saves its log?

Tellos Athenaios
05-20-2010, 21:06
RTW on Windows doesn't save logs. -show_err is used to make the game pop up error messages if it encounters certain types of errors. It's not reliable, though; but still the best thing we have for debugging problems. The problem on your end may be that RTW chokes at the intro movies; in which case running with -nm will bypass those (among others) and may therefore fix your problem.

amdonati
05-30-2010, 18:12
Unfortunately even though I start the game with -nm as well, it comes back to the desktop immediately after the first game bitmap.
I receive no error message or nothing, I am just out of the game.
I am really lost now, because it should work but I cannot and do not know how to debug it :-(

Tellos Athenaios
05-30-2010, 20:21
There's a few things we can try: RTW might be writing to STDOUT or STDERR streams, if so, we can probably redirect those streams to output files:

The general pattern is:


# save begin statement to /path/to/file
echo "begin at: `date`" > /path/to/file
# run rtw redirect STDERR to STDOUT and append STDOUT to /path/to/file
rtw-command -show_err -mod:eb -nm 2>& 1>>/path/to/file
# append a line with exit code once RTW has crashed
echo "exit code is: $?" >> /path/to/file


Collect the contents of /path/to/file and post them; it may help to debug your problems. Further: have you contacted Feral customer support (forums?) yet? You might want to ask them about commandline switches, collecting diagnostic information etc. etc.

amdonati
06-02-2010, 23:05
Unfortunately it seems that Feral cannot help with switches et al, as they do not officially support mods. Here is their answer:

"Unfortunately I cannot offer any advice as we do not support mods for any of our games. The best place to find out about how to apply modifications is via forums dedicated to the game, although we can accept no responsibility if anything goes wrong with your machine or game installation after modifying the code."

I also tried the above script, but the output is a simple "exit code is: 0"

:-(

vartan
06-02-2010, 23:27
Unfortunately it seems that Feral cannot help with switches et al, as they do not officially support mods. Here is their answer:

"Unfortunately I cannot offer any advice as we do not support mods for any of our games. The best place to find out about how to apply modifications is via forums dedicated to the game, although we can accept no responsibility if anything goes wrong with your machine or game installation after modifying the code."

I also tried the above script, but the output is a simple "exit code is: 0"

:-(
Dastards. Those cowards are fearful of liability claims. No wonder they won't cooperate...

Tellos Athenaios
06-03-2010, 01:08
Unfortunately it seems that Feral cannot help with switches et al, as they do not officially support mods. Here is their answer:

"Unfortunately I cannot offer any advice as we do not support mods for any of our games. The best place to find out about how to apply modifications is via forums dedicated to the game, although we can accept no responsibility if anything goes wrong with your machine or game installation after modifying the code."

I also tried the above script, but the output is a simple "exit code is: 0"

:-(
As to your first disappointment: I'd try again. Explain that what you want to know is what commandline parameters are supported, explain that RTW on Windows supports numerous commandline switches and ask for clarification if this behaviour was preserved in the port to Mac OSX: http://rtw.heavengames.com/rtw/mods/tutorials/command_line/index.shtml
You do not need explicit support for getting a mod to work, you need to know how (if) you can manipulate the way Rome runs on the Mac.

As to the second piece of information, if you are up for it we can try to troubleshoot your problems still further. It requires that you are able to work with a terminal emulator (commandline prompt), though, and if you want more concrete help examples from me I'll have to know a thing or two about how RTW and EB are installed on your machine. For starters:

The full path to RTW (the executable) e.g.: /path/to/Rome/RTW.exe
The full path to EB (the directory) e.g.: /path/to/Rome/EB/
What is the shell environment you use? E.g.: bash.
Do you have Java 1.6 installed? What is the output of "java -version" ?
What is your home directory (the default directory under which files associated with your user/account are stored)? E.g.: /home/myname/

amdonati
06-03-2010, 19:28
Thank you for all the feedback, Now it is a persona battle with the Game! :-)

I have asked Feral for the accepted switches, let's see.
Using the terminal is not an issue, being an ex linux user (although I almost forgot everything, damn GUI! :-) )

Here are the answers:

1) Full path to the executable (which start a started menu though, not the actual game): /Applications/Rome\ Total\ War/Rome\ Total\ War.app/Contents/MacOS/Rome\ Total\ War
2) /Volumes/RomeData/eb
3) I have BASH 3.2
4) Java is installed, version is: 1.6.0_20
5) /Users/amdonati/

Ready to go!

Tellos Athenaios
06-04-2010, 02:10
First up is a simple test: can we run mods through the -mod switch. Because EB is an unwieldy collossus of a mod, we will use the MMS (Multi Mod Sampler) as a test case: it is small, it uses the -mod switch, and it was put together by people who know what they were doing --so it is unlikely to die on you just becaus of sloppy coding. In short: problems we will encounter will be of our own making.

I've installed the MMS using Wine (note: on this Linux machine I do not have RTW installed, and in any case it would not compare to your Mac version anyway because it'd be a Windows executable: a completely different creature altogether). You can download the MMS installer from here https://forums.totalwar.org/vb/showthread.php?96861-Multi-Mod-Sampler-(MMS)-launched. Alternatively I can provide you with a tarball of the contents. If you choose to use the installer, do that similarly to this:


installdir="$HOME/mms"; # choose non-existing directory to install MMS
mkdir -p installdir; # make the directory for MMS
cd "/path/to/folder/with/downloaded/installer";
chmod u+x mms_v1-1.exe; # make MMS installer executable so you can run it
wine mms_v1-1.exe; # install MMS to $installdir: be sure to select this in the installer

You may need to check with winecfg how the file paths work out for the installer for it maintains a Windows-like logic to your Mac filesystem layout...

Next I've got a script which you can use to generate & install a script for running MMS on your Mac.
It takes care of the tedium of working out the correct value for your mod switch parameter and writing the wrapper script to $HOME/bin/$script so when you next log on you can run the mod as
$script. All you need to do is edit script, rtwPath, and modPath parameter. The first is the name of the script you want to generate (I suggest you use: "rtw-mms"). The second should be the exact place of the executable (use find, finder, ls, whatever to find it). The third is the path to your MMS directory as created by the installer; in that directory there should be a data directory as well as readme files etc.: contents of the mod.


#!/bin/sh

script="rtw-mms"; # name of script to generate and install
rtwPath="/opt/bin/test.exe"; # path of RTW executable
modPath="$HOME/mms/mms"; # where you installed/extracted mms

# installs a script in ~/bin, creating the directory if it doesn't exist yet.
install_script () {
if [ -f "$HOME/bin/$1" ] ;
then
# error: we don't want to overwrite already existing files
echo "Script already present: ~/bin/$1";
echo "Edit: '$0' to use a different script value.";
exit 1;
elif [ -d "$HOME/bin" ] ;
then
# generate script and make it executable
run_script > "$HOME/bin/$1";
chmod u+x "$HOME/bin/$1";
echo "Installed a script to run the mod at: '$HOME/bin/$1'";
echo "Typically this means you can simply run '$1' to run the mod.";
echo "If not: edit your '$HOME/.profile' or '$HOME/.bashrc' file to include: ";
echo '$PATH="$HOME/bin:$PATH"';
exit 0;
else
# recursive case: create directory, then try again
echo "Creating directory: '$HOME/bin'";
mkdir "$HOME/bin";
# no point continuing if unable to create the directory
if [ $? == 0 ];
then
echo "You will need to logout and log back in before you can run the mod with: '$1'.";
install_link "$1";
fi;
exit $?;
fi;
}

# finds relative path from <rtw> to <mod>
rel_path() {
cpath="`pwd`";
rpath=".";
cd "$1";
while [ "`pwd`" != "/" ];
do
rpath="$rpath/..";
cd ..;
done;
cd "$cpath";
echo "$rpath$2";
}

# echos a script suitable for running the mod
run_script () {
# get directory in which rtw resides
prog="`dirname $rtwPath`";
# get relative path from rtw directory to mod
modRPath="`rel_path $prog $modPath`";
# declare interpreter
echo '#!/bin/sh';
# this mimicks windows .lnk behaviour: cd line is akin to Start In
echo "cd \"$prog\";";
# template line to execute the rtw command with mod switch
echo "\"$rtwPath\" \"-mod:$modRPath\" -show_err -nm;";
# return exit code in generated script
echo 'exit $?;';
}

install_script "$script";
exit $?;


You can install the above script invoke it like "sh installer_script" (if you called it installer_script) and then examine its output. This should be in "$HOME/bin/$script" where "$script" is the name of the script you choose earlier (for instance: rtw-mms). If that looks ok, you can attempt to run it using its full path name "$HOME/bin/$script", so continuing the example: "$HOME/bin/rtw-mms".

amdonati
06-06-2010, 13:24
It is working!

I installed the mod under windows in boot camp, where I still have my RTW game and then copied the mms folder in the RTW for mac folder.
I then started the RTW starting shell and entered, in the advanced options: -mod:mms -show_err -nm

The mod started correctly and I could start the Romans vs Carthaginians battle.

So mods can run without much issues, now what is happening to EB?
Unfortunately I cannot find any error log, so I do not know How to debug

Amdonati

Tellos Athenaios
06-06-2010, 18:18
A few questions:
(a) You installed MMS where exactly?
(b) You previously used what -mod parameter to run EB? A correct value *should* be the relative path to "/Volumes/RomeData/eb" from the RTW for mac folder.

amdonati
06-06-2010, 20:25
MMS was copied in /Volumes/RomeData/ where also the standard data folder is.

I tried to start RTW with : mod:-mod:/Volumes/RomeData/eb

Curiously RTW started but in the normal way, the mod was not loaded

Tellos Athenaios
06-06-2010, 21:14
Now I'm confused. Going back over the previous posts the following things are worth double-checking:
http://dougbarned.co.uk/blog/tutorials/converting-dmgs-to-rw/ (via this link: http://www.twcenter.net/forums/showthread.php?t=358286 )
And:

Still no luck.
Eb crashes even before arriving to the introductory FMV!
I have done the following:
1) Overwritten the data folder with the content of:
* EB/data folder
*EB/Lighting/Recommended
*EB/Modesty/Default
*EB/mp game edu backup
2) Copied EB/preferencies in the prefernices folder under library

I could not copy the content of the presets folder as I cannot recognize where the it should go.

I have also noticed that the 2 Eb intro videos (EB logo and Placeholder_intro) are in a wmv format that I cannot see in my mac.
Could this be the reason?
Would it be possible to have the 2 files in mov?
And where should I put the presets files?

Did you revert these modifications? If not I would suggest you wipe RTW for the Mac from your harddisk and start from scratch:
-Install RTW.
-Make the .dmg file read writable
-Copy the EB folder (the folder into the <RTW folder> so that you have a vanilla <RTW>\data and next to it a <RTW>\EB)
-Run with -mod:EB
??

Tellos Athenaios
06-07-2010, 22:51
Also I don't know whether it'll help (but it can't hurt to try) did you enable the RomeShell?
http://forums.macrumors.com/showthread.php?t=923756

amdonati
06-08-2010, 19:46
Nothing.
I tried to delete the whole RTW directory and preferences and reinstalled it.
Then I made the romedata folder RW and copied the MMS and EB folders in it directly from the windows partition where they work correctly.

MMS starts correctly, EB not.
If I start EB with -mod:EB it exists immediately, if i start it with the full path of the EB folder, the standard game is started and not the mod.

Rome shell is active

amdonati
06-29-2010, 00:01
It works!
I did manage to start EB on my RTW for MAC!
This is what I did:
1) Copied the EB folder with a fresh install of EB 1.2 from the windows partition to RomaData
2) Tried to start the game with the usual -nm -mod:eb and the "active RomeShell" flag flagged. No success, the game exits immediately as usual
3) Changed some parameters in the startup window (Set language to English instead of Automatic and flagged the "unlock all factions" flag)
4) The start windows closed and restarted with the new parameters saved
5) Tried to start EB and this time it started correctly!
From now on, even if i start the game with the usual parameters ( -nm -mod:eb and the "active RomeShell" flag flagged only, the rest back to default) EB starts correctly.

I am not sure why, as my first try with the newly copied folder did not work.
I can only imagine that when I changed the parameters and the start windows closed, it saved the new configuration to a file in the EB folder and this allows now the game to start.
So I tried to delete the preferences folder in EB and when started, the game crashed immediately.
I had to redo the process above (change the start window settings, leave it restart etc) in order for EB to start again, simply copying back the preferences folder or copying the default preferences from RTW did not work for me.

What do does not work yet:
a) Savegames from the windows version cannot be loaded in the MAC game
b) EB historical battles are, for some reasons, not seen in the Mac version. I can live with this but it is quite annoying as there are some nice battles.

But anyway, now I can play EB on the mac and can trash my old Bootcamp partition!
Thank you to everyone for the help and I hope this thread can help others trying to start the mods on the RTW for mac

Amdonati

vartan
06-29-2010, 02:28
I wonder if an EB player on the Mac OS X version of RTW can play with an EB player on a Windows system online.

amdonati
06-29-2010, 18:03
Interesting question, but I cannot help out here, I never played online even on the Win version...