Modding TPT

  • xetalim
    17th Jun 2013 Member 0 Permalink

    @greymatter (View Post)

     lemme get a question list

    1. Is your DERP file inside SOURCE\src\elements?

    if no, put it inside and recompile. If yes, next question

    2.Is your DERP ID(//#TPT-Directive ElementClass Element_ARAY PT_ARAY 126 (random file)) the next in the elementclasses.h list?

    If no, update your ID If yes, next question

    3. Are all BGLA names changed to DERP?

    if no, change if yes, next question

    4.Did you compile?

    if no, do it if yes next question

    5.Why the heck isnt it working yet?

    if IDK, go to someone else, if you have a reason, tell the reason.

  • greymatter
    17th Jun 2013 Member 0 Permalink
    @xetalim (View Post)
    1)YES
    2)YES
    3)YES
    4)...I think this is where the trouble is...If you mean i ran generator.py, yes. Otherwise, I didn't do anything.

    Solve it please.


    EDIT:WAIT....By compiling if you mean F5, i have never pressed it :/
    Trying now...
  • xetalim
    17th Jun 2013 Member 0 Permalink

    @greymatter (View Post)

     you use visual studio?

    i reccomend you press F5 while in visual studio with the project open

  • greymatter
    17th Jun 2013 Member 0 Permalink
    @xetalim (View Post)
    I did, and got a message:"This project is out of date.....Would you like to build it?" I gave no, and i got a lot of errors. Most of them were:
    "Cannot find or open the PDB file" and
    "Binary was not Built with debug information"

    Then the mod opened, but the element i coded was missing...
  • GreenFireDragon
    17th Jun 2013 Member 0 Permalink

    you need to build it if you want that something you made is added

  • greymatter
    17th Jun 2013 Member 0 Permalink
    @GreenFireDragon (View Post)
    But i had already built it. (and isn't that why there is a .exe along with some other files in the build folder?)
  • jacob1
    17th Jun 2013 Developer 0 Permalink
    Can you post the errors here? Sometimes it likes to open the last version that was able to compile, but if there are errors it actually never did.

    Don't post warnings though. Anything about PDB files or debug information is not an error, and should just say "warning". If it says "error", that is where the problems are.
  • mniip
    17th Jun 2013 Developer 0 Permalink
    @greymatter (View Post)
    every time you add something new, it doesn't magically appear in the exe. You have to compile, and compiler will generate a brand new exe with your features inside
  • greymatter
    18th Jun 2013 Member 0 Permalink
    @mniip (View Post)
    That's excatly what i was thinking. And no one ever mentioned it before.
    @jacob1 (View Post)
    Okay, here it is:


    First-chance exception at 0x76c14b32 in greymatter's TPT mod.exe: Microsoft C++ exception: json::Exception at memory location 0x00e5f514..
    First-chance exception at 0x76c14b32 in greymatter's TPT mod.exe: Microsoft C++ exception: json::Exception at memory location 0x00e5f72c..
    First-chance exception at 0x76c14b32 in greymatter's TPT mod.exe: Microsoft C++ exception: json::Exception at memory location 0x00e5f6e8..
    First-chance exception at 0x76c14b32 in greymatter's TPT mod.exe: Microsoft C++ exception: json::Exception at memory location 0x00e5f60c..
    First-chance exception at 0x76c14b32 in greymatter's TPT mod.exe: Microsoft C++ exception: json::Exception at memory location 0x00e5f72c..
    The thread 'Win32 Thread' (0x11f0) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xf0) has exited with code 0 (0x0).
    The program '[5824] greymatter's TPT mod.exe: Native' has exited with code 0 (0x0).


    I don't know whether these are warnings or errors or just supposed to happen. But these, and a number of loads and unloads along with a TON "cannot find or open PDB file" and "Binary was not buit with debug information" was what the debug displayed.

    Note that the .exe opened after debugging, but didn't have the changes i made.
  • jacob2
    18th Jun 2013 Member 0 Permalink
    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.