• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

How to get to log file?

Trav_R

Landlubber
Hi all, I asked this question on the Build Forum, but am not getting any replies. Not sure if this is even a mod specific feature. You know the text that shows up in the top left when you get experience, sink ships etc? Is there a way to see all that after it has disappeared from the screen? Thanks.
 
That text is not stored anywhere, so once it disappears, it's gone. Nathan Kell made a beta version of a mod that should store the ships you sink into a lot and I suppose I have the code for it lying around somewhere, but I never had a look at it. Once I have a long holiday, I'll try and see if I can put it in somehow.
 
Ah that sucks, that's a ton of information that I'm missing out on. Seems like it would be such a simple thing to redirect that text to a text file or something that can be accessed in-game. Oh well, thanks for the reply.
 
The problem is that I don't think you can let the game write a file. Not as far as I know anyway. If that were possible, it'd be reasonably easy. You can press the pause button [P] every now and then to see what's written. I won't pretend that is a good solution though... <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
I don't see how it would be difficult to print to a file as well as printing to the screen. Somewhere in the code is a single function that prints stuff up on that corner of the screen, all you'd have to do is add a couple lines of code that function. Open up a file for read/write access and fprintf to it anytime you printed to the screen. I could be wrong, it could be set up some other way, but my guess is it's set up with just a single function that any text that needs to be printed gets routed through.
 
The problem is that I don't know of a way to make the game actually write a text-file. I don't think the game CAN create/edit files apart from the savegames and screenshots. If we knew how to do that, we could make the game put that text into a textfile. But I don't know if and how it should be possible. <img src="style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
 
1) AFAIK, there isn't any instruccion in POTC similar to printf... so no way to write in a file

2) The screen logs are printed using "Log_SetStringToLog"... teoretically, you can add a "Trace" sentence after each one, with the same text... then you'll have the message also in file compile.log
 
I've never tried to mod a game, so I wasn't real sure how it was done. I assumed you guys were in there messing around with C, which is what I see in the program folders. Is it not C?
 
<!--quoteo(post=148480:date=May 14 2006, 10:09 PM:name=Trav_R)--><div class='quotetop'>QUOTE(Trav_R @ May 14 2006, 10:09 PM) [snapback]148480[/snapback]</div><div class='quotemain'><!--quotec-->
I've never tried to mod a game, so I wasn't real sure how it was done. I assumed you guys were in there messing around with C, which is what I see in the program folders. Is it not C?
<!--QuoteEnd--></div><!--QuoteEEnd-->


It's "C like"

There isn't certain sentences, and others have a little different sintax.


Sources of info:
Keywords.c file in buildinfo folder
<a href="http://forum.piratesahoy.net/index.php?showtopic=318" target="_blank">http://forum.piratesahoy.net/index.php?showtopic=318</a>
<a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=POTCwiki" target="_blank">http://robotsdontbleed.com/wacko/wakka.php?wakka=POTCwiki</a>

Luck
 
Hmm, I doubt I'll get into modding this game. I suppose it would look good on a resume if I made some important contribution to a game, but damnit I want to *play* games not work on them! I think if I got real heavy into the modding, it would take away from my enjoyment of the game, because I would see it just as a bunch of code instead of a cool game, know what I mean? Who knows, maybe someday, but I have enough work to do at work, I don't want to come home and then do more work. Home is game and beer time for this guy.
 
<!--quoteo(post=148584:date=May 16 2006, 02:34 AM:name=Trav_R)--><div class='quotetop'>QUOTE(Trav_R @ May 16 2006, 02:34 AM) [snapback]148584[/snapback]</div><div class='quotemain'><!--quotec-->
Hmm, I doubt I'll get into modding this game. I suppose it would look good on a resume if I made some important contribution to a game, but damnit I want to *play* games not work on them! I think if I got real heavy into the modding, it would take away from my enjoyment of the game, because I would see it just as a bunch of code instead of a cool game, know what I mean? Who knows, maybe someday, but I have enough work to do at work, I don't want to come home and then do more work. Home is game and beer time for this guy.
<!--QuoteEnd--></div><!--QuoteEEnd-->


I understand you. Anyway, I've to confess that I enjoy both playing and coding. Coding it's refreshing from time to time...

... and, well, yes, sometimes I see the game as a (big and messy) bunch of code ;-)
 
Back
Top