Build Errors with scons

  • DavidTheTech
    11th Mar 2016 Member 0 Permalink

    @jacob2 (View Post)

     im using 2012 I know it says use 2013 but ages ago it worked with 2012 on my old laptop

  • jacob1
    11th Mar 2016 Developer 1 Permalink
    @DavidTheTech (View Post)
    I'll try to re-add VS2012 support then, but note that I don't actually use 2012 and haven't in years, which is why tpt doesn't exactly support it. I think there might be some code to fix min and max for 2012 somewhere ...
  • jacob2
    12th Mar 2016 Member 1 Permalink
  • jacob1
    12th Mar 2016 Developer 1 Permalink
    I fixed scons compiling here: https://github.com/simtr/The-Powder-Toy/commit/13d3547211073ed0f4e0dd78daf2b7282f1f0819

    Just update the source (type 'git pull' probably), and you should be able to compile again. You need to use the --static flag, because some other stuff is still broken. I'm not sure what happened at all and why it doesn't work any more, but I think it's a mingw issue we need to work around.
  • DavidTheTech
    12th Mar 2016 Member 0 Permalink

    @jacob1 (View Post)

     Thank you so much

    may i ask how do i use the static flag?

    do i just do scons.py --static

     Thank you it frickin works thank you so much

     

    one more thing how do I make a menu like this?

    Edited 4 times by DavidTheTech. Last: 12th Mar 2016
  • jacob1
    12th Mar 2016 Developer 0 Permalink
    Well, it looks like you already kind of figured out how, which is the guide here: https://powdertoy.co.uk/Wiki/W/How_To_Add_an_Icon_to_Menus.html

    boxmein also made a similar guide and stuff here: https://github.com/boxmein/tpt-font-editor/blob/master/README
    I haven't used it but it might be easier. But it sounds like you already figured out the wiki guide.

    The font editor needs to be easier to use ... for my mod I redid it a little but it's still hard to use unless you know what you are doing. Once you have your new icon ready, making a new menusection should be really simple, just see src/simulation/SimulationData.{h,cpp}
    Edited once by jacob1. Last: 12th Mar 2016