Author Topic: Additional IFFs  (Read 4709 times)

0 Members and 1 Guest are viewing this topic.

Offline Clawandfang

  • 26
  • Resident writer
I'm sure I heard somewhere once that you could manufacture new IFFs in FRED Open, but I can't work out how. What I'm thinking about it a fight between two forces where the player and his escort get caught in the crossfire. So I really need to set one team to "Neutral" and another to"Neutral2" and make them both ignore the player but be hositle to one another.

Thanks in advance.
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 
 

Offline Clawandfang

  • 26
  • Resident writer
Righty, thanks a bundle Snail.

EDIT: I spoke too soon... I'm not entirely sure this is what I'm looking for... and even if it is, I have no idea how to use it.
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
It isn't what you want. Use this instead.
http://www.hard-light.net/wiki/index.php/Iff_defs.tbl

It's ridiculously easy to use, just take a look at the example at the bottom of the page.

Though, you could get the results you wanted in the mission by having one team "Hostile", one team "Neutral", and setting the "All teams at war" flag.

EDIT: Thanks, Snail. Not so slow, are you? :p
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
I wuz first. :(

 

Offline Clawandfang

  • 26
  • Resident writer
Okay, thanks people.
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline Clawandfang

  • 26
  • Resident writer
I'm still having trouble with this. I've crated an iff_defs.tbl in a mod folder, but when I try and change a ship's IFF to a new IFF I've created, Freespace just bombs out. Here's the table I've created:

Code: [Select]
#IFFs
   
;; Every iff_defs.tbl must contain a Traitor entry.  Traitors attack
;; one another (required by the dogfighting code) but it is up to you
;; to decide who attacks the traitor or whom else the traitor attacks.
$Traitor IFF: Traitor
   
;------------------------
; Friendly
;------------------------
$IFF Name: Friendly
$Color: ( 0, 255, 0 )
$Attacks: ( "Hostile" "Neutral" "Traitor" )
$Flags: ( "support allowed" )
$Default Ship Flags: ( "cargo-known" )
   
;------------------------
; Hostile
;------------------------
$IFF Name: Hostile
$Color: ( 255, 0, 0 )
$Attacks: ( "Friendly" "Neutral" "Traitor" )
+Sees Friendly As: ( 255, 0, 0 )
+Sees Hostile As: ( 0, 255, 0 )

;------------------------
; Neutral
;------------------------
$IFF Name: Neutral
$Color: ( 255, 0, 0 )
$Attacks: ( "Friendly" "Traitor" )
+Sees Friendly As: ( 255, 0, 0 )
+Sees Hostile As: ( 0, 255, 0 )
+Sees Neutral As: ( 0, 255, 0 )
 
;------------------------
; Unknown
;------------------------
$IFF Name: Unknown
$Color: ( 255, 0, 255 )
$Attacks: ( "Hostile" )
+Sees Neutral As: ( 0, 255, 0 )
+Sees Traitor As: ( 0, 255, 0 )
$Flags: ( "exempt from all teams at war" )

;------------------------
; GTVA
;------------------------
$IFF Name: GTVA
$Color: ( 255, 0, 255 )
$Attacks: ( "Council" )
+Sees Neutral As: ( 0, 255, 0 )
+Sees Traitor As: ( 0, 255, 0 )
$Flags: ( "exempt from all teams at war" )

;------------------------
; Council
;------------------------
$IFF Name: Council
$Color: ( 255, 0, 255 )
$Attacks: ( "GTVA" )
+Sees Neutral As: ( 0, 255, 0 )
+Sees Traitor As: ( 0, 255, 0 )
$Flags: ( "exempt from all teams at war" )

;------------------------
; Traitor
;------------------------
$IFF Name: Traitor
$Color: ( 255, 0, 0 )
$Attacks: ( "Friendly" "Hostile" "Neutral" "Traitor" )
+Sees Friendly As: ( 255, 0, 0 )
 
#End

I'm trying to change a ship to "GTVA", but can't get it to work. What am I doing wrong?
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline Roanoke

  • 210
;------------------------                                    
"; Traitor                                                
;------------------------                                    
$IFF Name: Traitor                                          
$Color: ( 255, 0, 0 )                                       
$Attacks: ( "Friendly" "Hostile" "Neutral" "Traitor" ) -I'd add your factions to this list and see what happens      
+Sees Friendly As: ( 255, 0, 0 )"                              

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Shouldn't make a difference if traitor is set to attack them or not.  We have a non-combatant in TBP that isn't attacked by traitor and it works just fine. 

Are you trying to change the IFF in FRED, or by using an event.  Either way try the debug build  for the exe that is crashing and see what message you get.   

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 Clawandfang

  • 26
  • Resident writer
When Freespace notices the error I get this:

Code: [Select]
Error: Invalid team name.

In sexpression: ( when
   ( true )
   ( change-iff "GTVA" "GTD Orion 6" )
)
(Error appears to be: GTVA)
File: MissionParse.cpp
Line: 5831


Call stack:
------------------------------------------------------------------
    parse_mission()    parse_main()    mission_load()    game_start_mission()    game_enter_state()   

gameseq_set_state()    game_process_event()    gameseq_process_events()    game_main()    WinMain()   

WinMainCRTStartup()    kernel32.dll 763f3833()
    ntdll.dll 7773a9bd()
------------------------------------------------------------------

In debug mode, it bombs. In normal mode, I can opt to just continue, but when the event takes place which would alter IFF it bombs out without an error messaeg. I think this is probably due to my lack of expertise in using mods. At the momnet I just have a folder with the table in it, and select that mod in the launcher.
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Temporarily move it to your main data/tables folder and see if it works without any mods on then move it back.  Also what version of FS2 are you using?  Might want to test it with one of the newer 3.6.10 builds.
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 FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Just saved that text as iff_defs.tbl in my data/tables directory and it works just fine in 3.6.9 and the 4/3 trunk release of 3.6.10.
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 Clawandfang

  • 26
  • Resident writer
I honestly feel like such an idiot; I completely forgot to shove it in a tables folder, I just popped it in the data folder. I suppose I can be exused to some extent, as this is my first atmept at anything of this ort, but I still feel a bit thick. Thanks to everyone who has helped me, sorry I've wasted some of you time.
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline Roanoke

  • 210
Thicko!!

Haha I use to do that all the time. Trying to get models saved in a 3DSMax folder working ingame  ;)

 

Offline Clawandfang

  • 26
  • Resident writer
Okay I have another query, but thought I should just keep this thread going to try and aviod clutter.
I need to disable the wingmen display in the top right for this mission. How do I do that?
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 
Wish I had time for a more detailed explantion, but look here.

 

Offline Clawandfang

  • 26
  • Resident writer
That makes almost no sense to my inexperienced table modding eyes. If I need to hide the wingmen display for just one mission, do I really need to go fiddling with tables?
No one lives in the slums because they want to. It's like this train. It can't go anywhere except where its rails take it.

If you're interested in the classic film, "The Land Before Time", then come visit a land before time forum.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Why do you need to hide it?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
If you want to just get rid of beta, gamma, etc.  For that particular mission go into mission specs and change the custom wing names.  Those are the ones that will show up.  Won't work for the wing the player is in though.  Alternately you could put the player in a wing by himself and fake the rest of the players in the wing by using special undisplayable characters between Alpha and 2, etc.
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