Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocemu.cfg: No such file or directory #38

Open
Hid-K opened this issue Feb 15, 2022 · 1 comment
Open

ocemu.cfg: No such file or directory #38

Hid-K opened this issue Feb 15, 2022 · 1 comment

Comments

@Hid-K
Copy link

Hid-K commented Feb 15, 2022

bool.lua fails on run:

$ lua boot.lua ~/.ocemu/machines/TestMachine/
Warning: Using legacy path of '~/.ocemu'
Please move this to '~/.local/share/ocemu'
Problem opening configuration, using default: ~/.ocemu/ocemu.cfg: No such file or directory
false   ./main.lua:409: attempt to index a nil value (global 'bit32')
stack traceback:
        ./main.lua:409: in main chunk
        [C]: in function 'require'
        boot.lua:277: in function <boot.lua:77>
        [C]: in function 'xpcall'
        boot.lua:327: in main chunk
        [C]: in ?
$ lua -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
@Hid-K
Copy link
Author

Hid-K commented Feb 15, 2022

I`ve created a config file:

components {
  {"modem","9b2383c4-51d9-4b1a-bfd6-1fc466922e12",1,false},
  {"eeprom","9ba383c4-51s9-4b1a-bfd6-1fc466922e12",9,"lua/bios.lua"},
  {"filesystem","9ba383c4-51d9-4bfa-bfd6-1fc466922e12",7,"loot/openos","openos",true,1},
  {"filesystem","9ba383c4-51d9-4b1a-bfd6-1fc466922a12",-1,"tmpfs","tmpfs",false,5},
  {"filesystem","9ba383c4-51d9-4b1a-bfd6-1fc466933e12",5,nil,nil,false,4},
  {"internet","9ba383c4-51d9-4b1a-bfd6-1fc466922e34",2},
  {"computer","9ba383c4-51d9-4b1a-bfd6-1fc463422e12",-1},
  {"ocemu","9ba383c4-51d9-4b1a-bfd6-1fc433922e12",-1},

  {"gpu", "9ba383c4-51d9-4b1a-bfd6-1fc466922e12", 0, 160, 50, 3},
  {"screen_sdl2", "0df59abc-4a59-4b97-b037-d370a15bcd0b", -1, 160, 50, 3}
}

But now i`m getting this error:

false   settings.lua:2: Configuration not loaded
stack traceback:
        [C]: in function 'error'
        config.lua:180: in field 'get'
        settings.lua:2: in main chunk
        ./main.lua:70: in main chunk
        [C]: in function 'require'
        boot.lua:277: in function <boot.lua:77>
        [C]: in function 'xpcall'
        boot.lua:327: in main chunk
        [C]: in ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant