Commit Graph

1846 Commits

Author SHA1 Message Date
KingRainbow44
4ced11d567
fix(auth): Skip further decryption if encrypted password fails to decrypt
this should only occur if the wrong RSA key is used on the client, otherwise the patch probably forgot to set `is_crypto` to false
2024-07-06 22:33:46 -04:00
KingRainbow44
446e994ff0
fix(handbook): Skip reading handbook from resources if it is disabled 2024-07-06 22:25:18 -04:00
KingRainbow44
655016c92e
fix(Grasscutter.java): Exclude compiled protos package from being scanned by reflections 2024-07-06 22:24:56 -04:00
KingRainbow44
d0e3720748
feat(networking): Abstract game session networking
includes:
- abstracted form of session handling
- existing implementation using new abstracted system
- general clean-up of GameSession.java
2024-07-06 22:14:26 -04:00
KittenPixel
4022267888
Configuration Update - Shown Email (#2509)
* This version will allow the private server owner to show a different email then "@grasscutter.io" if they want.

* Update src/main/java/emu/grasscutter/config/ConfigContainer.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update src/main/java/emu/grasscutter/game/Account.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update src/main/java/emu/grasscutter/game/Account.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2024-05-13 21:58:46 -04:00
OmegaPobretón
6e1913aacb
Add documentation on 404 error page. (#2463)
* Update HttpServer.java

* Update HttpServer.java

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2024-01-18 23:30:03 -05:00
github-actions
770a793c69 Format code [skip actions] 2023-12-14 05:36:30 +00:00
longfruit
c4402cc287
Fix some more dungeons (#2449)
* Monds weapon mats domain: Fix time between kill not refreshing
* Inaz husk domain: Fix broken domain challenge
    * `EVENT_ANY_MONSTER_LIVE` is likely sent on tick, not on create. See scene40801_group240801001.lua:
        1. `condition_EVENT_ANY_MONSTER_LIVE_1023` checks for mob 1008 to spawn AND for variable `challenge` to be 1
        2. Mob 1008 spawns during `action_EVENT_SELECT_OPTION_1003`, at `ScriptLib.AddExtraGroupSuite(context, 240801001, 2)`
        3. This spawn triggers `EVENT_ANY_MONSTER_LIVE` for mob 1008 but still fails the condition because `challenge` is still 0.
        4. `challenge` is set to 1 at the end of `action_EVENT_SELECT_OPTION_1003`. By now, `EVENT_ANY_MONSTER_LIVE` for mob 1008 no longer fires, causing the domain challenge to fail to start.
2023-12-14 00:34:50 -05:00
github-actions
cdb0dc560a Format code [skip actions] 2023-11-17 04:58:02 +00:00
longfruit
d8c3da8fcd
Handle mob summon and limbo state (#2432)
Mob summon: Something like Monster_Apparatus_Perpetual can summon helper mobs. Ensure these helpers actually get summoned and, on their defeat, possibly change the summoner's mob state. Like, temporarily enter weak state.
* Take summon tags from BinOutput/Monster/ConfigMonster_*.json and put them in SceneMonsterInfo
* Handle Summon action in ability modifiers from BinOutput/Ability/Temp/MonsterAbilities/ConfigAbility_Monster_*.json
* On summoner's kill, also kill the summoned mobs

Limbo state: Something like Monster_Invoker_Herald_Water should be invulnerable at a certain HP threshold. Like, shouldn't die when creating their elemental shield. Or, Monster_Apparatus_Perpetual's helper mobs shouldn't die before their summoner.
* Look through ConfigAbility (AbilityData in GC) like Invoker_Herald_Water_StateControl. If any AbilityModifier within specifies state Limbo and properties.Actor_HpThresholdRatio, account for this threshold in GameEntity::damage.
* Don't let the entity die while in limbo. They will be killed by other events.
2023-11-16 23:56:37 -05:00
github-actions
13c40b53a7 Format code [skip actions] 2023-11-10 02:57:50 +00:00
hamusuke
f1c1a84683
fix: NPE related to teapot when player logs in. (#2429)
* fix: NPE related to home when player logs in.

* fix: NPE related to home when player logs in.

* forgot to save player after fixing module id
2023-11-09 21:56:21 -05:00
github-actions
2bcbd41026 Format code [skip actions] 2023-11-09 02:16:38 +00:00
longfruit
0bbeaf254b
Fix tower mob level and hp scaling (#2430) 2023-11-08 21:15:10 -05:00
github-actions
1fac319eb2 Format code [skip actions] 2023-11-05 19:58:28 +00:00
longfruit
d224178a64
Only deduct energy when elemental burst actually fires (#2424) 2023-11-05 14:57:17 -05:00
github-actions
d461ee2eb3 Format code [skip actions] 2023-11-03 02:02:24 +00:00
longfruit
24874e7fba
Implement abyss defense objective (#2422) 2023-11-02 22:00:05 -04:00
github-actions
583a41ab2c Format code [skip actions] 2023-11-01 01:54:08 +00:00
longfruit
cf6fb275be
Add events to support scene group substitution (#2413)
* Add events to support scene group substitution

* make event members private with getter/setter

* delete stray unused var
2023-10-31 21:52:01 -04:00
github-actions
9b4ce34f4a Format code [skip actions] 2023-10-26 02:29:17 +00:00
longfruit
f86259a430
Fix some revives; improve dungeon exit flow (#2409) 2023-10-25 22:27:48 -04:00
github-actions
837e30e04b Format code [skip actions] 2023-10-19 13:19:46 +00:00
longfruit
f5703e5964
Fix mirror tower stages; fix tower time challenge and star scoring (#2406) 2023-10-19 09:18:12 -04:00
github-actions
bc8e7c21ce Format code [skip actions] 2023-10-17 05:42:17 +00:00
jie65535
b7a9d28f02
Fix reset tag without notification (#2405) 2023-10-17 01:41:24 -04:00
longfruit
770cd62370
Fix daily dungeon flow (#2398)
* Fix dungeon entry, daily changes, replay flow; fix Mond's weapon mats domain unlock

* add note to DungeonEntryToBeExploreNotify
2023-10-17 01:41:04 -04:00
github-actions
6745d1126e Format code [skip actions] 2023-10-14 16:11:33 +00:00
github-actions
0803618bf5 Format code [skip actions] 2023-10-14 16:10:31 +00:00
jie65535
cfc8a4866f
Add reset scene tag subcommand (#2403)
* Add reset scene tag subcommand

* Fix Control Flow
2023-10-14 12:10:16 -04:00
longfruit
fd75ba7b9b
Fix triggered Monster Tide spawn; fix Tower dungeon handoff (#2397)
* Abyss: Fix monster tide trigger; fix dungeon handoff

* back out unrelated changes
2023-10-14 12:08:49 -04:00
Nazrin
d32a75e980
Fix setPrevScene bug (#2396) 2023-10-07 00:40:36 -04:00
Nazrin
9a198bd231
Alphabetize and Format ScriptLib.java (#2395)
I deeply apologize to anyone who is trying to find the history of the code from before today.
2023-10-07 00:40:15 -04:00
github-actions
453dc9717d Format code [skip actions] 2023-10-02 14:58:22 +00:00
Nazrin
582d7af9c4
Send QUEST_COND_STATE_NOT_EQUAL and QUEST_COND_STATE_EQUAL on login (#2394) 2023-10-02 10:56:09 -04:00
Nazrin
cab3bfb5a7
Fix bug in quest cond state not equal (#2393)
* Fix bug in ConditionStateNotEqual.java

* Do the same fix for ConditionStateEqual.java
2023-10-02 03:25:35 -04:00
github-actions
cf574e99cb Format code [skip actions] 2023-10-01 05:41:41 +00:00
KingRainbow44
6e309b6fee
Merge remote-tracking branch 'origin/development' into development 2023-09-30 23:15:50 -04:00
KingRainbow44
a3fd10c3be
Fix NullPointerException when refilling an avatar with no skill depot 2023-09-30 18:09:40 -04:00
Nazrin
b6e7d69949
Send QUEST_COND_NONE on every login (#2386)
For players that enabled questing late
2023-09-25 19:30:33 -04:00
github-actions
5faf39d359 Format code [skip actions] 2023-09-23 17:45:57 +00:00
Nazrin
0dd95450b1
Bare-bones Hangouts implementation (#2384) 2023-09-23 13:44:31 -04:00
hamusuke
5ee4812ac5
fix: login too slow (#2380) 2023-09-20 21:23:08 -04:00
github-actions
ec2bfffdd1 Format code [skip actions] 2023-09-18 01:03:10 +00:00
github-actions
7f5059cb8f Format code [skip actions] 2023-09-18 01:03:02 +00:00
jie65535
43db7eba8f
tp to move directly in the same scene (#2375) 2023-09-17 21:01:21 -04:00
jie65535
ff6a51db30
Update position parameters to support rotation-based offsets (#2374) 2023-09-17 21:00:58 -04:00
github-actions
047feaf4aa Format code [skip actions] 2023-09-17 02:57:50 +00:00
github-actions
88315ec712 Format code [skip actions] 2023-09-17 02:57:38 +00:00
jie65535
fdad4218e7
Fix freeze on startup (#2368)
* DON'T load resources in static init!!!

* Update src/main/java/emu/grasscutter/Grasscutter.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

* Update src/main/java/emu/grasscutter/tools/Tools.java

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>

---------

Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
2023-09-16 22:55:46 -04:00