Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8006 commits
Select commit Hold shift + click to select a range
f916796
[mr3090] define MANGOSR2_MUTEX_MODEL_2 macro (for step-to-step mutexe…
rsa Nov 4, 2013
1c37009
[mr3091] remove overlocks from Unit, Map and Transports classes.
rsa Nov 3, 2013
b3adb2f
[mr3092] add macro MAPLOCK_TRYREAD/WRITE and fix overlock in Unit::Sp…
rsa Nov 3, 2013
d753545
[mr3093] set Map And VMap loaded before real load for avoid double lo…
rsa Nov 4, 2013
3d0347b
[mr3094] Use singleton lock in LFGMgr v0.5. move LFG structures to si…
rsa Sep 20, 2013
5bc4891
[mr3095] fix aura state modify for dead units
Nov 8, 2013
55dc3dd
[12576] DB Scripts SCRIPT_COMMAND_EMOTE
Schmoozerd Nov 5, 2013
3e04cdb
SD2 update
rsa Nov 8, 2013
ffec4c4
[mr3096] Merge compiler directives for NOTSAFE_SEMAPHORE_OVERHANDLING.
Undergarun Nov 8, 2013
340ce59
[mr3097] use membar mutex in locked containers.
rsa Nov 8, 2013
9e3974c
[mr3098] use MangosR2_Mutex in locked SmartPtr's.
rsa Nov 8, 2013
c13a4c8
[mr3099] Implement spells 70733, 73077
boxa Nov 9, 2013
288046f
[mr3100] Fix bug filling targets in TARGET_AREAEFFECT_INSTANT and mak…
boxa Nov 9, 2013
aaf4dc1
[mr3101] Use membar in most locked singletons. Part 1. Based on testi…
rsa Nov 10, 2013
7a569ea
[mr3102] Reimplement LockedVector on BIH operations.
Undergarun Nov 10, 2013
faac404
[mr3103] Use membar in remaining locked singletons and Atomic_Op. Par…
rsa Nov 11, 2013
d6fba0d
[mr3104] use MANGOSR2_MUTEX_MODEL_2 in VmapManager && SmartPtr for Wo…
rsa Nov 4, 2013
8f17dde
Revert "[mr3104] use MANGOSR2_MUTEX_MODEL_2 in VmapManager && SmartPt…
Undergarun Nov 11, 2013
31d8389
[mr3105] Add locks to Map script shedule operations (by valgrind check).
rsa Nov 10, 2013
c625cce
[mr3106] Some corrects for operations with WorldUpdateCounter (by val…
rsa Nov 10, 2013
35f54ef
[mr3107] use MANGOSR2_MUTEX_MODEL_2 in VmapManager && SmartPtr for Wo…
rsa Nov 4, 2013
2deeef5
[mr3108] More correct grid deleting detection in CleanUpGrids() metho…
rsa Nov 12, 2013
92d971a
[mr3109] Map: unload also not continent and BG/Arena maps (f.ex. Deep…
boxa Nov 13, 2013
244fcc5
[mr3110] Show info about loaded maps in "server info" command
boxa Nov 13, 2013
25840a0
[mr3111] Add one chat type for use to nothing say, for emote/sound only
boxa Nov 13, 2013
481208f
[mr3112] Move world timers setup to config. implement special mechani…
rsa Nov 12, 2013
1bfa1c9
[mr3113] Fix compile by remove IsContinent() double declaration.
Undergarun Nov 14, 2013
538c11b
[mr3114] Fix compile. thx rsa
Undergarun Nov 14, 2013
f09605f
[mr3115] Some codestyle
boxa Nov 14, 2013
3d4c54a
[mr3116] Move movement generators into its own folder
boxa Nov 14, 2013
52347b7
Forgotten piece in (mr3109)
boxa Nov 14, 2013
f00a12e
[mr3117] fix cmakefiles after mr3116
rsa Nov 14, 2013
35fb322
[mr3118] possible fix VC10 problems (not tested)
FallenAngelX Nov 14, 2013
16df4be
[mr3119] fix some possible problems with AI update after mr3106
rsa Nov 14, 2013
9aa6b5e
SD2 update
rsa Nov 14, 2013
3c29462
[mr3120] fix calculation intersectRay for deleted GO's models (fantas…
rsa Nov 14, 2013
d5833ac
[mr3121] Compact and extend info about loaded maps
boxa Nov 17, 2013
a92d142
[mr3122] Temp fix for double map creation
boxa Nov 17, 2013
0f21aa8
[mr3123] fix wrong local declaration
rsa Nov 17, 2013
45f85d0
Revert "[mr3102] Reimplement LockedVector on BIH operations."
Undergarun Nov 21, 2013
cfcb6b9
[mr3124] Move locks for WorldObjectEventProcessor class into class v0…
rsa Nov 10, 2013
dc7223e
[mr3125] safe parts from "add some checks and logging in map add/remo…
rsa Nov 21, 2013
fac5f86
[mr3126] Add some NULL checks in Aura internal operations, related to…
rsa Nov 21, 2013
b0a290c
[mr3127] Correct logic.
mns Nov 23, 2013
0756964
[mr3128] Try to fix some timer problems.
mns Nov 25, 2013
c68d5e0
Revert "[mr3032] drop usage LOCKED VehicleKitPtr (seems unneeded in c…
Undergarun Nov 25, 2013
336e13d
[mr3129] Fix taxi problem.
mns Nov 25, 2013
d3f7099
[mr3130] Prevent create a new characters with wrong race and class pair.
boxa Nov 26, 2013
2418289
[mr3131] Swap grid when object move to new grid cell. Now core can re…
mns Nov 26, 2013
f0e236f
[mr3132] Fix one warning.
mns Nov 26, 2013
5e569ce
[mr3133] Fix one crash.
mns Nov 26, 2013
8662665
[ai-0.36-18] vs files improvements
Nov 3, 2013
6ca46a9
[ai-0.36-19] reduce core changes
Nov 25, 2013
573ac6e
[mr3134] Remove inline calculate chase movement. Cause decrease lag.
mns Nov 27, 2013
fb60f19
[mr3135] Implement RFC commands.
Undergarun Nov 29, 2013
7b5920f
[mr3136] Remove old hacks for combat reach and bounding radius
boxa Dec 3, 2013
1b9de0f
[mr3137] Rework TargetedMovementGenerator
boxa Dec 3, 2013
ffc73f0
[mr3138] Set pet orientation as owner orientation on pet moving end. …
boxa Dec 3, 2013
df4ccdb
[mr3139] Small fix in GetCombatReach()
boxa Dec 3, 2013
848d308
[mr3140] Fix logic and wait target timer in TargetedMGen.
boxa Dec 3, 2013
138439a
[mr3141] Revert commits : 3137 - cannot be compiled by ANY ISO-compar…
rsa Dec 3, 2013
4f2e349
[mr3142] fix compartibility 3136 with current core && SD2
rsa Dec 3, 2013
b2fd20f
[mr3143] Rework TargetedMGen, attempt II. Make templates ISO compatible.
boxa Dec 4, 2013
1b6676d
[mr3144] Fix compile under *nix
boxa Dec 4, 2013
e4d9f9c
[mr3145] final fix compiling of 3143 by Boxa method (see 3144). seems…
rsa Dec 4, 2013
d7dd150
[mr3146] Fix CheckRange() for spells with TARGET_FLAG_SOURCE_LOCATION…
boxa Dec 5, 2013
9a8eb83
[mr3147] Fix target fill for spell 74960.
boxa Dec 8, 2013
33e8e5d
[mr3148] Fix chase moving for creatures with UNIT_FLAG_DISABLE_MOVE flag
boxa Dec 11, 2013
9dc1f20
[mr3149] Implement handling for base Parachute visual spell
boxa Dec 15, 2013
0b2ab58
[mr3150] Group: fix rare crash on disbanding; some codestyle.
boxa Dec 17, 2013
038f5b6
[mr3151] Forgotten line in mr3148, disable moving also for MoveFleeing.
boxa Dec 17, 2013
e4a13b5
[mr3152] Improve Preserved Holly item (21213) working - remove all ch…
boxa Dec 17, 2013
5f99258
[mr3153] Rework Festive Holiday Mount (mr3152), simplify and improve …
boxa Dec 17, 2013
14a811b
[12577] Add positive exception for spell 56099
xfurry Dec 16, 2013
eeddf5f
[mr3154] small correct from 12578
rsa Dec 21, 2013
6fc02d3
SD2 update
rsa Dec 21, 2013
4fa777b
[mr3155] Fix Arena problem. close #1429
mns Dec 30, 2013
1453262
[mr3156] Improvement group system.
mns Dec 30, 2013
d482d7c
[mr3157] Happy new year guys! good holidays for you! =)
boxa Dec 31, 2013
0744b75
[12580] Improve chat channel code:
xurxogr May 13, 2013
f3e706d
[12581] Implement 2 chat channel responses
Machiavell1 May 13, 2013
2005bde
pick from 12583 - Add a configurable delay between when a creature re…
Oct 20, 2013
fa27056
[12584] Rename m_respawnAggroDelay to make it more generic
Dec 25, 2013
1edf404
[12586] Fixed issue with PCH not working on some versions of GCC
sikevux Jun 29, 2013
29b87a3
[12587] Chat system refactoring All chat function now call same method
Dec 28, 2013
ce8bf03
[12590] Add BuildChatPacket comment, reorder parameters, correct a li…
Dec 29, 2013
a226293
[mr3158] fix old methods after chat rework
rsa Jan 5, 2014
c0d3098
SD2 update
rsa Jan 5, 2014
fdc0739
[mr3159] fix one GM crush after 12587
rsa Jan 8, 2014
f5350c5
[mr3159] remove double update time resetting (from mr3125), thx to Un…
rsa Jan 8, 2014
4870b25
[mr3160] Fix LANG_ADDON use on Guild Channels. Close #1434
Undergarun Jan 10, 2014
9a1abbd
[mr3161] Finally fix creatures reattack after chase moving
boxa Jan 10, 2014
fc6df78
[mr3162] Don't add threat from friendly targets; some codestyle
boxa Jan 10, 2014
ebea4e6
[mr3163] Some improvements and codestyle in stat system
boxa Jan 10, 2014
e6fe7ad
[mr3164] Some improvements and codestyle in vmaps
boxa Jan 10, 2014
c8db1f8
[mr3165] Fix pos selection for summoned creatures
boxa Jan 10, 2014
2e3f6b1
[mr3166] Creature: some improvements and codestyle
boxa Jan 10, 2014
fc128a7
[mr3167] Fix targeted MGen for distances with offsets (creature tremor)
boxa Jan 10, 2014
0cc75ff
[mr3168] Fix Master Loot exploit
boxa Jan 10, 2014
a7d9dd8
[mr3169] Fix passenger dismount from flying vehicle; some improvements
boxa Jan 10, 2014
9ba225b
typo for R2
boxa Jan 10, 2014
7f1109a
Really fix typo. ;-)
Undergarun Jan 10, 2014
f86e95c
[12592] Fix arena scoreboard end screen
Jan 6, 2014
5071b06
[12593] Fix showing skirmish or rated arena queue icon
Jan 8, 2014
193e719
[mr3170] some fixes to vehicle Fixed vehicle orientation on transport…
Shauren Jan 11, 2014
daaeaa0
[mr3171] Handle CMSG_ZONEUPDATE only in WorldSession update - changin…
Shauren Jan 11, 2014
2656434
[mr3172] allow only for GM's use CMSG_GUILD_CREATE (by motives of Deh…
rsa Jan 11, 2014
1735d09
[mr3173] Use real percents in ResurrectPlayer()
boxa Jan 12, 2014
0e455aa
[mr3174] Implement SMSG_INVALIDATE_PLAYER
boxa Jan 12, 2014
d3cba57
[mr3175] Don't allow to login while character is forced to rename
boxa Jan 12, 2014
dbf47a6
[mr3176] Fix incorrect input length limits
boxa Jan 12, 2014
6d01977
[mr3177] Players: On CanRewardQuest, use the same item dest vector fo…
boxa Jan 12, 2014
e1f1bcf
[mr3178] Allow to change aggro radius separate for continents and dun…
boxa Jan 12, 2014
be00228
forgotten...
boxa Jan 12, 2014
b5c6db9
Missing change and restore compile. Close #1435
Undergarun Jan 12, 2014
f8ed2cd
[mr3179] Fix combat state setting when FFA PvP flag is set
boxa Jan 14, 2014
39e1329
[mr3180] Don't use glow vision during arena preparation
boxa Jan 14, 2014
3964d7a
Merge branch 'master' of https://github.com/mangosR2/mangos
boxa Jan 14, 2014
5a19bf1
[mr3181] Fix NULL dereference crash in case Warden is disabled (in co…
Undergarun Feb 9, 2014
9bcba43
[mt3182] Improve Win Exception Report.
Undergarun Feb 9, 2014
d443acd
[mt3183] Fixed UnitIsPartyLeader lua function
Undergarun Feb 9, 2014
611379f
[mr3184] Add rest of checks from SendListInventory to BuyItemFromVend…
Undergarun Feb 10, 2014
ccc49d5
[mr3185] Allow to stop packetRecv.
Undergarun Feb 10, 2014
dfc7bb0
[mr3186] Fix exploit related to unexplored nodes.
Undergarun Feb 10, 2014
f8733f4
[mr3187] Fix an exploit with CMSG_LOOT using non-creature guids which…
Undergarun Feb 10, 2014
58d0ddb
Restore Win compile.
Undergarun Feb 10, 2014
b4aa90f
Typos
Undergarun Feb 14, 2014
bed5479
[mr3188] Fix TaxiNode checks. Ty 2010phenix.
Undergarun Feb 16, 2014
0299210
[mr3189] Remove duplicated z-pos hover effect.
Undergarun Feb 16, 2014
d6d024a
[mr3190] Implement BattleField class and their OPCODES.
Undergarun Feb 16, 2014
431449b
[mr3191] Remove Wintergrasp placeholder from OutdoorPvP. Should be im…
Undergarun Feb 16, 2014
e62ce6b
[mr3192] Some missing records on character delete.
Undergarun Feb 20, 2014
36c40eb
[mr3193] Added some exclusions for CHECK_MOVEMENT Anticheat check.
Undergarun Feb 22, 2014
1be8a95
[mr3194] Fix achievement criteria validation on startup.
Undergarun Feb 26, 2014
9f23623
[mr3195] Glyph of Seal of Command
Undergarun Feb 27, 2014
5d9e712
Merge branch 'master' of git://github.com/mangosR2/mangos into mangos…
Mar 9, 2014
bd04aa1
[ai-0.36-20] minor movement and compile fixes
Mar 9, 2014
321c651
[ai-0.36-21] Random bots can accept guild invitations. Any offline ra…
Mar 10, 2014
9a796ef
* change solution file to reflect and use vc11 in studio finder by de…
Mar 10, 2014
91307fc
[ai-0.36-22] basic support for formations (they tell how bots are fol…
Mar 11, 2014
c9ad325
Merge pull request #173 from fallenangelX/mangosr2-wotlk-ai
ike3 Mar 11, 2014
3de088f
[ai-0.36-23] arrow formation
Mar 11, 2014
602fb7b
[mr3196] fix POWERS enum compartibility with 4.x/5.x also fix channel…
rsa Mar 25, 2014
9b5c1b1
[mr3197] Startup travis-ci work. .gitmodule update to allow travis cl…
Undergarun Mar 26, 2014
c31c025
[mt3198] Remove clang compiler from travis.yml Currently mangosR2 not…
Undergarun Mar 26, 2014
fb7871d
[mr3198] fix clang compilation possibility (no real changes). attenti…
rsa Mar 27, 2014
3caadd7
[12598] Avoid a possible crash using console
Jan 28, 2014
e788a19
[12599] Improve npc chat command.
Jan 28, 2014
ed7c58d
[12601] Correct some BG chat message missing target name. Thank to @C…
Mar 8, 2014
91b19a2
[12602] Set max gossip menu items to 32
Rochet2 Mar 12, 2014
d726382
[12603] Implement dummy effect for spell 41283
xfurry Mar 12, 2014
417c3e8
[12605] Fix debug parameters added in [12592]
DomGries Mar 16, 2014
17142f6
[12607] Spell updates required for Northrend quests
xfurry Mar 16, 2014
8f8d33e
[12609] Update all stats after creature respawn. That fix the stats w…
Mar 18, 2014
a357669
[12611] Hide known recipes when the Usable box is checked in the AH.
Mar 20, 2014
4bfc00e
[12612] This is used to prevent creatures from pulling too many nearb…
Mar 24, 2014
1b7c554
[12613] Add ACTION_T_SET_STAND_STATE for EventAI
xfurry Mar 25, 2014
e3bd367
[12614] Reserve more DB_SCRIPT_STRING_ID. It seem that could be usefull.
web-flow Mar 26, 2014
10f366b
SD2 update
rsa Mar 27, 2014
f073eb5
[mr3199] Include some compiler flags for travis.
Undergarun Mar 27, 2014
3b019df
Revert "[mr3199] Include some compiler flags for travis."
Undergarun Mar 28, 2014
0d2f2c6
[mr3200] Set per compiler flags for travis.
Undergarun Apr 2, 2014
6a0944d
[mr3201] Fix DDoS attacks on authentication server (realmd)
boxa Apr 5, 2014
9de1a6c
[mr3202] Fix compile under *unixs
boxa Apr 6, 2014
e974ce7
[mr3203] test changes for travis (possible requires correct)
rsa Apr 6, 2014
dae51f3
[12615] Loading/reloading classlevelstats.
Mar 27, 2014
5fbddd1
[12516] Reorganize code to allow rage rewarded for critter type.
Apr 6, 2014
5d73d86
[12618] Remove unused constructor overloads
Apr 1, 2014
13f80d2
[12619] Fix conflicting typedef error in ACE Prevent assert on platfo…
Apr 1, 2014
37e6a6c
[12620] Fix creature flee dont loose target. Also Feared creature wil…
Apr 2, 2014
5b992b0
[12621] Hand of Reckoning can now be used to fleeing creature.
Apr 2, 2014
e78352b
[12622] Implement new stats system for Health and Mana. Core now supo…
Apr 5, 2014
a81c4b9
[mr3204] correct 3203 for travis
rsa Apr 6, 2014
706b315
SD2 update
rsa Apr 6, 2014
1b01404
next correct of travis.yml (f...cking undocumented language...)
rsa Apr 6, 2014
b398419
[mr3205] add more correct excludes for travis (may not work again)
rsa Apr 6, 2014
9da4ea6
SD2 update
rsa Apr 6, 2014
cbde899
[mr3206] Use RACEMASK instead of recurrent switch case in Faction change
Undergarun Apr 9, 2014
87e5d95
[mr3207] Implement BeforeDespawn and DoAction in creature AI for inst…
Undergarun Apr 12, 2014
090a469
[mr3208] Outdoor pvp update timer change for Wintergrasp support.
Undergarun Apr 14, 2014
3489e23
[mr3209] Add GetExactDistance2d extendable to script lib for scriptin…
Undergarun Apr 16, 2014
2e5690c
[mr3210] Fix distance calculation issues. Part I
boxa Apr 16, 2014
313a544
[mr3210] Part II. Fix melee attack distance when players moving (PvP)…
boxa Apr 16, 2014
9faabdc
Forgotten
boxa Apr 17, 2014
e998197
Fix R2 compile (thx to Travis)
boxa Apr 17, 2014
a3ea6f5
[mr3211] Unit::_AddAura now returns the holder containing the new aur…
Undergarun Apr 17, 2014
3e06e44
[mr3212] Allow to change and update aura amount.
Undergarun Apr 17, 2014
78099cf
[mr3213] SetData and GetData for instance scripting.
Undergarun Apr 17, 2014
bec1d0a
[12624] Correctly use custom value for specified creature rank in con…
Schmoozerd Apr 7, 2014
769bd84
[12625] Hotfix broken ACE configure script of [12619]
Schmoozerd Apr 7, 2014
f219cc1
[12626] Improve "NPCs gets stuck in melee animation while casting".
Apr 7, 2014
b794d2c
[12627] Improve random movement by permit randomly no wait time to n…
Schmoozerd Apr 8, 2014
d9421c6
[12628] Fix PostgreSQL bindings and add support to build directly wit…
hallabro Apr 8, 2014
58fce4d
[12629] Don't do periodic heal ticks if the target is already at max …
Apr 8, 2014
1036ad9
[mr3214] Totem are immune to their own spell workaround fix (by moti…
rsa Apr 20, 2014
b101ba6
[12633] Reorder and unify the config's stat modifier handling
Schmoozerd Apr 10, 2014
ce760c1
[12635] Fix tiny bug introduced in [8390] in an unused function
Schmoozerd Apr 10, 2014
f252301
[mr3215] rogue fall damage hack by cyberium from 12638 (not used)
rsa Apr 20, 2014
c9b0f1f
[12639] Fix bad english.
sikevux Apr 18, 2014
6d4a259
[12641] Implement dummy effect of spell 63125
Apr 19, 2014
c6a9c14
make travis compile one-threaded
rsa Apr 20, 2014
db352ea
SD2 update
rsa Apr 20, 2014
6fd8e12
[mr3216] Fix rare crash in DynamicMapTree::isInLineOfSight(...)
boxa Apr 26, 2014
0e30674
[mr3217] Fix one memleak
boxa Apr 26, 2014
604da62
[mr3218] Fix one more memleak
boxa Apr 26, 2014
753f461
[mr3219] Shadowmourne visual and bladestorm
Undergarun Apr 27, 2014
ac272de
[mr3220] Achievement "The Sickly Gazelle"
Undergarun Apr 27, 2014
5ed51d0
[mr3221] Achievement improvements
Undergarun Apr 27, 2014
2ad8035
[mr3222] Some SharedDefines additions.
Undergarun Apr 27, 2014
f7bd43a
[mr3223] Frostbite
Undergarun Apr 28, 2014
56da46b
[mr3224] Death Knights in starting zones with Undying Resolve buff or…
Undergarun May 2, 2014
7e509aa
[mr3225] Enable new level stats system. Now database is populated by …
Undergarun May 20, 2014
cc613cd
[12606] Big rename of creature_template fields. Also renamed core par…
Mar 14, 2014
6bebdcd
[mr3226] Changes renamed fields from creature_template table to own c…
Undergarun May 28, 2014
dd855a7
[12316] Add Unit::RemoveAllAurasOnEvade
Schmoozerd Dec 14, 2012
dba2c1b
[12654] Add new Regen Health / Power flags and rename database fields…
xfurry Apr 28, 2014
bfdae2d
[12655] Implement generic power handling for Creatures and Pets
Apr 28, 2014
1da9bc4
[12656] Initialize power type and power type values for creatures
xfurry Apr 28, 2014
5fac72b
[12657] Set correct power type for vehicles based on PowerDisplay.dbc
xfurry Apr 28, 2014
3e8a6f5
[12659] Allow sending custom eventAI events to all units in range
xfurry May 4, 2014
70b2aca
[12660] Implement condition CREATURE_IN_RANGE
xfurry May 4, 2014
6cda4bb
[12661] Cleanup and rework power type setting
xfurry May 7, 2014
8334643
[mr3227] It's no longer possible to fake the amount of gold put into …
Undergarun May 28, 2014
9bf3a2d
git submodule update
Undergarun May 28, 2014
c84b7c8
[mr3228] Missing changes with creature_template commits.
Undergarun May 29, 2014
c479f6b
[mr3229] Remove PowerType from creature_template and use PowerDisplay…
Undergarun May 31, 2014
2817cd3
[mr3230] Remove not needed reputation records already provided by YTDB
Undergarun May 31, 2014
6d746d6
[mr3231] Remove creature_spell ddbb structure. Already fit to base
Undergarun May 31, 2014
ff8ec16
[mr3232] Northern Cloth Scavenging already included on base db provid…
Undergarun May 31, 2014
f316086
[mr3233] Remove OutdoorPVP db records to avoid duplicates with cmango…
Undergarun May 31, 2014
d2a9854
[mr3234] Cleanup in SQL and remove tables included on custom_mangos_t…
Undergarun May 31, 2014
c0b60bc
[mr3235] RFC SQL cleanup
Undergarun Jun 3, 2014
780ae21
[mr3236] Remove not needed anymore sql files.
Undergarun Jun 3, 2014
85700dd
[mr3237] Fix SQL files to fit creature_template changes.
Undergarun Jun 3, 2014
c57144b
[mr3238] SQL cleanup
Undergarun Jun 3, 2014
1d0d010
[mr3239] Output creature entry on spawnMask error output.
Undergarun Jun 4, 2014
7c59cf8
[mr3240] Next bunch of SQL fixes
Undergarun Jun 4, 2014
073f9e8
[mr3241] Remove EventAI already included on base EventAI, remove spel…
Undergarun Jun 4, 2014
18e53ff
[mr3242] Implement resting for areas with AREA_FLAG_REST_ZONE_ALLIANC…
Undergarun Jun 5, 2014
61a85e4
[mr3243] Remove more data already provided on base database
Undergarun Jun 5, 2014
ef8573e
[mr3244] More work to fit base and latest changes in db structure
Undergarun Jun 5, 2014
d1c95f7
Merge branch 'master' of git://github.com/mangosR2/mangos into mangos…
Jun 13, 2014
211b58f
[ai-0.36-24] compile fix
Jun 13, 2014
6614395
[mr3245] Allow to execute mangos_strings on both table versions. (For…
Undergarun Jun 13, 2014
8d6d976
[mr3246] Fix possible crash in Achievements code. Thanks to ike3 for …
Undergarun Jun 13, 2014
933b7a8
[mr3247] Fix mangos indexes related to creature_template table. Thank…
Undergarun Jun 13, 2014
7fe6990
Merge branch 'master' of git://github.com/mangosR2/mangos into mangos…
Jun 13, 2014
cd22a3e
[ai-0.36-25] remove old char code check - breaks bot commands for non…
Jun 15, 2014
65baeaa
[ai-0.36-26] performance: wait after facing target
Jun 18, 2014
f9ecb5e
[ai-0.36-27] bot movement fix: greatly improves melee bot efficiency
Jun 20, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*.vcproj eol=crlf
*.vcxproj* eol=crlf

src/shared/revision_nr.h eol=lf
src/shared/revision_sql.h eol=lf

# Whitespace rules
# strict (no trailing, no tabs)
*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
Expand Down
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tags
TAGS
!.gitignore
!.gitattributes
!.travis.yml

#
# Build generated files
Expand All @@ -39,6 +40,7 @@ autom4te.cache
*~
*.bak
*.orig
*.rej
*.patch
callgrind.out.*

Expand All @@ -52,6 +54,11 @@ patches-*
# VS binaries output
#
bin/*
*win32_Debug*
*win32_Release*
*x64_Debug*
*x64_Release*
win/*/*.log

#
# VS temporary files
Expand All @@ -64,6 +71,10 @@ bin/*
*.vsp
ipch
*.user
*.obj
*.pdb
*.tlog


#
# CMake temporary files
Expand All @@ -72,6 +83,11 @@ CMakeFiles
CMakeCache.txt
cmake_install.cmake

#
# System-internal temporary files
#
config.h

#
# OS specific
#
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/bindings/ScriptDev2"]
path = src/bindings/ScriptDev2
url = git://github.com/mangosR2/scriptdev2.git
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: cpp

branches:
only:
- mangosr2-wotlk_ai

compiler:
- gcc
- clang

script:
- test -d _build || mkdir _build
- test -d _install || mkdir _install
- cd _build
- cmake -DPCH=1 -DCMAKE_INSTALL_PREFIX=../_install ..
- make -j4
151 changes: 105 additions & 46 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#

project(MaNGOS)
set(MANGOS_VERSION 0.17.0)

# CMake policies
cmake_minimum_required(VERSION 2.8)
Expand All @@ -27,6 +26,78 @@ set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/cmake
)

# define all options here
option(DEBUG "Debug mode" OFF)
option(TBB_USE_EXTERNAL "Use external TBB" OFF)
#option(USE_STD_MALLOC "Use standard malloc instead of TBB" OFF)
#option(USE_TBB_MALLOC "Use included TBB malloc" OFF)
option(ACE_USE_EXTERNAL "Use external ACE" ON)

if(WIN32)
if(PLATFORM MATCHES X86) # 32-bit
option(USE_FASTMM_MALLOC "Use included FastMM malloc (default for win*)" 1)
option(USE_STD_MALLOC "Use standard malloc instead of TBB" 0)
else() # 64-bit
option(USE_STD_MALLOC "Use standard malloc instead of TBB" 0)
option(USE_FASTMM_MALLOC "Use included FastMM malloc (default for win*)" 1)
endif()
else()
#Unix and other platforms
option(USE_STD_MALLOC "Use standard malloc instead of TBB" 1)
endif()

option(POSTGRESQL "Use PostgreSQL" OFF)

if(PCHSupport_FOUND AND WIN32) # TODO: why only enable it on windows by default?
option(PCH "Use precompiled headers" ON)
else()
option(PCH "Use precompiled headers" OFF)
endif()
# TODO: options that should be checked/created:
#option(CLI "With CLI" ON)
#option(RA "With Remote Access" OFF)
#option(SQL "Copy SQL files" OFF)
#option(TOOLS "Build tools" OFF)

find_package(PCHSupport)

# Add options for compile of mangos
if(PCHSupport_FOUND)
if(WIN32)
option(PCH "Use precompiled headers" 1)
else()
option(PCH "Use precompiled headers" 0)
endif()
endif()

# FIXME: options that should be checked
# option(SQL "Copy SQL files" 0)
# option(TOOLS "Build tools" 0)

# Output description of this script
message("")
message(
"This script builds the MangosR2 server.
Options that can be used in order to configure the process:
CMAKE_INSTALL_PREFIX Path where the server should be installed to
PCH Use precompiled headers
DEBUG Debug mode
INCLUDE_BINDINGS_DIR Include a script library in src/bindings/ with the
defined name. the name must corespond to the name of
the folder and the folder must contain a valid
CMakeLists.txt
TBB_USE_EXTERNAL Use external TBB
USE_STD_MALLOC Use standard malloc (default for *NIX)
USE_TBB_MALLOC Use TBB malloc (not recommended)
USE_FASTMM_MALLOC Use included FastMM malloc (default for win*)
ACE_USE_EXTERNAL Use external ACE (default. usage included ACE not recommended, possible only for win*)

To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
Also, you can specify the generator with -G. see 'cmake --help' for more details
For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos"
)
message("")

# Force out-of-source build
string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" BUILDING_IN_SOURCE)
if(BUILDING_IN_SOURCE)
Expand Down Expand Up @@ -59,11 +130,11 @@ endif()
message(
"\nThis script builds the MaNGOS server.
Options that can be used in order to configure the process:
PREFIX: Path where the server should be installed to
CMAKE_INSTALL_PREFIX: Path where the server should be installed to
PCH: Use precompiled headers
DEBUG: Debug mode
To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
For example: cmake .. -DDEBUG=1 -DPREFIX=/opt/mangos\n"
For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos\n"
) # TODO: PLATFORM: Sets the architecture for compile (X86,X64)

# Override configuration-types - we don't use anything else than debug and release
Expand Down Expand Up @@ -97,41 +168,12 @@ endif()
# endif()
# endif()

option(DEBUG "Debug mode" 0)
# option(CLI "With CLI" 1) # Not used by MaNGOS so far
# option(RA "With Remote Access" 0) # TODO: support remote access
option(TBB_USE_EXTERNAL "Use external TBB" 0)
option(USE_STD_MALLOC "Use standard malloc instead of TBB" 0)
option(ACE_USE_EXTERNAL "Use external ACE" 0)

find_package(PCHSupport)

# Add options for compile of mangos
if(PCHSupport_FOUND)
if(WIN32)
option(PCH "Use precompiled headers" 1)
else()
option(PCH "Use precompiled headers" 0)
endif()
endif()

# FIXME: options that should be checked
# option(SQL "Copy SQL files" 0)
# option(TOOLS "Build tools" 0)

# Set up the install-prefix
if(CMAKE_INSTALL_PREFIX STREQUAL "/usr/local")
get_filename_component(PREFIX_ABSOLUTE "../mangos-server" ABSOLUTE)
set(CMAKE_INSTALL_PREFIX ${PREFIX_ABSOLUTE} CACHE PATH "Install path prefix." FORCE)
endif()
# TODO: remove this in the future! it has only been added to make the switch easier for end users
if(PREFIX)
if(!WIN32)
string(REGEX REPLACE "^~" "$ENV{HOME}" PREFIX ${PREFIX})
endif()
get_filename_component(PREFIX_ABSOLUTE ${PREFIX} ABSOLUTE)
set(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "Install path prefix." FORCE)
else()
set(PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Install path prefix.")
message(FATAL_ERROR "The parameter PREFIX has been removed. Please re-run CMake and use CMAKE_INSTALL_PREFIX instead to define your installation location!")
endif()

set(BIN_DIR ${CMAKE_INSTALL_PREFIX}/bin)
Expand Down Expand Up @@ -170,7 +212,7 @@ else()
include(cmake/ImportACE.cmake)
endif()

if(NOT USE_STD_MALLOC)
if(USE_TBB_MALLOC)
unset(TBB_INCLUDE_DIR CACHE)
unset(TBB_LIBRARIES CACHE)
unset(TBB_LIBRARIES_DIR CACHE)
Expand Down Expand Up @@ -202,7 +244,17 @@ endif()

# *nix-specific packages
if(UNIX)
find_package(MySQL REQUIRED)
if(POSTGRESQL)
find_package(PostgreSQL REQUIRED)

if(POSTGRESQL_FOUND)
include_directories(${POSTGRESQL_INCLUDE_DIRS})
endif(POSTGRESQL_FOUND)

else()
find_package(MySQL REQUIRED)
endif()

find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)
endif()
Expand Down Expand Up @@ -284,8 +336,8 @@ endif()
if(UNIX)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} --no-warnings")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} --no-warnings")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wfatal-errors -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wfatal-errors -Wextra")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wfatal-errors")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wfatal-errors")
elseif(WIN32)
# Disable warnings in Visual Studio 8 and above and add /MP
if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")
Expand Down Expand Up @@ -398,24 +450,31 @@ if(XCODE)
endif()
endif()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

add_subdirectory(dep) # TODO: add vmap extractor build support

# Add definitions for all build types
# Don't place this above 'dep' subdirectory! Because of defines build will crash.
set(DEFINITIONS
DO_MYSQL
HAVE_CONFIG_H
VERSION="${MANGOS_VERSION}"
SYSCONFDIR="${CONF_DIR}/"
)
if (UNIX)
set(DEFINITIONS DO_MYSQL SYSCONFDIR="${CONF_DIR}/")
else()
set(DEFINITIONS DO_MYSQL SYSCONFDIR="../etc/")
endif()

if(POSTGRESQL)
set(DEFINITIONS ${DEFINITIONS} DO_POSTGRESQL)
else()
set(DEFINITIONS ${DEFINITIONS} DO_MYSQL)
endif()

set(DEFINITIONS_RELEASE NDEBUG)
set(DEFINITIONS_DEBUG _DEBUG MANGOS_DEBUG)
if(WIN32)
set(DEFINITIONS ${DEFINITIONS} WIN32 _WIN32)
set(DEFINITIONS_RELEASE ${DEFINITIONS_RELEASE} _CRT_SECURE_NO_WARNINGS)
endif()

if(USE_STD_MALLOC)
set(DEFINITIONS ${DEFINITIONS} USE_STANDARD_MALLOC)
endif()
Expand All @@ -427,4 +486,4 @@ set_directory_properties(PROPERTIES COMPILE_DEFINITIONS_DEBUG "${DEFINITIONS_DEB
add_subdirectory(src)
# if(SQL)
# add_subdirectory(sql)
# endif()
# endif()
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
= AI Playerbot -- README =

This is a fork of playerbot with completely different AI based on strategies.
Documentation can be found in doc/playerbot folder

Copyright (C) 2005-2012 MaNGOS project <http://getmangos.com/>

MaNGOS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

In addition, as a special exception, the MaNGOS project
gives permission to link the code of its release of MaNGOS with the
OpenSSL project's "OpenSSL" library (or with modified versions of it
that use the same license as the "OpenSSL" library), and distribute
the linked executables. You must obey the GNU General Public License
in all respects for all of the code used other than "OpenSSL". If you
modify this file, you may extend this exception to your version of the
file, but you are not obligated to do so. If you do not wish to do
so, delete this exception statement from your version.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2-random-bots
12 changes: 7 additions & 5 deletions cmake/FindPCHSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE gcc_compiler_version)
#MESSAGE("GCC Version: ${gcc_compiler_version}")
IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
IF(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")
SET(PCHSupport_FOUND TRUE)
ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
ELSE(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")
IF(gcc_compiler_version MATCHES "3\\.4(\\.[0-9])?")
SET(PCHSupport_FOUND TRUE)
ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
ENDIF(gcc_compiler_version MATCHES "3\\.4(\\.[0-9])?")
ENDIF(gcc_compiler_version MATCHES "4\\.[0-9](\\.[0-9])?")

SET(_PCH_include_prefix "-I")

Expand Down Expand Up @@ -270,6 +270,8 @@ MACRO(GET_NATIVE_PRECOMPILED_HEADER _targetName _input)
endif(EXISTS ${${_targetName}_pch})
endif(CMAKE_GENERATOR MATCHES Visual*)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm500")

ENDMACRO(GET_NATIVE_PRECOMPILED_HEADER)


Expand Down
19 changes: 19 additions & 0 deletions cmake/mingw32-i686.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
SET(CMAKE_SYSTEM_PROCESSOR i686)
SET(COMPILER_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32)

# which compilers to use for C and C++ and ASM-ATT
find_program(CMAKE_RC_COMPILER NAMES ${COMPILER_PREFIX}-windres)
find_program(CMAKE_C_COMPILER NAMES ${COMPILER_PREFIX}-gcc)
find_program(CMAKE_CXX_COMPILER NAMES ${COMPILER_PREFIX}-g++)
find_program(CMAKE_CXX_COMPILER NAMES ${COMPILER_PREFIX}-as)

SET(CMAKE_FIND_ROOT_PATH /usr/${COMPILER_PREFIX} ${USER_ROOT_PATH})

# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Loading