Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: takashi on March 19, 2007, 09:52:35 pm

Title: better compiler for FSscp, the ultimatum.
Post by: takashi on March 19, 2007, 09:52:35 pm
http://bloodshed.net/dev/devcpp.html

now you can edit and compile in one program! (and it take sup less HD space).

enjoy.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Turey on March 19, 2007, 09:54:46 pm
Did you really mean to use "ultimatum"?

Anyways, where's the project file? Have you actually compiled with this?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: RazorsKiss on March 19, 2007, 10:17:54 pm
Oy.  This should be good.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Unknown Target on March 19, 2007, 10:54:42 pm
I'm not a coder, so I won't pretend to give an informed opinion on this...

So why are you pretending takashi...? Do you actually know how to code?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: WMCoolmon on March 20, 2007, 01:19:32 am
Hrm...haw....hemmm...

On the one hand I don't want to discourage participation in the SCP. On the other hand, I have extreme skepticism of any 'ultimate solution' that doesn't have a working project file included in it. :p
Title: Re: better compiler for FSscp, the ultimatum.
Post by: ni1s on March 20, 2007, 03:03:57 am
http://bloodshed.net/dev/devcpp.html

now you can edit and compile in one program! (and it take sup less HD space).

enjoy.
DevC++ has been mentioned before. It's a nice app if you can get it properly configured to compile fs2_open. And also, it's called an  IDE (http://en.wikipedia.org/wiki/Integrated_development_environment).
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 20, 2007, 09:09:39 pm
i've compiled with it. its just that im not willing to upload 7+ megabytes of new SEXP's.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Turey on March 20, 2007, 09:17:12 pm
i've compiled with it. its just that im not willing to upload 7+ megabytes of new SEXP's.

Do you even understand what "project file" means?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 20, 2007, 09:21:59 pm
upload the files that were edited? but they're still buggy. i dont want people yelling at me for screwing up there computers
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Turey on March 20, 2007, 09:42:14 pm
upload the files that were edited? but they're still buggy. i dont want people yelling at me for screwing up there computers

No. Just. No.

(http://www.fsoinstaller.com/images/bad-newbie-bad44696c8a186af.jpg)

A project file is the file that tells the compiler which files to compile in order to successfully create the executable. It's usually a small text file. I don't know DevC++ well enough to tell you where to find it, but it's fairly useless to tell people, "Use this compiler!" without giving them a project file.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 20, 2007, 09:56:35 pm
let me hunt around for it......
Title: Re: better compiler for FSscp, the ultimatum.
Post by: jr2 on March 21, 2007, 03:09:01 am
Bad Newbie Bad!
ROFL
Title: Re: better compiler for FSscp, the ultimatum.
Post by: CP5670 on March 21, 2007, 08:56:43 am
Quote
i've compiled with it. its just that im not willing to upload 7+ megabytes of new SEXP's.

It's helpful to have a clue what you're talking about when trying to fake something. :p
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Flipside on March 21, 2007, 08:59:07 am
I must admit to being confused too, 7 Megs of new Sexp's would be two and a half times bigger than the entire FS2 exe file?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: taylor on March 21, 2007, 09:58:27 am
The code base is about 21meg at the moment.  And, to put the numbers in context, all of the work that the SCP has done has added less than 5meg worth of new code to the tree since the original source code release. :)
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 21, 2007, 02:13:07 pm
no no, the build is 7 1/2 megs. i pretty much added 1/2 a meg to the 3.6.9 build.

besides, who wants wing-self-destruct and ships-self-destruct SEXP's anyway? its just a more conveinent way to kill off multiple things at once.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: ni1s on March 21, 2007, 02:30:10 pm
no no, the build is 7 1/2 megs. i pretty much added 1/2 a meg to the 3.6.9 build.

besides, who wants wing-self-destruct and ships-self-destruct SEXP's anyway? its just a more conveinent way to kill off multiple things at once.
I'm not sure I'm following what you are doing here. Exactly what changes have you applied to the code?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: karajorma on March 21, 2007, 02:35:33 pm
Sounds interesting. I don't see much need for separate wing and ship-destruct SEXPs but if you've added the code to make wings self-destructible, that could easily be rolled into the current SEXP code and would actually be useful.

Can you upload your copies of Sexp.cpp and sexp.h here so I can diff them against my own copies?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 21, 2007, 04:51:15 pm
uh ho...when i made my changes they were to sexp tree.cpp and sexp tree.h because i couldnt find those files.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Hippo on March 21, 2007, 06:26:40 pm
:wtf:
Title: Re: better compiler for FSscp, the ultimatum.
Post by: chief1983 on March 21, 2007, 07:13:40 pm
taka, I really think you should do yourself a favor and just get rid of the source code repository and bloodshed from your computer, before it actually combusts and hurts someone near you.

Beside that, Bloodshed is _not_ the best compiler for the SCP, it's not even being developed anymore!  Version 5 has been in the same beta version for like, 3 years!  If you really want a non-Visual Studio IDE (Integrated Development Environment, note how it's called that because it has the editor and the compiler all in one, a term which has been around for a long time) I would look at Codeblocks.  It's still being actively developed, is recommending by several open source projects I know of, and is easily integrated with the following compilers:

    * GCC (MingW / Linux GCC)
    * MSVC++
    * Digital Mars
    * Borland C++ 5.5
    * Open Watcom

