115 Commits

Author SHA1 Message Date
bluma4862
08a1645599 * cleanup in UpdateData.cpp
* fixed response at "near" teleport (HandleTelePortAckOpcode)
* added skeletal implementation of SMSG_MONSTER_MOVE
2009-07-21 07:18:18 +00:00
false_genesis
d15eaffa73 * upgrade to 3.1.3.9947. patch by bLuma, thx!!
* unload WMOs when unloading map tile
* removed silly old chat AI
* misc stuff & cleanups
2009-07-19 23:03:53 +00:00
shlainn
7c885d2b50 * WMO Mesh file loader
* WMOs are not rotated correctly yet
* Stuffextract and MapMgr patched to display WMOs
* Also some small fixes to pacify GCC
2009-07-15 08:31:43 +00:00
shlainn
e820f0a5a4 * Fixed lots of warnings in GCC
* Purely cosmetic ;)
2009-05-07 07:46:35 +00:00
false_genesis
046d161faa * fixed crash that appeared after last commit for some reason (no idea why ADT file loading was suddenly broken) - thx JPhix for report.
-> some ADT files still use the old MCLQ-block!!! (for example Draenei starting zone)
* fixed crash when loggin in and using maps was disabled
* forgot to add a scp file
2009-04-29 20:51:13 +00:00
false_genesis
2b1d743125 * update gui charlist when crating a char
* implemented display correct response string in console & gui if char creation failed
* fixed & simplified PlayerNameCache, load directly before world join and not at charlist receive
* fixed some warnings
* misc stuff
* TODO: fix bug that prevents reopening char create window after creating char + implement dixplaying response strings for actions other then char creation.
2009-04-25 20:20:28 +00:00
false_genesis
585046fce2 * added posibility to create chars from the GUI. thx shlainn!
-> stuffextract: extract classmask field
* implemented irrlicht event message queueing. might fix some gui bugs.
2009-04-20 21:09:38 +00:00
false_genesis
5e7190551e * really use cached files (irrlicht uses full paths!)
* fixed vc71 non-debug builds
2009-04-20 10:02:18 +00:00
false_genesis
9b10e89b2c * updated VC71 proj files for irrlicht 1.5 - DO NOT USE the static lib compile setting!
* lots of bugfixes to MemoryDataHolder, finally made it work without crashes, for now
* prebuffer .skin files for much faster GUI loading (they are not yet deleted from memory!!)
* fixed a major bug in TypeStorage that caused values not to update
* removed log spam when loading M2 files
* fixed a bug where the character was not visible when switching from freefly to move mode and back
* preparations to use ZThread::Conditions for better thread locking

