Modding TPT

  • GreenFireDragon
    18th Jun 2013 Member 0 Permalink

    delete the exe and compile, then you know if it worked correctly

  • greymatter
    19th Jun 2013 Member 0 Permalink
    @GreenFireDragon (View Post)
    I deleted the .exe and compiled, and it gave me an error saying that it was "unable to find greymatter's TPT mod.exe"..
    Then, i pasted it back and compiled,to get the same error message.
    DID I JUST RUIN MY .EXE?
    But i do have a backup of my project.
    Now what? why isn't the elements getting added?
  • jacob1
    19th Jun 2013 Developer 0 Permalink
    @greymatter (View Post)
    You may have just told it to run an incorrect .exe file. Search in the Build/ , Debug/ , or Release/ folders for the correct .exe file, maybe there's some option to have it run the right one that you have to find (I can't use visual studio right now so no idea where it would be or whether any of this is true)

    You are basically telling it to run some version you compiled a while ago when really it's compiling it somewhere else. Also try switching between Debug and Release mode.
  • xetalim
    20th Jun 2013 Member 0 Permalink

    lol

    ask @mniip

    he'll install scons for ya

    works fine for me

  • greymatter
    20th Jun 2013 Member 0 Permalink
    @xetalim (View Post)
    I'll try asking him.
    @jacob1 (View Post)
    I searched through, and found just one .exe file, which is the one in the build folder.
  • xetalim
    20th Jun 2013 Member 0 Permalink

    @greymatter (View Post)

     hes on IRC mostly, ask there

  • greymatter
    21st Jun 2013 Member 0 Permalink
    @xetalim (View Post)
    I started a conversation with him. Any help on VS anyone?
  • jacob1
    21st Jun 2013 Developer 0 Permalink
    do this:

    jacob2:

    Those are not errors, I always get them but no idea what they mean. There seems to be another problem. Open up elementcalsses.h and cpp and see if your element is listed at the bottom of those. If not and you are sure you ran generator.py, post the comments in your element file and make sure you are using python 2 and not 3. If they are there it is just launching the wrong exe file.
  • greymatter
    22nd Jun 2013 Member 0 Permalink
    @jacob1 (View Post)
    There are lines added to elementclasses.h and .cpp by generator.py.
    My python is 2.7.5.
    The .exe is correct because when i deleted it,it said the .exe was not found.

    Now what?
  • mniip
    22nd Jun 2013 Developer 0 Permalink
    I wrote a tutorial for compiling TPT on windows with scons, i just took a blank windows VM and logged everything i did, so this tutorial SHOULD work, jacob1 helped with nicifying it,
    https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html