Author Topic: First Attempt at FREDing  (Read 8211 times)

0 Members and 1 Guest are viewing this topic.

Offline AV8R

  • 28
Re: First Attempt at FREDing
When I've previously tried it (3.6.14 - 3.6.18) most things seemed to work except saving, which kinda makes it entirely useless :)   When I tried it just now (3.7.2 RC2 & RC4), the main window didn't even draw properly, just had random-seeming stuff from my other windows; so yeah, not sure exactly what's quirky about it but I haven't had much luck, even though (as you say) many other games & programs run well under Wine.

There may be a valid reason for this. Even in a Windows 7 environment with a fast processor and a pro-series video card, I noticed that clicking and dragging open dialog boxes around in FRED causes the box to "smear" (the same effect when you win a game of Windows Solitaire and the cards fall from the top of the screen leaving trails behind). That's either caused by the program taking up so much processor priority that screen redraws become a lesser priority or poor interaction between FRED and the video driver - maybe instead of using the video card's optimized renderer, FRED is using a software renderer instead? I don't know. I'm just guessing. But it's pretty clear that the FRED program/renderer isn't working like it should in Windows which is probably why it's not to behaving properly in your Wine emulator.

 

Offline riomaki

  • Solrazor
  • 24
Re: First Attempt at FREDing
I really want to say that I've seen that kind of "smearing" behavior before in Vista or XP, but I don't remember.  That problem sounds familiar.  I'm talking about the old school retail FRED more than the improved FSOpen one, though.

Quote
So when I create a new event in the Event Viewer it gives me:

New Event
    when
        true
        do-nothing

So I should replace that with:

New Event
    when
        Sathanas reaches Jump Node 0
        Jump out

It can't be that simple.

For that case specifically, you already found that Departure Cues can do this and that would be the preferable solution.  If you wanted to express this in an Event, however, it would look like this:

Code: [Select]
Sathanas Departure
when
     are-waypoints-done-delay //(right-click on "true" and Replace Operator -> Objectives -> are-waypoints-done-delay)
     Sathanas //(right-click, select the Sathanas)
     Waypoint1 //(right-click, select the name of the waypoint you want this to happen at)
     0 //(optional: right-click and replace with the time delay, in seconds, between the Sathanas reaching the waypoint and making this event true)

     add-goal //(right-click on "do-nothing" and Replace Operator -> Change -> add-goal)
     Sathanas //(right-click, select the Sathanas)
         ai-warp-out //(right-click on "ai_chase," which is the default, and Replace Operator -> Ai goals -> ai-warp-out)
         89 //(priority of this order - leave it at 89 since you really want this to happen)

As you probably saw if you did the above example, the "if" parts of your "if-then" conditional are kind of scattered, but are mostly located in Objectives, Status and Events/Goals.  The "then" parts are mostly located in Change.  The different sub-menus become relevant or grayed-out as needed.  For example, Ai Goals is only relevant when you're doing something related to changing the goals, such as the add-goal command.

So yes, the end result is almost "that simple," but remembering where the different commands are located is just something you have to get used to through practice.  It eventually becomes second nature.  Most events are constructed along these lines, and get combined with stuff in the Logical menu (and, or, not, etc) as needed to form more complex conditional statements.

Now, let's say for a moment that you had two Sathanas (Sathanases?) and wanted them to warp out.  Using the above sexp, you can right-click on the "when" and do Add Operator -> Change -> add-goal.  This adds another add-goal which you can fill in however you want.  Now, your event does two things when the waypoints are done.  It's like saying, "If this is true, then do that and that."
« Last Edit: December 25, 2014, 12:28:10 pm by riomaki »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: First Attempt at FREDing
Just a minor point. I strongly suggest checking the distance from the waypoint rather than actually using are-waypoints-done-delay. Occasionally a capship will miss a waypoint by a metre or two. Without any other orders the ship will then swing round and try to hit it again. This can result in a capship reaching the end of its run only to start breakdancing around on the spot.

This behaviour might have been fixed in FSO by now but even if it hasn't, I still find the distance thing to just as easy to do.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline riomaki

  • Solrazor
  • 24
Re: First Attempt at FREDing
This can result in a capship reaching the end of its run only to start breakdancing around on the spot.

You mean, this isn't what you want?  :lol:

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: First Attempt at FREDing
Well maybe if you're programming JAD or DEM. For a serious campaign, probably not so much. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Steam
    • Something
Re: First Attempt at FREDing
Axem actually made a GEDDAN effect, didn't he? :D

 

Offline Axem

  • 211
Re: First Attempt at FREDing
Nope, that was Goober! (DEM:Interlude)

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Steam
    • Something
Re: First Attempt at FREDing
Too much craziness to keep track of :nervous:

  

Offline AV8R

  • 28
Re: First Attempt at FREDing
Without any other orders the ship will then swing round and try to hit it again. This can result in a capship reaching the end of its run only to start breakdancing around on the spot.

I'd imaging it'd probably be breakdancing to this little ditty I saw elsewhere on the board...   :lol:


I like Gas Miners and I cannot lie

You other pilots can't deny

When miner walks in with an itty bitty front and that canister in yo face you get SPRUNG

Wanna get out yo guns

Cuz you noticed that miner was stuffed

Deep in the indicator that's leadin'

On the trigger and you can't stop squeezin'

Oh Rahu, I wanna get with ya

And blow yo canista

My flyboys tried to warn me

But that gas you got make me so angry

Oh is that Maxim? You say you wanna get in my ship?

Well I'll use you, and use you, because you aint that average pew pew!

Now that Rahu's dancin...

To hell with romancin'!

It's no sweat

Feeling stronger than a pimped Corvette!

I'm tired of the other wings,

Saying sentry guns are the thing

Take the average Vasudan and ask him that, it's gotta pack much gas!

So pilots! (YEAH!) Pilots! (YEAH!) Has your target got the gas?

(HELL YEAH!) Then shoot it! Shoot it! Shoot that healthy gas.

Rahu got gas.