compiling error (again)

  • i_am_sandwich
    21st May 2017 Member 0 Permalink

    when i compile --static i get this


    C:\Users\J\Desktop\thepowdertoy\The-Powder-Toy-master>scons --static
    scons: Reading SConscript files ...
    ValueError: invalid literal for int() with base 10: '':
    File "C:\Users\J\Desktop\thepowdertoy\The-Powder-Toy-master\SConstruct", line 3:
    execfile("generator.py")
    File "generator.py", line 234:
    generateElements(os.listdir("src/simulation/elements"), "generated/ElementClasses.cpp", "generated/ElementClasses.h")
    File "generator.py", line 42:
    d[3] = int(d[3])

    Edited once by i_am_sandwich. Last: 21st May 2017
  • jacob1
    21st May 2017 Developer 0 Permalink
    Did you modify the source code at all? This looks to me like an improperly defined element. Make sure you can compile the default game first, before doing custom elements.
  • i_am_sandwich
    21st May 2017 Member 0 Permalink

    @jacob1 (View Post)

     i fixed it i hade not changed the element id and added it to the elements list thing