IronBlockGames

[Sky] Making a book - issues with pagebreak

Hello, so I am having a large issue with a small tidbit to a player house I've been trying to do. It's A Journal that I am adding just to give a little story to the place and hint at something darker going on there. The issue is I'm having some trouble with the formatting.

See, to allow for some elements I am making each of the book's pages as images vs just using the normal html and text stuff. This so I can add marks to the pages, blotted out words and some sketch's. The issue is I am having trouble getting each page to be on each page.

I know [pagebreak] will split the pages. However it's not doing that for me.

This here is the text for the book

<img src='img://textures/EtherflowTower/kj001.png' height='450' width='300'>
[pagebreak]

<img src='img://textures/EtherflowTower/kj001.png' height='450' width='300'>
[pagebreak]

<img src='img://textures/EtherflowTower/kj001.png' height='450' width='300'>
[pagebreak]

(same page for place holders+ testing)

However in game

http://i.imgur.com/hG6JkbF.jpg

I get that.

Each page image is indeed 450x300px in size (that was a rough size guess for the pages, it seems to fit in just fine). I dunno if I -need- the size in the html but everything I find says yes so... But right now I can't get the pages to 'break' properly. I even copied the [pagebreak] from another book to check if the formatting was wrong and got the same issue. I also know it's not working at all, as if I add in even more pages (I did a total of 12) the tops/bottoms clip into one another due to the pagebreak text.

How do I fix this?

http://i.imgur.com/srMP5QC.png

0

Share this post


Link to post
Share on other sites

Try adding a space between the pagebreak and the img tag, with the pagebreak before the image like

[pagebreak]

<img src='img://Textures/Interface/Books/yourimage.png' width='300' height='450'>

The top image should not need a pagebreak

0

Share this post


Link to post
Share on other sites

I gave that a try, but all the extra space did was make the pages only show on the left page leaving the right blank.

 

<img src='img://textures/EtherflowTower/kj001.png' height='450' width='300'>

[pagebreak]

<img src='img://textures/EtherflowTower/kj002.png' height='450' width='300'>

[pagebreak]

<img src='img://textures/EtherflowTower/kj003.png' height='450' width='300'>

9VF2kVz.jpg

0

Share this post


Link to post
Share on other sites

Maybe try it without using [pagebreak] at all...? Maybe your images fit nicely on each page without forcing a break.

Edited by grond
1

Share this post


Link to post
Share on other sites

That was going to be my next suggestion too, because the blank page is your page break, maybe try without and see how that works :yes:

0

Share this post


Link to post
Share on other sites

Also, you can verify left as opposed to center alignment.

example:

[pagebreak]

<p align="left">

<img src='img://Textures/Interface/Books/modauthor/modname/actualpicture.jpg>

 

Adjjusting picture size seems to be more helpful.  I noticed that conventionally, that there are 28 characters per page, you are squeezing in a lot for one page.

0

Share this post


Link to post
Share on other sites

Does Skyrim use the <br /> command? That might help instead of using [pagebreak]. :shrug:

0

Share this post


Link to post
Share on other sites

Does Skyrim use the <br /> command? That might help instead of using [pagebreak]. :shrug:

BR in html is the same thing as hitting enter on your keyboard.
Yep.. that there is
all
it
does.

Pagebreak tells the game that no more is to be on that page, and to go to the next.

So far nothing has worked. I even tried taking out the page break all together but sense I don't have the exact height for each page they seem to skooch a little further and further onto other pages as it goes. The closest I gotten has the first page fine, but every other page nudged down lower so the bottom of the page gets cut off.

I'm starting to think going for images for the pages was a mistake.. but how else will I include smudged text, glyphs, runes,
The books there to kind of tell the story of two mages who snuck their way into Skyrim and though trickery got into the collage of winterhold in hopes that the knowledge there will aid them in some shady research, and then gaining access to this tower player home. It won’t be a novel as most the pages are 'ripped out' but it'll be something optional for the immersed to enjoy.

 

If I can just get the pages to behave. I even extracted the game texture files to look for the size of the books page and from what I seen I'm pretty spot on but not perfect. 

Edited by IronBlockGames
0

Share this post


Link to post
Share on other sites

I know what br does, IBM, but I thought if you added them, you could force your images onto the next page without having to deal with pagebreaks. You might want to try enclosing your images in paragraph tags to see if the breaks will work then. I know I'm grasping at straws here, but something has to work...

0

Share this post


Link to post
Share on other sites

If you look at the book Oghma Infinium, which is just two pictures, it has no spacing in the formating at all. Maybe try that?

 

<img src='img://Textures/Interface/Books/Daedric Artifact book/Daedric Artifac00.png' height='471' width='296'>
[pagebreak]
<img src='img://Textures/Interface/Books/Daedric Artifact book/Daedric Artifact01.png' height='471' width='296'>

..or, another example is Shalidor's Insights,

 

<img src='img://Textures/Interface/Books/Arcane Scribblings/arcane00.png' height='451' width='296'>
<pagebreak>
<img src='img://Textures/Interface/Books/Arcane Scribblings/arcane03.png' height='451' width='296'>

 

although, oddly, that has a < > instead of the square bracket.

Edited by Hanaisse
0

Share this post


Link to post
Share on other sites

I did try it with no space between the pagebreak,

All it did was show the pagebreak tag, and some how force the same page to display on every page.

2Bo8HWx.png

It's now only showing page 1 on every page :(

I am finding this odd as I did look at the other books that use images for pages and used them for guides. Funny my page image is smaller than what they use, shoot I made it 10 pixels taller than before to fill the page. Much bigger and it gets cut off.

Attached is the first page shown and used, (there's more but I'm not gona send over the whole book) and I'm using the JournalLowPoly01.nif (obj DB07Journal for base) as it's the only one that looks to be a old 'torn up' book. I dunno if that would have anything to do with it or not.

Maybe someone else can play with it and try and come up with a fix as nothing thus far has been working.

kj001.png

0

Share this post


Link to post
Share on other sites

Using your image, I did some experimenting and determined the issue.

Your image itself is 460x300 and you're using that exact size in your book. Obviously the book doesn't like that as my test with that size got the same results as you did above. Looking at existing book images I noticed none of them use their exact dimensions, so I knocked down the size slightly (-20 each way) in the book text, and voila, it came out perfect.

test01.thumb.jpg.ea8bdfb704a0a45ebb51152

test02.thumb.jpg.1c48ffb3fc7c3bf32ab23b7

So it seems you need somewhat of a margin around your images or else it's pushing everything out of whack. Lesson learned for everyone. :)

 

2

Share this post


Link to post
Share on other sites

That worked! WOOHOO! The only thing I'm not to keen on is the huge gap at the bottom of the page.

0

Share this post


Link to post
Share on other sites

Nice one Hannaise.  I wish I had time to work on this more.  I am trying to catch up.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now