So really, I would consider it the "ultimatum" *snicker* compiler for the SCP.  Granted, that's assuming someone has actually gotten it to work.  Until then I'd stick with Visual C++ 2005 Express.  It's also free, and supposedly has worked for at least one person out there.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Mars on March 21, 2007, 07:29:15 pm
I use GCC... it works just fine to compile FS2O... but I don't pretend to be a programmer....

AND YOU SHOULDN'T EITHER

If you added half a megabyte of code in the month or so you've been here you must have been holding down a key or something, cause as little as I know, I know that that's a freakishly massive amount of text.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 21, 2007, 08:14:20 pm
lessee what i added...

wing_self_destruct
ships_self_destruct(obselete. just ship self destruct with extra places for ships)
primary_fire_when
secondary_fire_when
primary_not_fire_when
secondary_not_fire_when
change_soundtrack_when
send_message_when

basically everything with when triggers. hope the SCP team makes similar ones in the right files -_-;
Title: Re: better compiler for FSscp, the ultimatum.
Post by: chief1983 on March 21, 2007, 08:27:30 pm
What.  The.  Frak.  How is it 'added', if it's not in the right files now?  Please, upload whatever files you've actually changed yourself, that involve that, so we can see how you've done it.  How can they add it anyway if you don't give it to someone?  I doubt anyone has trusted you with commit permissions on CVS.  :nervous:
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Flipside on March 21, 2007, 08:37:30 pm
And the 'When' Trigger is set before the change, so the format would be along the lines of...

Code: [Select]
When
    Condition met
    Primary Fire
    Alpha 2
         Gun_1 (or whatever)

