[RELz] Oblivion Book Creator

Post » Sat May 28, 2011 9:05 am

Since no one noticed my first beta thread here is a new one for my final release of this mod!

http://www.tesnexus.com/downloads/file.php?id=29124
http://www.invision.tesalliance.org/forums/index.php?app=downloads&showfile=258
http://planetelderscrolls.gamespy.com/View.php?view=OblivionMods.Detail&id=6065


http://www.tesnexus.com/downloads/images/29124-1-1262572285.jpg

Oblivion Book Creator
--------------------------

Do you have a lengthy story and want to put it in Oblivion but are turned off because the tedious process of putting
at the end of every line and the HTML-like formatting? The Oblivion Book Creator lets you instantly convert normal text into CS-friendly formatting. With a click of a button you can add in the codes to change fonts, colors, sizes, align text, create line and page breaks, insert fancy font, and insert your own images that can be seen in the book in-game. Copy the converted text right into the CS to create a book without any tedious typing or copy and pasting. Expanding your in-game library has never been easier!

Features:
---------------

* Convert - Will automatically convert any text in the Oblivion Book Creator text area into Oblivion Book Format (add
to the end of each line). Once you click the convert button you can use the other Oblivion Book Format features in the menu bar (Change font, size, color, insert image, insert fancy font, aligning, line break, and page break).

These features can be located in the menus on the menu bar at the top of the window:
* Open - Open any .txt or .rtf file and convert it into Oblivion Book Format. Any other file may not open correctly.
* Save and Save as - Save your converted text as a .txt file, so you can open it again later with the Oblivion Book Creator. Just make sure you add a ".txt" at the end of the filename while saving as. Click the save button later to save on the file you created earlier with save as. (If you click save without clicking save as before-hand, a new .txt file called OblivionBook# will be added to the same folder that the OblivionBookCreator.jar is in.)
* Undo - The wonderful undo is here, so do not fear! Make a mistake and the undo button will save your book.
* Copy - Copy all the text in the Oblivion Book Creator text area to your clipboard so you can paste it in the CS. (or ctrl+a then ctrl+c)
* Paste - Paste any text from your clipboard to the Oblivion Book Creator text area. (or ctrl+v)
* Change Font - Inserts code around highlighted text to change the font to any of the five Oblivion fonts.
* Change Size - Inserts code around highlighted text to change the font size to any of the five Oblivion font sizes.
* Change Color - Inserts code around highlighted text to change the font color to any of eight pre-determined colors. Change the color number yourself once the code is inserted to create any other color.
* Insert Image from File - Opens a prompt asking for the desired image size and then a file chooser will open where you can select any image and the directory will be copied into the code. Make sure you only select .dds file though, any other image file will not show up in-game. This will insert the image code to wherever your cursor is in the text when you press the button.
* Insert Fancy Font - Lets you select any of the fancy fonts created by Bethesda. The directory and size will automatically be created with the code which is inserted to wherever your curser is in the text when you press the button.
* Aligning Options - Automatically surround any portion of text with the code for center, left, or right alignment.
* Line Break - If you have to add in some text after you already used the convert button, use this feature to add in the
code into wherever your curser is in the text. This causes the in-game book text to stop and then go to the next line.
* Page Break - End of a chapter? Use this to make the in-game book to end the page and start a new one. Remember, this only works for books and is ignored by scrolls.
* Help - If you ever forget how something works consult this readme by clicking the Readme File button in the Help menu.

This file includes all of the vanilla oblivion fancy fonts so you can select them with the file chooser if you have not unpacked your textures.bsa.

Read the readme included with the file to get more information.

ALSO, included is an extensive guide on how to make a book in Oblivion using the CS and the Oblivion Book Creator.

Change Log:
-------------
0.9 - 1/3/2010 - Initial Beta Version.
1.0 - 1/11/2010 - Version 1.0
* Added a close button on the main interface to give the user a second way to exit.
* Removed the requirement that you need to convert before using many of the features.
* Updated readme (also added guide to making books in Oblivion)


Author: Critterman
Version: 1.0 Final
Date: 1/11/2010
Category: Utilities
Requirements: Java JRE 6 or higher
User avatar
Leah
 
Posts: 3358
Joined: Wed Nov 01, 2006 3:11 pm

Post » Fri May 27, 2011 8:19 pm

Sounds like a useful tool.
User avatar
Trent Theriot
 
Posts: 3395
Joined: Sat Oct 13, 2007 3:37 am

Post » Fri May 27, 2011 8:32 pm

Does sound pretty great
User avatar
Antony Holdsworth
 
Posts: 3387
Joined: Tue May 29, 2007 4:50 am

Post » Sat May 28, 2011 9:14 am

I can sa y 100% this is extrememly useful program for any modder.
User avatar
Klaire
 
Posts: 3405
Joined: Wed Sep 27, 2006 7:56 am

Post » Sat May 28, 2011 8:52 am

I can say it is a great idea and I will be using it at somepoint... when I dunno... but I can also that when I want it is is a single click away... added a shortcut to it to Wrye Bash's launchers list.
Thanks!
Pacific Morrowind
User avatar
Queen
 
Posts: 3480
Joined: Fri Dec 29, 2006 1:00 pm

Post » Fri May 27, 2011 6:56 pm

Thank you so much for releasing this Critterman! This will be immensely useful, especially to those of us who aren't that familiar with HTML. I will definitely be using this, thanks again.
User avatar
Baby K(:
 
Posts: 3395
Joined: Thu Nov 09, 2006 9:07 pm

Post » Sat May 28, 2011 8:35 am

Thanks for the kind comments everyone. :)

I made it because I knew it would be useful :D . I'm glad you guys are keeping it at hand and finding a use for it. :nod:
User avatar
Far'ed K.G.h.m
 
Posts: 3464
Joined: Sat Jul 14, 2007 11:03 pm

Post » Fri May 27, 2011 11:16 pm

Since no one noticed my first beta thread here is a new one for my final release of this mod!
SNIP....


No?

http://www.gamesas.com/bgsforums/index.php?s=&showtopic=1066419&view=findpost&p=15516965

In addition here it needs another "tweak" for a non-bug in the CS.

From WIKI: Warning: Do not use “ speech marks when coding or in writing, only " or ”, the main reason being that “ speech marks tend to disrupt coding. The book will still work, but parts of the coding will be obvious in game (such as having < marks everywhere), and the coding may not have taken effect.

Basically remove the quotation marks from the FONT, DIV, and COLOR tags.
Wrong:
< FONT face="1" >
< DIV align="center" >
< FONT color=”00FF00” >

Correct:
< FONT face=1 >
< DIV align=center >
< FONT color=00FF00 >
User avatar
CYCO JO-NATE
 
Posts: 3431
Joined: Fri Sep 21, 2007 12:41 pm

Post » Sat May 28, 2011 8:09 am

very usefull indeed
User avatar
neen
 
Posts: 3517
Joined: Sun Nov 26, 2006 1:19 pm

Post » Sat May 28, 2011 1:23 am

Sweet! I'll be getting this now. Writing stories to go in game is tiring enough on its own, without having to then go over and format everything. Thanks! :)
User avatar
Chelsea Head
 
Posts: 3433
Joined: Thu Mar 08, 2007 6:38 am

Post » Sat May 28, 2011 3:26 am

No?

http://www.gamesas.com/bgsforums/index.php?s=&showtopic=1066419&view=findpost&p=15516965

In addition here it needs another "tweak" for a non-bug in the CS.

From WIKI: Warning: Do not use " speech marks when coding or in writing, only " or ", the main reason being that " speech marks tend to disrupt coding. The book will still work, but parts of the coding will be obvious in game (such as having < marks everywhere), and the coding may not have taken effect.

Basically remove the quotation marks from the FONT, DIV, and COLOR tags.
Wrong:
< FONT face="1" >
< DIV align="center" >
< FONT color="00FF00" >

Correct:
< FONT face=1 >
< DIV align=center >
< FONT color=00FF00 >


I'm terribly sorry, I didn't bother looking at the Beta thread because it was so far off the front page last time I checked it...

I'll remove the quotation marks on the tags :)

And about what you reported on the last thread, the only thing I didn't understand was:

In the Font Face Tab you have "Kingthings_Shadowed" for Font 2. My Font 2 is "DarN_LG_Kingthings_Petrock_14"

This isn't an issue though, because you have Font Size as well.
But...
The tags < FONT face="Kingthings_Regular" > < /FONT > (from the Font Face tab) and < FONT face="1" > < /FONT > (from the Font Size tab) do exactly the same thing.

So does that mean using < FONT face=2 > < /FONT > will pull whatever you have for font two into the game, vanilla or modded? (for you: Darn_LG_Kingthings_Petrock_14)

Have the background change automatically to a different color when a different Font from default (Font 1) is inserted for a user specified numbers of characters.

Can you explain a little more. You mean the color of the text area (from white to another color)?
User avatar
Janeth Valenzuela Castelo
 
Posts: 3411
Joined: Wed Jun 21, 2006 3:03 am

Post » Fri May 27, 2011 9:07 pm

Couple questions, the quotations only messes up with the tags/ Actual code that is to be written when filling in the books. (I should know this... I just aced my programming class.. Stupid me)

The other isn't a question but a comment, i can finally add a book for the story of my mod. Which is completely awesome was hoping for a mod like this.

Ultimately I think it comes down to you can change the font style, to whatever you want and also it's color as well if I understand it correctly. The "page" color as in the tanish colored pages maybe changed as well, though it would be an interesting if not mildly immersive thing to do. Image a magic tome written on a black or blue page, with gold or silver inlay writing on it. Either way the idea behind this mod is awesome and I plan on making full use of it.
User avatar
Stacyia
 
Posts: 3361
Joined: Mon Jul 24, 2006 12:48 am

Post » Sat May 28, 2011 6:54 am

I'm terribly sorry, I didn't bother looking at the Beta thread because it was so far off the front page last time I checked it...

I'll remove the quotation marks on the tags :)

And about what you reported on the last thread, the only thing I didn't understand was:


So does that mean using < FONT face=2 > < /FONT > will pull whatever you have for font two into the game, vanilla or modded? (for you: Darn_LG_Kingthings_Petrock_14)


Can you explain a little more. You mean the color of the text area (from white to another color)?


Exactly! When you specify FONT face=X, whatever font is installed in the user's system is used, irregardless of what you are using on your system.

As to the color scheme, I was speaking of the text input area background of your app.
When I put a font tag of 1 (which by the way is the default and is used if no font tag is used), your app would change the background color to, oh, say light blue.
When I change a font tag to 2, your app would change the background for that line and any line until a end font tag is detected to light yellow, perhaps.
Font 3, 4, and 5 would each have their own color.

As to the number of characters, basically if you are trying to set up columns in your "book" you need to count spaces / characters. It is a hell of a pain to save the mod, start OB, open your book, try to figure out how many spaces to add or delete, close OB, open the CS, make your guess changes, and start the process all over again.
(Istill have quite figured out how many space cahracters = one Font character. If you don't know it or haven't just figured out what I'm talking about, Spaces and characters do not share the same footprint when seen in an in-game book.)

Now that I'm thinking about it in more depth, I realize trying to do this is probably a coding nightmare. But then my coding experience is limited to Oblivion scripting these days.

And also, quotation marks are not wrong as I mentioned earlier. They are just a pain to work with if you intend on using them in your text as well.
It's just must easier to not use them since Oblivion doesn't care if they're there or not.

The "page" color as in the tanish colored pages maybe changed as well, though it would be an interesting

I'm almost 100% sure the the background of books, scrolls, spells, etc. is determined by the texture .dds and cannot be change with tags.
User avatar
Tina Tupou
 
Posts: 3487
Joined: Fri Mar 09, 2007 4:37 pm

Post » Fri May 27, 2011 10:58 pm

Exactly! When you specify FONT face=X, whatever font is installed in the user's system is used, irregardless of what you are using on your system.

As to the color scheme, I was speaking of the text input area background of your app.
When I put a font tag of 1 (which by the way is the default and is used if no font tag is used), your app would change the background color to, oh, say light blue.
When I change a font tag to 2, your app would change the background for that line and any line until a end font tag is detected to light yellow, perhaps.
Font 3, 4, and 5 would each have their own color.

As to the number of characters, basically if you are trying to set up columns in your "book" you need to count spaces / characters. It is a hell of a pain to save the mod, start OB, open your book, try to figure out how many spaces to add or delete, close OB, open the CS, make your guess changes, and start the process all over again.
(Istill have quite figured out how many space cahracters = one Font character. If you don't know it or haven't just figured out what I'm talking about, Spaces and characters do not share the same footprint when seen in an in-game book.)

Now that I'm thinking about it in more depth, I realize trying to do this is probably a coding nightmare. But then my coding experience is limited to Oblivion scripting these days.

And also, quotation marks are not wrong as I mentioned earlier. They are just a pain to work with if you intend on using them in your text as well.
It's just must easier to not use them since Oblivion doesn't care if they're there or not.


I'm almost 100% sure the the background of books, scrolls, spells, etc. is determined by the texture .dds and cannot be change with tags.


Ok I see now. But what if the user uses more than one font, what color would the background be then? You also mentioned in the last thread to set the character limit to a certain number of characters per line depending on the font used. This wouldn't work if the user had more than one fonts in the text as well.

I can make it so that you can set the character limit per line (when you reach that limit it will force you to write onto the next line). It would be an overall limit for the whole text area. And when you click convert the
s will make a column. But since we don't know how much characters the space takes up then it will be slightly flawed. Also, if you set the character limit while there is text in the text area then it will hack up words if they go past the character limit. So maybe it would be better to have it push the word to the next line if it goes over the limit?

And yeah there are textures for the background of in game books.
User avatar
amhain
 
Posts: 3506
Joined: Sun Jan 07, 2007 12:31 pm

Post » Fri May 27, 2011 9:45 pm

Ok I see now. But what if the user uses more than one font, what color would the background be then? You also mentioned in the last thread to set the character limit to a certain number of characters per line depending on the font used. This wouldn't work if the user had more than one fonts in the text as well.

I can make it so that you can set the character limit per line (when you reach that limit it will force you to write onto the next line). It would be an overall limit for the whole text area. And when you click convert the
s will make a column. But since we don't know how much characters the space takes up then it will be slightly flawed. Also, if you set the character limit while there is text in the text area then it will hack up words if they go past the character limit. So maybe it would be better to have it push the word to the next line if it goes over the limit?

And yeah there are textures for the background of in game books.

< FONT face=3 >This is what I am envisioning.< /FONT > When you type a Font tag, the background changes with it.< FONT face=2 >Except within this example, I changed the text color instead of the background,< /FONT >< FONT face=5 > becasue the forum software won't let me.< /FONT >
(hmmm, now that I see a preview of this, automatically changing the text color like this would be a huge improvement and all that would be needed, I think.)

Absolutely push "over the limit" words to the next line. That's the reason for the limit in the first place.
That's exactly what the game does when it renders your book on screen.
You would be able to get closer approximation of how your writing will look in game.
And if you could code the text color to change automatically, maybe you could put the limit in also.

Damn...I thinking again....
I know, it's dangerous....
But...
What if you could actually make your app display the "formatted text" without the tags?
Like you can with standard html when you open your page in a browser.
Now THAT would be killer.

If there were some way to get the page format of the books worked out in relation to various fonts,
you could write an entire novel and it would render in game just the way you wrote and formatted it.

And that's what I'd like to see. Your app is killer already, but if you could code it to include my ideas, WOW!
User avatar
Gwen
 
Posts: 3367
Joined: Sun Apr 01, 2007 3:34 am

Post » Sat May 28, 2011 2:46 am

This resource is just plain Awesome :)
User avatar
Andrea Pratt
 
Posts: 3396
Joined: Mon Jul 31, 2006 4:49 am

Post » Sat May 28, 2011 5:08 am

Thank You SO much for this mod, i've been writing a short story about oblivion and this is PERFECT so i can actually put it in game!!! :hehe:
User avatar
SWagg KId
 
Posts: 3488
Joined: Sat Nov 17, 2007 8:26 am

Post » Sat May 28, 2011 4:21 am

Incredibly useful stuff! Thanks!

One thing to report: when I want to use Bethesda's fancy font, the code generated by OBC looking like this doesn't work:
<IMG src="http://forums.bethsoft.com/index.php?/topic/1068228-relz-oblivion-book-creator/C:\Program Files\Bethesda Softworks\Oblivion\Data\Textures\Menus\Book\fancy_font\a_70x61.dds" width=70 height=61>


I've found that it will actually work if I correct the code into(file path modified, " replaced with " ):
<IMG src=http://forums.bethsoft.com/index.php?/topic/1068228-relz-oblivion-book-creator/"Textures\Menus\Book\fancy_font\a_70x61.dds" width=70 height=61>


brucevayne
User avatar
xemmybx
 
Posts: 3372
Joined: Thu Jun 22, 2006 2:01 pm

Post » Sat May 28, 2011 8:14 am

Incredibly useful stuff! Thanks!

One thing to report: when I want to use Bethesda's fancy font, the code generated by OBC looking like this doesn't work:
<IMG src="http://forums.bethsoft.com/index.php?/topic/1068228-relz-oblivion-book-creator/C:\Program Files\Bethesda Softworks\Oblivion\Data\Textures\Menus\Book\fancy_font\a_70x61.dds" width=70 height=61>


I've found that it will actually work if I correct the code into(file path modified, " replaced with " ):
<IMG src=http://forums.bethsoft.com/index.php?/topic/1068228-relz-oblivion-book-creator/"Textures\Menus\Book\fancy_font\a_70x61.dds" width=70 height=61>


brucevayne

Ok thanks I'm working on a fix for that and a few other problems on this application. I should hopefully have it out soon.
User avatar
leigh stewart
 
Posts: 3415
Joined: Mon Oct 23, 2006 8:59 am


Return to IV - Oblivion