Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] Fixes to zone idle while empty changes. #4006

Merged
merged 1 commit into from Jan 23, 2024

Conversation

noudess
Copy link
Contributor

@noudess noudess commented Jan 23, 2024

This PR resolves an issue where zones would stay active after an idle timer expired. This was an unintended side effect of PR 3891.

Changes as follows:

  • Removed IsIdle() flag as it was only used to keep messages from spamming. I found problems where this variable was in the wrong state, rather than fixing it, I just removed it and made sure messages didn't spam using available data.
  • The mob_settle_timer was not being disabled after is expired. Since the status of this timer (enabled) is used to decide if we process mobs, it needed to be disabled after it expired. This led to zones stayign active forever - even after the timeout.

One note. Quests that use processmobswhilezoneempty() used to be able to assume that they could turn the zone back off. If anyone else uses this quest function, those quests will need to check/save the idle status of the zone before mucking with it, then restore it. This wasn't needed before PT 3891 because zones were always idle when empty. If people want, I'll do a second PR making the quest override a separate value, so it doesnt mess with the zone one.

@noudess noudess merged commit 7fed8fc into EQEmu:master Jan 23, 2024
1 check passed
Kinglykrab added a commit that referenced this pull request Jan 25, 2024
### Bots

* ^mez command spell list fix ([#3998](#3998)) @dariusuknuis 2024-01-19

### Code

* Cleanup position methods ([#4015](#4015)) @Kinglykrab 2024-01-25

### Commands

* Add `#npcedit set_grid [Grid ID]` to `#npcedit` ([#4004](#4004)) @Kinglykrab 2024-01-22

### Crash Fix

* Fix crash when creating Frogloks/Drakkin ([#4016](#4016)) @Kinglykrab 2024-01-25
* Reverting PR #3877 ([#3997](#3997)) @fryguy503 2024-01-17

### Database

* Drop deprecated item_tick table ([#3977](#3977)) @Akkadius 2024-01-14
* Drop item_tick if exists tweak in manifest ([#3985](#3985)) @Akkadius 2024-01-15
* Increase max spawngroup name from 50 to 200 ([#3991](#3991)) @Akkadius 2024-01-22

### Fixes

* Fix Mercenaries Buffs/Zoning Issues ([#4000](#4000)) @Kinglykrab 2024-01-22
* Fix zone database update manifest ([#3972](#3972)) @Kinglykrab 2024-01-13
* Fixes to zone idle while empty changes. ([#4006](#4006)) @noudess 2024-01-23
* Reversed logic on InLiquid ([#3979](#3979)) @fryguy503 2024-01-14

### Instances

* Convert Instance Quest Methods to Repositories ([#4012](#4012)) @Kinglykrab 2024-01-25

### Logging

* Force Info category to be always on in file/console logs ([#3990](#3990)) @Akkadius 2024-01-22

### Merchants

* Change database structure for merchant slots ([#3974](#3974)) @joligario 2024-01-14

### Messages

* Fix disciple message added by previous patch. ([#3986](#3986)) @noudess 2024-01-15

### Quest API

* QuestReward should now summon item to the inventory instead of the cursor. ([#3996](#3996)) @regneq 2024-01-22

### Repositories

* Add `rank` to reserved words ([#3982](#3982)) @Akkadius 2024-01-15
* Fix datetime zero-value save behavior ([#3976](#3976)) @Akkadius 2024-01-14

### Spawn2

* Spawn condition value should default spawn_conditions value ([#3980](#3980)) @noudess 2024-01-14

### Zoning

* Additional logs for zoning under instance checks ([#3989](#3989)) @Akkadius 2024-01-22
@Kinglykrab Kinglykrab mentioned this pull request Jan 25, 2024
Akkadius pushed a commit that referenced this pull request Jan 25, 2024
### Bots

* ^mez command spell list fix ([#3998](#3998)) @dariusuknuis 2024-01-19

### Code

* Cleanup position methods ([#4015](#4015)) @Kinglykrab 2024-01-25

### Commands

* Add `#npcedit set_grid [Grid ID]` to `#npcedit` ([#4004](#4004)) @Kinglykrab 2024-01-22

### Crash Fix

* Fix crash when creating Frogloks/Drakkin ([#4016](#4016)) @Kinglykrab 2024-01-25
* Reverting PR #3877 ([#3997](#3997)) @fryguy503 2024-01-17

### Database

* Drop deprecated item_tick table ([#3977](#3977)) @Akkadius 2024-01-14
* Drop item_tick if exists tweak in manifest ([#3985](#3985)) @Akkadius 2024-01-15
* Increase max spawngroup name from 50 to 200 ([#3991](#3991)) @Akkadius 2024-01-22

### Fixes

* Fix Mercenaries Buffs/Zoning Issues ([#4000](#4000)) @Kinglykrab 2024-01-22
* Fix zone database update manifest ([#3972](#3972)) @Kinglykrab 2024-01-13
* Fixes to zone idle while empty changes. ([#4006](#4006)) @noudess 2024-01-23
* Reversed logic on InLiquid ([#3979](#3979)) @fryguy503 2024-01-14

### Instances

* Convert Instance Quest Methods to Repositories ([#4012](#4012)) @Kinglykrab 2024-01-25

### Logging

* Force Info category to be always on in file/console logs ([#3990](#3990)) @Akkadius 2024-01-22

### Merchants

* Change database structure for merchant slots ([#3974](#3974)) @joligario 2024-01-14

### Messages

* Fix disciple message added by previous patch. ([#3986](#3986)) @noudess 2024-01-15

### Quest API

* QuestReward should now summon item to the inventory instead of the cursor. ([#3996](#3996)) @regneq 2024-01-22

### Repositories

* Add `rank` to reserved words ([#3982](#3982)) @Akkadius 2024-01-15
* Fix datetime zero-value save behavior ([#3976](#3976)) @Akkadius 2024-01-14

### Spawn2

* Spawn condition value should default spawn_conditions value ([#3980](#3980)) @noudess 2024-01-14

### Zoning

* Additional logs for zoning under instance checks ([#3989](#3989)) @Akkadius 2024-01-22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants