Commit graph

430 commits

Author SHA1 Message Date
image
9ebe3fbec0 Spell Copies will pull spell effects / lua data also -- just in case 2020-09-10 07:38:04 -04:00
image
913f72b5ba Complete LUA Custom Spell Implementation
Complete Fix  - need to rebuild the SpellData structure so as to not mess with the base Spell's memory.  Also delete the inner spell when we RemoveSpell since its only a one-off.
2020-09-10 07:26:32 -04:00
image
900a32b259 LUA additions
Fix  - LUA custom spell support (for things like item scripts)
Fix  - Alignment LUA functions
CastSpell now has a cast_time argument extended to it
2020-09-09 23:54:23 -04:00
image
ff02b05cfd Merge branch 'MoreLuaDebug' of pboyd04/EQ2EMu into master
looks good
2020-09-07 22:16:34 +00:00
Patrick Boyd
6785c8d2d5 Add more LUA debug functions 2020-09-07 16:22:02 -05:00
Patrick Boyd
dd157479b9 Add CMake for root + Login/WorldServer 2020-09-06 13:18:17 -05:00
image
0701fb21a9 restore OfferQuest changes accidentally removed.. 2020-09-05 23:05:00 -04:00
image
897df23280 Fixed async query, added new reason string to remove spell function in LUA
- Fixed a async query for npc_appearance on skin_color to use insert param
- spell 'remove' function now has third parameter 'reason', canceled, expired, purged, death and pet_death
2020-09-05 22:31:04 -04:00
Patrick Boyd
2a3baec376 Add debug prints to OfferQuest + fix bug in Jacques spawn script 2020-09-04 21:00:33 -05:00
image
b3ff45314c custom spawnset result message for skin_color 2020-09-04 08:05:15 -04:00
image
81aa1f23e3 LUA SpawnSet and SpellHeal updates
SpawnSet(NPC, "skin_color", "255 0 0", false, true)

skin_color takes in 3 arguments as a string, R G B
two new parameters after value:
- no_update, when set to true (default false, its an inverse flag of send_update) we will not send update of spawn changes
- temporary_flag, when set to true database is not update (default false again to keep compat with LUA scripts).

