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

Chat Debug #1212

Open
xMirroRx opened this issue Feb 15, 2024 · 4 comments
Open

Chat Debug #1212

xMirroRx opened this issue Feb 15, 2024 · 4 comments

Comments

@xMirroRx
Copy link

xMirroRx commented Feb 15, 2024

// Chat flags for both new (clients >= 7.0.4.1) and old (clients < 7.0.4.1) chat system
// CHATF_AUTOJOIN			001 // Auto join first static channel available (new chat system: join after client login / old chat system: join after open chat window)
// CHATF_CHANNELCREATION		002 // Enable channel creation
// CHATF_CHANNELMODERATION		004 // Enable channel moderation (old chat system only)
// CHATF_CUSTOMNAMES			008 // Enable custom name selection when open chat window for the first time (old chat system only)
// CHATF_GLOBALCHAT			010 // Enable global chat system on clients >= 7.0.62.2 (INCOMPLETE)
ChatFlags=01|02|04|08
02:24:DEBUG:Printing STACK TRACE for debugging purposes.
02:24:DEBUG: _______ thread (id) name _______ |  # | _____________ function _____________ |
02:24:DEBUG:(25ec)           T_Main |  0 |     CNetworkManager::processAllInput |  
02:24:DEBUG:(25ec)           T_Main |  1 |          CNetworkInput::processInput |  
02:24:DEBUG:(25ec)           T_Main |  2 |           CNetworkInput::processData |  
02:24:DEBUG:(25ec)           T_Main |  3 |           CNetworkInput::processData |  
02:24:DEBUG:(25ec)           T_Main |  4 | CNetworkInput::processGameClientData |  
02:24:DEBUG:(25ec)           T_Main |  5 |          PacketChatButton::onReceive |  
02:24:DEBUG:(25ec)           T_Main |  6 |            CClient::Event_ChatButton |  
02:24:DEBUG:(25ec)           T_Main |  7 |           CChatMember::addChatWindow |  
02:24:DEBUG:(25ec)           T_Main |  8 |                   CChat::JoinChannel |  
02:24:DEBUG:(25ec)           T_Main |  9 |             CChatChannel::SendMember |  
02:24:DEBUG:(25ec)           T_Main | 10 |   CChatChanMember::FindIgnoringIndex | <-- last function call (stack unwinding began here)
02:24:DEBUG:(25ec)           T_Main | 11 |     CChatChanMember::GetClientActive |  
02:24:DEBUG:(25ec)           T_Main | 12 |     CChatChanMember::GetClientActive |  
02:24:DEBUG:(25ec)           T_Main | 13 |          CNetworkOutput::QueuePacket |  
02:24:DEBUG:(25ec)           T_Main | 14 | CNetworkOutput::QueuePacketTransacti |  
02:24:DEBUG:(25ec)           T_Main | 15 |                     CClient::addBark |  
02:24:DEBUG:(25ec)           T_Main | 16 | PacketMessageASCII::PacketMessageASC |  
02:24:DEBUG:(25ec)           T_Main | 17 |                     PacketSend::push |  
02:24:DEBUG:(25ec)           T_Main | 18 |          CNetworkOutput::QueuePacket |  
02:24:DEBUG:(25ec)           T_Main | 19 | CNetworkOutput::QueuePacketTransacti |  
02:24:DEBUG:(25ec)           T_Main | 20 |                    CChar::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 21 |                  CClient::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 22 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 23 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 24 | CNetworkOutput::QueuePacketTransacti |  
02:24:DEBUG:(25ec)           T_Main | 25 |         CCacheableScriptFile::_Close |  
02:24:DEBUG:(25ec)           T_Main | 26 |                                alloc |  
02:24:DEBUG:(25ec)           T_Main | 27 |          CScriptObj::ParseScriptText |  
02:24:DEBUG:(25ec)           T_Main | 28 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 29 |               CExpression::GetSingle |  
02:24:DEBUG:(25ec)           T_Main | 30 |                  CExpression::GetVal |  
02:24:DEBUG:(25ec)           T_Main | 31 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 32 |                    CChar::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 33 |                 CObjBase::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 34 |               CScriptObj::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 35 |                    CChar::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 36 |                  CClient::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 37 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 38 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 39 |               CItem::IsResourceMatch |  
02:24:DEBUG:(25ec)           T_Main | 40 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 41 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 42 |         CCacheableScriptFile::_Close |  
02:24:DEBUG:(25ec)           T_Main | 43 |               CExpression::GetSingle |  
02:24:DEBUG:(25ec)           T_Main | 44 |                  CExpression::GetVal |  
02:24:DEBUG:(25ec)           T_Main | 45 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 46 |                      CChar::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 47 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 48 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 49 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 50 |   CResourceHolder::ResourceGetDefRef |  
02:24:DEBUG:(25ec)           T_Main | 51 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 52 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 53 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 54 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 55 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 56 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 57 |   CResourceHolder::ResourceGetDefRef |  
02:24:DEBUG:(25ec)           T_Main | 58 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 59 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 60 |   CResourceHolder::ResourceGetDefRef |  
02:24:DEBUG:(25ec)           T_Main | 61 |                     PacketSend::push |  
02:24:DEBUG:(25ec)           T_Main | 62 |          CNetworkOutput::QueuePacket |  
02:24:DEBUG:(25ec)           T_Main | 63 | CNetworkOutput::QueuePacketTransacti |  
02:24:DEBUG:(25ec)           T_Main | 64 |         CCacheableScriptFile::_Close |  
02:24:DEBUG:(25ec)           T_Main | 65 |          CCacheableScriptFile::_Seek |  
02:24:DEBUG:(25ec)           T_Main | 66 |         CResourceLock::_ReadTextLine |  
02:24:DEBUG:(25ec)           T_Main | 67 |         CResourceLock::_ReadTextLine |  
02:24:DEBUG:(25ec)           T_Main | 68 |                                alloc |  
02:24:DEBUG:(25ec)           T_Main | 69 |               CScriptObj::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 70 |              CItemScript::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 71 |            CItemVendable::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 72 |                    CItem::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 73 |                 CObjBase::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 74 |               CScriptObj::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 75 |              CItemScript::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 76 |            CItemVendable::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 77 |                    CItem::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 78 |                  CItem::r_WriteMore1 |  
02:24:DEBUG:(25ec)           T_Main | 79 |                 CCFaction::CCFaction |  
02:24:DEBUG:(25ec)           T_Main | 80 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 81 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 82 |         CResourceLock::_ReadTextLine |  
02:24:DEBUG:(25ec)           T_Main | 83 |                                alloc |  
02:24:DEBUG:(25ec)           T_Main | 84 |               CScriptObj::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 85 |              CItemScript::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 86 |            CItemVendable::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 87 |                    CItem::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 88 |                 CObjBase::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 89 |               CScriptObj::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 90 |              CItemScript::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 91 |            CItemVendable::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 92 |                    CItem::r_WriteVal |  
02:24:DEBUG:(25ec)           T_Main | 93 |                  CItem::r_WriteMore1 |  
02:24:DEBUG:(25ec)           T_Main | 94 |                 CCFaction::CCFaction |  
02:24:DEBUG:(25ec)           T_Main | 95 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 96 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 97 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 98 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 99 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 100 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 101 |                  CExpression::GetVal |  
02:24:DEBUG:(25ec)           T_Main | 102 |              CExpression::GetValMath |  
02:24:DEBUG:(25ec)           T_Main | 103 |                      CChar::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 104 |                   CObjBase::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 105 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 106 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 107 |   CResourceHolder::ResourceGetDefRef |  
02:24:DEBUG:(25ec)           T_Main | 108 |                 CScriptObj::r_GetRef |  
02:24:DEBUG:(25ec)           T_Main | 109 |        CResourceDef::GetResourceName |  
02:24:DEBUG:(25ec)           T_Main | 110 |   CResourceHolder::ResourceGetDefRef |  
02:24:DEBUG:(25ec)           T_Main | 111 |        CResourceDef::GetResourceName |  
02:24:DEBUG:(25ec)           T_Main | 112 |   CResourceHolder::ResourceGetDefRef |  
02:24:CRITICAL:"Access Violation" (0x1c06d0), in ExcType=CSError catched in SUB: CNetworkInput::ProcessMessage() ("Message")
02:24:DEBUG:2c:Parsing Packet len=175 id=0xbf [2024/02/16 02:24:28]
        0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
       -- -- -- -- -- -- -- --  -- -- -- -- -- -- -- --
