Journals

Moderator: Event DM

Post Reply
User avatar
Dirk Cutlass
Elder Sage
Posts: 4691
Joined: Mon Jan 27, 2003 9:42 am
Location: GMT

Journals

Post by Dirk Cutlass » Mon Dec 13, 2004 10:30 am

Anyone know anything about journal entries?

I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?

The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?

I'll tell you what I want to do...

Have an event on joining the server that adds a journal entry which contains Avlis rules, FAQs, etc. Like they do on Rockhome (quite nice feature BTW). Anyway, this is actually quite simple to hard-code. But it would be nicer if there was a way to have the journal info was separate somehow. (It would be easier to update / maintain, easier to share with other servers, etc. etc.).

Can the journal info be extracted from the .mod file (so it could be edited / updated off-line) and the re-inserted into all .mods (e.g. as a server side override, or something????)

PS: Anyone know how they do it on Rockhome. I'm guessing its' hard-coded, but I could be wrong.

PS2: Whats the script function that creates an event when a player joins the server?
User avatar
Krator
Elder Sage
Posts: 4935
Joined: Thu Jun 10, 2004 6:44 pm
Timezone: GMT
Location: Amsterdam

Re: Journals

Post by Krator » Mon Dec 13, 2004 10:39 am

Dirk Cutlass wrote:Anyone know anything about journal entries?

I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?

The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?

I'll tell you what I want to do...

Have an event on joining the server that adds a journal entry which contains Avlis rules, FAQs, etc. Like they do on Rockhome (quite nice feature BTW). Anyway, this is actually quite simple to hard-code. But it would be nicer if there was a way to have the journal info was separate somehow. (It would be easier to update / maintain, easier to share with other servers, etc. etc.).

Can the journal info be extracted from the .mod file (so it could be edited / updated off-line) and the re-inserted into all .mods (e.g. as a server side override, or something????)
Use the journal editor to make a journal entry and apply the correct tag. Use a script (Cannot remember the function name now, something like AddJournalEntry(PC, Tag) or something) or a conversation (in one of the tabs is a field where you can fill in the tag of the journal entry).
Journal entries cannot be exported within an .erf AFAIK, but like everything else it can be added and edited in the toolset, just like areas and scripts. It's really easy, but because it has to be added every time you log on and the new journal entry icon keeps flashing, that can be a bit irritating if you log in 5 times a day.
Dirk Cutlass wrote:PS2: Whats the script function that creates an event when a player joins the server?
Module Properties -> OnClientEnter I think
Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
User avatar
Tissa
Team Member; Retired with Honors
Posts: 623
Joined: Mon Sep 13, 2004 6:19 am
Location: Southern California
Contact:

Post by Tissa » Mon Dec 13, 2004 5:22 pm

Dirk Cutlass wrote:I see there is a function to add / update a journal entry to a player, but what about creating the journal entry in the first place? Is the only way to use the Journal Editor?
Yes. A very simple tutorial on creating journal entries
Krator wrote:(Cannot remember the function name now, something like AddJournalEntry(PC, Tag) or something)
the function is

Code: Select all

void AddJournalQuestEntry(
    string sCategoryTag,
    int nEntryID,
    object oCreature,
    int bAllPartyMembers = TRUE,
    int bAllPlayers = FALSE,
    int bAllowOverrideHigher = FALSE
);
Dirk Cutlass wrote:The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
The file is Module Data->module.jrl
I will not kill or hurt any living creature needlessly, nor destroy any beautiful thing,
but will strive to save and comfort all gentle life, and guard and protect all natural beauty that surrounds me
User avatar
Dirk Cutlass
Elder Sage
Posts: 4691
Joined: Mon Jan 27, 2003 9:42 am
Location: GMT

Post by Dirk Cutlass » Mon Dec 13, 2004 6:00 pm

Tissa wrote:
Dirk Cutlass wrote:The Journal data appears to be stored in .mod file, is there anyway to extract it or import it elsewhere?
The file is Module Data->module.jrl
Thanks. How do you get this .jrl file? I can't see it anywhere!

PS: prototype code for this is working. Got all the info I needed from NWNlexicon. Just the bit about whether I can "store it" in an external file, or not that I need to do now.
User avatar
Tissa
Team Member; Retired with Honors
Posts: 623
Joined: Mon Sep 13, 2004 6:19 am
Location: Southern California
Contact:

Post by Tissa » Mon Dec 13, 2004 8:40 pm

Dirk Cutlass wrote: Thanks. How do you get this .jrl file? I can't see it anywhere!

PS: prototype code for this is working. Got all the info I needed from NWNlexicon. Just the bit about whether I can "store it" in an external file, or not that I need to do now.
I can see it using "nwn explorer" under Module Data, you could export it using that tool. If you want to edit the file raw the format is given here.

you also might want to look at something like this Persistent Journal System

Edit: you might want to read this thread as well http://nwn.bioware.com/forums/viewtopic ... 1&forum=46.
I will not kill or hurt any living creature needlessly, nor destroy any beautiful thing,
but will strive to save and comfort all gentle life, and guard and protect all natural beauty that surrounds me
Post Reply