Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: starwolf1991 on August 19, 2010, 09:07:20 pm
-
Recently, I discovered a wierd glitch when modding a level in Fred in a mod (Can't say which mod; it's classified). It concerns the IFF of AI, and a rather annoying glitch it is.
Whenever I selected an AI-controlled ship to be friendly, it would appear as hostile when running the mission in-game. The same effect happens for hostile, except it appears as friendly. None of the other IFFS (Nuetral, Unknown and Traitor) are affected.
Does anyone have any idea what causes this? I've checked to see if this is 3.6.12 generic problem or a table issue, but can't find anything that might've caused it.
-
What IFF is your player ship set to?
-
What IFF is your player ship set to?
Player IFF? I wasn't aware there was such a feature. And I see don't see how you could set one for a player. Where do I find the Player IFF and set it?
-
What IFF is your player ship set to?
Player IFF? I wasn't aware there was such a feature. And I see don't see how you could set one for a player. Where do I find the Player IFF and set it?
I assume from your response that you do not, in fact, have any events using change-IFF on the player.
-
In FRED either in the ship editor or via sexp. Player can be changed to any IFF.
-
Another question is what the default IFF setting for the player's ship is (as set in species-defs.tbl)?
-
Last I checked ship editor, player IFF couldn't be changed, Fubar.
There is no species-defs.tbl; Instead, there is an -sdf.tbm. I did note that Terran was set to hostile, but thats been taken out. Despite this, the problem still remains.
Should I try using a species-def instead of an -sdf and throwing in an iff-defs tbl too?
-
I'm willing to bet my shell that player iff has been changed to hostile for whatever reason. This is might have been caused by the -sdf.tbm causing the player ship to be hostile by default.
-
Open the mission with notepad and check what the player ship's team is.
It was probably changed to Hostile due to that -sdf.tbm, and not changed back.
Just manually set it back to Friendly in notepad.
-
Last I checked ship editor, player IFF couldn't be changed, Fubar.
There is no species-defs.tbl; Instead, there is an -sdf.tbm. I did note that Terran was set to hostile, but thats been taken out. Despite this, the problem still remains.
Should I try using a species-def instead of an -sdf and throwing in an iff-defs tbl too?
Well I beg to differ:
(http://fubar5.fubar.org/fubar/FS2/hostileplayer.jpg)
Changing species defs will do nothing after the mission is already saved. You will need to edit the player ship back to friendly.
-
You have to set it before you change it to a player ship.
You can't directly change the player ship's team in FRED for whatever reason :/
-
Yes but you can do it. Very easy if you don't want Alpha1 to be the player start. Also very easy if you change to TvT or dogfight and back.
-
Next chance I get, I'll see if I can fix this baffling problem. The sooner, the better; It drives me nuts at the moment.
-
I'm almost certain that it's as simple as the player being set to Hostile.
-
Perfect! All fixed. And the -sdf.tbm is all tidy now. So no more bogus problems to worry about.
Cheers everybody for pointing me in the right direction.