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

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Fri Oct 22, 2021 10:03 pm
All times are UTC + 0
 Forum index » Modding Central » C&C: Remastered Collection Editing Forums
Mission objective text ingame
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
yuri624
Guest




PostPosted: Mon Aug 23, 2021 10:22 pm    Post subject:  Mission objective text ingame Reply with quote  Mark this post and the followings unread

I am looking for a way to let text appear during a mission like here (from GDI Mission 9):



I went through the code and couldn't find anything related.
I did find the sound that is played when that message appears. It's "TDR_SFC_BLEEP2.WAV" in the "SFX3D.MEG".
It is found twice in "AUDIO.CPP" but not referenced anywhere to be played.

Any input would be nice ^^

Back to top
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Thu Sep 02, 2021 11:12 am    Post subject: Reply with quote  Mark this post and the followings unread

The original game never had this mission hints functionality (at least not on PC), so it probably purely exists on the GlyphX side. So I suggest looking through the xml / csv files to see if you can find those strings.
_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
yuri624
Civilian


Joined: 24 Aug 2021

PostPosted: Fri Sep 03, 2021 1:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nyerguds wrote:
The original game never had this mission hints functionality (at least not on PC), so it probably purely exists on the GlyphX side. So I suggest looking through the xml / csv files to see if you can find those strings.


Yea I figured it wasn't in the original PC version as I can't remember those messages from back in the day.
Going through the xml /csv didn't help at all, can't find those strings there.
While searching for something else (new thread) I randomly stumbled across exactly what I was looking for:

Code:
extern void On_Message(const char* message, float timeout_seconds, long long message_id);


First the function needs to be declared in whatever file you are going to use it.

Code:
int text_id = TXT_NONE;
char const * text = "1. Find a way to sabotage GDI's power.\n2. Gain access to the old Soviet helipads.\n3. Overwhelm GDI and re-capture our radar station.";
if (text != NULL) { On_Message(text, 35.0f, text_id); }


Above code will output exactly what's shown in the screenshot.
The border will be green regardless of playing GDI or NOD. Best results are with text_id = TXT_NONE. As seen, \n produces a new line for multi-line messages. This message will stay 35 seconds.


text.jpg
 Description:
 Filesize:  288.69 KB
 Viewed:  89 Time(s)

text.jpg



Back to top
View user's profile Send private message
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Mon Oct 18, 2021 11:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh, that's a nice discovery! Could be used to expand mission scripting Smile
_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » C&C: Remastered Collection Editing Forums
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can 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.1848s ][ Queries: 14 (0.0111s) ][ Debug on ]