* NOTE: if you get crashes with this version when starting up the GUI, try setting DataLoaderThreads=0 in the conf file.
2009-04-15 22:53:03 +00:00
false_genesis
bf1813e90c * fixed maps loading when getting teleported
* added "no console" compile option
2009-04-06 07:27:32 +00:00
false_genesis
9e1f445a46 * finally implemented MemoryDataHolder functions. They are not yet used (this will be next step), but tested and works. 2009-03-11 11:46:32 +00:00
false_genesis
0522c2c786 * 2 opcode fixes by dave, thx
* correced movement packets, server will no longer drop connection when moving
* attempted to fix crash in openGL mode in m2 model loader
* fixed SCPDatabase::GetFieldByString(), thx dave
* added scp files for 3.0.9 client
2009-03-05 21:48:52 +00:00
shlainn
1c697b84c0 * fixed an compile error that suddendly showed up in StormLib Linux Port. WTF?
* included bLumas patch for 3.0.8 as it compiles fine and doesn't crash on startup on Linux
* testing required!
2009-02-05 19:33:58 +00:00
bluma4862
84e3c1d868 * use correct check for proper M2 version (hope there isn't any model with 8.1.0.0 version), fix this in stuffextract to allow extracting textures from new model files
* implement speed change opcodes
* fixed texturing of remaining gameobjects (requires reextracting of scp, models and textures)
* new defscript command "getobjectpos,guid <x/y/z/o>" (if guid is empty - use my guid)
2008-10-13 14:12:56 +00:00
false_genesis
aa0450df9e * fixed some threading problems (1 possible crash: SceneCharSelection window resized or reloaded while WorldSession is destroyed) 2008-08-30 12:18:49 +00:00
false_genesis
d7d36c544e * implemented realm and character selection from the GUI
* added support for map tile sound emitters (MCSE-chunks) (needs more debugging)
* added MasterSoundVolume=0..1 conf option to /conf/gui.conf
* fixed window resize & added related functions to the scenes (OnResize()). TODO: fix SceneLogin resize.
* implemented "Community Site" button functionality on Win32
* misc stuff
* TODO: fix crypt error on realm change.
* moved linux configure.ac script to PseuWoW root dir instead of /src
2008-08-27 23:41:12 +00:00
bluma4862
0586c46e2e * update to support 2.4.3 client version (build 8606) 2008-07-25 12:43:14 +00:00
bluma4862
76ed684573 * fixed few bugs reported by FG 2008-07-08 05:24:39 +00:00
false_genesis
e52420ae52 * fixed problem with CHAT_MSG_WHISPER_INFORM in chatAI. thx cobalt for pointing out the problem!
* reconnect also if realm server gives unknown answer in AuthResponse
* deleted old linux binary
2008-06-17 20:56:59 +00:00
bluma4862
342bce125e * updated new opcode names from mangos, added few opcodes from 2.4.2
* fixed: not send heartbeat packet if only turning
2008-06-12 07:12:28 +00:00
false_genesis
7780f608da * added experimental character movement (jump/strafe not yet done). press POS1/Home key to toggle camera/character WASD movement. camera NOT yet linked to character!!
* conf supports now client 2.4.2. no code changes.
* packets can now be sent not only from the PseuInstance main thread
* added new conf option "softquit" to disable instant terminate (+data loss) on win32 systems if user [X]'ed console window.
* misc fixes & code changes

(personal note: exams are over, back to coding, yay)
2008-06-08 19:49:00 +00:00
bluma4862
926a7566c8 * fixed crashes without SCP databases
* minor fixes
2008-05-11 13:36:24 +00:00
bluma4862
a2bbc0c7d4 * correctly select model for gameobjects (no more cubes)
* updated stuffextract - added gameobjectdisplayinfo, for correct work needs reextracting models and scp files
2008-05-03 17:21:09 +00:00
false_genesis
ffb12014af * temp. fixed compile error (accidently added unfinished stuff in prev. commit), thx JPhix
* fixed endless loop when using cmd "help list"
2008-04-30 21:02:50 +00:00
false_genesis
b5834846f0 * added support for gameobjects. in the GUI they are still visible as cubes, but that will be fixed soon.
* fixed crash when a script's #onload block was explicitly loading another script file that also had an #onload block.
* some cleanups in realm code
* fixed bug in SCP database loader that didnt strip comments (//) properly.
2008-04-29 20:23:49 +00:00
bluma4862
14a2a04e94 * update to support client version 2.4.1 (build 8125) 2008-04-25 15:11:05 +00:00
false_genesis
76ebbe5cf3 * rewrote the SCP data storage. note that all database files must now be placed in a directory added with "AddDBPath <path>" and must contain a #dbname tag. the db now converts SCP (text) to SCC (binary) files, which increases access speed a lot. also less RAM used in most cases.
* replaced "LoadSCP" func with "LoadDB <dbname>" (different syntax!); removed all other scp db related funcs except "getscpvalue"
* the GUI can now show texts stored in databases
* added displaying status to SceneLogin
* misc fixes/cleanups
2008-04-19 23:45:37 +00:00
false_genesis
5d418facbe * fixed problems with too early deleted DrawObjects and one crash with GetSceneState() accessing just deleted _scene. both related to reconnect after connection closed. 2008-04-09 18:11:01 +00:00
false_genesis
23cb869665 * fixed crash when disconnected from server (WorldSession got deleted while SceneWorld still accessing WorldSession members) 2008-04-08 20:58:54 +00:00
false_genesis
beb24440ea * fixed up logon GUI, works now
* show logon gui when using "gui" command and not connected
* create realmsession only after pressing Login button on gui and not before
* cleaned up some parts of code that creates RealmSessions
* added some code (but not yet used) to exchange status messages between core & gui (threadsafe)
2008-04-08 20:25:07 +00:00
false_genesis
1d00b8b6ea * updated shlainn's M2 mesh loader (crash fixes and some more)
* fixed terrain texturing & fog after irr 1.4
* fixed orientation<->rotation transformation, models now look into correct direction
* code cleanups
2008-04-03 23:11:23 +00:00
false_genesis
6d5b8de2d5 * corrected terrain placement
* corrected object placement
* corrected grid formulas
* update MyCharacter position when beeing teleported
* tested in dun morogh, stormwind, thrallmar and arathi basin, object placement on the map is just fine now ;)
* cleanups not yet done, old unused funcs are still there
2008-04-02 15:30:35 +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
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
44739d3952 * setting eol style to native 2008-03-24 16:43:51 +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
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
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
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
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
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
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
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
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