How to increase sprite limit

Discussion in 'Support' started by Lopaskurwa, Feb 16, 2018.

  1. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    Hi so i made thread how to add more sprites one dude told me how but now my client is not working and i already selected that as best answer so i'll make another thread :D So that dude told me to compile dat spr with extended and transparency but when i do that i got this
    [​IMG]
    Then they told me to compile only with extended but guess what, i get same error. Any ideas how to increase sprite limit with other way or tell me how to fix this error
     
  2. Best Answer:
    Post #23 by Madzix, Feb 19, 2018
  3. jestem pro

    jestem pro That is the question

    Joined:
    Apr 20, 2013
    Messages:
    500
    Likes Received:
    49
    Best Answers:
    7
  4. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    You probably kidding me. I said if i compile it with extended i got errors other think this tutorial doesn't support my tfs i guess because things.lua doesn't exist in my files -_-
     
  5. Itutorial

    Itutorial Well-Known Member

    Joined:
    Dec 23, 2014
    Messages:
    1,315
    Likes Received:
    274
    Best Answers:
    22
    I told you man. OT Client is not the same as Tibia client. Tibia client doesn't support extended sprites. If you want to use extended sprites you have to use Open Tibia Client. Are you using Open Tibia Client or regular Tibia Client?
     
    Okke likes this.
  6. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    Good question what i'm using because i had .dat .spr from my old server and as i remember it i downloaded Ots-List.org - Ots, Otservlist, Open Tibia Server 860 from here and replaced old .dat .spr .pic to new ones. So i guess i'm using tibia client because as you can see i cant use extended so that means i'm using tibia client. You said i have to use open tibia client so that means i have to create sprites from zero and upload them again?
     
  7. Huntre

    Huntre Member

    Joined:
    Mar 22, 2011
    Messages:
    66
    Likes Received:
    4
    Best Answers:
    1
    Place your client here and your spr.


    if you use otc it will not change anything spr will conclude your normal .spr
     
  8. Qbazzz

    Qbazzz Kulfon

    Joined:
    Jul 3, 2009
    Messages:
    42
    Likes Received:
    16
    Best Answers:
    0
    Its possible to have extended sprites on vanilla Tibia client.
     
  9. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    Client 860 dat spr apl.rar
     
  10. Huntre

    Huntre Member

    Joined:
    Mar 22, 2011
    Messages:
    66
    Likes Received:
    4
    Best Answers:
    1
  11. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
  12. Itutorial

    Itutorial Well-Known Member

    Joined:
    Dec 23, 2014
    Messages:
    1,315
    Likes Received:
    274
    Best Answers:
    22
  13. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    But i dont like this gay looking looktype of this client
     
    AngeLOT likes this.
  14. jestem pro

    jestem pro That is the question

    Joined:
    Apr 20, 2013
    Messages:
    500
    Likes Received:
    49
    Best Answers:
    7
    you can easy change this otherwise you do nothing with custom client...
     
  15. AngeLOT

    AngeLOT Active Member

    Joined:
    Dec 14, 2017
    Messages:
    276
    Likes Received:
    36
    Best Answers:
    2
    finally someone who understand me
     
    Sir Sezago likes this.
  16. Itutorial

    Itutorial Well-Known Member

    Joined:
    Dec 23, 2014
    Messages:
    1,315
    Likes Received:
    274
    Best Answers:
    22
    Yes, and if you are a good developer you can make it look like original tibia. If you want a tibia client to accept extended sprites you will have to know how to reverse engineer. The chances that someone put in the effort to reverse engineer it and will give it our for free are slim to none.

    If they know how to reverse engineer the client they know how to lock it up so you cannot get their methods of doing it.

    You can hate something all you want, if you cant fix anything about it then there is no use in crying about it.

    I am not saying your crying, and im not disrespecting you I am just saying it as it is.

    If you want extended sprite limit use OTC if you don't then use regular tibia client. Those are your options.
     
  17. Jo3Bingham

    Jo3Bingham Well-Known Member

    Joined:
    Mar 3, 2008
    Messages:
    947
    Likes Received:
    391
    Best Answers:
    3
    I think an explanation to the limitation you're experiencing would be beneficial.

    Older Tibia clients (like the 8.60 client) have a sprite limit of 65535 (0xFFFF) sprites. The reason for this is because the .spr file only uses two bytes to tell the client the number of sprites in the sprite file. I don't remember the exact version (the 9.60 client maybe?), but they exceeded this value and had to change it to a four-byte value, with a maximum of 4294967295 (0xFFFFFFFF) sprites. This is what the extended option in Object Builder does, it lets you add more than 65535 sprites by using four bytes to hold the sprite count instead of two. So, the reason your Tibia client gives you an error when loading the file is because there's four bytes indicating the number of sprites, but the client only reads two of these bytes, and then that causes the rest of the client's loading function to break.

    You have a few options here:
    - Stop at 65535 sprites, and don't use the extended option.
    - Use the Open-Tibia Client.
    - Modify the vanilla client to read four bytes for the sprite count, instead of two.

    The last option is just as @Itutorial explained, and, he's right, getting someone to do this for you (if you don't know how to do it yourself) won't be easy, or cheap (I would assume).
     
    Okke and Homeslice like this.
  18. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    easy is like repalce pic files?
    1. I cant stop because i have to add couple new items -_-
    2. You mean these ones? Ots-List.org - Ots, Otservlist, Open Tibia Server
    3. Is there tutorial for this think?
    4. I would use this but as you can see i have no clue how to change looktype of that client, but if i could find any tutorials maybe i could.

    P.s there is so much servers who have over 65k objects and i know they somehow made it and they're not using that custom client
     
    Last edited: Feb 18, 2018
  19. Huntre

    Huntre Member

    Joined:
    Mar 22, 2011
    Messages:
    66
    Likes Received:
    4
    Best Answers:
    1
    Last edited: Feb 18, 2018
  20. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2
    what this tutorial does?
     
  21. Lopaskurwa

    Lopaskurwa Member

    Joined:
    Oct 6, 2017
    Messages:
    330
    Likes Received:
    5
    Best Answers:
    2

Share This Page

Loading...