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


2 posters

    actually understanding the code?

    Agent_Falcon93
    Agent_Falcon93
    Can I Play, Daddy?
    Can I Play, Daddy?


    Male
    Number of posts : 39
    Age : 37
    Location : subterranean caverns & catacombs
    Job : Entrepreneur
    Hobbie : Beach Days & Gardening
    Message : Author of Castle Erzengel Demo, and the upcoming Runes of North Castle Court, and the rest of the Series : Knights of the ᛋᛋ.
    Registration date : 2021-12-05

    actually understanding the code?  Empty actually understanding the code?

    Post by Agent_Falcon93 Wed Dec 08, 2021 6:12 pm

    (this post seemed to fit better here than helpdesk)

    So even after implementing allot of tutorials, from very basic one line changes to replacing the weapon system, before my hiatus. 

    And recently after implementing a few more including the switch activated pwalls, and watching hours of videos on Programming Concepts and C++, I still only very vaguely "understand" what I am looking at in the Wolfenstein source code. 

    I think I have made some very basic level progress in understanding the most basic aspects of the wolf code but as far as understanding what I don't understand I cant effectively articulate it, other than once a line of code gets too complex or works with code a few other places, I am in the realm of grasping out of my reach of comprehension, as well when I see an operator used in place it seems counter intuitive I often don't fully get it, even sometimes after I look up that functions origin to grasp it. 

    There are times when I think I understand what is going on, but once I start messing with it.... I often end up with errors or code that does not do what I intend it to, and get stuck for days on end. Like trying something seemingly simple as to create a key locked switch.  Frustrated [mostly working now... and the problem was something small  Really, Really Happy]

    Does anyone have some advice on how to actually comprehend the Wolf Code, in a way that I can write my own code changes? 
    Much of what is left to be changed in the KSS series engine is beyond the tutorials on the forums, and I don't want to be that pesky person asking too many questions. 
    I'd like to put some of my own tuts on the forums eventually to give back.

    In the mean time... [of my allotted free time] I am watching some videos on working with unfamiliar code bases.


    Last edited by Agent_Falcon93 on Thu Dec 09, 2021 11:43 am; edited 4 times in total (Reason for editing : typos)



    actually understanding the code?  Right-arrow



    actually understanding the code?  Right-arrow farao "Call Pizza Hut and say Ardwolf"  actually understanding the code?  1f355
    stathmk
    stathmk
    Veteran
    Veteran


    Male
    Number of posts : 1780
    Age : 43
    Location : Indiana, United States
    Job : fast food worker & wolfensteingoodies.com webmaster
    Hobbie : old games & young dames
    Registration date : 2008-04-08

    actually understanding the code?  Empty Diehard Wolfers?

    Post by stathmk Wed Dec 08, 2021 6:54 pm

    I'm not sure yet what you're trying to do.  At Diehard Wolfers at http://dhw.wolfenstein3d.com/ , there's SDL Code Crackers, Code Crackers, and Code Tutorials subforums.
    Agent_Falcon93
    Agent_Falcon93
    Can I Play, Daddy?
    Can I Play, Daddy?


    Male
    Number of posts : 39
    Age : 37
    Location : subterranean caverns & catacombs
    Job : Entrepreneur
    Hobbie : Beach Days & Gardening
    Message : Author of Castle Erzengel Demo, and the upcoming Runes of North Castle Court, and the rest of the Series : Knights of the ᛋᛋ.
    Registration date : 2021-12-05

    actually understanding the code?  Empty Re: actually understanding the code?

    Post by Agent_Falcon93 Wed Dec 08, 2021 6:59 pm

    well in short words, I'm trying to understand the Wolfenstein source code, so that I know what I am looking at in the code, and so that I can write my own changes.



    actually understanding the code?  Right-arrow



    actually understanding the code?  Right-arrow farao "Call Pizza Hut and say Ardwolf"  actually understanding the code?  1f355
    avatar
    Guest
    Guest


    actually understanding the code?  Empty Re: actually understanding the code?

    Post by Guest Thu Dec 09, 2021 4:22 am

    Switches and weapons code are the WORST, nobody really understands them, and just when they think they got their head wrapped around all that disorganized stupidity they forget everything a few months later and their game is full of switch and weapon related bugs. Run far away from those two things while you still can.... and from wl_menu actually understanding the code?  Affraid
    Agent_Falcon93
    Agent_Falcon93
    Can I Play, Daddy?
    Can I Play, Daddy?


    Male
    Number of posts : 39
    Age : 37
    Location : subterranean caverns & catacombs
    Job : Entrepreneur
    Hobbie : Beach Days & Gardening
    Message : Author of Castle Erzengel Demo, and the upcoming Runes of North Castle Court, and the rest of the Series : Knights of the ᛋᛋ.
    Registration date : 2021-12-05

    actually understanding the code?  Empty Re: actually understanding the code?

    Post by Agent_Falcon93 Thu Dec 09, 2021 9:08 am

    actually understanding the code?  Right-arrow



    Well I don't think my weapons code has any bugs in it, I've tested it as extensively as I know how to and haven't encountered anything wrong. 
    And the switches are also pretty crucial to secrets of KSS, and a significant portion of the gameplay. Actually I think I'm just a few basic steps from getting the switch system to function as intended. I just dont understand the system of how door locks and keys work. To make the a locked switch that checks for ___ key. 

    But getting stuck on something so seemingly simple as that, I am wary to attempt to implement my more brutal take damage system.

    I think as much as I dread it... I'm just going to have to actually work through creating the boring console applications that are common in the C++ course videos on YT. 
    And when my new phone arrives, I will install the C++ learning app I was using before my hiatus, I think I remember it helping, and I think it was a paid pro app.


    Last edited by Agent_Falcon93 on Thu Dec 09, 2021 9:13 am; edited 2 times in total (Reason for editing : added more)



    actually understanding the code?  Right-arrow



    actually understanding the code?  Right-arrow farao "Call Pizza Hut and say Ardwolf"  actually understanding the code?  1f355
    Agent_Falcon93
    Agent_Falcon93
    Can I Play, Daddy?
    Can I Play, Daddy?


    Male
    Number of posts : 39
    Age : 37
    Location : subterranean caverns & catacombs
    Job : Entrepreneur
    Hobbie : Beach Days & Gardening
    Message : Author of Castle Erzengel Demo, and the upcoming Runes of North Castle Court, and the rest of the Series : Knights of the ᛋᛋ.
    Registration date : 2021-12-05

    actually understanding the code?  Empty Re: actually understanding the code?

    Post by Agent_Falcon93 Thu Dec 09, 2021 12:01 pm

    Well I got the key activated switches working, and as I suspected I wasn't so far off, but was testing on a further down set of switches&pwalls that seem broken. 

    After I have sorted out the issues I may post a tutorial, but it is really just a more complex version of Brother Tanks Switch activated pushwall tutorial(so credit to BT), that uses several different sets of switches and pwalls, that add some versatility to it. There are still some things left to sort out too.

    Regardless, I have a whole swath yet to learn.... vast swaths of.. code... 
    I'm not going to say I understand this code until I can open up any given file of ye olde wolfsrc and understand 7 of 10 lines of code I happen upon.



    actually understanding the code?  Right-arrow



    actually understanding the code?  Right-arrow farao "Call Pizza Hut and say Ardwolf"  actually understanding the code?  1f355

    Sponsored content


    actually understanding the code?  Empty Re: actually understanding the code?

    Post by Sponsored content


      Current date/time is Sat Apr 27, 2024 9:07 pm