Commit graph

92 commits

Author SHA1 Message Date
Image
9f01692d8d Fixed bug on spawn move close_heading 2020-03-27 08:43:02 -04:00
Image
d71e9c76ee Mem leak fix for async query code 2020-03-26 17:43:01 -04:00
Image
7c42966f14 Fixed erase crash when no client to erase 2020-03-25 23:15:48 -04:00
Image
cb0d07c5fa Character saves needed to be async, too slow to run synchronous in client process
Fixes 

Database class now has the ability to asynchronously run queries that don't tie up the process threads.

This is being utilized right now for character saves as that seems to be the slowest process.  However query id's (and potentially extension of such) can allow anything to be asynchronous -- and later on even add return vars.
2020-03-25 23:15:31 -04:00
Image
456cfa5828 Deadlock fixes in new GetScriptName 2020-03-25 22:35:59 -04:00
Image
1dfbf01cf4 Fix crash on login to zone
Fixes 

Client gets ahead of server, tries to get character info before we set appropriate structures for client to use
2020-03-25 21:06:18 -04:00
Image
d11d58df75 enemy target group spells do not impact current target
Fixes 
2020-03-25 00:04:50 -04:00
Image
5cd1bacc28 Login Server Updates
Fixes  - check on if an account exists or not before attempting an account creation (we still rely on the DB to do the password comparison as its own query)
2020-03-24 22:23:51 -04:00
Image
9bbd10e147 Command to move spawn to your current location
Fixes 
new command : /spawn move myloc
Updates X,Y,Z,Heading to the players current values and saves the spawn_location_placement
2020-03-23 22:47:41 -04:00
Image
c724918484 Removed unused rule SpeedRatio 2020-03-22 17:08:04 -04:00
Image
5dfafe4464 Linux fixes 2020-03-22 17:07:49 -04:00
Image
3234470441 disarm chest traps trigger on group
Fixes 

Added group triggers to disarm chest traps.

Rule R_Loot, ChestTriggerRadiusGroup added (by default 10.0f).  Outside radius group members will not be impacted
2020-03-22 13:18:40 -04:00
Image
f0d1fb950d Update Spawn.cpp
Include not needed
2020-03-22 10:18:04 -04:00
Image
04498a2490 Player/Target Radius added to distance checks
Radius is now built into the GetDistance formula, it also is based on f32/32.0f per recommendations of peak (Thx peak!)

Added combat range as a rule: rule_manager.GetGlobalRule(R_Combat, MaxCombatRange)->GetFloat()

Fixes 
2020-03-22 09:45:40 -04:00
Image
442868f80a smash crash fix for camera shake
crash fix for camera shake by smash
2020-03-21 21:22:52 -04:00
Image
151b1fc91a Disarm chest old rules
- Added rule R_Loot, AutoDisarmChest enabled (1) by default.  Setting to 0 will mean you must right click and disarm chest, clicking the chest will not auto disarm and instead always trigger the trap

Fixes 
2020-03-21 11:32:07 -04:00
Image
7d6de27e1f spawn combine save crashes, reports wrong location id
Fixed spawn combine save, was previously crashing (RemoveSpawn called multiple times) and also giving the wrong spawn location id as well (in the message output to the client)

Fixes 
2020-03-21 07:42:40 -04:00
Image
e86c4bb4aa Added rule R_Spells,NoInterruptBaseChance set to 50
Base chance to resist interrupt was 30%, increased to 50%.  Maybe later on a level restriction to reduce when you are much higher level than your target.

Fixes 
2020-03-21 00:24:36 -04:00
Image
47604d1735 LUA Filename Tracking in errors
Can translate lua_state into applicable filename, used to expose errors in logs.

Fixes 
2020-03-20 23:42:12 -04:00
Image
cbdef22c5f LoginServer Patches
- allow more than one world server
- fixed some of the fields in the WorldList being set properly
- Added a flag in CreateCharacterReply
2020-03-20 23:41:27 -04:00
Image
6676f66184 LoginServer.ini reading updated
- LoginServer and LoginConfig blocks now break out if we enter a new block (previously the ini was read all thru)
- Upon a failure from login server, world server will attempt to reload the ini (you can change account name/password on the fly if it is wrong)
2020-03-19 09:48:30 -04:00
Image
5a38e28d1e Added customizeable LootRadius rule
Syncs to disarm and loot right click options + /loot distance check.

Fixes , side issue  to be fixed in Aries Stage 1.0
2020-03-19 09:05:24 -04:00
Image
49483cfeba LS needs to send char list after character delete to remove 'recoverable' char option
Fixes 
2020-03-19 08:40:21 -04:00
Image
d87a363e4b Login Server now supports auto account creation upon a new acct
This includes creation of a new parameter in the LoginServer.ini, AccountCreation in the LoginConfig block can be 0 to disable, by default it is 1 (or if the field is not defined, its considered true)

Fixes 
2020-03-18 23:48:57 -04:00
Image
6a06b51c5d SHA512 Implementation **Must reset password on worldservers and accounts**
Fixes 

LS database:
- md5 no longer used, now use sha2('password',512) instead for mysql/mariadb
- account table passwd expanded to 256 chars
- login_worldservers password field expanded to 256 chars

manual update:

\u eq2ls
alter table account modify column passwd varchar(256) not null default '';
alter table login_worldservers modify column password varchar(256) not null default '';
2020-03-18 23:15:10 -04:00
Image
870c3f61ac Update WorldDatabase.cpp
Update support for spawn_widgets and spawn_signs.  Also place holder for insert.  Fixes .
2020-03-18 22:43:10 -04:00
Image
3c0b5abeb5 Update Widget.h
Translation from Widget Type ID to Widget Type Name
2020-03-18 22:42:44 -04:00
Image
5339ebd958 DatabaseNew needed retry logic upon loss of mysql server
Fixes 
2020-03-16 20:11:34 -04:00
Image
172065b60a fixed second depth of chest lists
allows all difficulty levels to be tracked individually in the 2nd layer (zone->difficulty or difficulty->zone)
2020-03-16 19:22:06 -04:00
Image
05e065279b More nix fixes... 2020-03-16 15:02:10 -04:00
Image
de0979f2ec Linux fixes for ChestTraps 2020-03-16 14:54:54 -04:00
Image
b61ec973b0 Proper live messages for disarm chest trap
Fixed the self messages for disarm chest trap to be like live
2020-03-16 14:26:17 -04:00
Image
71335bbe99 Update ChestTrap.cpp
Forgot some locking on GetNextChestTrap..
2020-03-16 13:38:55 -04:00
Image
83a441f4e5 Update ChestTrap.cpp 2020-03-16 13:26:17 -04:00
Image
d7a00658d1 Rest of Chest Traps and Disarm Chest Traps implementation
Fixes  - chest traps and the ability to disarm is implemented.  Can restrict by zone (or applicable to all zones using -1), min and max chest difficulties.

1 = Small Chest (no trigger)
2 =  Treasure Chest (trigger)
3 = Ornate Chest (trigger)
5 = Exquisite Chest (trigger)

DB/updates/chest_traps_tableandsamples.txt included - this will allow you to source in the chest_traps and some 'example' traps (not real ones just testing ones).

Disarm command also required for right click option on chest: insert into commands set type=0,command='disarm',subcommand='',handler=510,required_status=0;
2020-03-16 13:23:38 -04:00
Image
4bc36eb7af Reduce worldserver reconnect to loginserver and fix database.ping 90s to 10s
Should help reduce , however must still investigate further into mysql has gone away and reconnecting to DB automatically.
2020-03-16 13:13:47 -04:00
Image
a3c542cbcc Fix to have spell visuals on /castspell 2020-03-16 11:19:43 -04:00
Image
927805733d Invisiblity behavior not restricted by PVP Flag check, only radius setting
Allows PVE/PVP to both support 'invisibility' behavior that makes clients actually invisible from each other at range or all together.
2020-03-13 12:41:38 -04:00
Image
4e940f6b7c PVP Invisibility Support
Fixes 

- Invisibility support for PVP
- Rule R_PVP InvisPlayerDiscoveryRange added.  Default 20.  Setting to 0 means invis players are always seen.  -1 means they are never seen (unless their opponent has see invis for example)
- Crash fix back in ProcessSpawnConditional, spawn_list is getting a null spawn somehow, we can't process it!
2020-03-13 11:42:13 -04:00
Image
7c960a9d74 PVP Basics
PVP Melee attack, spell attack is possible now.  Originally the PVPFlag did not function correctly.  Added a PVP Level Range rule.

Fixes 
2020-03-13 00:20:58 -04:00
Image
c50775412b EQStream SendPacket fix for packet construction length req
Fixes 
2020-03-12 10:37:34 -04:00
Image
dc7710f4be Mutex fix thanks to foof!
forcing writing lock when the first read comes in
2020-03-11 22:24:34 -04:00
Image
4c33e979a0 Additional deadlocks fixed in ProcessMovement
Command_Hail needs to lock MSpawnList when it triggers ProcessMovement.  When we are doing SpawnProcess however, we already have MSpawnList locked, no need to lock again.
2020-03-11 21:27:35 -04:00
Image
30761b52eb Make World Server reconnect to LS despite FatalError
never disable retry attempts to connect to LS from world
2020-03-11 21:21:30 -04:00
Image
93f8bb1b7b Merge branch 'master' of http://cutpon.com:3000/devn00b/EQ2EMu 2020-03-10 23:17:27 -04:00
Image
396c8ff409 First change to allow us to set commands on widgets 2020-03-10 23:17:15 -04:00
Gogs
00ecf4b6c2 Fixes for Linix builds 2020-03-10 18:46:40 -07:00
Image
ed7d7f73ae more sql_updates.sql table filters
removed character_ tables, variables, char_colors, guild_ and bugs
2020-03-10 11:34:10 -04:00
Image
d9c52bbf64 sql_updates.sql updated to put semi colon at end of query
Added semi colon to end of query to make it easy to source in to other DB's
2020-03-10 11:19:17 -04:00
Image
2ea621db1b sub commands /loot list [add/remove/clearall]
Fixes 

/loot list add loottable_id
/loot list remove loottable_id
/loot list clearall

auto reloads loot, purges previous loot and re-assigns loot to selected spawn.

If you have multiple of the same spawn, then /repop the zone and it will repopulate after one is updated.
2020-03-10 09:12:56 -04:00