help with genarator.py not working

  • Kirbystarfighter
    24th Jun 2017 Member 0 Permalink

    so I finally got a computer downloaded powder toy and wanted to make new elements and I make the element with the sorce code I go to the generator.py to make my element in the game (btw I'm watching a vid on how to do it and the qality is bad) I srew up on the command so I close out of it to try and look at what he put in the genarator and I try to open it again and this time it doesn't have the option to go in to the command window pls help.

  • jacob2
    24th Jun 2017 Member 0 Permalink
    You should ignore the video, it is probably incorrect or outdated. There are no official video guides.

    There are official wiki guides , here is one: https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html
  • Kirbystarfighter
    24th Jun 2017 Member 0 Permalink

    but what about the generator?

  • jacob1
    24th Jun 2017 Developer 0 Permalink
    You need to run generator.py with python. There are the steps for that in that guide. You should not ever edit the file directly. And you shouldn't edit anything in the generated/ folder either.
  • Kirbystarfighter
    25th Jun 2017 Member 0 Permalink

     "If instead you get "cc: command not found", then you did something wrong and it wasn't properly added to path. Check it again and make sure you typed it exactly." I cheked it and I spell ed it how it was supposed to be spelled and it still says command not found why? pls help

    Edited once by Kirbystarfighter. Last: 25th Jun 2017
  • QuanTech
    25th Jun 2017 Member 0 Permalink

    @Kirbystarfighter (View Post)

     You can ignore that. Continue with the guide

    Edited once by QuanTech. Last: 25th Jun 2017
  • jacob2
    25th Jun 2017 Member 0 Permalink
    @Kirbystarfighter (View Post)
    Ignore the warning and continue on with the guide.
  • Kirbystarfighter
    25th Jun 2017 Member 0 Permalink

    I got to the last bit of the totorial fine but when I ran scons.py this error happened(at the bottem of the log) and no one is helping me at paste bin

                         |

                         |

                       \  /

                         

    scons: Reading SConscript files ...

    Checking whether the C compiler works... (cached) yes

    1. Checking whether the C++ compiler works... (cached) yes
    2. Checking if 64 bit... (cached) no
    3. Adding 32 bit compile flags
    4. Checking for C library mingw32... (cached) yes
    5. Checking for C library ws2_32... (cached) yes
    6. Checking for C library SDLmain... (cached) yes
    7. Checking for C library SDL... (cached) yes
    8. Checking for C header file SDL.h... (cached) no
    9. Checking for C header file SDL/SDL.h... (cached) yes
    10. Checking for C library lua5.1... (cached) yes
    11. Checking for C header file lua5.1/lua.h... (cached) yes
    12. Checking for C library fftw3f... (cached) yes
    13. Checking for C library bz2... (cached) yes
    14. Checking for C header file bzlib.h... (cached) yes
    15. Checking for C library z... (cached) yes
    16. Checking for C library pthread... (cached) yes
    17. Checking for C library m... (cached) yes
    18. Checking for C library gdi32... (cached) yes
    19. Checking for C library winmm... (cached) yes
    20. Checking for C library dxguid... (cached) yes
    21. scons: done reading SConscript files.
    22. scons: Building targets ...
    23. g++ -o build\src\PowderToyRenderer.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\PowderToyRenderer.cpp
    24. g++ -o build\src\PowderToySDL.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\PowderToySDL.cpp
    25. g++ -o build\src\client\GameSave.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\client\GameSave.cpp
    26. g++ -o build\src\debug\DebugLines.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\debug\DebugLines.cpp
    27. g++ -o build\src\debug\DebugParts.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\debug\DebugParts.cpp
    28. g++ -o build\src\debug\ElementPopulation.o -c -std=gnu++98 -Wno-invalid-offsetof -msse -msse2 -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -funsafe-loop-optimizations -DSDL_INC -DWIN -D_WIN32_WINNT=0x0501 -D_USING_V110_SDK71_ -DX86 -DX86_SSE -DX86_SSE2 -DGRAVFFT -DLUACONSOLE -DUSE_SDL -Ibuild\src -Isrc -Ibuild\data -Idata -Ibuild\generated -Igenerated src\debug\ElementPopulation.cpp
    29. =====
    30. src\debug\ElementPopulation.cpp: In member function 'virtual void ElementPopulationDebug::Draw()':
    31. src\debug\ElementPopulation.cpp:53:15: error: 'bars2' was not declared in this scope
    32.     int barX = bars2;//*2;
    33.                ^
    34. =====
    35. scons: *** [build\src\debug\ElementPopulation.o] Error 1
    36. scons: building terminated because of errors.
      strip: 'build/Powder.exe': No such file
       
      please help me
    Edited once by Kirbystarfighter. Last: 25th Jun 2017
  • jacob2
    26th Jun 2017 Member 0 Permalink
    You edited ElementPopulation.cpp
    Please undo the changes to that file. The original line is
    int barX = bars;//*2;
    Edited once by jacob2. Last: 26th Jun 2017
  • Kirbystarfighter
    26th Jun 2017 Member 0 Permalink

    Thank you I was searching through the files and sience it had a 2 with a ; next to it I thought I needed to change the value #I'm stupid at things.