SpellHeal(Spawn, "heal", min, max, NPC, 0, 0, "New Spell Name")
2020-09-04 07:31:07 -04:00
image
d13f594c8c Merge branch 'ReduceCompilerWarnings' of pboyd04/EQ2EMu into master
appreciate the fixes, thanks!
2020-09-03 21:07:35 +00:00
Patrick Boyd
3078e12938 Reduce compiler warnings in login server 2020-09-03 14:43:40 -05:00
image
5957ec2042 Fix crash on zoneserver shutdown
Fix 
2020-09-03 13:19:50 -04:00
image
b908936a6e crash fix with CastProc on dead spell ptr
Fix 
2020-08-31 23:17:15 -04:00
image
dd01a9ce4a Fix locking release for updating logq 2020-08-31 21:57:54 -04:00
image
7ae7d637a3 Protection to group members and also heroic opportunities (avoid crashes)
Fix 
2020-08-31 21:57:42 -04:00
image
a41aa0fa6d SetQuestsRequired is now mutex protected, trying to prevent crash on deconstructor 2020-08-30 17:48:46 -04:00
image
5bf65b9399 Protection on group member info when updates are made
Prevents corruption in the group member pointers.. clients couldn't see each other in group lists or chat to each other depending on special conditions
2020-08-30 08:29:19 -04:00
image
45710414ec Group members should now always be temp removed on zoning/client deconstruct 2020-08-30 07:30:22 -04:00
image
def9e92b21 crash/leak for loot fixed 2020-08-30 07:30:07 -04:00
image
de53282c12 changed windows watchdog behavior to not delete zoneserver 2020-08-28 21:26:40 -04:00
image
829b930f82 Fix Pet command with no arguments
Fix 
2020-08-28 21:26:27 -04:00
image
0341a2f210 Remove old data structure from struct_data map, prevents memory leak / buffer overflow
Fix  may also be the reason for Fix 
2020-08-28 11:19:02 -04:00
image
2ebc48c157 Spawn indexes in Player class now protected by mutex
Fix 
2020-08-28 11:18:22 -04:00
image
cbb399fad4 Update Entity.cpp
Protection for Fix 
2020-08-28 11:15:56 -04:00
image
56a987274d fix to watchdog code to remove zone entry in iterator when we force shutdown 2020-08-26 07:36:56 -04:00
image
ea88e22405 more spell crash/hang fixes
- Fix lifetime of remove_target_list Spawn* -> int32 entity ID (resolve entity id to spawn on demand, makes sure we don't have a dead ptr)
- Fix for hang behavior with mutex lock when coming in from LUA spell functions
2020-08-25 15:41:40 -04:00
image
53d3114980 deadlock fix for spells code 2020-08-25 14:20:10 -04:00
image
dc98a6035e Zone watchdog logic -- attempt to force shutdown a hung/frozen zone
after 30 seconds of zone process hung, attempt normal shutdown.   If at 60s then force SpawnProcess/ZoneProcess threads to cancel (only linux supports 60s feature to cancel thread).  For windows 60s+ is only notification and does not attempt to cancel threads.

second stage for linux may/may not succeed (either shuts the zone down or crashes the world).  Idea being this is worst case scenario to try to recover/make server owner aware of the hung nature of the zone.
2020-08-25 13:34:46 -04:00
image
7a86840df0 Spell stability fixes (various crashes, bad pointer handling)
Fix 
Fix 
2020-08-25 13:32:15 -04:00
image
ab226c00f8 Fix examine info crash
Fix 
2020-08-24 07:39:53 -04:00
image
a13bc1c7fd fixed unexpected resizing of mobs in combat 2020-08-23 22:54:59 -04:00
image
0d17a539ba Update LuaFunctions.cpp 2020-08-23 22:54:43 -04:00
image
0082debfed fixed crash with threat transfer 2020-08-23 22:54:34 -04:00
image
4a427009c9 version update to virgo 1.0 2020-08-23 22:54:24 -04:00
image
f84d750380 Exe/Binary update for model viewer 2020-08-22 23:08:24 -04:00
image
68468ccd82 cs assembly junk 2020-08-22 23:07:52 -04:00
image
888a869bd2 Fix rotation / coordinate issues in ModelViewer
Fix 
2020-08-22 23:07:43 -04:00
image
f374cb4dd4 items table update flags_16384 -> no_transmute, flags2_256 -> no_salvage 2020-08-22 18:05:55 -04:00
image
6547d1ba67 Missing lock and setting mutex name for groups
Additional changes for Fix 
2020-08-22 08:07:20 -04:00
image
41716c32fa Group fixes/support - requires characters table update
Fix 

- Fixed crashing of the world server when a client in a group zones
- Tracking of players group_id in the characters table (for both sanity and tracking cross zone)
- Clients zoning now properly 'rejoin' their group
- Mutex locks added to group code, this makes groups more reliably work across different zones as they run on different threads (some behavior for example was some players would not see chat and others would)
2020-08-21 23:38:15 -04:00
image
efe68beae9 Fixed starting skills/spells matching race/class on exact match or 255 wildcard 2020-08-20 21:29:06 -04:00
image
51b314ac87 Fixed some limitations/bugs with starting skills/spells implementation
- multimap needs to be used for various key matches
- fixed class matching
- Put a short tic wait for the async queries to hit the DB.  Eventual solution here really would be that all character loading (char sheet/spells/etc) should be done async.
2020-08-20 08:18:26 -04:00
image
7fb275ee44 Support for starting skills/spells added after char created
Fix  - support adding starting skills/spells to characters after their initial creation

/reload startabilities added

insert into commands set type=1,command='reload',subcommand='startabilities',handler=522,required_status=100;
2020-08-17 22:06:21 -04:00
image
5506686907 Fix display default for false, avoids popups when hovering over knowledge book icons in newer clients, also replacement for starting skills/spells check
Helps address issue 
2020-08-17 22:04:20 -04:00
image
0ad4e6b698 Bug with knowledge books and examining spells/abilities
- Need to use the old unique_id, spell book (knowledge book) was showing 'unknown spell' for some entries, you couldn't examine any abilities either.
2020-08-17 22:01:53 -04:00
image
c2ed1715e8 Fix WS_PerformCameraShakeMsg
Classic/DoF client use only a single float, then later a direction was added.  Not clear what version exactly, however struct will function despite the extra int8.
2020-08-12 21:44:50 -04:00
image
4d15ae2154 disable RELAY code that could be accessed by rogue TCP connections to the Login Server 2020-08-12 09:31:20 -04:00
image
e9cd846d27 Code to investigate issue
Code to help identify issue 
2020-08-11 21:49:56 -04:00