Server Totals
Elysia - (3)
Deglos - (2)
Mikona - (1)
Le'Or - (0)
Ferrell - (0)
M'Chek - (0)
Underdark - (0)
Wilderness - (0)
Visimontium - (0)
Total players: 6
Gallery

Links Menu

Book text extraction?

Moderators: Nighthawk4, Dungeon Masters

Book text extraction?

PostAuthor: badjabadjabadja » Sat Sep 19, 2015 1:55 pm

Wondering if anyone can help with this..

One of my PCs has found a fairly long IG book, and I would like to read this out IG.. but preferably without having to type out the entire thing! I have exported the PC's .bic, and with nwnexplorer I can see the start of the book text, but cannot see any way to extract the actual text.

I know I could use several screenshots to capture the text then use OCR to convert back into txt, but that seems rather clunky.

I haven't been able to work out any way to move the item from a saved .bic into a .mod that I can use the toolset on.

Any suggestions?

cheers ~badja

badjabadjabadja
QA Resource
 
Posts: 2144
Joined: Fri Jan 13, 2006 3:38 pm
Location: South Wales UK
Timezone: GMT (+1)

Re: Book text extraction?

PostAuthor: Zerub » Sat Sep 19, 2015 3:08 pm

Are you just wanting it in text? If so, download leto0.3.1.6.7.

Open the saved bic up. Go to Tools->Advanced Editor and then Item List. Just start opening you items up until you find the book. You can then just copy the text from there.

It is easiest if you have a small inventory and can find the book. That being said, I think if you move the book out of a bag to your inventory and then move nothing else to it, I think it will be listed first.

Scott

Zerub
Apprentice Scholar
 
Posts: 592
Joined: Fri Aug 05, 2005 12:50 pm
Timezone: utc -6

Re: Book text extraction?

PostAuthor: Zerub » Sat Sep 19, 2015 3:32 pm

Looks like you can get Leto1.69 here.

http://neverwintervault.org/project/nwn ... collection

Scott

Zerub
Apprentice Scholar
 
Posts: 592
Joined: Fri Aug 05, 2005 12:50 pm
Timezone: utc -6

Re: Book text extraction?

PostAuthor: Commander Morgan » Sat Sep 19, 2015 3:59 pm

Wow, S. I understood all of that except the actual words. Oh, and the context. ;-)

Commander Morgan
Scholar of Fools
 
Posts: 362
Joined: Wed Jan 11, 2006 1:17 pm
Location: The Grand Halls of the Fiddlesticks

Re: Book text extraction?

PostAuthor: Zerub » Sat Sep 19, 2015 4:11 pm

Sorry if I did not say it right.

Just download Leto from here:

http://goo.gl/A62YNP

Install it and then open it up. From there you can open up your local bic file from the Open tab. Usually that is in your NeverWinterNights folder under the localvault.

http://screencast.com/t/sLOfVXAwJfAa

Open up the Advanced Tools

http://screencast.com/t/4LqP1ujzc

Scroll down to the itemlist

http://screencast.com/t/xBQKHgGuPQ

Open up the items one at a time by clicking the '+' until you find what you want. It will look something like this.

http://screencast.com/t/ZpSOK557Hc

Htp.
Scott
Last edited by Zerub on Sat Sep 19, 2015 4:20 pm, edited 1 time in total.

Zerub
Apprentice Scholar
 
Posts: 592
Joined: Fri Aug 05, 2005 12:50 pm
Timezone: utc -6

Re: Book text extraction?

PostAuthor: Zerub » Sat Sep 19, 2015 4:17 pm

BTW, what i meant by having to find items and pulling one out of the bag and putting it into your inventory is this. If you have a lot of items in your inventory then you have to go through each "entry" above until you find it. If while IG, you pull the book out of a bag and put it in your inventory and then save your character to a bic file, I believe the book with be the very first "entry" under the item list, but I may be wrong.

Scott

Zerub
Apprentice Scholar
 
Posts: 592
Joined: Fri Aug 05, 2005 12:50 pm
Timezone: utc -6

Re: Book text extraction?

PostAuthor: badjabadjabadja » Sat Sep 19, 2015 5:05 pm

Hey Scott,

thanks for that: worked perfectly!

I had taken the book from a bag & left in open inventory before the export, so yes it turned out to be item one.

The text has lost all formatting, so I will need to re-do that. I think the limit for NWN chat text is 327 characters? That will be fairly simple to break it down into digestible chunks, using Word for example, as I can then check the total characters for each paragraph of text.

cheers! :prost:

badjabadjabadja
QA Resource
 
Posts: 2144
Joined: Fri Jan 13, 2006 3:38 pm
Location: South Wales UK
Timezone: GMT (+1)

Re: Book text extraction?

PostAuthor: Gorgon » Sat Sep 19, 2015 7:07 pm

badjabadjabadja wrote:The text has lost all formatting, so I will need to re-do that. I think the limit for NWN chat text is 327 characters? That will be fairly simple to break it down into digestible chunks, using Word for example, as I can then check the total characters for each paragraph of text.


NWN (and therefore LETO) do not use carriage returns + line feeds (CR+LF) for newlines in descriptions, only a line feed. If you paste into something like Windows notepad, you get one long line of text, since it looks for the CR.

Try a text editor that can handle UNIX end of line format (editpad, notepad++ or many others), or even just hit reply here, then paste the text into the reply. It should show the line breaks properly. Copy it back and done.

*edits* The text is not limited to what you can type in chat. The BioWare format docs suggest they not be larger than 1024 characters because of bandwidth issues, but you could probably make an insanely long book. You can imagine the problems IG, including server pauses, when it has to transmit huge amounts of data every time a simple book is examined.

*edit2* And, of course, I didn't reread why you cared about chat length in you first post until after typing that. :oops:
Have fun!
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5994
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PST -8

Re: Book text extraction?

PostAuthor: badjabadjabadja » Mon Sep 21, 2015 9:07 pm

Thanks Gorgon,

I did stumble upon that as I used Word so I could select a paragraph at a time to check the length...
I was wrong about it being a 327 character limit for IG chat.. and my google-fu failed too.. so I am not sure what the limit is!

Still.. the book breaks down nicely into manageable sentence/paragraph sized chunks.

so for my next project.. an epic IG reading of Above the Keep volumes 1 - 30 :flucht:

badjabadjabadja
QA Resource
 
Posts: 2144
Joined: Fri Jan 13, 2006 3:38 pm
Location: South Wales UK
Timezone: GMT (+1)

Re: Book text extraction?

PostAuthor: Gorgon » Mon Sep 21, 2015 9:37 pm

245 characters seems to be the dependable limit (including spaces, punctuation, hidden color codes etc). I was able to paste in 40,000+ the first time, but it didn't like that much. After that, it always cut off at 245. This was just local testing, and the online client may be different, but I doubt it.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5994
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PST -8


Return to NWN General Discussion

Who is online

Registered users: Bing [Bot], Blue Wolfy, Google [Bot]