• 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

    Linux Segmentation fault ?

    This: ./configure --help should print all available compile-time flags for the server. Look for something called -D_DEBUG and then use the configure script again with that flag (and the MySQL db one). Once the sources are configured, just use these commands: make clean && make -j...
  2. Damc

    Damage, Armor, Defense Formulas [TFS 1.0][10.41]

    1. Do some reading on basic C++. 2. Edit appropriate functions in creature.cpp (e.g. Creature::blockHit(...) for blocking formulas).
  3. Damc

    Linux Segmentation fault ?

    You'll need to recompile the server with debugging symbols (IIRC you need to set the proper flag in ./configure), then run it in GDB and use the bt command to give us a call stack.
  4. Damc

    Windows (TFS 1.0) Crashing.

    If I didn't know that it's running on Windows now I'd have said it's CPU/RAM damage. But it's more plausible it was some sort of a driver bug.
  5. Damc

    Lua [TFS 1.0] if Param == is monster problem

    1. You could check for the existence of the monster's *.xml file. 2. Spawn it in a hidden location, if it gets spawned, kill it :D. 3. Write a C++ function to do it.
  6. Damc

    Windows (TFS 1.0) Crashing.

    That sounds weird. You mean the OS got corrupted by itself?
  7. Damc

    Lua [TFS 1.0] if Param == is monster problem

    Oh, I didn't spot it at first - the isMonster(...) function is used to determine whether an existing creature is a monster.
  8. Damc

    Windows (TFS 1.0) Crashing.

    According to this: http://social.msdn.microsoft.com/Forums/vstudio/en-US/fba7d3c0-b595-42be-8e17-7fd0468565ca/the-application-was-unable-to-start-correctly-0xc000007b-click-ok-to-close-the-application?forum=vsdebug the application is trying to load a corrupted (or of wrong architecture) *.dll
  9. Damc

    Compiling Error with getPosition() in C++

    This statement: getPosition().x+1 Returns an integer type rvalue. You need to create a local variable to store the Position object, then modify its properties and then call the addMagicEffect(...) function.
  10. Damc

    Lua [TFS 1.0] if Param == is monster problem

    lua is case-sensitive. Change the isMonster(Param) call to: isMonster(param)
  11. Damc

    Windows (TFS 1.0) Crashing.

    Could you try running the server in a debugger (like gdb) and when the server crashes, use bt This will print the call stack and point us to the function that crashed the server.
  12. Damc

    TFS 1.0 Crash

    Well, that's not exactly true, since there's a small performance hit (no more than a few percent) from WOW64 and the application can't address more than 4GiB of memory but these aren't huge problems ;)
  13. Damc

    Lua Checking duplicates value in a table

    It's probably a better solution to do the checks on login, however it would probably be best to use an external script/application to query the database during scheduled server maintenance. As for LuaJIT vs "normal" Lua interpreter - there are some benchmarks on the LuaJIT website. They aren't...
  14. Damc

    Lua Checking duplicates value in a table

    The problem with this script is that it will potentially to do tens of thousends(maybe even hundreds) of lua calls when you have, let's say, 100+ players. When you're not using luajit (and IIRC TFS 0.4/0.36 doesn't support it) it's going to lag the server probably for a few seconds. Another...
  15. Damc

    Solved NPC Questions

    I didn't say it's impossible. I said it can't be done in the script environment. Remember that group_id=3(God) characters can walk through any creature.
  16. Damc

    TFS 1.0 empty database, creating account but still says incorrect account name and password.

    SQL tab on the top. Paste the query there and click Go on the bottom right.
  17. Damc

    Solved NPC Questions

    I don't think you can enable Walkthrough in scripts. You have to edit the sources. Add this code at the beginning of the Player::canWalkthrough(...) function: if(creature->getNpc()) return true;
  18. Damc

    TFS 1.0 empty database, creating account but still says incorrect account name and password.

    The passwords are stored in a hashed form (SHA1 hash) in the database. Use this query to change it: UPDATE `accounts` SET `password`=SHA1("SUPERSTRONGSECRETPASSWORD") WHERE ID=1; Don't forget to change the account id at the end of that query ;).
  19. Damc

    Compiling Trying to add updateInventoryWeight(); but says protected.

    Move the declaration of this function to the public: section of the Player class in the header file (player.h).
  20. Damc

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

    That's strange... I have no idea why it isn't working. Does the events/scripts/player.lua file look like this: [... other functions ...] function Player:onGainExperience(source, exp, rawExp) if self:getStorageValue(1234) >= os.time() then exp = exp * 2 end return exp end [... other...
Back
Top