• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Itutorial

    TFS A* Algorithm :D

    Im glad someone else using it was able to message about this. Very strange. I don't get what could possible cause their servers to start at over a gig. https://github.com/otland/forgottenserver/pull/4637/commits/920da7b2de0123863dc67c92930df79675edca3c 1713215425 Not sure I understand this...
  2. Itutorial

    TFS A* Algorithm :D

    Yeah it seems nekiros downgrade has something in it that is causing high memory usage. Ralke is having the same problem. His server opens at like 1Gig and climbs from there. I saw it at a high of 1.9gigs. I am surprised he was even able to see the memory leak from my pathfinding. I would suggest...
  3. Itutorial

    TFS A* Algorithm :D

    Memory leak fixed on newest commit.
  4. Itutorial

    TFS A* Algorithm :D

    That looks good to me but at the same time I don't play RL tibia which I know is what we aim for. I would still make the the two changes I made today on the official PR. They are kind of critical and shouldn't change the behavior you just showed it will however fix a couple lags in pathfinding...
  5. Itutorial

    TFS A* Algorithm :D

    I will look for a solution to this today. I am just trying to figure out a good time to update the path that isn't related to when the path changes (follow creature walks) and won't call paths too often. I am thinking I will have to update: void Creature::forceUpdatePath() { if...
  6. Itutorial

    TFS A* Algorithm :D

    These are the only changes you should have. https://github.com/otland/forgottenserver/pull/4637/files
  7. Itutorial

    TFS A* Algorithm :D

    You should be able to leave the THINK_INTERVAL at 1000. It shouldn't effect pathfinding in any way. Make sure to update with the newest commits today. I fixed a couple problems. The system should be working 100%. Only time and testing will tell now. Additionally, you should leave the...
  8. Itutorial

    OTClient OTC UI tooltips

    Thank you, I couldn't find the methods for widget I guess. Didn't see setTooltip anywhere.
  9. Itutorial

    OTClient OTC UI tooltips

    Anyone know how to properly do this? It seems the LocalPlayer object does exist but for some reason I can't use the lua functions associated with it. !tooltip: tr('Increases maximum health by %d', LocalPlayer:getLevelStat(0))
  10. Itutorial

    TFS 1.X+ Storing item attributes system

    That is what I was thinking about doing but I didn't know if it would create problems with RME or whatever
  11. Itutorial

    TFS 1.X+ Storing item attributes system

    TFS item attributes system enum itemAttrTypes : uint32_t { ITEM_ATTRIBUTE_NONE, ITEM_ATTRIBUTE_ACTIONID = 1 << 0, ITEM_ATTRIBUTE_UNIQUEID = 1 << 1, ITEM_ATTRIBUTE_DESCRIPTION = 1 << 2, ITEM_ATTRIBUTE_TEXT = 1 << 3, ITEM_ATTRIBUTE_DATE = 1 << 4...
  12. Itutorial

    TFS 1.X+ Storing item attributes system

    I am looking at the item attributes system. It seems we have to store values based on bit shift operations which obviously limits the amount of attributes that can be defined. Can someone who knows explain why this is and how the system works?
  13. Itutorial

    TFS 1.X+ Some items do not trigger onEquip/onDequip

    https://github.com/otland/forgottenserver/pull/4645
  14. Itutorial

    TFS 1.X+ Some items do not trigger onEquip/onDequip

    Hello everyone, I am trying to create an onEquip that will get the stats off all worn items and print them out. The script seems to work properly on some items but not on others. Do we know of any problem in tfs that might cause this? In the code I have registered two items. Demon shield and...
  15. Itutorial

    Solved otclient register new enum

    How do I register a newly created enum in otcv8? I added it in const.h under the otc:: namespace but I am unable to access it in the modules folder. I can access it throughout the source files but not in lua files. Thank you for any help guys! 1712220561 Nevermind I am tired and forgot about...
  16. Itutorial

    TFS A* Algorithm :D

    I have to do some more testing on it. So far I haven't had any problems including the one you mentioned but I will try some more things to cause problems. What OS are you running your server on? edit: I can't reproduce the crash
  17. Itutorial

    TFS A* Algorithm :D

    I doubt this is linked to my repo.
  18. Itutorial

    TFS A* Algorithm :D

    Well if you are worried about performance you can mess with this value in creature.h static constexpr int32_t EVENT_CREATURE_PATH_INTERVAL = 20; You could set this value to 100ms and still have the same behavior if you want to make sure you are getting max performance. The fastest paths are...
  19. Itutorial

    TFS A* Algorithm :D

    Those are the old changes from my previous version. I had to ditch it for a while. This is the newest version that you should follow: https://github.com/otland/forgottenserver/pull/4637 You should revert any changes you made from the: Gigastar A* and Gigastar pathfinding call.. Also the...
  20. Itutorial

    TFS A* Algorithm :D

    I already have the fix for player search problem. Once I get this problem solved I will add that in as well to the repo 1711438874 Alright, try replacing your follow creature with this.. I don't seem to have the same problem and this is the only mod I have made from the repo You can remove the...
Back
Top