Author Topic: AI IFF glitch  (Read 3234 times)

0 Members and 1 Guest are viewing this topic.

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.
Previous Projects: Ancient-Shivan War | GTF Durandal

Current Projects: Exile: Into The Dark Waters (Proof-editing/misc)

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
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?
Previous Projects: Ancient-Shivan War | GTF Durandal

Current Projects: Exile: Into The Dark Waters (Proof-editing/misc)

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
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.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
In FRED either in the ship editor or via sexp.  Player can be changed to any IFF.  
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Another question is what the default IFF setting for the player's ship is (as set in species-defs.tbl)?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
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?
Previous Projects: Ancient-Shivan War | GTF Durandal

Current Projects: Exile: Into The Dark Waters (Proof-editing/misc)

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
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.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
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.
(´・ω・`)
=============================================================

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
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:



Changing species defs will do nothing after the mission is already saved.  You will need to edit the player ship back to friendly.  
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
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 :/
(´・ω・`)
=============================================================

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
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.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
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.
Previous Projects: Ancient-Shivan War | GTF Durandal

Current Projects: Exile: Into The Dark Waters (Proof-editing/misc)

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
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.
Previous Projects: Ancient-Shivan War | GTF Durandal

Current Projects: Exile: Into The Dark Waters (Proof-editing/misc)