• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mac OS [Tutorial] Tibia for Mac, a step by step guide.

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
This tutorial is designed for: Mac users who would like to play Tibia on Mac without the need to install performance poor software like Parallels Desktop, CrossOver or VMware Fusion and who do not want to install Windows on Boot Camp. Intermediate users who already have a basic experience with Terminal and for people who know how to follow a tutorial step by step.

Please note that this tutorial will only explain how to install official Tibia Client onto your Mac computer. I will not explain how to install any third-party software nor how to install private server's clients.

What's the magic solution?
In this tutorial we will see how to install http://www.winehq.org/ (software, not the drink), a free and open source compatibility layer which allows Windows applications to run on Unix-like systems.

Why Wine?


Nowadays, Windows and Mac are closer than they used to be. You can install Windows and Mac side by side and switch between them using Boot Camp, but that requires a system reboot every time so you can only use one operating system at a time.
You can also use an application like Parallels Desktop or VMware Fusion to virtualize Windows and run it together with Mac, but virtualization is slow and it takes up a lot of memory. (Your physical computer creates an imaginary "virtual" computer within itself, and runs Windows on that. It not only takes a lot of resources but also requires you to have a software license, which often costs some cash...

Wine is different. Instead of emulating a whole new operating system within your Mac, it simply puts itself between your operating system and the program you are trying to run (like a layer) and "translates" all requests sent by the program in "windows-language" to the one of OS X. That way the program never realizes that it is running on another operating system than Windows.
Plus, Wine is open source, which means people are continually improving it and adding new features and open source also means free!

Requirements:
In order to install wine on your Mac OS X your computer will have to meed certain requirements:

An Intel Mac: Unfortunately wine can't be installed on a PowerPC based model. It only works on Intel Macs. All new Macs use Intel processors. To see if your Mac has an Intel processor, go to the Apple logo on the far left of the toolbar, select About This Mac, and look at the Processor description. If it contains the word "Intel," then your computer is ready for Wine!
Access to an administrator account: On Mac you can not install software unless you are an administrator. You will need to be logged in as administrator in order to install Wine.
Apple Xcode: Xcode is Apple official software development environment which is provided on your Mac OS X install DVD but which is not installed by default, so before installing Wine, you will have to install Xcode. If you're running Snow Leopard (10.6), you'll need Xcode 3.2+. If you're running Leopard (10.5), you'll need Xcode 3.1. If you're running Tiger (10.4), you'll need Xcode 2.5.
X11: X11 is a software application which provides Graphical User Interface, it is installed by default on Snow Leopard and Leopard. If you are running Tiger, you can install X11 from your Tiger installation DVD using the "Optional Installs.mpkg" file.
An Internet Connection: If you are reading this then it's fine Smile
Time: About 1-2.5 hours, depending on your personal and computer speed.
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 1: Installing & Configuring MacPorts
The MacPorts Project -- Homeis a package manager that makes installing open source programs much easier. In particular, trying to install a large program like Wine without the help of a package manager would be tremendously difficult. Fortunately, MacPorts itself is simple to install.

Installing MacPorts

Before being able to work properly, MacPorts needs to be configured.
1.Open up Terminal (can be found in /Applications/Utilities), then copy and paste the following line in it and press enter.

2.On The MacPorts Project -- Home website, go to Download & Installation and select the operating system you are using: Snow Leopard, Leopard or Tiger. Download the file.
1.Double click the file you downloaded (to mount it) and run the .pkg file that you'll find inside it.

Configuring MacPorts
echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile

Terminal will ask you for your administrator password, type it in and press enter. (Note that Terminal won't show your password at all, not even an *, so just type it in and press enter)
If you ran the command correctly, Terminal should respond with:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/man:$MANPATH

2.Next, run the following command:
if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ; then echo "+universal" | sudo tee -a /opt/local/etc/macports/variants.conf; else echo "not 64bit capable"; fi

If you have a newer computer running Snow Leopard, the Terminal will respond with "+universal". If you have an older computer, the Terminal will respond with "not 64bit capable". Either way is fine, but MacPorts needs to know one way or the other, and that command should do fine.
3.Close and reopen Terminal window.
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 2: Installing Wine with MacPorts
Once you've installed MacPorts you can finally go and install Wine! To tell MacPorts that you want it to install Wine for you, all you have to do is enter this command:
sudo port install wine-devel

You may be asked for your administrator account password again. The Terminal will start displaying lots of information. This is absolutely normal — MacPorts is just keeping you updated on what is it doing. This flow of information will be your guide to let you know whether or not the computer is still working. It will take a while for the install to finish: at least half an hour. As long as the Terminal keeps on giving you more information about what it's doing, don't interrupt it. Feel free to leave and do something else while the computer is installing Wine. When the Terminal stops giving you more information and is ready for another command, Wine is installed and ready to go.

Note: If you get an error message at this step that reads error: C compiler cannot create executables or Failed to locate 'make' in path, it means you forgot to install Xcode.
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 3: Installing Tibia with Wine.
In order to install Tibia, you will have to download the client form Tibia - Free Massively Multiplayer Online Role-Playing Game - MMORPG. Put the file you've downloaded to a directory you want, I'd suggest "Downloads". Go to terminal and type the following command:

cd ~/DIRECTORY WHERE YOU PUT CLIENT INSTALL/

Example:
cd ~/Download/

Once you are in the correct directory, run the installer through Wine by running the following command in the Terminal:
wine Name_Of_The_Installed.exe

Example:
wine tibia86.exe

X11 will open (if it isn't already), and soon you will see a regular graphical Windows installer. Click through it, and you're done!
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 4: Running Tibia with Wine & Creating Shortcuts
Running Tibia:
Once Tibia installed, to run it you'll have to type the following in your Terminal:

cd ~/.wine/drive_c/Program\ Files/Tibia/

Followed by

wine Tibia.exe


X11 Will popup (if it isn't already running) and Tibia will run! Now you can enjoy running Tibia on Mac OS X freely and legally!


Creating Shortcuts:
While opening Terminal each time and posting enigmatic lines of code in it might appear a bit scary, do not despair, there is a way to simply that process.

In order to launch Tibia via the Dock, we're going to write an AppleScript that launches the program for us, and then put that AppleScript in the Dock. Essentially, we're writing a program ourselves! Don't worry, it's easy enough.

There is a program on your computer that is designed for helping you write AppleScripts: it's called "Script Editor" if you're on 10.4 or 10.5, or it's called "AppleScript Editor" if you're on 10.6. Whichever one you have is fine. It can be found in /Applications/Utilities.

Open up your Script Editor. You should see a window with a large area you can type in near the top: this is where you write your AppleScript. In that area, type the following text:

tell application "Terminal"
do script "cd ~/.wine/drive_c/Program\\ Files/Tibia/; wine Tibia.exe;"
end tell

Next, press the Compile button at the top of the window. The text should become colored to indicate that Script Editor understands what you wrote. You can also try pressing the Run button to run your script: it should open Tibia successfully.

Lastly, save your script. You can give it whatever name you'd like, but be sure to select File Format: Application in the save options, and leave Startup Screen unchecked.

Open up the Finder, go to where you saved your script, and drag that file to your Dock. It should stay there, just like a real application -- because it is a real application! However, all it does is run that launcher command for you, so you can move the application around, rename it, or even delete it, and it won't affect Tibia.

You can also make Tibia launcher even more "Tibiish" by adding true Tibia icon set to it, instead of the AppleScript scroll, to do so, download the attachment (check the last post) and extract the tibia.icns file from it, then go find your Tibia "launcher" and right click it, then press "Show package's content".
A new window will appear with a folder named: Contents. Open it. Some files and folders will appear. Go to Resources and paste tibia.icns in there and close everything.

Now you have your real "Tibiish" launcher. (Please note that it might take some time for icon change to happen, if you are impatient, then simply restart your computer.)
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 5: Updating Wine and MacPorts
Wine is an open source program. That means that programmers around the world are continually improving it, adding new features and squashing bugs. If you don't update Wine, though, it will never get those improvements, so it's generally a good idea to check for updates every so often. We can use MacPorts to keep Wine up to date: it's easy! Just run this command:
sudo port selfupdate && sudo port upgrade outdated

With this command, MacPorts will first update itself, if any updates are available. It will then find all the outdated software it knows about (including Wine) and upgrade them all to the latest version. Checking for updates isn't strictly necessary, as Wine runs quite well currently. However, it's a good idea to run this command every few months or so.
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Part 6: Uninstalling Wine and MacPorts
If you try Wine and you don't like it, uninstalling it is easy. Just run this command:
sudo port uninstall wine-devel
And MacPorts will helpfully remove Wine from your computer. However, in order to install Wine, MacPorts also had to install many other small programs that Wine relies upon to work correctly. (That's why the install process takes so long!) If you want to remove these as well, it's simplest to just delete your entire MacPorts installation with the following command:

sudo rm -rf /opt ~/.wine
That command should remove everything that you installed in this tutorial, including MacPorts, Wine, and all the other programs MacPorts installed to get Wine to work correctly.
So why would you ever use the first of those two commands, rather than the second? Well, MacPorts can install a lot more than just Wine. There are a whole bunch of nifty programs you can easily install using MacPorts. And just like Wine, every program available on MacPorts is free and open source. Even if you decide Wine isn't for you, MacPorts might have something else you might like.
 
OP
OP
Tykonzo

Tykonzo

New Member
Joined
Jan 27, 2012
Messages
84
Reaction score
2
Miscellaneous
Inspired by:
How to Install and Run Tibia on Linux Using Wine without Windows by CipSoft (Available at: http://download.tibia.com/wine.pdf )
Notes:
1. If you would like to save your maps, you'll have put them in:
~/.wine/drive_c/users/YOUR USERNAME/Application Data/Tibia/Automap
Note I strongly recommend NOT to save your config file there because depending on the graphic engine you are using, Tibia may crash. If you experience a problem with newly explored ares not being saved (or older maps not being updated), simply run following command:
sudo chmod -R 777 ~/.wine/
That should fix the permission issue and your Tibia client will again be able to save new map files to Application Data folder.
2.Tibia application icons:
TibiaRP Forums(Size: 8.08 KB / Downloads: 37)

Posting in this thread has been disabled for an easier maintenance of the tutorial. I will update it if I find any piece of information that might need any further explanation or if there are things that need to be updated. Discussion takes place in the neighboring thread.
 

ismechu

New Member
Joined
Jul 18, 2013
Messages
1
Reaction score
0
hi Tykonzo,
I have this error.
I you can help?


Last login: Thu Jul 18 22:36:44 on ttys000
/Users/macuser/Desktop/Tibia.desktop ; exit;
mac-users-MacBook:~ macuser$ /Users/macuser/Desktop/Tibia.desktop ; exit;
/Users/macuser/Desktop/Tibia.desktop: line 1: [Desktop: command not found
/Users/macuser/Desktop/Tibia.desktop: line 3: wine: command not found
/Users/macuser/Desktop/Tibia.desktop: line 6: Files/Tibia23: No such file or directory
logout

[Process completed]
 

Saforek

New Member
Joined
Jan 6, 2014
Messages
1
Reaction score
0
i got a bit problem when i type cd ~/.wine/drive_c/Program\ Files/Tibia/ is saying
iMac-Patryk-Sawczuk:~ Safor$ /.wine/drive_c/Program\ Files/Tibia/
-bash: /.wine/drive_c/Program Files/Tibia/: No such file or directory
and im traying put there anything and all the time tthe same what im doing wrong can someone tell me please .and before when i didi this
iMac-Patryk-Sawczuk:~ Safor$ wine tibia1031.exe
wine: created the configuration directory '/Users/Safor/.wine'
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0xedf530, overlapped 0xedf53c): stub
wine: configuration in '/Users/Safor/.wine' has been updated.
wine: cannot find L"C:\\windows\\system32\\tibia1031.exe"
iMac-Patryk-Sawczuk:~ Safor$ Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!and after this the regular graphical Windows installer was open and i install and then i can go with this what i say on top .
 
Top