Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    restore shareware notice

    Dark_wizzie
    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!


    Female
    Number of posts : 5120
    Age : 30
    Location : California, USA
    Job : Investor
    Hobbie : Computers, chess, computer chess, fashion, and philosophy
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    restore shareware notice Empty restore shareware notice

    Post by Dark_wizzie Sun Apr 29, 2007 1:50 pm

    dome




    Code Editing Tutorials
    Restoring the Shareware Notice




    So, you'd like to have the Non-Shareware Notice back? Well, that's

    possible. Not even difficult.



    Step 1. Go to your source code directory and open the file WL_INTER.C .

    Step 2. Go to line 1267. You should now see this:



    #ifndef UPLOAD

    #ifndef SPEAR

    #ifndef JAPAN

    ////////////////////////////////////////////////////////

    //

    // NON-SHAREWARE NOTICE

    //

    ////////////////////////////////////////////////////////

    void NonShareware(void)

    {

    VW_FadeOut();



    ClearMScreen();

    DrawStripes(10);



    CA_CacheGrChunk(STARTFONT+1);

    fontnumber = 1;



    SETFONTCOLOR(READHCOLOR,BKGDCOLOR);

    PrintX=110;

    PrintY=15;



    #ifdef SPANISH %%%

    US_Print("Atencion"); %%%

    #else %%%

    US_Print("Attention");

    #endif %%%



    SETFONTCOLOR(HIGHLIGHT,BKGDCOLOR);

    WindowX=PrintX=40;

    PrintY=60;

    #ifdef SPANISH %%%

    US_Print("Este juego NO es gratis y\n"); %%%

    US_Print("NO es Shareware; favor de\n"); %%%

    US_Print("no distribuirlo.\n\n"); %%%

    #else %%%

    US_Print("This game is NOT shareware.\n");

    US_Print("Please do not distribute it.\n");

    US_Print("Thanks.\n\n");

    #endif %%%

    US_Print(" Id Software\n");



    VW_UpdateScreen ();

    VW_FadeIn();

    IN_Ack();

    }

    #endif

    #endif

    #endif




    Step 3. Remove the lines with %%% behind them.

    Step 4. Now your code looks like this:



    #ifndef UPLOAD

    #ifndef SPEAR

    #ifndef JAPAN

    ////////////////////////////////////////////////////////

    //

    // NON-SHAREWARE NOTICE

    //

    ////////////////////////////////////////////////////////

    void NonShareware(void)

    {

    VW_FadeOut();



    ClearMScreen();

    DrawStripes(10);



    CA_CacheGrChunk(STARTFONT+1);

    fontnumber = 1;



    SETFONTCOLOR(READHCOLOR,BKGDCOLOR);

    PrintX=110;

    PrintY=15;



    US_Print("Attention");



    SETFONTCOLOR(HIGHLIGHT,BKGDCOLOR);

    WindowX=PrintX=40;

    PrintY=60;

    US_Print("This game is NOT shareware.\n");

    US_Print("Please do not distribute it.\n");

    US_Print("Thanks.\n\n");

    US_Print(" Id Software\n");



    VW_UpdateScreen ();

    VW_FadeIn();

    IN_Ack();

    }

    #endif

    #endif



    Step 5. Now, edit the text within(don't remove anything else than text), save the file and compile it.


    Step 6. Open the file WL_MAIN.C and go to line 1459. There you should see the following:



    #ifndef GOODTIMES

    #ifndef SPEAR

    #ifndef JAPAN



    Step 7. Replace that with :



    #ifdef GOODTIMES

    #ifndef SPEAR

    #ifndef JAPAN



    Step 8. Save the file and Compile. Now you have your own Non-shareware

    notice.





    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Thu Mar 28, 2024 5:23 am