Need help with coding...

  • Master-Of-Puppets
    23rd Nov 2010 Member 0 Permalink
    I want to add 3 new elements in PT(for myself). Hydrogen, Liquid Hydrogen and Solid Hydrogen. I stood to the coding-tutorial. Now the work in powder.h is done. In the coding-tut stands: add #ifdef HEAT_ENABLE
    (...)
    This means that if heat mode is enabled, do the following statements.

    Do I have to insert that code for the elements above or is it just for the HETR-element in the tutorial?

    And do i have to download Microsoft Visual Studio and GitHub or only one of them?

    My english isn't the best, please ignore mistakes.
  • Neospector
    23rd Nov 2010 Member 0 Permalink
    Visual Studio allows you to edit code, Github is to download (and Idk why) a weird version of the source.
    (btw, you might want to lower the lowest temp to have solid Hydrogen)
    Don't forget powder.c too. But could we have a look at the source?
  • Master-Of-Puppets
    23rd Nov 2010 Member 0 Permalink
    you mean the powder.h source, don't you ?

    ok something isn't working with the url...copy this into the adress bar: http://jumbofiles.com/a26zg80ju67i

    this should it be...

    btw i know i'm a noob
  • JoJoBond
    23rd Nov 2010 Member 0 Permalink
    Master-Of-Puppets
    You don't need to use #ifdef HEAT_ENABLE.

    You also need either an IDE or just a compiler.

    Neospector
    Git is a convenient way to manage source code when you have multiple authors.
  • Master-Of-Puppets
    23rd Nov 2010 Member 0 Permalink
    JoJoBond
    You don't need to use #ifdef HEAT_ENABLE.

    thanks.
    Do i have to insert another code ?

    JoJoBond
    You also need either an IDE or just a compiler.

    i have Microsoft Visual Studio
  • JoJoBond
    23rd Nov 2010 Member 0 Permalink
    How do you mean that?


    Follow the Wiki on how to setup a Visual Studio project.
  • Master-Of-Puppets
    23rd Nov 2010 Member 0 Permalink
    do you know the use of this #ifdef HEAT_ENABLE-code ?
    maybe the hydrogen needs a similar code...could be that it's not working right if i don't add a code like this...
  • c00ldude39
    23rd Nov 2010 Member 0 Permalink
    how do you get to powder.h?
  • Vanadium
    23rd Nov 2010 Member 0 Permalink
    Master-Of-Puppets

    When you have added your elements follow the Visual studio setup tutorial, if you have any other problems chat to me in conversations and i can help you
  • Master-Of-Puppets
    23rd Nov 2010 Member 0 Permalink
    c00ldude39

    by downloading ^^

    Vanadium

    ok thanks

    sorry for writing back that late, my internet wasn't functionating the last few days...