NOTICE: This fan based modification is in no way affiliated with Sci-Fi, NBC, Universal Studios, Relic, Sierra, or Aspyr. All trademarks, logos, sounds, and video are property of their respective owners.
Battlestar Galactica: Fleet Commander Homeworld 2 Game Mod Development Home

+   Battlestar Galactica: Fleet Commander Homeworld 2 Game Mod Development Home > Battlestar Galactica: Fleet Commander Wireless > Astral Queen Support Center
Register FAQ Blogs Wiki Mark Forums Read

Astral Queen Support Center Why bother with the President's Office when the crew of the Astral Queen can get it done. Post all your mod-related problems here.

Fixing Crashes
HW2.log we need this to help you.
Trouble Shooting
IRC support
How To Guides

Web Chat  [Archives]
Loading

Welcome to the Battlestar Galactica: Fleet Commander Homeworld 2 Game Mod Development Home.
You are not logged in, so you are viewing the site through our ugly lightweight Guest style. Log in to use our feature rich, visually appealing style.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2010
raver
E1 - Recruit
 
Join Date: Feb 2010
raver is on a distinguished road
Default Crashes in OSX

Hi there,

Downloaded:

"hw2bsg-v.0.5.4-osx.big" and
"hw2bsg-v.0.5.4-osx-src-patch.zip"

Moved the .big into the /Data folder in the Homeworld 2 directory as well as the contents of the .zip.

Launched the 'BSG Launcher', see the opening animation then get taken to the standard HW2 Main Menu, create a new profile. Everything is the same from before installing the mod except 'Capture' is in the Player vs CPU options.

When I click this the game crashes. I've looked over the 'installing the mod' page and found much of it unhelpful and I've tried it with the shaders both in and not in the /data folder with no luck.

So I'm guessing it's something to do with the install, however the terminal commands on the page don't work. So, who can help me?
  #2  
Old 02-04-2010
scarbrow
O7 - Commander
 
Join Date: Aug 2007
scarbrow will become famous soon enoughscarbrow will become famous soon enough
Default Re: Crashes in OSX

The bigfiles already contain all the necessary files, the source patch is only if you want to use the source version. Due to small differences between windows and osx the osx source files replaces those in the windows source download.



Depending on which OS you are using, the program you need to use might now be called Applescript (found in Applications/Utilities)

Paste this section of code into its window once open. Save it. When saving it, make sure Application is selected as the file type. Also make sure 'run only' is selected.

Once saved, open it.

Code:
--HOMEWORLD 2 MOD LAUNCHER #1: FOR XXXX.BIG MODS ONLY.
--LATEST VERSION AT: http://www.macologist.org/kb.php?mode=article&k=24
--by Santaduck & ScvWebFire & Adamward and the rest of the Macologist Team http://www.macologist.org, with special thanks to Slugmanand HeroPsychoDreamer for the Homeworld 2 version.
--Based on SWF's "EZ-edit"Launcher for ut2k4 mods for use in Homeworld 2, based on original script by Santaduck
--Note adaptation to homeworld2 uses (user/preferences) for the storage of the path to homeworld2

--INSTRUCTIONS
--1) OPEN SCRIPT EDITOR (found in /Applications/Utilities), and past ALL of this code into a new document
--2) EDIT 3 VARIABLES BELOW. (modname should be exactly the same as the .big file. In other words "HW2EX" for HW2EX.big not "Homeworld 2 EX"
--3) File-->Save as (and check "Application" and "Run Only" and uncheck "Startup Screen". That's all!

--************************************************** ******************************
--***********************Edit the following Three variables********************************
--************************************************** ******************************
--************************************************** ******************************

--modname should be the file name of the .big file that is in the Homeworld 2/Data/ folder, for example HW2EX for HW2EX.big
set modname to "hw2bsg-v.0.5.4-osx" --<----- replace HW2EX with the mod name********
--modtitle is any name you want to show in the dialog boxes to the user.
set modtitle to "Homeworld 2 Fleet Commander" --<----- replace Homeworld 2 EX with the mod name********
--minversion is the minimum version of Homeworld 2 the mod will need
set minversion to 1.10 as number --<---- ignore this if you don't know. Also: Version check currently disabled.********

--************************************************** **********************************
--************************************************** **********************************
--******************Leave the rest below as it is *********************************************
--*****Then File-->Save as (and check "Application" and "Run Only" and uncheck "Startup Screen"**********
--************************************************** **********************************
--************************************************** **********************************



try --Note this path is to the userhome/library/Preferences/, and not application support.
set homeworld2pathini to POSIX path of (path to "dlib" from user domain as string) & "Preferences/homeworld2path.ini" -- this is the file where the path to homeworld2 is stored
end try

-------------------------------

try -- tries to read previously saved path from the file homeworld2path.ini into variable "thePath"
set homeworld2path to gethomeworld2path(homeworld2pathini)
if homeworld2path = "" then
display dialog "Path to Homeworld 2 not set. Quitting now." buttons {"OK"} default button 1
return
quit
set anonexistentvariable to quittingnow
end if
end try
------------------------------

--Start of version check

--Get current version
set f to homeworld2path
set curversion to short version of (info for POSIX file f)

--VERSION CHECK DISABLED FOR HOMEWORLD 2 UNTIL WE LEARN MORE
--try

--check if the minimum version is high enough, if not quit
-- if minversion > curversion then
-- display dialog "Version " & minversion & " or higher of Homeworld 2 not found. Current version is " & curversion & " This version of homeworld2 is incompatible with " & modtitle & ". Please upgrade. Quitting now." buttons {"OK"} default button 1
-- return
-- quit
-- set anonexistentvariable to quittingnow
-- end if
--end try


try

do shell script "" & quoted form of homeworld2path & "Contents/MacOS/'Homeworld 2' -mod " & modname & ".big " & "&"
on error -- if there's an error, I assume it was a faulty path. Therefore ask user again where homeworld 2 is.
set answer to button returned of (display dialog "Homeworld 2 Startup Error. Either " & modtitle & " is not installed or the Homeworld 2 installation is corrupted. Quitting now." with icon 1 buttons {"Quit"} default button 1)
end try



on gethomeworld2path(homeworld2pathini)
set againmsg to ""
set finishedflag to 0
set homeworld2path to ""
repeat while finishedflag = 0
--if homeworld2pathini exists, then get a path--
try
set homeworld2path to do shell script "tail -1 " & quoted form of homeworld2pathini
end try


if homeworld2path = "" then --if homeworld2pathini does not exist, then skip validation attempt. finishedflag will remain 0.
else
try --validate Note validation using binary of Homeworld 2.
do shell script "wc -l " & quoted form of (homeworld2path & "Contents/MacOS/Homeworld 2") -- if this returns an error, then the Homeworld 2 binary does not exist
set finishedflag to 1 --exit if validation successfull

try --write path to .ini if validation successful
do shell script "echo " & quoted form of homeworld2path & " > " & quoted form of homeworld2pathini --write path to file
on error --error writing path to .ini, but can continue
activate
display dialog "ERROR: Can't save path to " & homeworld2pathini & " . OK to continue."
end try
on error --finishedflag remains 0
set againmsg to "Invalid path. "
end try
end if --if validation successful, then finishedflag =1 . If unsuccessful, it remains, 0 and the againmsg has been set.


if finishedflag = 0 then --if file does not exist, or path is not valid
try
activate
set answer to button returned of (display dialog againmsg & "Please locate the application ''Homeworld 2''" buttons {"Quit", "OK"} default button 2)
if answer = "Quit" then
set homeworld2path to ""
set finishedflag to 1
else
set homeworld2path to POSIX path of (choose file with prompt "Please locate the application ''Homeworld 2''") --GUI file browser
end if
end try
end if
end repeat
return homeworld2path
end gethomeworld2path

on checkexistfile(filename) --1 exist 0 not
try
do shell script "wc -l " & quoted form of filename
set flag to 1
on error
set flag to 0
end try
return flag
end checkexistfile
__________________
OSX tester
  #3  
Old 02-04-2010
raver
E1 - Recruit
 
Join Date: Feb 2010
raver is on a distinguished road
Default Re: Crashes in OSX

Awesome, got to the modded main menu, tried to load up a skirmish however it crahses before starting, I'll have a look around for a fix.

EDIT: DId the whole 'creatre new profile' etc and managed to load the blank map without a crash however any skirmish I try and run crashes as it finished loading.

Last edited by raver : 02-04-2010 at 04:32 AM.
  #4  
Old 02-09-2010
scarbrow
O7 - Commander
 
Join Date: Aug 2007
scarbrow will become famous soon enoughscarbrow will become famous soon enough
Default Re: Crashes in OSX

I think I've found the problem for the bigfile. Should be fixed for next release.

There should be no problems if you choose to use the source version download and apply the osx files as specified in the osx patch.
__________________
OSX tester
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 01:23 AM.


Quick Blue Wonder Style By: gio~logist at DopeGFX.com
NOTICE: This fan based modification is in no way affiliated with Sci-Fi, NBC, Universal Studios, Relic, or Sierra. All trademarks, logos, sounds, and video are property of their respective owners.