VCMI for macOS

Hi there, I am H3 fans new to this project. I checked out the 0.93 version and downloaded the xcode-pack.zip. But failed to build it. There are several problems:

a) cmake failed to find Sparkle.h either in CMAKE_OSX_SYSROOT or the xcode-pack archive. Well I workaround this by linking a Sparkle.h file from the Framework folder.

b) I think there is a bug in client/CMT.h, line 213: the localPath() function doesn’t exist in the VCMIDir class. But I don’t know which function to replace it.

Looking for your help! :smiley:

  1. I’ve removed localPath recently. Replace it with userDataPath, I’ll commit fix to svn tomorrow.

Yeah now it’s fine. Thank you!

Here is the log. I didn’t install Disk 2, could that be my problem?

22:43:33 INFO global [0x7fff7a792180] - Creating console 1
22:43:33 INFO global [0x7fff7a792180] - Initialization: 1
22:43:33 INFO global [0x7fff7a792180] - Data loading: 1
22:43:33 INFO global [0x7fff7a792180] - Mod handler: 0
22:43:33 INFO global [0x7fff7a792180] - Mod filesystems: 86
22:43:33 INFO global [0x7fff7a792180] - Basic initialization: 89
22:43:33 WARN global [0x7fff7a792180] - File CONFIG/SETTINGS is not a valid JSON file!
22:43:33 WARN global [0x7fff7a792180] - At line 1, position 0 error: Unexpected end of file!

22:43:33 INFO global [0x7fff7a792180] - Initialized logging system based on settings successfully.
22:43:33 ERROR global [0x7fff7a792180] - Error: campaign movies was not found!
22:43:33 ERROR global [0x7fff7a792180] - Error: campaign music was not found!
22:43:33 INFO global [0x7fff7a792180] - Loading settings: 91
22:43:33 INFO global [0x7fff7a792180] - VCMI 0.93 (client)
22:43:33 INFO global [0x7fff7a792180] - New screen flags: 0
22:43:33 INFO global [0x7fff7a792180] - Initializing screen: 25
22:43:33 INFO global [0x7fff7a792180] - Initializing video: 0
22:43:33 ERROR global [0x7fff7a792180] - Error: video VIDEO/3DOLOGO was not found
22:43:33 INFO global [0x10f9a5000] - Initializing minors: 0
22:43:33 INFO global [0x10f9a5000] - Initializing sound: 53
22:43:33 INFO global [0x10f9a5000] - Initializing screen and sound handling: 53
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ADDITIONAL_ATTACK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ADDITIONAL_RETALIATION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type AIR_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ATTACKS_ALL_ADJACENT
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type BLOCKS_RETALIATION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type CATAPULT
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type CHANGES_SPELL_COST_FOR_ALLY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type CHANGES_SPELL_COST_FOR_ENEMY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type CHARGE_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DAEMON_SUMMONING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DARKNESS
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DEATH_STARE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DEFENSIVE_STANCE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DIRECT_DAMAGE_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DOUBLE_DAMAGE_CHANCE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type DRAGON_NATURE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type EARTH_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ENCHANTED
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ENCHANTER
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type ENEMY_DEFENCE_REDUCTION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FEAR
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FEARLESS
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FIRE_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FIRE_SHIELD
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FLYING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FREE_SHOOTING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type FULL_HP_REGENERATION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type HATE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type HEALER
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type HP_REGENERATION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type JOUSTING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type KING1
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type KING2
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type KING3
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type LEVEL_SPELL_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type LIFE_DRAIN
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type MAGIC_MIRROR
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type MAGIC_RESISTANCE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type MANA_CHANNELING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type MANA_DRAIN
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type MIND_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type NON_LIVING
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type NO_DISTANCE_PENALTY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type NO_MELEE_PENALTY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type NO_MORALE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type NO_WALL_PENALTY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type RANDOM_SPELLCASTER
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type REBIRTH
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type RECEPTIVE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type RETURN_AFTER_STRIKE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SECONDARY_SKILL_PREMY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SELF_LUCK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SELF_MORALE
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SHOOTER
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELLCASTER
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_AFTER_ATTACK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_BEFORE_ATTACK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_DAMAGE_REDUCTION
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_IMMUNITY
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_LIKE_ATTACK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type SPELL_RESISTANCE_AURA
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type THREE_HEADED_ATTACK
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type TWO_HEX_ATTACK_BREATH
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type UNDEAD
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type UNLIMITED_RETALIATIONS
22:43:33 TRACE bonus [0x10f9a5000] - Loaded bonus type WATER_IMMUNITY
22:43:33 INFO global [0x10f9a5000] - Bonus type handler: 5
22:43:33 ERROR global [0x10f9a5000] - Resource with name DATA/VCDESC and type TEXT wasn’t found.

Some files were not found. Not sure what’s causing this but these files must be present in H3 data.

There should be 2 CD’s:
Game CD - technically optional, contains campaign-specific data (which is also missing according to log)
Install CD - one that MUST be installed in order for VCMI to run.

Perhaps installation script failed or data was installed incorrectly?

Hi, first of all sorry for such late response.

Of course if you have 2 CD edition you must select both CD images in vcmibuilder.app

Sorry for such a late response.

I wasn’t able to create a disk image of the second CD on my Mac. Is this due to some type of copy protection?

0.94 dmg for OS X: dl.dropboxusercontent.com/u/177 … i-0.94.dmg
Launcher is missing for the moment. Working on this.

I have uploaded it and updated the release message. Thanks!

0.95 dmg for OS X: dl.dropboxusercontent.com/u/177 … i-0.95.dmg
Sorry, still without launcher

Thanks! :slight_smile:

Hello there.

I wanted to run VCMI 0.95 on my OSX Mavericks, but during the installation process it shows a message: “Failed to extract game data using unshield”. What could cause this problem? Is it invalid ISO file or something?

Hi, sorry for late response. Yes, there are probably some problems with the ISO. Could you upload your ISO somewhere so I can test it?

Thanks for your response.

Well, I checked the installer with two other ISO files downloaded from different Internet source and both failed, so I just gave up for now :stuck_out_tongue:

Could you please provide links to those other iso images?

By the way OS X prebuilt libraries link seems to be broken: download.vcmi.eu/xcode-pack.zip

Fixed. Sorry for delay.

stopiccot, same problem with iso’s from dl.rutracker.org/forum/dl.php?t=4435743
rutracker.org/forum/viewtopic.php?t=4435743

It turns out that different Heroes 3 ISO files can have different internal file layout. I’ll apply fix for your ISO but it will be released only with 0.96 version. For now I suggest to use installer from gog.com. It should be working :slight_smile:

Fixed in master