Post by rom on Mar 21, 2009 6:58:37 GMT -6
Psycho Chicken discovered that Ticket to Ride is broken. There is NO way to achieve all objectives. This fixes it.
Find file HD2.cs. Make a backup copy called HD2.backup
Open up file HD2.cs in a text editor like Notepad.
Find this block of code.
make it look like this. The schedule("victory();",2); line has moved and the curly brace order has changed.
You will then be able to achieve the secondary objectives and get the salvage: a pair of shrike launchers and a Cybrid Zeta Reactor.
If you have a saved game you can test it immediately.
Find file HD2.cs. Make a backup copy called HD2.backup
Open up file HD2.cs in a text editor like Notepad.
Find this block of code.
function Cybrid::vehicle::onDestroyed(%destroyed, %destroyer)
{
if( isGroupDestroyed("MissionGroup/CybridD") &&
missionObjective5.status == *IDSTR_OBJ_ACTIVE )
{
missionObjective5.status = *IDSTR_OBJ_COMPLETED;
schedule("victory();",2);
}
else if( isGroupDestroyed("MissionGroup/CybridA") &&
isGroupDestroyed("MissionGroup/CybridB") &&
isGroupDestroyed("MissionGroup/CybridC") &&
isGroupDestroyed("MissionGroup/CybridD") )
{
missionObjective4.status = *IDSTR_OBJ_COMPLETED;
InventoryWeaponAdjust( -1, 130, 2);#Shrike8
InventoryComponentAdjust( -1, 230, 1);# LargeCybridReactor2--theta
}
}
make it look like this. The schedule("victory();",2); line has moved and the curly brace order has changed.
function Cybrid::vehicle::onDestroyed(%destroyed, %destroyer)
{
if( isGroupDestroyed("MissionGroup/CybridD") &&
missionObjective5.status == *IDSTR_OBJ_ACTIVE )
{
missionObjective5.status = *IDSTR_OBJ_COMPLETED;
if( isGroupDestroyed("MissionGroup/CybridA") &&
isGroupDestroyed("MissionGroup/CybridB") &&
isGroupDestroyed("MissionGroup/CybridC") &&
isGroupDestroyed("MissionGroup/CybridD") )
{
missionObjective4.status = *IDSTR_OBJ_COMPLETED;
InventoryWeaponAdjust( -1, 130, 2);#Shrike8
InventoryComponentAdjust( -1, 230, 1);# LargeCybridReactor2--zeta
}
schedule("victory();",2);
}
}
You will then be able to achieve the secondary objectives and get the salvage: a pair of shrike launchers and a Cybrid Zeta Reactor.
If you have a saved game you can test it immediately.