Wolf3d Haven Forum

Please log in or register. Smile
Wolf3d Haven Forum

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


    restore shareware notice

    Share

    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!

    Male
    Number of posts : 5090
    Age : 22
    Location : USA or Tawain
    Job : Student, Part time Cactuar fanatic
    Hobbie : Planting Cactuars.
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    restore shareware notice

    Post by Dark_wizzie on 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 Tue Dec 06, 2016 1:59 pm