Author Topic: FREDding - a programming language?  (Read 4244 times)

0 Members and 1 Guest are viewing this topic.

FREDding - a programming language?
Last time i worked around with some missions, this thought spooked in my head.

I mean, creating events, setting SEXP and all this stuff, based on logical linkages look for me like a, kinda simple, programming language.
I wonder, if you could define it as one, or it's just a way to create missions?
I am sleeping very well in my qietschie Bettgestell :D
-------------------------------------------------------------

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: FREDding - a programming language?
sexps are a lisp dialect. Describing them as a programming language is completely correct.
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

 

Offline Luis Dias

  • 211
Re: FREDding - a programming language?
I don't see how it isn't a programming language. Most talented and experienced Fredders even use notepad to edit their missions.

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: FREDding - a programming language?
It's turing-complete, isn't it ?
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 
Re: FREDding - a programming language?
so, theoretically, when someone asks me, if i know a programming language, i can say: "Yes, i speak FRED" ?

I don't see how it isn't a programming language. Most talented and experienced Fredders even use notepad to edit their missions.

Oh, that's really a common way to edit missions?  :eek2: I do it that way even if I'm not very experienced.  :D
I am sleeping very well in my qietschie Bettgestell :D
-------------------------------------------------------------

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: FREDding - a programming language?
Notepad-editing of missions is useful in certain specific scenarios where FRED would be ill-suited, like large replacings by name, or simply not being arsed to wait for FRED to load :p

A .fs2 isn't much harder to decipher than your average table. A good way to see this would be to simply open FRED, save a blank mission, and see what the .fs2 looks like.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 
Re: FREDding - a programming language?
Thanks for the hint, Matth, it's as you say.

New ways of epic FREDding open up for me. *tries to sound like a god, creating a new race*
I am sleeping very well in my qietschie Bettgestell :D
-------------------------------------------------------------

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: FREDding - a programming language?
Don't get in over yer head, even our most senior FREDers here still use FRED for most of the job. UI has its undeniable advantages. It's just good to know that it's text-editable when you need it.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Klaustrophobia

  • 210
  • the REAL Nuke of HLP
    • North Carolina Tigers
Re: FREDding - a programming language?
i can't imagine trying to remember all the available SEXPs and their syntax to write a mission entirely by notepad.
I like to stare at the sun.

 

Offline Apollo

  • 28
  • Free Market Fascist
Re: FREDding - a programming language?
I use notepad sometimes, but I'm always scared I'll break something.

You know, POF files can be opened in notepad. I guess it would be technically possible (though extremely difficult) to make a model that way. :D
Current Project - Eos: The Coward's Blade. Coming Soon (hopefully.)

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: FREDding - a programming language?
Yes, it's a sort of programing language.
el hombre vicio...

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: FREDding - a programming language?
FRED is Turing-complete because its programming language provides sequential execution, branching, and looping, plus variables.

Additionally, FRED comes with a bonus Turing-complete language if you consider the variable array (all 200 FRED variables) as "memory" and create sexps to interpret variable values as program instructions.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: FREDding - a programming language?
I use notepad sometimes, but I'm always scared I'll break something.

You know, POF files can be opened in notepad. I guess it would be technically possible (though extremely difficult) to make a model that way. :D

No, it wouldn't. POF files are binary, so you're better off using a hex editor; text editors have much greater potential to **** things up.
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

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: FREDding - a programming language?
i can't imagine trying to remember all the available SEXPs and their syntax to write a mission entirely by notepad.

The Wiki and the source code provide a handy reference.

You know, POF files can be opened in notepad. I guess it would be technically possible (though extremely difficult) to make a model that way. :D

There are chunks which are relatively easy to edit with a hex editor (I've done this in the past for certain things), but a lot of the data is simply too complicated and dense to reasonably expect it to be human-understandable.  Particularly for things like collision data.  An XML format like DAE might be a bit more readable, but I wouldn't recommend trying to get any substantial amount of editing done this way.

 

Offline FSW

  • 27
Re: FREDding - a programming language?
Out of curiosity: could there be any FS2 mission designs that are impossible to achieve using FRED, but can be coded through a text editor?

 

Offline Axem

  • 211
Re: FREDding - a programming language?
It's possible, though both FRED and Freespace check for the same sort of errors when parsing missions. So any tricks you try to bypass FRED with, Freespace would probably catch them.

BUT, there are some campaign file shenanigans you can only pull off in notepad and not FRED. FRED doesn't really allow infinitely looping campaign paths. You can go down a path, but not up. But by fiddling with the advancement conditions in notepad, you can make the campaign advance to a previous mission. FRED and FreeSpace will allow it and won't complain about it. JAD2 and War in Heaven Act 3 have used that technique for some neato tricks. As well Goober's FreeSpaceLancer was a proof of concept for the whole technique.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FREDding - a programming language?
Out of curiosity: could there be any FS2 mission designs that are impossible to achieve using FRED, but can be coded through a text editor?

Actually anything involving in-mission cutscenes like Wing Commander had is impossible since I never got around to creating the Editor to add them. :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: FREDding - a programming language?
I use those in BtA too.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: FREDding - a programming language?
FRED is Turing-complete because its programming language provides sequential execution, branching, and looping, plus variables.

Additionally, FRED comes with a bonus Turing-complete language if you consider the variable array (all 200 FRED variables) as "memory" and create sexps to interpret variable values as program instructions.

Hm, so in theory, FSO could be used to implement a compiler or interpreter? I look forward to seeing a C compiler (or JVM!) written in FRED. I wonder if those would be fun to play. ;7

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FREDding - a programming language?
I have a build knocking about which allows mission designers to implement deques if that would help. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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