Author Topic: Adding new initial orders  (Read 1637 times)

0 Members and 1 Guest are viewing this topic.

Offline Hornet

  • 24
Adding new initial orders
How would i go about adding new initial orders?

I added in the new Sexp's and the goals (I think) but they dont appear anywhere in fred AFAIK. Im not that skilled in fred but im trying to get what im doing to appear in the initial orders menu.

How do I do it?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Adding new initial orders
If you're asking where to find them in FRED. You can give intital orders to a ship by selecting it. Opening the ships editor (from the menu, with a rightmouse click or by pressing SHIFT-S) and clicking on the initial orders button.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Hornet

  • 24
Adding new initial orders
Sadly no, I am not

I am asking how to add more initial orders to that list, custom ones.

I am not *that* bad at fred :)

 

Offline Blaise Russel

  • Campaign King
  • 29
    • http://mysite.freeserve.com/sbre/index.html
Adding new initial orders
You don't; that sort of thing is the domain of the coders, I think.

I'm not sure what you mean by the SEXPs and the mission goals. SEXPs make events happen and do things. Mission goals, when fulfilled, play a little fanfare, flash up on the screen and affect the debriefing music. They have little to do with initial orders for ships and wings.

 

Offline Hornet

  • 24
Adding new initial orders
My friend, I am a coder. This question is directed at other coders, who know the FS2 engine better.

 

Offline aldo_14

  • Gunnery Control
  • 213
Adding new initial orders
AFAIK Fred has some divergences from FS code; I think you may have to add in specific hooks to the Fred UI when you add in SEXPs, although I'm not 100% sure.  I believe daveb (Volition coder dude) wrote a tutorial for adding SEXPs when the code was released, I'd imagine that would have the required info.  I'll take a gander & see if I can track it down.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Adding new initial orders
I don't think anyone has tried modifying that section of code, but what I'd do is search for the oddest initial order already coded in and see where it's mentioned in the source.
-C

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Adding new initial orders
That's what I'd do as well.  Search for AI_DISARM_SHIP (for example; I don't know if that's exactly how they put it) and then search for all #defines that are related to it.  Eventually you'll find all the hooks you need.

There are several things that need updating for that sort of thing: #defines, lists of goals, lists of goal names, links between sexps and ai goals, etc.

  

Offline Hornet

  • 24
Adding new initial orders
I followed the tut in the wp for adding in the sexp, and I had a snoop around adding in new goals, and I think thats all working, but yeah...

ah well, to the searchmobile!