Announcement

Collapse
No announcement yet.

Question:Modifying the "Quit" messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question:Modifying the "Quit" messages

    Im glad to have decided to come back to the QuakeOne forums after a few years of not having real interest. I got back into modding quake recently and im ready to help this great community, but i also need help with a few things myself.

    To make things a little more clear im not a complete . Ive been around the block with a few ports, ive tried Proquake, Joequake, Qrack and some others. And of course loving customization to the N'th degree my choice port is DarkPlaces.

    I currently want to modify the text content of the quit messages. And im aware that the basis is in the Menu.c file for the DP source code. But i could not for the life of me compile it.

    Ive seen some complex coding changes happen in progs.dat and some powerful scripts in the scripts folder, mostly .shader files. But i feel totally stumped just trying to change this small bit of text.
    Any help is greatly appreciated.
    Ill do my best to answer other questions (ones mostly about texturing and compiling, editing models) but the hardcode of any game has always presented troubles for me.
    We primarily speak english here...
    Is english a second language for you? If you are having trouble getting your point across please confront me on the forum or send me a PM. German is a second language for me and i will be able to provide the most help to those from deutschland.

  • #2
    You are looking for M_QuitMessage. I'm confused about why you are having trouble compiling? What exactly did you change?


    This is the code:

    Code:
    //=============================================================================
    /* QUIT MENU */
    
    static const char *m_quit_message[9];
    static int		m_quit_prevstate;
    static qboolean	wasInMenus;
    
    
    static int M_QuitMessage(const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6, const char *line7, const char *line8)
    {
    	m_quit_message[0] = line1;
    	m_quit_message[1] = line2;
    	m_quit_message[2] = line3;
    	m_quit_message[3] = line4;
    	m_quit_message[4] = line5;
    	m_quit_message[5] = line6;
    	m_quit_message[6] = line7;
    	m_quit_message[7] = line8;
    	m_quit_message[8] = NULL;
    	return 1;
    }
    
    static int M_ChooseQuitMessage(int request)
    {
    	if (m_missingdata)
    	{
    		// frag related quit messages are pointless for a fallback menu, so use something generic
    		if (request-- == 0) return M_QuitMessage("Are you sure you want to quit?","Press Y to quit, N to stay",NULL,NULL,NULL,NULL,NULL,NULL);
    		return 0;
    	}
    	switch (gamemode)
    	{
    	case GAME_NORMAL:
    	case GAME_HIPNOTIC:
    	case GAME_ROGUE:
    	case GAME_QUOTH:
    	case GAME_NEHAHRA:
    	case GAME_DEFEATINDETAIL2:
    		if (request-- == 0) return M_QuitMessage("Are you gonna quit","this game just like","everything else?",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Milord, methinks that","thou art a lowly","quitter. Is this true?",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Do I need to bust your","face open for trying","to quit?",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Man, I oughta smack you","for trying to quit!","Press Y to get","smacked out.",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Press Y to quit like a","big loser in life.","Press N to stay proud","and successful!",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("If you press Y to","quit, I will summon","Satan all over your","hard drive!",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Um, Asmodeus dislikes","his children trying to","quit. Press Y to return","to your Tinkertoys.",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("If you quit now, I'll","throw a blanket-party","for you next time!",NULL,NULL,NULL,NULL,NULL);
    		break;
    	case GAME_GOODVSBAD2:
    		if (request-- == 0) return M_QuitMessage("Press Yes To Quit","...","Yes",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Do you really want to","Quit?","Play Good vs bad 3!",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("All your quit are","belong to long duck","dong",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Press Y to quit","","But are you too legit?",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("This game was made by","[email protected]","It is by far the best","game ever made.",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Even I really dont","know of a game better","Press Y to quit","like rougue chedder",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("After you stop playing","tell the guys who made","counterstrike to just","kill themselves now",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Press Y to exit to DOS","","SSH login as user Y","to exit to Linux",NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Press Y like you","were waanderers","from Ys'",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("This game was made in","Nippon like the SS","announcer's saying ipon",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("you","want to quit?",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Please stop playing","this stupid game",NULL,NULL,NULL,NULL,NULL,NULL);
    		break;
    	case GAME_BATTLEMECH:
    		if (request-- == 0) return M_QuitMessage("? WHY ?","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Leave now and your mech is scrap!","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Accept Defeat?","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Wait! There are more mechs to destroy!","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Where's your bloodlust?","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Your mech here is way more impressive","than your car out there...","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Quitting won't reduce your debt","Press Y to quit, N to keep fraggin'",NULL,NULL,NULL,NULL,NULL,NULL);
    		break;
    	case GAME_OPENQUARTZ:
    		if (request-- == 0) return M_QuitMessage("There is nothing like free beer!","Press Y to quit, N to stay",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("GNU is not Unix!","Press Y to quit, N to stay",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("You prefer free beer over free speech?","Press Y to quit, N to stay",NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Is OpenQuartz Propaganda?","Press Y to quit, N to stay",NULL,NULL,NULL,NULL,NULL,NULL);
    		break;
    	default:
    		if (request-- == 0) return M_QuitMessage("Tired of fragging already?",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Quit now and forfeit your bodycount?",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Are you sure you want to quit?",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    		if (request-- == 0) return M_QuitMessage("Off to do something constructive?",NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    		break;
    	}
    	return 0;
    }
    All you have to do is change the messages themselves. What exactly are you trying to change? If all you are doing is changing the messages I see no reason you would have a compile problem. What are you using to compile? You'll notice each message has 8 lines available which is defined at the top of the function. So if you are trying to increase this you'll need to add additional lines at the top. Yeah line is noted with a "," in the QuitMesssge. When it doesn't use all the lines it fills it with a null. But it can have only a total of 8 as it stands now. So if you put less than 8 you'll need to null the other lines. If you want more you will need to add to the top. Make sense? Give us some more info.
    Last edited by PrimalLove; 08-17-2014, 04:30 AM.

    Comment


    • #3
      Thanks for trying to help. I did find the exact lines of code and i know about the limitations of the little box that require 5 lines.
      Changing the text is not the problem, compiling is.

      Im currently using MS visual c++ 2010 as its what was recommended at the time i used CryEngineSDK. Im already aware of the repetition of "," you have to use in order to move the next line down as well.
      My main problem is that the latest dpsource seems incompatible with C++ 2010.
      And it attempts to convert it when loading the solution file.
      do i have to set up my directories is visual c++ again? or should i just find a different compiler?
      Again, thanks for trying to help.
      We primarily speak english here...
      Is english a second language for you? If you are having trouble getting your point across please confront me on the forum or send me a PM. German is a second language for me and i will be able to provide the most help to those from deutschland.

      Comment


      • #4
        MINGW is really awesome to compile darkplaces
        the invasion has begun! hide your children, grab the guns, and pack sandwiches.

        syluxman2803

        Comment


        • #5
          Originally posted by nahuel View Post
          MINGW is really awesome to compile darkplaces
          Damn, knew i was going to have to reinstall that thing sometime. Well thanks. Now i just have to spend a few hours finding the win build of Mingw.
          We primarily speak english here...
          Is english a second language for you? If you are having trouble getting your point across please confront me on the forum or send me a PM. German is a second language for me and i will be able to provide the most help to those from deutschland.

          Comment


          • #6
            Originally posted by M_Luminoth View Post
            Damn, knew i was going to have to reinstall that thing sometime. Well thanks. Now i just have to spend a few hours finding the win build of Mingw.
            hahaha robust compiler for a robust engine
            the invasion has begun! hide your children, grab the guns, and pack sandwiches.

            syluxman2803

            Comment


            • #7
              Sourceforge, the hero for many : MinGW-w64 - for 32 and 64 bit Windows | Free Development software downloads at SourceForge.net
              Want to get into playing Quake again? Click here for the Multiplayer-Startup kit! laissez bon temps rouler!

              Comment


              • #8
                Originally posted by Mindf!3ldzX View Post
                Mindf!3ldzX JUSTICE HAS BEEN DONE TODAY.
                We primarily speak english here...
                Is english a second language for you? If you are having trouble getting your point across please confront me on the forum or send me a PM. German is a second language for me and i will be able to provide the most help to those from deutschland.

                Comment

                Working...
                X