xarly
-
Posts
150 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Posts posted by xarly
-
-
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
-
Nevermind...
so easy as
ObjectGuid receiver = ObjectGuid(receiver_guid);
-
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!!
-
Will you work again in this project FragFrog? It was really promising!
-
Do you recomend using linux 32 bits instead 64bits?
thank you
-
Thank you Skirnir!
-
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!
-
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
-
This one thing. Ubuntu is not really the stable server os. It is pretty bleeding edge, i would consider using debian. Bt ubuntu should not drop connections, it might help to know what firewalls and what config you have on the machine
- LilleCarl
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!
-
No you can't.
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.
-
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
-
Really strange, isn't it? 8.(
I will have to use windows while I find a solution...
Thank you anyway
-
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
-
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
-
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!
-
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
-
I have done some test, and definitely current vector patch is the cause of this little bug with loot
-
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
-
Thanks! I will try those patches
-
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
-
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
-
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
-
I should set that config in mangos project or in every project?
-
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
urand doesn't change
in OldC / C++
Posted
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);