Running Errors

  • cyberdragon
    4th May 2013 Member 0 Permalink

    Well, it starts. I had to add some things to get piston, frame and CRAY to show up. But now piston doesn't work. I can paste pixals of it but they are dead and it won't show up in saves. (I think everything else works since cray works) Also, could you inform me of the changes that you will have in the update so I can add them manually. (list of files changed and post new code on github). 

  • jacob1
    4th May 2013 Developer 0 Permalink
    you shouldn't have added it yourself, because it wasn't added right. Delete the generated files and try generator.py again to make sure it's working.
  • cyberdragon
    4th May 2013 Member 0 Permalink

    0 errors 0 warnings

    All I added was things in ElementClasses.cpp which is dirt simple.

    generator.py works but there isn't much to the files it generates.

    And all the piston definitions and arguments are there in the ElementClasses.h written by the python file.

    I ran the python file in the python compiler and found no problems.

     

    Bizzare, has to be either not updating or not doing what its supposed to. I can make it turn into blue piston in the game though.

  • jacob1
    5th May 2013 Developer 0 Permalink
    did you edit ElementClasses.cpp yourself? You should never do that. Delete it and let generator.py make it manually.
  • cyberdragon
    5th May 2013 Member 0 Permalink

    Did S*** to fix it.

     

    generator.py >>> Documents (STAYS there, does nothing useful anymore)

     

    1. I think I know how to type 

    elements.push_back(Element_PSTN());
    elements.push_back(Element_CRAY());
    elements.push_back(Element_FRME());
    elements.push_back(Element_GOLD());

     

    (the file was already there and broken when I downloaded it, currently looks identical to the one from generator.py)

     

    2. you have to edit it to add mod elements -_-

     

    3. Definately not in ElementClasses.cpp, either ElementClasses.h or in PSTN.cpp

     

    4. I'll github it

     

    EDIT: Screw Github. Pastebin.

  • jacob1
    5th May 2013 Developer 0 Permalink
    ...

    seriously, you need to use generator.py or else it's just a lot of trouble getting everything working. Simply adding those 4 lines ignores everything I changed recently.
    If it doesn't work, I can give you the generated files, but I really recommend having it working.
  • cyberdragon
    5th May 2013 Member 0 Permalink

    tried it again...still nothing

     

    everything else works (even avatars and gold) except piston...are you sure you didn't just break it?

  • jacob1
    5th May 2013 Developer 0 Permalink
    yes, i'm 100% sure it works, I just fixed a bug with it and had to use it.

    you said "But now piston doesn't work. I can paste pixels of it but they are dead and it won't show up in saves"
    which is exactly what I expect when ElementClasses.h has been done incorrectly. So that is the problem here, it isn't working. deleting it and rerunning elementclasses.cpp might do something
  • cyberdragon
    5th May 2013 Member 0 Permalink

    I did...generator.py broken. Wait...I'll check compiler settings.

  • jacob1
    5th May 2013 Developer 0 Permalink
    visual studio doesn't run generator.py, you always have to do that yourself