466 Commits

Author SHA1 Message Date
false_genesis
cc5cf995fd * fixed crash when ObjMgr was adding an object with a guid already existing (instead of the old object the new one was deleted)
* correctly (hopefully) reversed xbase & ybase in MapChunk loading
2008-04-01 01:57:31 +00:00
false_genesis
cb3081aae9 * added Code::Blocks project file to compile under linux
- thx shlainn!
2008-03-31 17:02:32 +00:00
false_genesis
aa63fc56f4 * fixed many gui-related possible crashes
* the DrawObject system should be stable enough now to do more serious things with it.
* added some object drawing code (cute cubes) - thx shlainn!!
2008-03-31 16:57:28 +00:00
false_genesis
d7ea5fe553 * changed the way how objects are stored. they are now no longer deleted directly, but moved into a *depleted* state. this prevents crashes with already deleted objects accessed by other threads 2008-03-30 23:02:21 +00:00
false_genesis
e0a0b7d82d * fixed creature name assign at incoming query response 2008-03-30 21:43:55 +00:00
false_genesis
1288cd8f2a * fixed crappy min/max problems (hopefully)
* aaaand one more try to get std::ios_base::openmode in func_fopen() nulled...
2008-03-28 19:23:47 +00:00
false_genesis
b4a5cebc77 fixed typo in prev. commit 2008-03-28 18:57:32 +00:00
false_genesis
cb74a228dc * more fixes to make gcc happy. thx shlainn! 2008-03-28 18:19:54 +00:00
false_genesis
f57fd3aef3 * forgot something 2008-03-28 14:09:31 +00:00
false_genesis
de92dd9fc4 * fixed line-end problems in different platforms
* one more toNumber() -> toUint64() fix
* fixed logging from DefScript not only to console, but also to logfile (errors and such) - coloring included
* fixed: display correct image of currently used video driver on startup ;)
- thx shlainn for 1 & 4
2008-03-28 14:03:46 +00:00
false_genesis
fce0efcfc2 * updated+fixed object update. (still not working on ascent)
* added conf option "DumpPackets" to dump wrong packets for later analysis
2008-03-27 23:53:17 +00:00
false_genesis
df3927cbbf * added TrayPseuWoW.exe already known from the release packs. start this file and have the console minimized to tray. 2008-03-26 10:30:45 +00:00
false_genesis
44739d3952 * setting eol style to native 2008-03-24 16:43:51 +00:00
false_genesis
a8ad601dca * more fixes for gcc. thx shlainn! 2008-03-24 15:18:26 +00:00
false_genesis
12045179e4 * more fixes to make gcc happy
* replaced DefScriptTools::toString() with more generic template functions
2008-03-24 13:29:10 +00:00
false_genesis
0c0771ee72 * correctly load zone names from /data/scp/zone.scp
* updated some scp files to 2.3.3 client (no functional changes except #dbname tag)
2008-03-24 00:11:54 +00:00
false_genesis
f7598b6a31 * one more fix for gcc, replaced DelayedPacketQueue:queue with deque 2008-03-23 16:48:42 +00:00
false_genesis
46a855278e * first steps for gcc/mingw support, thx shlainn
* output & log platform+compiler+version on startup
* added early version of a movement mgr, its is not used yet and does NOT work yet!
2008-03-23 14:55:44 +00:00
false_genesis
16cf12da7c * restored build in vc80. thx bLuma! 2008-03-20 16:32:13 +00:00
false_genesis
513064638d * fixed MAJOR security problem with in-game commands ("-cmd") (scripts that had no #permission=... assigned could be executed by everyone)
* fixed possible endless loop in ObjMgr::RemoveAll() if already deleted objects were incorrectly removed (real problem source is somewhere else!)
* fixed MyCharacter::HasSpell() - returned false in almost all cases
* bump to version 13.51
2008-03-10 17:27:25 +00:00
false_genesis
1e39771e5f * more toNumber to toUint64 conversions, fixed ?{equal,X,ignore Y} - thx bLuma! 2008-03-09 20:26:42 +00:00
false_genesis
406f365ff7 * fixed endless loop in UnHook and UnHookOpcode funcs + some other quirks 2008-03-08 01:55:58 +00:00
false_genesis
4633ed64be * fixed object highguids. they are now correct MaNGOS highguids, not sure about other server software. should work anyway.
* output some warnings only in debug>=1 mode
* made spellcasting with no target possible
* fixed exception when the server sent an object_update packet for an object that just got deleted; the rest of this packet got skipped then. this is now fixed; PseuWoW guesses the original object type and can now handle these packets almost 100%.
* fixed possible crash when handling emotes. thx Sesk for pointing out the problem.
2008-02-28 21:51:15 +00:00
false_genesis
1d26aa8eb8 * fixed endless loop in ProcessChatAI script when no chat message handlers were added and a message came in. thx bLuma! 2008-02-23 23:11:42 +00:00
false_genesis
a9893d2957 * fixed teleport bug, now the server is correctly notified that we reached the destination. ok, we are still floating in the air, but this is fine since there is no gravity yet.
* fixed Player & Unit _type mask setting
* added exception handler for loading ADT files, just to be on the safe side if anything is going wrong there
2008-02-22 23:01:56 +00:00
false_genesis
95fce570dd * output defscript logs only in debug compile
* some conf updates
2008-02-22 19:30:10 +00:00
false_genesis
dac491af3a * its about time now for a version upgrade + release version ;) 2008-02-22 19:10:08 +00:00
false_genesis
4405563a6b * fixed possible crash in defscript when an if block was appened to a script during runtime and this if was not endif'd
* more toNumber() -> toUint64() changes for number consistency
* fixed MyCharacter naming on char char list recv
* added script to list own/near player's inventory, for debugging. copy it into main scripts dir if you want to use it.
* inlined 2 funcs in DefScript
* changed args of script event "_onobjectdelete". @0 is now typeid, @1 out of range.
2008-02-21 20:24:38 +00:00
false_genesis
4dce611346 * fixed wrong reading of cached item protos
* fixed+cleanup GetName and GetEntry script funcs
2008-02-20 22:48:16 +00:00
false_genesis
c6b11a029e * fixed: reconnect also if authentication failed (can happen sometimes although everything is correct) or other errors occured
* updated HookHelper.def
2008-02-20 18:56:15 +00:00
false_genesis
f865fb10a6 * added script preload cmd #escape-all=0/1 to autoescape parts of scripts, to ease up hooking and related... what needs escaping in general
* added first part of a script to help with other scripts hooking
2008-02-19 22:42:14 +00:00
false_genesis
d295e30b3f * added possibility to disable handling of incoming opcodes by the core (they will still be handled if a script is assigned!)
* script command: switchopcodehandler,<opcode> true(on)/false(off)
* added script events _onworldsessioncreate/delete
* added new conf option: HideDisabledOpcodes=1/0
* added possibility to spoof worldpackets
2008-02-19 20:01:50 +00:00
false_genesis
c87f175ad6 * fixed silly typo 2008-02-19 14:28:38 +00:00
false_genesis
4c96c5039d * fixed MSG_MOVE_HEARTBEAT packet handling
* correctly update WorldObject positions, but SMSG_MONSTER_MOVE not yet handled (not necessary atm)
2008-02-18 23:14:31 +00:00
false_genesis
45edde53c9 * added distance calculation to WorldObject
* added script func "GetObjectDist,guid1[,2d/3d] guid2"
* removed _onwhisper script call and @thiswhisper macros. it can be done better via the ChatAI scripting interface.
2008-02-18 22:57:00 +00:00
false_genesis
10f0d5962d * changed GetName script to support types: guid,player,item,unit with guid/entry depeding on type
* restructured event scripts, some organisation
2008-02-18 22:15:28 +00:00
false_genesis
6ccd48f719 * fixed scripted uint64 appending to bytebuffer, patch by bLuma, thx! 2008-02-17 21:32:21 +00:00
false_genesis
cf7758074a * added C++-style comment and whitespace stripping at line ends. turn this off/on with #linestrip=0/1. default is on. note: this might break older scripts using // in the code somewhere.
* added #comments-start (#cs) and #comments-end (#ce) to make commenting out large code blocks possible
2008-02-14 19:27:02 +00:00
false_genesis
281962dad0 * hopefully fixed possible crash when a script called by an event added or deleted events
* improved TypeStorage a bit (speedup?)
2008-02-14 17:19:49 +00:00
false_genesis
b73017bccb * one more little speedup in objmgr 2008-02-11 18:49:42 +00:00
false_genesis
529bf4742d * re-throwing a ByteBufferException is not a good idea... 2008-02-11 18:04:40 +00:00
false_genesis
758d471122 * forgot in last changelog: fixed/better output in CastResult and CastSuccess opcodes. original patch by bLuma, thx.
* forgot some args
2008-02-11 17:48:24 +00:00
false_genesis
fe86400f60 * added creature query & cache
* fixed crash when transforming irr to world coord, when maptile was not loaded
* fixed possible bugs wtih corpse object type
* removed name2-4 fields from item protos, they are useless
* added IsPlayer(), IsCreature(), etc functions to Object class. TypeID check sucks.
* changed item proto storage in ObjMgr to std::map instead of vector for faster lookup.
* added exception handling to ByteBuffer class to prevent possible crashes on invalid read access. this also fixes possible startup crashes with corrupted item/creature cache files.
* CHAT_MSG_MONSTER_SAY should work now (monster yell handled differently by MaNGOS?!)
* forgot last rev: no more stair effect on terrain. thx bLuma for patch!
2008-02-11 17:43:39 +00:00
false_genesis
38cbcb026c * fixed: fixed bug that prevented item querying
* fixed irrlicht<->world orientation calculation
* added estimated formula to convert irrlicht camera to world coords. thx for all goes to bLuma!
2008-02-09 21:13:44 +00:00
false_genesis
ef35b7bd09 * added: also send own latency in ping packet 2008-02-04 20:02:04 +00:00
false_genesis
389799fa4e * fixed typo that prevented compile(?). thx loosingar! 2008-02-03 17:35:11 +00:00
false_genesis
19cb07cfef * fixed bbread DefScript func in strnz mode
* optimized player name querying when recieving channel list (now all at once, not one by one)
* cleanup: replaced valid player name lengths by #defines instead of hardcoded numbers
2008-01-30 22:22:41 +00:00
false_genesis
482669961d whoops typo 2008-01-24 21:58:56 +00:00
false_genesis
8460ff2c40 * added new conf option: SkipAddonChat=1 to drop any chat messages sent by player's addons 2008-01-24 21:33:08 +00:00
false_genesis
94c4994a12 * fixed memory allocation crash when using ?{fread,file ALL} in scripts
* found a bug with causes block mismatches in def scripts with multiple nested if/loop/endif/endloop blocks. not yet fixed, but added small check.
2008-01-23 22:13:05 +00:00