Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Nov 08, 2024 11:46 pm
All times are UTC + 0
Engine question: Intercept messages
Moderators: Global Moderators, Vinifera Moderators, CCHyper
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
GREEN
Cyborg Soldier


Joined: 26 Dec 2016

PostPosted: Tue Oct 11, 2022 8:36 am    Post subject:  Engine question: Intercept messages Reply with quote  Mark this post and the followings unread

How to Intercept Text Messages usually shown top left ?

Related to MessageListClass ?

Will it be something like TSPaintTextMessage() and it needs be detoured?


Looking for clues at:
tspp_audio_intercept.cpp
tspp_definitions.cpp

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Oct 12, 2022 12:25 am    Post subject: Re: TS++ Project: Questions Reply with quote  Mark this post and the followings unread

GREEN wrote:
How to Intercept Text Messages usually shown top left ?

Related to MessageListClass ?

Will it be something like TSPaintTextMessage() and it needs be detoured?

Looking for clues at:
tspp_audio_intercept.cpp
tspp_definitions.cpp


Hi there!

I'm not quite sure I understand your question, are you interested in how to display a custom message to the top left of the screen? (which you correctly identified uses MessageListClass).

Back to top
View user's profile Send private message
GREEN
Cyborg Soldier


Joined: 26 Dec 2016

PostPosted: Wed Oct 12, 2022 12:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

i want to intercept texts including mission and multiplayer chat.
and then draw them later somewhere else.

i have not found yet where to hook tho.

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Oct 12, 2022 11:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

GREEN wrote:
i want to intercept texts including mission and multiplayer chat.
and then draw them later somewhere else.

i have not found yet where to hook tho.


MessageListClass::Draw will pickup and render pending messages to the screen. If you wish to have them draw elsewhere, you would need to either modify the MessageX and MessageY values of the class, or completely reimplement that function to perform the desired drawing style.

Back to top
View user's profile Send private message
GREEN
Cyborg Soldier


Joined: 26 Dec 2016

PostPosted: Tue Nov 08, 2022 1:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

Code:
                    // 0064D17E 8B 56 30             mov         edx,dword ptr [esi+30h]  
                    // ugh. can we deny the string?
                    // 0024D17E
                    // 0064D17E 8B 56 04             mov         edx,dword ptr [esi+04h]  

0x0064D187 call Simple_Text_Print $ADDRESS ESI {(char**)(esi + 0x30)}

0x0064D187 call Simple_Text_Print 0x0064D187 ESI 0x281606b0 {0x007e2db8 "OBEY. CONSUME. CONFORM."}

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2126s ][ Queries: 11 (0.0090s) ][ Debug on ]