Jump to content

Hik

Member
  • Posts

    276
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by Hik

  1. On 11/5/2021 at 12:20 PM, martysama0134 said:

    There are far better solutions than using std::map or std::unordered_map (which still takes a lot of ram for no reason for each mob):

     (I included the most important parts)

    You also forgot the CubeItems, and we could probably fit the quickslot too.

    Thanks, I followed the code structure you posted ?

    I get some sort of warning at this line: do you know how to solve?

    m_pointsInstant.playerSlots-> wDSItemGrid [wCell] = 0;
    
    Buffer Overrun: When accessing m_pointsInstant.playerSlots-> wDSItemGrid, the non-write protected size is 1920 bytes, but it is possible to write to wcell.

     

    Spoiler

  2. 1 hour ago, Lead0b110010100 said:

    L'ho testato e ho ottenuto una riduzione dell'utilizzo della RAM del 44%. Ma ho dovuto apportare alcune modifiche per non ottenere eccezioni durante l'esecuzione del server su Windows. (A causa dell'uso non inizializzato della mappa) + Ho cambiato molte più righe di codice per farlo, ma l'idea è assolutamente corretta.

    Can you post the changes you made?

  3. On 4/13/2020 at 9:37 AM, Mali said:

    thank you but those containers are using by normal shops too

    But this is shopex

     

    Update:

    *Added reload command

     

    Here it says it updated the code but there is no trace of any reload commands.

    I had seen the code you quoted.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.