0000   bf 00 0d 00 05 00 00 00  00 00 00 00 00 bf 00 09   ................
0010   00 0b 54 52 4b 00 bd 00  0c 37 2e 30 2e 31 35 2e   ..TRK....7.0.15.
0020   31 00 09 00 00 00 01 34  ed ed ed ed 05 00 00 00   1......4........
0030   01 09 00 00 07 62 34 ed  ed ed ed 04 00 00 07 62   .....b4........b
0040   09 00 00 0c 9b 34 ed ed  ed ed 04 00 00 0c 9b 34   .....4.........4
0050   ed ed ed ed 04 00 00 00  01 b5 00 00 00 00 00 00   ................
0060   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
0070   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
0080   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
0090   00 00 00 00 00 00 00 00  00 34 ed ed ed ed 05 00   .........4......
00a0   00 00 01 bf 00 0a 00 0f  0a ff ff ff ff c8 18      ...............
02:24:WARNING:2c:Unknown game packet (0x20) received.
@xwerswoodx
Copy link
Contributor

Is it still continue? I can take a look if it's still an issue.

@Jhobean
Copy link
Contributor

Jhobean commented Mar 24, 2024

Is it still continue? I can take a look if it's still an issue.

If I remember well, On discord, someone said it happen when someone already have same same on the chat

