Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: karajorma on January 13, 2005, 01:20:45 pm

Title: Exporting the events list
Post by: karajorma on January 13, 2005, 01:20:45 pm
How hard would it be to export the events and messages lists (that you can get to in-game by pressing F4) to a file?

I see it being a very useful funtion for playtesters and FREDders. I've lost count of the number of times a bug has slipped past me because one I was out of the mission I didn't remember it. I've jumped out of a mission only to wish I'd checked the event list a similarly large number of times)

Can someone check? Cause I've got a horrible feeling that this might turn out to be a few lines of code that everyone will kick themselves for not thinking of/adding earlier :D
Title: Exporting the events list
Post by: Goober5000 on January 13, 2005, 02:00:02 pm
:mad:

*kicks karajorma*

Yes, this is a few lines of code.  But you realize that I'm going to be the one who adds this, right? :p
Title: Exporting the events list
Post by: phreak on January 13, 2005, 02:08:16 pm
only since you're the only one that can complile fred.
Title: Exporting the events list
Post by: Goober5000 on January 13, 2005, 02:22:04 pm
This doesn't need FRED at all.  It can be activated with a command-line that dumps text to a file.
Title: Exporting the events list
Post by: karajorma on January 13, 2005, 03:04:18 pm
Quote
Originally posted by Goober5000
:mad:

*kicks karajorma*

Yes, this is a few lines of code.  But you realize that I'm going to be the one who adds this, right? :p


Yeah but the playtesters working for TVWP and FSPort will love you for it. :nod:

Hell you'll probably use it yourself next time you playtest :D

Quite frankly I'm surprised no one thought of this one before. I didn't think of it myself. It was Singh complaining that FS2 couldn't do it that got me wondering why the hell it didn't :)
Title: Exporting the events list
Post by: Singh on January 13, 2005, 03:14:53 pm
Quote
Originally posted by karajorma


Yeah but the playtesters working for TVWP and FSPort will love you for it. :nod:

Hell you'll probably use it yourself next time you playtest :D

Quite frankly I'm surprised no one thought of this one before. I didn't think of it myself. It was Singh complaining that FS2 couldn't do it that got me wondering why the hell it didn't :)


Actually, FSCZ did ask for this a long time ago, as it would help with keeping track of the kills/scores in a MP session and over the long term :D
Title: Exporting the events list
Post by: phreak on January 14, 2005, 12:23:50 pm
Quote
Originally posted by Goober5000
This doesn't need FRED at all.  It can be activated with a command-line that dumps text to a file.


hmm must have been thinking of the other events list then.  although if you can print both of them, you can check off whether an sexp worked correctly or not
Title: Exporting the events list
Post by: Goober5000 on January 17, 2005, 06:34:56 pm
:bump:

I just found out that this is already in the source, saving me some work. :) Just run a debug build, enter cheat mode, and hit ~E.
Title: Exporting the events list
Post by: ShadowWolf_IH on January 17, 2005, 06:46:47 pm
Damn, and we were hoping to make you do some ACTUAL work :lol:
Title: Exporting the events list
Post by: karajorma on January 17, 2005, 07:00:38 pm
Quote
Originally posted by Goober5000
:bump:

I just found out that this is already in the source, saving me some work. :) Just run a debug build, enter cheat mode, and hit ~E.


Useful. Any chance you could enable it from the command line too? Like I said the most annoying times are when you've just jumped out and then wish you'd checked something.
Title: Exporting the events list
Post by: Goober5000 on January 17, 2005, 07:03:42 pm
Not really.  Even if I went with my original idea, I'd only enable it in debug builds.  It's a lot of extra computation.
Title: Exporting the events list
Post by: Singh on January 17, 2005, 10:15:41 pm
what does ~E do?

should it be hit after the mission or before?

Will it spew out evil coding lingo at me or actual events and stuff?
Title: Exporting the events list
Post by: Goober5000 on January 17, 2005, 11:12:06 pm
Use it during the mission, like any cheat key.  It displays a list of events (with their status) that you can scroll through.
Title: Exporting the events list
Post by: karajorma on January 18, 2005, 03:11:04 pm
Quote
Originally posted by Goober5000
Not really.  Even if I went with my original idea, I'd only enable it in debug builds.  It's a lot of extra computation.


Fair enough :) I might give it a try myself when I finally get some free time and finally get around to learning some more C++ though.

Would it really be that big an overhead? I suppose the I/O might slow things down now I think about it.

Now I need to go look up the cheat mode (I only tried it a couple of time and never could get it to work) :D
Title: Exporting the events list
Post by: phreak on January 18, 2005, 03:44:54 pm
i don't think the player would notice if the events list gets dumped as the player enters debriefing.  even if its a 20 minute mission, the I/O should be significantly less than taking a screenshot.
Title: Exporting the events list
Post by: Goober5000 on January 18, 2005, 05:50:50 pm
This happens during the mission.