• 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

    The YourOTS project - The server where you decide!

    I've been wondering recently why there are so few (almost none) publicly available datapacks. Seems you guys have been reading my mind! :D As for the choice of TFS version - I suggest going for 1.2. It already has some significant efficiency and memory usage improvements (not to mention a ton of...
  2. Damc

    RME .otbm file structure

    Probably nobody's going to tell you that, because if you didn't look it up in the sources (TFS or RME) yourself, you're probably not going to understand it. AFAIK there are some headers and additional descriptors at the beggining and then there's a list of tile areas (each area has full...
  3. Damc

    Compiling Flags for TFS 1.0

    https://github.com/otland/forgottenserver/commit/bd80581111bf1b9bb044e57a07d1e32ac89c3c9b
  4. Damc

    Compiling Flags for TFS 1.0

    Server diagnostics command was removed in TFS 1.0.
  5. Damc

    Lua getItemById Error

    The reason is very simple, but might not be very intuitive. When a script is loaded, the entire body of that script is treated as a function and executed, which means that the variable tile is evaluated at script load time. If you take a look at the TFS log, you'll see that script systems are...
  6. Damc

    Lua function getSpectators(centerPos, rangex, rangey, multifloor, onlyPlayers)

    local spectators = Game.getSpectators(player:getPosition()) local playerCount = 0 for _, spectatorCreature in ipairs(spectators) do if spectatorCreature:isPlayer() then playerCount = playerCount + 1 end end print(playerCount) print(#spectators)
  7. Damc

    The forgotten login server [10.8 supported]

    You can safely remove the autosend mechanism from the network stack (outputmessage.cpp) as it's only required by the game protocol (and spectator protocol in the future).
  8. Damc

    Lua function getSpectators(centerPos, rangex, rangey, multifloor, onlyPlayers)

    A warning: the global function getSpectators() is deprecated (it's defined in compat.lua which contains functions that are there mostly for compatibility reasons and might be removed in the future). You should use this instead: Game.getSpectators(position[, multifloor = false[, onlyPlayer =...
  9. Damc

    Whi World - Open Source Server with Configurable Features

    There is a difference between cond1 and cond1(). The former evaluates to a value of type `function` which can be treated as true and the former calls the function that returns false. So your example fails to prove short-circuit evaluation doesn't work in lua.
  10. Damc

    Windows tfs 1.1 Debugging - help plx.

    That is the debugger warning you that there was an exception that was caught in there. About debugging - run the server in the debugger and reproduce the crash. Then check the stack trace to see where it crashes (the debugger will halt the debugged application at the point of the crash).
  11. Damc

    Whi World - Open Source Server with Configurable Features

    I have NEVER seen or heard of a modern language (that had if statements) that didn't have short-circuit evaluation, so this: if cond1 then if cond2 then doSth() end end is EXACTLY IDENTICAL to this: if cond1 and cond2 then doSth() end
  12. Damc

    Whi World - Open Source Server with Configurable Features

    Do you realize you could've made that script much easier to read by joining the if-conditions into one if?
  13. Damc

    Compilation time windows/linux

    @Gesior.pl The MSVC compiles faster but occasionally generates worse output code, though on Windows I'd probably just use Visual Studio, the tooling (IntelliSense + debugger support) is one of the best available for C++.
  14. Damc

    Linux Lag server with linux (OVH Host)

    You should probably contact OVH to see if the issue is on their side.
  15. Damc

    Linux Lag server with linux (OVH Host)

    Ping the server to see if it's caused by network latency or the server itself. You should also check CPU utilization (use top or htop if it's installed).
  16. Damc

    Lua Broken Down

    @Codex NG Pretty good tutorial, but I have some suggestions. You should explain value and reference semantics when you're explaining assignment and elaborate on Pass by Value semantics, because the target reader most likely has very little experience with languages that exhibit such behavior...
  17. Damc

    Windows tfs 1.1 Debugging - help plx.

    As a first step use a debugger to figure out where the server crashes, but please bear in mind that the real cause of the crash might be in a completely different place. Then, if you can prove that the suspected bug is not a data race, you should step through the function that crashes, trying to...
  18. Damc

    Notepad++

    Yes, I've been talking about git, the SCM from the very beginning. And I've never said anything specifically about GitHub. While it(GitHub) has same advantages (like low barrier of entry and it's quite fast for a public site) there are some REALLY bad things about it. I mean things like...
  19. Damc

    Notepad++

    And where have I mentioned GitHub in any of my posts in this thread? Git != GitHub
  20. Damc

    Notepad++

    Dropbox is NOT a good solution to back up source code of any kind, trust me, I've been there, done that. Once you start using SCMs (like git) for your code you'll NEVER want to go back to these methods straight out of the middle ages.
Back
Top