@xMirroRx
Copy link
Author

Yes, it still continues.

@xwerswoodx
Copy link
Contributor

I checked it last night, created couple of accounts with a same chat name, but had no debug. Saw some issues but honestly it was just a port from 56d, so I will take a look for it more deeply later on.

xwerswoodx added a commit to xwerswoodx/Source-X that referenced this issue Apr 2, 2024
@xwerswoodx xwerswoodx self-assigned this Apr 2, 2024
@xwerswoodx xwerswoodx added this to the X1 milestone Apr 9, 2024
cbnolok pushed a commit that referenced this issue Apr 28, 2024
* Fix crafting (#1190)

* Added .editorconfig (#1188)

* Fix Issue #1191 CANMASK not being saved on server reboot (#1192)

* Fix target cancelling upon death (#1186)

* Feature/meditation fail movement (#1184)

* Fix herding dupe char (#1185)

* Editable DispID for chars  (#1178)

* Fix issue #1097 (CAN_O_NOSLEEP not working after server reboot) (#1198)

* Fixed: The issue that causes more1/2 not saved correctly for spellbook. (Issue: #1221)

* Fixed: Players automatically become criminal to everyone when attack someone. (Issue: #1213)

* Fixed: CallGuard not working correctly on the players that only criminal for target. (Issue: #1213)

* Fixed: The wrong input of Kill trigger, to make it compatible with older sphere versions. (Issue: #1210)

* Added: New Layer LAYER_STORAGE (80) to let scripters create their own storage system on chars. (Issue: #1209)
- Only t_container and t_container_locked can be equipped to this layer.

* Changed: Decay time removed from spawned items. (Issue: #1218)

* Added: New spellflag SPELLFLAG_FIELD_RANDOMDECAY to randomize field tile decay time, like old sphere versions. (Issue: #1169)

* Changed: SERV.LOG command changed to support console colors. (Issue: #1158)

* Added: Sphere.ini setting CanPetsDrinkPotion (true in default) to make pets drink potion when their owner drop it on it. (Issue: #1147)

* Fixed: Missing fCheckOnly checks block the taming skill. (Issue: #1219)

* Added: New trigger @drink added for characters. (Issue: #1162)

* Added: New trigger @AFKmode added for characters. (Issue: #1161)

* Added: New trigger @reveal added for characters. (Issue: #1157)

* Added: New triggers @ArrowQuest_Add and @ArrowQuest_Close added for characters. (Issue: #1116)

* Added: New function triggers f_onaccount_block and f_onaccount_unblock. (Issue: #1156)

* Added: New function trigger f_onserver_broadcast. (Issue: #1145)

* Added: Two new LOCAL variables ItemPoisonReductionChance and ItemPoisonReductionAmount to @hit trigger. (Issue: #1159)

* added: MAGICF_REACTIVEARMORTH (010000) MAGICF flag to Sphere.ini to let people decide if reactive armor should reflect two handed weapons.

* Fixed: Possible fix for accesses and bans not loading for multis. (Issue: #1223)

* Fixed: Possible fix for wrong damage calculation of slayer bonus damage. (Issue: #1179)

* Added: REGION_FLAG_HOUSE (0x0100) flag for houses. (Issue: #1154)

* @Murdermark Update
Added: ARGO object for @Murdermark trigger to get killed character.

* @RegionResource Fix
Fixed: ARGN1 (reap amount) doesn't updated depends on the amount left on bit. (Issue: #1224)
Added: ARGO to get bit uid under @ResourceGather and @RegionResourceGather triggers.

* Multi Invalid Region Fix
Fixed: Possible fix for the OnRegionTrigger getting called on invalid region while multi creating/removing.

* CAN Flags DWORD to UINT64
Changed: dword CAN flags changed with uint64 to increase limits.

* Fixed: Possible fix for chat debugs. (Issue: #1212) (Issue: https://discord.com/channels/354358315373035542/483721253773901824/1224030729906815077)

* Added Missing Data to sphere.ini

* t_crop update
Added: "MOREX" key to set amount of fruit given when the crop ripped.
Changed: Now @create trigger called when crop grow to let people to change MORE values in stages if needed.
Added: @ResourceTest trigger added for crops. (This trigger works seperately for every stage)
Added: @ResourceGather trigger added for crops. (This trigger works seperately for every stage)

* Fixed: Possible fix for invalid ResourceID warnings. (Issue: #1071)

* Fixed: Missing REGION reference for multis. (Issue: #1228)

* Elemental Engine Flags
Added: ElementalEngineFlags variable added to sphere.ini to let servers to filter elemental engine. (Issue: #1230)

* Custom Multi Count
Fixed: An issue that causes T_MULTI_CUSTOM keep multi count saved. (Issue: #1232)

* Fixed: Bonded pets cannot see their master while DeadCannotSeeLiving equals to 2. (Issue: #1225)

* Standard Guild Align Fix
Fixed: The issue that causes Guilds without align shown enemy to the players with a guild with align. (Issue: #1208)

* GMs Dress Players
Fixed: GMs cannot dress up players. (Issue: #901)

* GM unequip fix
Fixed: Wrong check block GMs to unequip item from players.

* Custom Hosing Fix
Fixed: An issue that causes a visual bug to remove all tiles while removing a tile in higher floors. (Issue: #345)

* Merged Jhobean's Pr
Merged Jhobean's EMOTEF_EAT PR and split EAT flag for npcs and players. (PR: #1207)

* @hit and @GetHit as Item Triggers
Added: Trigger @hit is added as an item trigger.
Added: Trigger @GetHit is added as an item trigger.

* Visual Range Update
Added: MAPVIEWRADAR, MAPVIEWSIZE and MAPVIEWSIZEMAX to sphere.ini that overrides default visual range values. (Issue: #1144)

* H keyword for Hexadecimal returns
Added: 'H' shortcut for variables to get the value as hexadecimal.

* raydienull's LAYER_STABLE PR merge
- Merged: raydienull's LAYER_STABLE build merged, but LAYER_AUCTION keep same as LAYER_STABLE added as a new layer. (PR: #1201)
- Fixed: raydienull's LAYER_STABLE follower triggers doesn't called while taking pet out of stable.
- Fixed: raydienull's LAYER_STABLE doesn't work with the new follower system.
- Removed: Unnecessary LINK == PLAYER checks as figurines will be stocked on the owned player.

* c_man_gm
- Fixed: Setting GMs dispid to c_man_gm in-game, prevents GMs to use in-game commands.

* NPC Hear Distance
- Changed: Default NPC hear range reverted back to the 14 from 4, as it was 14 in older versions, as there was no reason for changing it. (Issue: #1215)

* CCChampion Rework
- Fixed: Candles keep stuck while killing npcs. (Issue: #564)
- Fixed: LEVELMAX doesn't affect the max level of champion system, and keep spawn npcs for default max level.
- Changed: Spawn system changed and now it automatically calculate the percentage of spawns per level in descending order.
- Changed: Candle calculation is now depend on max level, instead of static 4 level.
- Added: SRC added in @start trigger. SRC is a reference of player that starts champion spawner.
- Added: @complete trigger that triggers when champion completed. (Issue: #477)
- Added: @DelRedCandle trigger that triggers while red candle removing.
- Added: @DelWhiteCandle trigger that triggers while white candle removing.
- Added: @Level trigger that triggers when champion level up.
- Added: @Stop trigger that triggers when champion stopped.

* T_MULTI_ADDON Fix
- Fixed: Script multis move 1 block north when their type set as t_multi_addon. (Issue: #1238)

* ADDCOMPONENT
- Fixed: ADDCOMPONENT command was added as ADDCOMP for houses.

* Reactivated Hardcoded Fishing Skill
- Changed: Re-activated 56b style hardcoded fishing system, as I don't know why it's deactivated as softcoded system too bad and broken.
	- Fishing skill in default script pack should updated.
	- Delay should set to 2.5-3.0
	- All softcoded system should removed.
	- If anyone want to code their own fishing system, they can use SKF_SCRIPTED.

* EF_DAMAGETOOLS Update
- Added: EF_DAMAGETOOLS flag implemented to the sphere.
	- Added LOCAL.ITEMDAMAGECHANCE to the @success trigger for skills to decide damage chance for tools. (Default: 25)
	- Added LOCAL.ITEMDAMAGEAMOUNT to the @success trigger for skills to decide damage amount. (Default: 1)
	- EF_DAMAGETOOLS only affects the skills with SKF_GATHER flag.

* m_ridFruitOverride CAN_I_SCRIPTEDMORE update

* SPELLFLAG_NOUNPARALYZE
- Fixed: SPELLFLAG_NOUNPARALYZE flag wasn't working as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants