Jump to content


Photo

[Solved] How to find Journal Entry references?


  • Please log in to reply
3 replies to this topic

#1 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 23 November 2015 - 09:18 AM

To use EraseJournalEntry(xxxx) I need to reference either tra reference or the StringRef from dialog.tlk.

 I will only know the tra if the journal entry is my own - the StringRef from dialog.tlk is different in each installation.

So, to erase a journal entry not my own I thus need a way to read the StringRef of the installation and either use them directly to replace xxxx in my script, or to convert StringRef into @trarefences to put into xxxx. And of course some method to detect journal entries in the first place.

Yes, BGT itself does something like that to clean up the BG1 journal entries for the BG2 part, but to be honest, I do not understand the code they use nor how the extracted result can be used in a script,

And how would a mod do both steps during installation?

 


Edited by Roxanne, 24 November 2015 - 12:44 PM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#2 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 24 November 2015 - 08:06 AM

I think you could use:

 

EraseJournalEntry(~Contents of @1 from yourMod/replace.tra~)

 

Where @1 should be exactly equal to the string that you want to erase - I've seen this kind of syntax used in ACBre's fixpack patch (no clue how it works though - it's not documented in the WeiDU readme :lol:)


"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#3 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 24 November 2015 - 08:24 AM

I think you could use:

 

 

EraseJournalEntry(~Contents of @1 from yourMod/replace.tra~)

 

 

Where @1 should be exactly equal to the string that you want to erase - I've seen this kind of syntax used in ACBre's fixpack patch (no clue how it works though - it's not documented in the WeiDU readme :lol:)

Thank you for the hint - I will take a  look.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*

 


#4 Roxanne

Roxanne

    Modder

  • Member
  • 3564 posts

Posted 24 November 2015 - 12:45 PM

Found the source I was looking for.

 

Thread considered closed.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*