.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=130)
-   -   Weird Worlds Bug and a Babylon Project v2.60 patch (http://forum.shrapnelgames.com/showthread.php?t=36717)

mantari November 4th, 2007 10:30 PM

Weird Worlds Bug and a Babylon Project v2.60 patch
 
The OS backup does not actually protect against the virus. Even with the OS backup, the virus will remove an item.

mantari November 5th, 2007 04:36 PM

Re: Minor Bug in Babylon Project v2.60
 
More info:

I have the OS backup crystal in my inventory. (I had actually clicked on the 'use' button on the crystal and created the backup from it.) But when I contracted the virus, I got the PAGE 2 condition displayed:

TEXT You're not sure if it's a delayed attack from one of your battles, or incompatibility between your systems, but the <color=070><uvar=stolenitem><color= 999> aboard the <uvar=affectedship> has developed a virus and is now inoperable! <br><br> Fortunately, you still have the backup copy of the operating system in the Data Crystal with you and you're able to re-install all the drivers you need. Whew! That was a close one.

Despite the text saying that I recovered from a backup, the target item still disappears.

mantari November 14th, 2007 02:39 AM

Re: Minor Bug in Babylon Project v2.60
 
I've solved it. There appears to be a bug in Weird Worlds.

I put a lot of tracing into the Babylon 5 mod, and found that BOTH of these conditions were matched (at the same time) [Intel version]:

CONDITION 1
TYPE haveitem
STR0 it_datacrystal5
END CONDITION

CONDITION 2
TYPE noitem
STR0 it_datacrystal5
END CONDITION

The result is that the code that YOU GOT THE VIRUS would run, and then the code that YOUR CRYSTAL BACKUP PROTECTED YOU would run. But only the text from having the backup would be displayed. (Result: an item was actually sabotaged, but it'd display a message saying that it was averted.)

So there is a very clear (IMHO) fault in the 'NOITEM' code, because it is flagging it_datacrystal5 as not there, at a time when it clearly is (and also flagging it as 'HAVEITEM').

I worked around this bug by adding a key to the it_datacrystal5.ini definition. I said "KEYS backup". I then changed the conditions of the sabotage event...

CONDITION 1
TYPE haveitem
STR0 backup
END CONDITION

CONDITION 2
TYPE noitem
STR0 backup
END CONDITION

Finally! The backup prevented the SABT (aka "virus") from working. The only remaining problem is in their code...

TEXT You're not sure if it's a delayed attack from one of your battles, or incompatibility between your systems, but the <color=070><uvar=stolenitem><color= 999> aboard the <uvar=affectedship> has developed a virus and is now inoperable! <br><br> Fortunately, you still have the backup copy of the operating system in the Data Crystal with you and you're able to re-install all the drivers you need. Whew! That was a close one.

...the problem there is that STOLENITEM and AFFECTEDSHIP are never populated, because no sabotage is attempted in the first place, so you can't be specific about an event that never happened. This should be replaced with more generic text. Perhaps something about 'the engines'.


All times are GMT -4. The time now is 09:27 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.