How do you make a element?

  • Argentum
    26th Jan 2014 Member 0 Permalink

    @nucular (View Post)

    What instructions were those?

  • jacksonmj
    26th Jan 2014 Developer 0 Permalink

    @Argentum

    From the error messages, it looks like HETR.cpp isn't being compiled (since the missing functions it's complaining about should be in HETR.cpp).

     

    I'm not really familiar with Visual Studio, but there may be something you need to do in addition to copying it to the correct folder to make sure HETR.cpp gets compiled - "adding it to the project" or something?

    http://blogs.msdn.com/b/davidklinems/archive/2007/12/18/quick-tip-add-files-to-visual-studio-projects-the-easy-way.aspx http://msdn.microsoft.com/en-us/library/vstudio/9f4t9t92%28v=vs.100%29.aspx

     

     

     

    I think nucular is referring to the instruction on the second line (though it doesn't look like the cause of this particular problem):

    //#TPT-Directive ElementClass Element_HETR PT_HETR 169 //You must change this line, replace HETR with your element's name and 169 with the first available id in generated/ElementClasses.h

    Edited 3 times by jacksonmj. Last: 26th Jan 2014
  • Argentum
    26th Jan 2014 Member 0 Permalink

    The first link worked.  clicking "show all files," then right clicking and selecting "Include in project" did the trick.  My "mod" now has HETR in it and will compile without trouble.  Thanks jacksonmj!

     

    I think that the wiki tutorial for adding new elements should be edited to accomadate for this error.  It doesn't mention anywhere to add it to the solution files with the visual studio.

    Edited once by Argentum. Last: 26th Jan 2014
  • jacob1
    26th Jan 2014 Developer 0 Permalink
    The list of files to be compiled is called the "Solution", so you have to go into there and add HETR.cpp to the list to be compiled. Shouldn't be that hard, you can probably google it.

    Also i'm not sure if I ever actually compiled HETR, it's just there to look at. The guide is totally unfinished and half doesn't even apply to tpt anymore :|
  • Argentum
    26th Jan 2014 Member 0 Permalink

    Okay I sucessfully compiled HETR into the powder toy with visual studio so I know that it can be a valid element.  The file doesnt seem to have anything wrong with it.

  • Antoine9
    26th Jan 2014 Banned 0 Permalink
    This post is hidden because the user is banned
  • Argentum
    29th Jan 2014 Member 0 Permalink

    @Antoine9 (View Post)

    In what context is this code for?  What is it supposed to do, and where does it go?

  • FeynmanLogomaker
    29th Jan 2014 Member 0 Permalink

    @Antoine9 (View Post)

    Just wondering, is this really your 9th account? Even I didn't have 9 accounts, I think you just stole my record.

  • jacob1
    29th Jan 2014 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    no, it's his 10th account. After @antoine @the_new_antoine @Antoine2 @Antoine3 @antoine4 @Antoine5 @Antoine6 @Antoine7 @Antoine8 @antoine9

    Once you start making this many alt accounts, I start banning the second I notice you register. Maybe i'll make it automatic based on ip sometime, since constant alts has become a trend recently. 10 isn't the record.

    </ban discussion>
    Edited 2 times by jacob1. Last: 29th Jan 2014
  • CeeJayBee
    29th Jan 2014 Member 1 Permalink

    @Argentum (View Post)

     It's lua. Create a file called autorun in your Powder Toy directory, then copy & paste the code into it. Click "Save As", select All Files from the drop down box and name it autorun.lua

     

    Run TPT, then it's done :D

Locked by LBPHacker: necro