Compiling error

  • Empoliam
    1st Jan 2013 Member 0 Permalink

    I am using Microsoft Visual C++ 2010 express, and i have been following the compiling guide (TPT++) on the wiki, and everything was going well, but i suddenly recieved a huge amount of errors that seem to be related to generator.py.

    I have no python knowledge, so i am unable to fix this myself. Can anyone help me? (Searching the forums has yeilded no solutions)

     

    Errors: http://pastebin.com/UbTgWnG0

     

    (edit: i am compiling the unmodified source)

  • jacob1
    1st Jan 2013 Developer 1 Permalink
    try removing the /pim folder from the solution, so it isn't compiled. It isn't used for anything that anyone besides Simon/savask understands.

    After that, you will probably get another error because there were some things I could not figure out what to do when I wrote the guide. You probably need this: generator.py, you can just double click it to run it.
  • Empoliam
    1st Jan 2013 Member 0 Permalink

    Is there any way you could send me the files generated by generator.py? When i run it, a Command-line window flashes for a fraction of a second, reading:

     

    File "(generator.py location)" line 206 in <module>

    generateElements()

    File "(generator.py location)" line 35, in generateElements

    d[3] = string.atoi<d[3])

    AttributeError: 'module' object has no attribute 'atoi'

     

    Any ideas?

  • jacob1
    1st Jan 2013 Developer 0 Permalink
    Ok, if I have time to go on my computer I can send it to you. It must be some weird problem with the Python version you have or something
  • Empoliam
    1st Jan 2013 Member 0 Permalink

    its ok, i fixed the problem. I just modified a few bits of code in the actual source, and its working fine now. Thank you for the help.

     

    Oh, and by the way, is the 84.3 source code availiable? I hae the latest github version, but it is only 84.2.

  • Pilihp64
    1st Jan 2013 Developer 0 Permalink

    @Empoliam (View Post)

    The source from github will always be up-to-date or higher than the release version, The latest github version is indeed 84.3, not sure why yours would say 84.2.

  • cyberdragon
    1st Jan 2013 Member 0 Permalink

    You still need to add all those missing headers that are never there like zlib.h. -_-

  • Empoliam
    1st Jan 2013 Member 0 Permalink

    I have no idea either. its no big deal though.

     

    New problems, i have added a very simple element, and i have used Metal as a guide, becuse it is effectively a clone of metal. However, despite the lack of any compiling errors, it has failed to show up in-game. According to the console, it does not even exist. I have modified ElementClasses.h to accept it as an element, but is there anything else i need to do?

     

    My element's code: http://pastebin.com/H05vUtKr

    My updated ElementClasses.h: http://pastebin.com/snSCABJN (right at the bottom)

  • cyberdragon
    1st Jan 2013 Member 0 Permalink

    It said "SSE2" is invalid for the instruction set. 0_0

     

    Edit: It's not SSE2, there's a whole bunch of other crap with it. -_-

  • Empoliam
    1st Jan 2013 Member 0 Permalink

    Not to sound rude or anything cyberdragon, but do you have actual solutions to my problems, or are you just going to confuse me more than I already am?