Compiling error microsoft visual studieo

  • hovinghoff
    15th Jan 2013 Member 0 Permalink

    first of all i am running 2012 sorry for not being able to add to title

    second of all i have done exactly the compillation sequance on the wiki

    and last of all i have not modded anything but still 

    i am getting a error

    i have to debug twice to get it to show up but the first time it just says build faild 

    so here it is

    1>------ Build started: Project: powder toy mod, Configuration: Release Win32 ------
    1> GameView.cpp
    1>src\game\GameView.cpp(455): error C2864: 'GameView::MenuAction::needsClick' : only static const integral data members can be initialized within a class
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    please help 

    suggestions are good too 

    and with the new source there is no powder.h

    has it ben renamed? if so what

    Thanks

  • jacob1
    15th Jan 2013 Developer 0 Permalink
    @hovinghoff (View Post)
    https://github.com/FacialTurd/The-Powder-Toy/commit/8723bbc63c4141c9318c4107a462bff562b4924f probably fixes this problem, I normally use visual studio, but I wasn't when I made the change that broke it.

    Also, powder.h was split up / renamed, I think there's some files somewhere like ElementClasses.h <- auto generated, don't edit it, SimulationData.h, and maybe a few others. There is currently no recent tutorial on how to make elements, I should make it sometime. If that's what you want, copy the idea from an existing element file "src/simulation/elements/asdf.cpp" and change it to what you want. You will need the id, make it 1 greater than whatever the latest one in ElementClasses.h is, I can't remember right now. Then, you will need to run generaor.py again and it should work and show up.
  • hovinghoff
    15th Jan 2013 Member 0 Permalink

    @jacob1 (View Post)

     thank you so much strange that no many errors spacific to this situation

    thanks very much