Jump to content
Eternal Lands Official Forums
Raistlin

Book of Book writing

Recommended Posts

The new book of book writing has 95k pages, seems the field value to handle pages of books is too small. CTRL+K shows I only have to read 29464 pages (95000 - 65536 = 29464), looks like an overflow there. I think the field value is working with 16bit, which is too small. Never occured before because the max page count so far is 55k.

 

I hope you understand what I mean, not very good in such programming related things.

 

Update: I went to fastread and have now read 29832 / 29464 pages. ETA -10 min. So I assume the number of pages is counted correctly internally (I hope :sneaky:)

Edited by Raistlin

Share this post


Link to post
Share on other sites

This appears to be a restriction of both the client and server. The relevant code to extract the numbers from the server message is:

        your_info.research_completed=SDL_SwapLE16(stats[47]);
       your_info.researching=SDL_SwapLE16(stats[81]);
       your_info.research_total=SDL_SwapLE16(stats[82]);

 

This is indeed using 16 bit integers, but because it is extracting them from a stream of chars it will require simultaneous changes to both the client and server to support the 32 bit values without messing up the succeeding stats.

Edited by Torg

Share this post


Link to post
Share on other sites

Just a quick follow-up, don't know if it's relevant, but #research shows the correct numbers, both for the points left and total.

 

My #research replies:

You are researching Book writting. Research points left:38279/95000. ETA: 1739 minutes

 

The research window shows 56765/29464 ... hmm, wonder what will happen when research_completed excedes 16bit, will it overwrite stats[48]

Edited by DanRothar

Share this post


Link to post
Share on other sites

Just a quick follow-up, don't know if it's relevant, but #research shows the correct numbers, both for the points left and total.

 

My #research replies:

You are researching Book writting. Research points left:38279/95000. ETA: 1739 minutes

 

The research window shows 56765/29464 ... hmm, wonder what will happen when research_completed excedes 16bit, will it overwrite stats[48]

 

#research shows correct till ~65k .. after it messes up.. at least shows correct time left prolly..

You are researching Book writting. Research points left:65498/95000. ETA: 3638 minutes

You are researching Book writting. Research points left:65138/95000. ETA: 3618 minutes

You are researching Book writting. Research points left:65048/95000. ETA: 3613 minutes

You are researching Book writting. Research points left:65048/95000. ETA: 3613 minutes

You are researching Book writting. Research points left:63968/95000. ETA: 3553 minutes

as u can see after a certain point researched points start decreasing instead of increasing.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Update: I read the book now, all fine. #research worked correct, yes.

The knowledge bar increased to a huge bar meanwhile, after it reached 65536/29464 , it dropped back to 0/29464, so in total it's correct :)

Share this post


Link to post
Share on other sites

I think #research shows completely different numbers..

On knowledge i am at 38934/29464 ... and #research shows:

You are researching Book writting. Research points left:56066/95000. ETA: 3114 minutes

(it has raised up to 65k since then decreased to 56k...)(was at ~65k when reached 29464)

Share this post


Link to post
Share on other sites

There's also an error in the name: writting with double t.

 

I already reported this in the spelling thread.

Share this post


Link to post
Share on other sites

Greetings all,

 

After being less active for about a year, I started to pick up things again. One of those things was a Book..the Book of Bookwriting, for a writer like me, a must-have! Although i stil dont have a clue what I can do with it, but I'll figure that out.

 

Now..whilst reading, all of the above mentioned issues came up.

I asked maxine about it, and she told me she thought it was solved.

Well, i dont think so..

Still getting the enormous progress bar..and the book gets longer whilst reading..now.for a good novel I wouldnt mind..but in this case..^^

Anyways, Maxine asked me to post here, so i did.

 

Thanks for listening!

Share this post


Link to post
Share on other sites

Just keep reading, you will finish it ;)

 

 

Yes Raistlin, I know that I only reported it coz Max asked me too, incase it was missed with the clientupdate.

 

Jez

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

×