Jump to content

xarly

Members
  • Posts

    150
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by xarly

  1. Someone correct me if i'm wrong but when you call urand(1000, 5000) you are calling to MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max);
  2. Could you confirm that urand(0, 1) always give the same result while mangos is alive? /* Return a random number in the range min..max (inclusive). For reliable results, the difference * between max and min should be less than RAND32_MAX. */ MANGOS_DLL_SPEC uint32 urand(uint32 min, uint32 max); I have tested this with scriptdev2, where urand is called always give the same answer in the same mangos life Maybe a seed is needed? Thank you
  3. Nevermind... so easy as ObjectGuid receiver = ObjectGuid(receiver_guid);
  4. I was using External SQL Mail patch, but after update i have a little problem with code because of this: Before: ... uint64 receiver_guid = fields[1].GetUInt64(); ... Player *receiver = sObjectMgr.GetPlayer(receiver_guid); ... But now this throws error because GetPlayer needs a ObjectGuid variable I have been trying to fix it myself but i don't achieve to imagin how to "convert" uint64 to ObjectGuid Could you help me? Thank you!!
  5. Will you work again in this project FragFrog? It was really promising!
  6. i'm trying to fix a function i had working fine under windows, but in linux doesn't work int RandomNum() { int chosen; chosen=int(1000*rand()/(RAND_MAX+1.0)); return chosen; } This function under windows (mangos compiled with vs2010) generates a random number between 0-1000, but under linux it returns always 0. I also have tried this modification with no luck: srand((unsigned)time(0)); int RandomNum() { int floor = 0, ceiling = 1000, range = (ceiling - floor); int chosen = floor + int((range * rand()) / (RAND_MAX + 1.0)); return chosen; } I have tried several things but i don't achieve to get it working, could you help me? Thanks!
  7. News! I have installed debian 6, mysql 5.1, download sources and compile (thats all what i have done) ...but it's the same!! After 10-20 mins my client looks like freezed, i mean, i can move, but npc and commands are not responding, and server console works perfect. It's crazy, I give up... I go back to windows Thank you lillecarl
  8. Thank you!, I will try with debian About firewalls and config in ubuntu, there was no firewall and iptables were empty, and config was by default. This is way i was going crazy... I will comment results, thank you!
  9. Why do you say that? I have recommend this way because I use it and works perfectly. But I do a correction: SD2Database.PExecute("INSERT INTO characters.
  10. This thread is quite old but i write for future lookups You can use a cheat something like this: SD2Database.query("INSERT INTO characters.table .... where characters is the name of your char db
  11. Really strange, isn't it? 8.( I will have to use windows while I find a solution... Thank you anyway
  12. Hi! This question is not strictly about mangos but maybe you could help me with this. I have configured an ubuntu server to migrate from windows. I followed tutorials about download repo, compile it and install it, everything fine. Server runs smoothly, but the problem is that after some time playing, players loose connection, the server is running, it's just like server has closed connection with player, so you have to close the game and relogin. I have tested the same emu compiled for windows and same db in windows 2003 and players can play normally, so i suppouse it's ubuntu. This are Ubuntu specs: Core i7 950 8GB RAM Disk SSD Ubuntu had no firewall while testing, iptables were empty and connection speed 100Mb Can you help me? Thank you
  13. Yeah I know But what i mean is that only one core is working, i think would be better if load is balanced between several cores, isn't it? Thank you
  14. Hi! I have a dedicated server with i7 920 with Windows 2003 x64, but I have notice that only one core is working, as you can see in this link http://imageshack.us/m/28/8978/coreso.jpg Is this normal? Can I force use all cores? Thank you!
  15. Thank you for your huge work, but I think this will be a step back, at least for windows users. I'm having the first troubles with cmake and visual studio 10, some errors, output weird, compilation is slower (weird think i know, but it's true). We were used to using VS and was wonderful, I think I will have to restore win folder, and update it as I can Linux Outlaw 73 - If It Works, Don't Touch It
  16. I have done some test, and definitely current vector patch is the cause of this little bug with loot
  17. I'm not really sure, but after apply tbb concurrent vector and sql sync patches, when a player open chests, this sometimes doesn't show loot and get bugged remaining opened, and cannot open it again, the player has to desconect and log again to try to view loot. As I say, this didn't happened before apply these patches :rolleyes: Any one can confirm this? Thank you
  18. There is the crash About how to reproduce, I cannot help, i don't know how to reproduce it or what a player has done to cause it, but i will be alert
  19. Hi! I have just update the source one hour ago, and i have a crash related with Map::Update I wonder if is related with 10848 Thank you, i hope this help OMG! I forgot to put the crash https://gist.github.com/737342
  20. Yes i wanted to test and learn something about vc settings =D Above all, i wanted to see if there are some configs that can improve performance depending on the CPU you have Thank you
  21. I should set that config in mangos project or in every project?
  22. Thank you for repling vladimir, So the best config is Optimization to: Maximize Speed (/O2) and Inline to: Only _inline (/Ob1) compiling in x32, even the CPU is x64 Are you agree? Thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use