hugoam / toy

the thin c++ game engine
https://toyengine.io
GNU General Public License v3.0
1.56k stars 101 forks source link

Missing bx.lua file #9

Closed thepra closed 6 years ago

thepra commented 6 years ago

Here's an extraction from cmd:

C:\Users\XXXX\Desktop\toy2\bin\windows>genie vs2017
cannot open c:/Users/XXXX/Desktop/toy2/mud/3rdparty/bx/scripts/bx.lua: No such file or directory
stack traceback:
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:96: in function 'dofile'
        ...rs/void_/Desktop/toy2/mud/scripts/3rdparty/bgfx/bgfx.lua:6: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:96: in function 'dofile'
        c:/Users/void_/Desktop/toy2/mud/scripts/mud.lua:14: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:96: in function 'dofile'
        c:/Users/void_/Desktop/toy2/scripts/toy.lua:10: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:96: in function 'dofile'
        c:/Users/void_/Desktop/toy2/scripts/genie.lua:22: in main chunk
        [C]: in upvalue 'builtin_dofile'
        [string "premake = { }..."]:96: in function 'dofile'
        [string "_WORKING_DIR        = os.getcwd()..."]:45: in function '_premake_main'

Seems like not all of the files from 3rdparties are pulled regularly. There's any fix?

mattiascibien commented 6 years ago

Did you cloned like said int this issue https://github.com/hugoam/toy/issues/5#issuecomment-409979005?

hugoam commented 6 years ago

You should clone using the --recursive option, or manually call git submodule update --init both in toy repo directory and then in mud subdirectory.