Jump to content
  • 0

Question

Posted

There is some function on address 0x007d5d40  that seems to be ued for sending packets. It looks like its limited to about 8k bytes. Is there some way to overcome the limit, or use another function on different address? we use it to send html for the board.

 

typedef void (*f)(CSocket*, const char*, va_list va);
    
    va_list va;
    va_start(va, format);
    f(0x7D5D40)(this, format, va);
    va_end(va);

3 answers to this question

Recommended Posts

  • 0
Posted

Even if you bypass the 8k limit, I doubt its gonna work without problems. Not talking about networking problems since TCP can handle packets 40+k with an upper limit of 65k. 

 

The game will probably ignore the rest of your bytes while parsing the text

  • 0
Posted

the reason for the limit is it's the size ncsoft uses for their IOBuffer class, for older chronicles its 8kb for newer its 16kb, you can overcome that limit if you change the allocation size in both the server and client to a larger amount but i wouldn't recommend it...

 

easier way to do it is copy how ncsoft handles large htmls for community board, fragment the html and send it in multiple packets, stick them together in the client and display it once you've received all the fragments

 

i've done it that way successfully for standard npc html and the client handles the larger buffer fine but there is an upper limit, i'm not 100% sure what that upper limit is as i can't be bothered to check into it but a 100kb html i tried to send once only partially loaded when sent direct to UGameEngine::OnNPCHtmlMessage, but i've had np with files around the 50kb mark

  • 0
Posted
4 hours ago, xxdem said:

Even if you bypass the 8k limit, I doubt its gonna work without problems. Not talking about networking problems since TCP can handle packets 40+k with an upper limit of 65k. 

 

The game will probably ignore the rest of your bytes while parsing the text

 

HTML Viewer will be skips randomly the tags and text. I bypassed CB size and got this bug. Client Interlude or HF, not remember.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...