• 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. Damc

    tfs 1.1 exp stone problem

    Then you're going to miss out on some nice bug fixes ;).
  2. Damc

    Tfs 1.1 Problem

    Efficiency my dear Watson, efficiency... Obtaining userdata from an id requires O(logN) complexity (with considerable constants). If we used ref counting with objects passed to user data we could have amortized constant access to them.
  3. Damc

    Tfs 1.1 Problem

    At the moment you cannot assume the validity of any of userdata passed to an event callback. Any access to "volatile" user data (in other words, things that can be removed from the game, like players or items) causes undefined behavior. Doing a reload will potentially invalidate userdata that...
  4. Damc

    Documentation related to the source code of OpenTibia

    Unforutantely there is very little documentation about the internal mechanics of the game server. The scraps that you find in the sources are probably the most you're going to get. On a sidenote: OpenTibia has had little attention for quite some time and there's probably a lot more work being...
  5. Damc

    Chess project

    I once wrote a Chess application (though that was for an AI algorithms course and the UI was just "for the looks" ;)). A few things that I encountered when writing that thing: -don't try to do this in a stricte OOP style... because the performance will suck (though I didn't check what language...
  6. Damc

    Cast System TFS 1.1 (prototype)

    That's not the proper way to do it. Database::escapeString() appends \ to escape characters. The easiest way to sanitize (assuming there is no function for that already) would be to iterate over the string and check if each character is withing a range i.e. if ((character >= 'a' && character <=...
  7. Damc

    Windows Not enough memory

    It's also possible that it's an issue with Lua's GC not collecting garbage fast enough and the runtime running out of memory until at some point it stalls completely, though that seems unlikely as well.
  8. Damc

    Windows Not enough memory

    LuaJIT is limited to (2^31)-1 stack objects. It's possible that you pushed a lot of data into non-local variables (though it's unlikely as that would need to be around 2 billion characters...).
  9. Damc

    [10.77] TFS 1.1 - Cast System

    https://github.com/otland/forgottenserver/pull/994 This should work for TFS 1.0 release with some minor changes.
  10. Damc

    [10.77] TFS 1.1 - Cast System

    I would like to warn that I haven't finished the casting system yet - it's still quite experimental and I'm currently waiting for the official release of TFS 1.1 to start reworking some internal server stuff but I hope I'll be able to finally deliver it for for v1.2. If you decide to use this...
  11. Damc

    Can you preallocate more ram for tfs?

    I don't want to sound rude, but that really makes no sense. It will use as much memory as it needs. When a program uses more memory it doesn't magically get faster. In fact, if an application uses up all your memory for no reason that's a sign of it actually being quite inefficient and possibly...
  12. Damc

    Can you preallocate more ram for tfs?

    Memory preallocation usually means that you allocate it in advance, before you need it. Something tells that's not what you meant. In any case, current TFS has very little memory pooling facilities so most memory used by the server is immediately returned to the OS after it's no longer needed.
  13. Damc

    % in health/mana in tfs 1.0

    https://github.com/otland/forgottenserver/blob/master/src/protocolgame.cpp#L2960 Change the max health sent to the player to 100 and then change the current health value sent to 100*player->getHealth()/player->getPlayerInfo(PLAYERINFO_MAXHEALTH)
  14. Damc

    Cast system, code for tfs 1.0

    There's one currently being worked on: https://github.com/otland/forgottenserver/pull/994 However, bear in mind it's NOT READY YET, though there's an improved version on the way (soon).
  15. Damc

    Linux Mysql Error when i Loggout!

    It might help if you told us what OT distribution you're using.
  16. Damc

    OT Flash Client (Would you use it?)

    Flash is a horrible piece of **** and should die!
  17. Damc

    Hosting Simpel

    As I've said it depends on the OT server version but it's very likely that 500 players will be able to play without lags, unless you have some complex scripts running.
  18. Damc

    Hosting Simpel

    It depends on the server version, amount of script code, whether you're using LuaJIT etc. A rough estimate would be around 200-300 players probably up to 500.
  19. Damc

    Linux Segmentation fault ?

    Try this: ./configure --help | grep 'mysql\|debug'
  20. Damc

    Lua [TFS 1.0] Script/item for double-exp with duration?

    If you modify the database when the server is running and the player is online then most likely any changes you've made will be lost, as the server stores most player data locally for performance reasons. When he/she logs out, any changes get overwritten. Once the bonus expires it should be...
Back
Top