48 Commits

Author SHA1 Message Date
Shlainn
8dd5fb940b * Die trailing whitespace, die, die die!!! 2011-11-29 12:36:59 +01:00
shlainn
3c9e8a817f * Add CMakeLists 2011-10-09 11:36:55 +02:00
shlainn
74d4945a72 * Irrlicht keeps a Mesh and Texture Cache - no need to duplicate that 2011-09-16 22:44:57 +02:00
shlainn
21f25f2c85 * The ugly M2 <--> MDX problem rears its head again... 2011-09-11 14:09:46 +02:00
shlainn
126978ff5e * Enable loading from MPQ files instead of extracting maps, textures, wmos and sounds
Actually, sounds don't work yet.
StormLib was moved to src/dep because it is now used by the main client, too.
MPQ-related helper files moved to shared.
2010-09-13 04:05:54 +02:00
shlainn
fa2ac32d72 * Fixed mouse capture issue in windowed mode 2010-09-11 02:32:23 +02:00
bluma4862
ec5a2574b1 * fix MMDX and MCSE (still needs check) chunks in ADT files
* apply rotation on WMOs
2009-07-20 08:42:15 +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
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
shlainn
32e4271361 * Major overhaul of linux build system
** Only openssl and bz2 (for stuffextract) left as external dependencies, zlib, zthread and irrlicht are compiled from dep folder
** Irrlicht upgraded to version 1.5
** Various fixes to make GCC not complain
** to compile: autoreconf -if && ./compile -prefix=full_path_to_bin_directory && make
** Only issue: rename dep/openssl otherwise compiler will complain - too late to figure out now.
2009-04-11 00:59:48 +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
false_genesis
100125a093 * added irrKlang sound engine, as requested by exosk.
- to enable sound, set UseSound=1 in /conf/gui.conf
- For now, added a test music to the login screen.
* updated VC71/VC90 project files for windows. linux makefiles NOT yet updated!
2008-08-21 15:11:50 +00:00
false_genesis
2808ca7efe * fixed formula for right-click character turning, thx sbp!
* implemented MSG_SET_FACING sending if character is turned with right-click.
2008-08-17 16:05:20 +00:00
false_genesis
3b47963c5d * the camera is now located behind the character's back and follows his movement; zoom in/out works too. original patch by sbp, thx!
** note: press POS1 key to toggle movement/freefly mode
* fixed character movement without initial turn (before it went into a random direction if not turned - now its fine)
* fixed: really (un-)load maps when moving a longer distance
* improved graphical debugging: show all SceneNode bounding boxes & bones (if there are any) - press backspace to toggle debugging
* ISceneNodes can now be accessed via their owner's guids [use DrawObjMgr::Get(guid) and DrawObject::GetSceneNode()]
* added one more ByteBuffer output variant (combined hex/text), thx nitrogrlie!
2008-08-11 23:52:42 +00:00
bluma4862
678aff60af * apply basic npc texture (in some cases wrong texture is applied, need find fix)
* prevent opcode spam with mouse (LMB&RMB) character move
2008-07-03 07:21:05 +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
14a2a04e94 * update to support client version 2.4.1 (build 8125) 2008-04-25 15:11:05 +00:00
false_genesis
170006b659 * updated ShTLTerrainSceneNode to official irr 1.4 version (with some changes)
* some renderer settings can now be modified via conf
* disabled irrlicht logger console spam
2008-04-20 21:34:01 +00:00
bluma4862
f484de89a9 * fixed BLPloader - do not try to load over end of mip block
* fixed scale factor of doodads
2008-04-13 14:52:35 +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
5f3751fe13 * finetuned farclip & fog distance (FPS increase, yay!)
* removed skydome (turned out to be shitty with new farclip)
* little code speedup (removed unnecessary ifs)
2008-04-07 17:35:52 +00:00
false_genesis
cc4283f18f * output text in .blp and .m2 loader only in debug mode
* remove doodads from unused map tiles (after teleport or so)
* some render speedups (enabled automatic culling, but thats not enough. more optimizations must be done)
2008-04-07 15:18:52 +00:00
shlainn
a05dfe613e *M2 loader now loads models Y-up
*Fixed DrawObject and SceneWorld to accommodate the change
2008-04-07 03:26:27 +00:00
shlainn
0bea841dd1 Fixes the mesh mirroring - not sure if it's right now, but looks better 2008-04-07 02:23:02 +00:00
shlainn
f84ad0539d Fixed object orientation as good as possible, what's left is to find the mirror bug in the M2-Loader
Lowered minimal camera height for a more WoW-ish perspective
2008-04-07 01:59:37 +00:00
false_genesis
4cef295bed * doodads are now displayed on the map
* commented out a line in the M2 loader, it was causing a crash (?!)
* added NormalizeFilename() in tools.cpp, please use this when formatting filenames for linux
* TODO: remove doodads that are too far away or if the map is changed. currently its using A LOT of graphics power
2008-04-06 21:00:19 +00:00
false_genesis
0397d33989 * added custom mouse cursor handler
* stuffextract update (functional: extract CharSections and renamed some fields; visual: added progress bars)
2008-04-05 23:39:45 +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
57fed6d6cc * disabled thread locking in DrawObjMgr (Object pointer corruption problem solved in [263])
* fixed setting MapMgr to loading state to fix problems with GUI thread trying to access not yet loaded maps
2008-04-02 18:40:39 +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
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
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
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
f879006477 * some map loading formula (x/y) corrections
* first preparations to correctly position gui camera on real location, not just somewhere. formulas are still crap, need some help here.
* fixed bug with IsFloatField(), thx bLuma!
* misc code cleanups
2008-01-14 17:46:33 +00:00
False.Genesis
b5298c9713 * fixed screenshot filenames
* more view distance before fog starts
2007-12-04 09:12:16 +00:00
False.Genesis
fc3632a889 * added more "familiar" camera control ;)
* added skydome and some test fog
* added some debug output in the window
* code cleanups
2007-12-03 21:43:59 +00:00
False.Genesis
cf9fcb3d20 * better error handling with missing/ not loaded MapTiles
* added some more hookable script events (_onobjectcreate, _onobjectdelete, _onteleport)
2007-11-28 18:09:53 +00:00
False.Genesis
9ec4fb2f8e * correct the heightmap formula (hopefully) - thx bLuma!
* use also surrounding MapTiles (now is a 3x3 map size instead of 1x1). is the formula for loading those correct?
2007-11-25 21:40:25 +00:00
False.Genesis
bdbc8cc721 * added basic terrain rendering code [STILL INCORRECT!]
* added url to show at startup
* added error message if out of memory
2007-11-25 02:23:38 +00:00
False.Genesis
7336fbe70f * added files missed in prev. commit. thx bLuma! 2007-10-22 16:40:39 +00:00