You don't need to be making work for yourself setting any When conditions for state-change Sexp's, the program should have already returned a true value for the condition before it ever sees the change Sexp.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: jr2 on March 22, 2007, 01:47:45 am
taka, can you find the added code, and copy each section to notepad or something?  then .7z it and upload it for these folks to look at.  Or wherever you put it... upload it.  If not here, use FileFront and post a link.  (Google FileFront if you don't know the site addy).
Title: Re: better compiler for FSscp, the ultimatum.
Post by: WMCoolmon on March 22, 2007, 03:02:38 am
Sexp_tree.cpp is a file used by FRED2 to display the SEXP Editor window. In previous versions of the FS2_Open codetree, and in the original source release, it contained a massive list of SEXP descriptions, but not any code to actually run the SEXPs.

taka, I really think you should do yourself a favor and just get rid of the source code repository and bloodshed from your computer, before it actually combusts and hurts someone near you.

What.  The.  Frak.  How is it 'added', if it's not in the right files now?  Please, upload whatever files you've actually changed yourself, that involve that, so we can see how you've done it.  How can they add it anyway if you don't give it to someone?  I doubt anyone has trusted you with commit permissions on CVS.  :nervous:

I don't know who you are, although I probably should since you clearly know something about coding, but please just stop. This thread doesn't need your holier-than-thou attitude or your negativity. I don't see any point in harassing people who are at least trying to provide something.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: CP5670 on March 22, 2007, 03:12:22 am
You evidently haven't seen the OP's thread in the Modding section yet.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: WMCoolmon on March 22, 2007, 03:27:56 am
Probably not, and when you put it that way, I'm glad I haven't. I don't see any point in treating someone like crap on every forum, in every single thread, and going to a considerable amount of effort to harass and humiliate them. Not when the only justification is that a bunch of people just don't like a thread they've created.

If that's really all they have to look forward to, let's not be half-arsed about it. Let's ban them outright! :wtf: I'm sure that will make us all have such a great reputation. It's not like we were ever going to let them become part of the community anyways...right?

EDIT: But really, this just all comes down to me. I don't like to be around people who arbitrarily pick someone to be the whipping boy, and then **** with them and harass them mercilessly just because they can get away with it. I don't keep track of Hard Light's social scene in enough detail to keep track of the exact reasons for choosing any one person and I don't see any point to. I come here to discuss code - is there really any reason related to the forum's purpose that involves deliberately being an arse to someone? Not that I can tell. I'd much rather people leave their unrelated conflicts at the door, or take them to Hard Light, or take them to PM.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: karajorma on March 22, 2007, 03:46:46 am
uh ho...when i made my changes they were to sexp tree.cpp and sexp tree.h because i couldnt find those files.

Then put up those files then. I can diff them against my versions just as easily.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: chief1983 on March 22, 2007, 10:53:25 pm
I also have to ask this, takashi, when you created this thread, what did you guess everyone was using, that Dev-Cpp would be better than?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Unknown Target on March 23, 2007, 09:51:02 pm
Probably not, and when you put it that way, I'm glad I haven't. I don't see any point in treating someone like crap on every forum, in every single thread, and going to a considerable amount of effort to harass and humiliate them. Not when the only justification is that a bunch of people just don't like a thread they've created.

If that's really all they have to look forward to, let's not be half-arsed about it. Let's ban them outright! :wtf: I'm sure that will make us all have such a great reputation. It's not like we were ever going to let them become part of the community anyways...right?

EDIT: But really, this just all comes down to me. I don't like to be around people who arbitrarily pick someone to be the whipping boy, and then **** with them and harass them mercilessly just because they can get away with it. I don't keep track of Hard Light's social scene in enough detail to keep track of the exact reasons for choosing any one person and I don't see any point to. I come here to discuss code - is there really any reason related to the forum's purpose that involves deliberately being an arse to someone? Not that I can tell. I'd much rather people leave their unrelated conflicts at the door, or take them to Hard Light, or take them to PM.


You missed the part on Game Warden where he called us all morons and claimed that he worked for Volition.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 23, 2007, 09:56:18 pm
you missed my post where i admitted that i was driven crazy by StarFox fanboyism on game warden and had to wipe all memory of talking animals from my mind just to ensure your safety.

ps: this thread is spam.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: chief1983 on March 23, 2007, 10:33:04 pm
Not until you answer my question.

I also have to ask this, takashi, when you created this thread, what did you guess everyone was using, that Dev-Cpp would be better than?
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 23, 2007, 10:55:24 pm
an outdated microsoft compiler.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: Unknown Target on March 23, 2007, 11:03:51 pm
you missed my post where i admitted that i was driven crazy by StarFox fanboyism on game warden and had to wipe all memory of talking animals from my mind just to ensure your safety.

ps: this thread is spam.

Every thread you start you say is spam. I'm starting to notice a pattern.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: takashi on March 23, 2007, 11:08:09 pm
im admitting the truth. every thread i've started (besides the weapon upgrade one, that one is useful) should be deleted.
Title: Re: better compiler for FSscp, the ultimatum.
Post by: jr2 on March 24, 2007, 01:09:57 am
:yes:
Shows someone's getting better.  :)
Title: Re: better compiler for FSscp, the ultimatum.
Post by: karajorma on March 24, 2007, 02:55:42 am
On that note I'll close this. If Takashi ever gets some working code he's more than welcome to post a new thread about it.