Jump to content
  • 0
Sign in to follow this  
SkyLord

Help htmllength limitations

Question

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);

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0
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.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



  • Posts

    • We made a small update to our website and added youtube videos from our players from previous seasons. Also added twitch live videos (will be available to watch after server goes live). Users who wish can already register their accounts for the upcoming season. Visit our website for full information: http://l2ovc.com/
    • your link redirects to l2mythras =)
    • L2Hallate High Five Server I welcome everyone I wanted to present new server High Five Server x 4. We are adding all efforts so that server is friendly for everyone player's. We invite everyone to play together. We guarantee the lack of lag and ddos. The server does not provide wipes and is focused on long-term game. New webside and forum Official start 01.09.2018 17.00 GMT+1 Beta test started
      Links:
      Website: https://www.l2hallate.com/
      Forum:   https://www.l2hallate.com/forum-1 Experience (EXP): 4x
      Skill Points (SP): 4x
      Adena : 4x
      Drop Items: 3x
      Spoil: 2x
      Recs-Keys: 2x
      Quest Experience (EXP): 2x
      Quest Skill Points (SP): 2x
      Quest Adena: 2x
      Quest Drop Items: 2x
      Weight Limit: 1x
      Manor: 2x
      Extract Fish: 2x Accesories
      Pets, Clan Section
      AA Exchange, Event Exchange, Sell (Epic bosses)

      Ant Queen - Respawn = 36 hour Respawn Random + - 17 hour
      Beleth - Respawn = 192 hour Respawn Random + - 36 hour
      Baium - Respawn = 120 hour Respawn Random + - 10 hour
      Antharas - Respawn = 192 hour Respawn Random + - 12 hour
      Valakas - Respawn = 264 hour Respawn Random + - 12 hour Instances: Normal Freya - Required players 10-27
      Instances: Hard Freya - Required players 36-45
      Instances: Frintezza - Required players 36-45
      Instances: Zaken Daytime - lvl-83, Required players 9-27
      Instances: Zaken Daytime - lvl-60, Required players 9-27
      Instances: Zaken Nightly - lvl-60, Required players 72-450
      Instances: Tiat, Required players 36-45
      Instances: Beleth, Required players 36   Safe Enchant: 3
      Max. Enchant: 16
      Normal Scroll chance: 60%
      Blessed Scroll chance: 60% Elemental Max. Level: Level 7
      Elemental Stone chance: 40%
      Elemental Crystal chance: 30%
      Sub-Class Max. Level : 85
      Off-line Shop mode
      Vitality System
      Unique Community Board
      Drop list Search Engine
      Wedding System
      Event Engine
      Clan tab
      Achievement Engine
      Player ranking
      Personal control panel
      Max. Clients per PC : 2
      Olympiads Max. Enchant : 6
      Anti-Bot
      Geodata and Pathnodes
      Raid Boss event
      All quest and instances working
      Everything inside is made in java, nothing python
      Skills using official formulas
      Simulate Official Kernels
      Protection
      AntiBot protection
      DDoS protection
      The subsidy reduced to a minimum
      Location:France Buff Slots : 20+4
      Dance and Songs Slots : 12
      Duration of buffs - retail   Mini Events
      Team vs Team
      Team vs Team advanced
      Capture the Flag
      Domination
      Mass Domination
      Deathmatch
      Last Man Standing
      Lucky Chest
      Mutant
      Treasure Hunt
      Treasure Hunt PVP
      Battlefield


      More Info in Game. See you there :)
    • I do not need long words. Best of the best pts.
  • Topics

×