Hello,

Has anyone encountered the issue mentioned in title ?

My staff and I are trying to create looooooong XML Spawners, like filling the 20 pages of a book for en entry.

BUT ... when you close the book, the code is eaten by a vortex and disappears. Darn, it, it's not convenient to script/xml mobs on 10 entries, rather than 1 entry full of XML. ^^

Any idea how to fix this ? This doesn't seem linked to the version of XML Spawners used, as I tried a new one. It seems linked to a recent change in SevUO core/distro scripts, as around 1 year ago, with the same XML Spawners scripts, everything was working fine.

Thx for you help !!
 
I just tested this on mine, it won't even save the entirety of one page (erases the last 2 lines).


Update:
I just setup a freshly downloaded copy of ServUO with no edits and a current classic client, and it does the same thing. Blue Books also won't save past the first page as well.
Post automatically merged:

After some more testing, it seems if you ever type anything on the last two lines of a page it doesn't save it properly, otherwise it does.
Post automatically merged:

The Fix (at least for classic client no idea about others):

BaseBook.cs
line 205 change
C#:
                for (int i = 0; i < 8; ++i)
to
                for (int i = 0; i < 10; ++i)

line 555 change
C#:
                    if (lineCount <= 8)
to
                    if (lineCount <= 10)


*************************************************
XmlTextEntryBook.cs
Line 42 change
C#:
                int lineCount = 8;
to
                int lineCount = 10;

Line 220 change
C#:
                    if ( lineCount <= 8 )
to
                    if ( lineCount <= 10 )

Line 291 change
C#:
                        if (lineCount <= 08)
to
                        if (lineCount <= 10)
 
Last edited:
@Visam
Thanks a lot !!

Your fix works perfectly !
Indeed, the books have 10 lines ... not sure why it was set to 8 before ... have the books become 2 lines longer in newer Clients ?

Anyways, thanks a lot !
 
I'm guessing it has. I looked back into some of my older servers from years ago and they all have 8 for the linecount and I never had this issue till now. Odd thing with it is spawners and books I had made in the past all still worked, but it left the last 2 lines blank on each page when opening it.
 
I just tested this on mine, it won't even save the entirety of one page (erases the last 2 lines).


Update:
I just setup a freshly downloaded copy of ServUO with no edits and a current classic client, and it does the same thing. Blue Books also won't save past the first page as well.
Post automatically merged:

After some more testing, it seems if you ever type anything on the last two lines of a page it doesn't save it properly, otherwise it does.
Post automatically merged:

The Fix (at least for classic client no idea about others):

BaseBook.cs
line 205 change
C#:
                for (int i = 0; i < 8; ++i)
to
                for (int i = 0; i < 10; ++i)

line 555 change
C#:
                    if (lineCount <= 8)
to
                    if (lineCount <= 10)


*************************************************
XmlTextEntryBook.cs
Line 42 change
C#:
                int lineCount = 8;
to
                int lineCount = 10;

Line 220 change
C#:
                    if ( lineCount <= 8 )
to
                    if ( lineCount <= 10 )

Line 291 change
C#:
                        if (lineCount <= 08)
to
                        if (lineCount <= 10)
This is gonna sound dumb But do I do this in the classic client and the servuo aswell???
Post automatically merged:

I just tested this on mine, it won't even save the entirety of one page (erases the last 2 lines).


Update:
I just setup a freshly downloaded copy of ServUO with no edits and a current classic client, and it does the same thing. Blue Books also won't save past the first page as well.
Post automatically merged:

After some more testing, it seems if you ever type anything on the last two lines of a page it doesn't save it properly, otherwise it does.
Post automatically merged:

The Fix (at least for classic client no idea about others):

BaseBook.cs
line 205 change
C#:
                for (int i = 0; i < 8; ++i)
to
                for (int i = 0; i < 10; ++i)

line 555 change
C#:
                    if (lineCount <= 8)
to
                    if (lineCount <= 10)


*************************************************
XmlTextEntryBook.cs
Line 42 change
C#:
                int lineCount = 8;
to
                int lineCount = 10;

Line 220 change
C#:
                    if ( lineCount <= 8 )
to
                    if ( lineCount <= 10 )

Line 291 change
C#:
                        if (lineCount <= 08)
to
                        if (lineCount <= 10)
Ok I must be on a old Servuo because them lines are not what you say in my BaseBook.cs :(
Post automatically merged:

NM I got it I had to mess with it a min and thanks ya'll
 
Last edited:
Back