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...


    Wolf 3d Sdl not compiled

    Share

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Thu Oct 23, 2014 1:08 pm

    for some reason you do not want to fail because of these errors:
    [Linker error] undefined reference to `LastAttacker' x4

    wl_agent.o(.text+0x4b1):wl_agent.cpp: undefined reference to `LastAttacker'
    wl_agent.o(.text+0x4b9):wl_agent.cpp: undefined reference to `LastAttacker'
    wl_agent.o(.text+0x666):wl_agent.cpp: undefined reference to `LastAttacker'
    wl_game.o(.text+0x867):wl_game.cpp: undefined reference to `LastAttacker'

    Please help me!

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Thu Oct 23, 2014 2:22 pm

    Did you edit any of the files?

    If yes, what did you edit?

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Fri Oct 24, 2014 4:16 am

    yes 

    wl_agent.cpp,wl_def.cpp,wl_ac1.cpp:new weapon,new ammo,4 keys,backpack
    wl_main.cpp:new statics objects
    wl_inter.cppwl_audiowl6.cpp:new sounds

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Fri Oct 24, 2014 9:34 am

    Post the source code that you changed in WL_AGENT.CPP

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Fri Oct 24, 2014 12:12 pm

    Send to in e-mail?

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Fri Oct 24, 2014 1:24 pm

    Post it here, like this (the forum post editor has a 'Code' button, the 13th from the left, copy and paste your code snippet in the window it opens up):
    Code:
    void TakeDamage (int points,objtype *attacker)
    {
        LastAttacker = attacker;

        if (gamestate.victoryflag)
            return;
        if (gamestate.difficulty==gd_baby)
            points>>=2;

        if (!gamestate.godmode && !gamestate.godcheat) {
            gamestate.health -= points;
    //        if (attacker == NULL)                    // ANDY1013: Silence, BJ!
    //            SD_PlaySound(TAKEDAMAGESND);
        }

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 2:41 am

    things that should be erased?

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 4:34 am

    Post the code that you changed from WL_AGENT.CPP

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 5:07 am

    I sent it I did as it is written, you can also write out an error. But there's another error which makes up the exe:"C:/Dev-Cpp/lib" -mwindows -lmingw32 -lSDL -lSDL_mixer

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 5:24 am

    The error messages can only tell me a little bit. You have to post your actual code changes for me to determine the cause of the error.

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 6:34 am

    new weapon,new ammo,new healts item,new statics objects,4 key,backpack,damage flash God mode removal,Pacman Gohts removal,adding new sounds,ammo and health boost,SS adding always Machinegun,textured Floor/ceilling they put into it and I've changed the pass

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 6:51 am

    That is a summary of the changes you made. I'd like to see the changed WL_AGENT.CPP code itself. Post it here like I did in my example above.

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 7:05 am

    Share in e-mail

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 7:58 am

    Alright, send it to wolf3dman [at] a o l [dot] c o m

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 8:10 am

    What is the real email address?

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 8:55 am

    Replace [at] with @ and replace [dot] with . and delete the spaces in a o l and c o m.

    I'm trying to keep spammers from filling my inbox! Smile

    Officer-Michael John
    Seasoned Wolfer
    Seasoned Wolfer

    Male
    Number of posts : 332
    Age : 19
    Hobbie : Video and Wolf 3D mode making
    Registration date : 2014-08-04

    Re: Wolf 3d Sdl not compiled

    Post by Officer-Michael John on Sat Oct 25, 2014 9:08 am

    I sent the wolf 3d my mod source code

    Andy
    Seasoned Wolfer
    Seasoned Wolfer

    Number of posts : 280
    Registration date : 2007-12-22

    Re: Wolf 3d Sdl not compiled

    Post by Andy on Sat Oct 25, 2014 9:48 am

    You accidentally deleted a line from WL_AGENT.CPP and need to add it again (the last line).

    After adding it, it compiles fine.
    Code:
    /*
    =============================================================================

                                    GLOBAL VARIABLES

    =============================================================================
    */



    //
    // player state info
    //
    int32_t         thrustspeed;

    word            plux,pluy;          // player coordinates scaled to unsigned

    short           anglefrac;
    short           gotgatgun; // JR

    objtype        *LastAttacker;       // accidentally deleted - add it again

    Sponsored content

    Re: Wolf 3d Sdl not compiled

    Post by Sponsored content Today at 3:06 pm


      Current date/time is Fri Dec 09, 2016 3:06 pm