diff --git a/turtle example 1.ccp b/TestProject/turtle example 1.ccp similarity index 100% rename from turtle example 1.ccp rename to TestProject/turtle example 1.ccp diff --git a/turtleremote.lua b/advremote.lua similarity index 85% rename from turtleremote.lua rename to advremote.lua index f4bc528..c5b55ad 100644 --- a/turtleremote.lua +++ b/advremote.lua @@ -17,7 +17,9 @@ while true do file:write(filedata) file:close() elseif message == "runcode" then - shell.run("main") + id = multishell.launch({}, "main.lua") + multishell.setTitle(id, "Code") + multishell.setFocus(id) elseif message == "exit" then print("Exiting...") break diff --git a/readme.md b/readme.md index 6c8b2bf..f9cbc06 100644 --- a/readme.md +++ b/readme.md @@ -15,23 +15,25 @@ special thank for [this repo](https://github.com/Mirka1405/ccblockly) ## Install Remote code into computercraft it very simple! to install Remote code. ### Run from URL +for advanced computer/pocket/turtle +``` +wget run https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/advremote.lua +``` +for non advance computer/pocket/turtle ``` wget run https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/remote.lua ``` -for turtle -``` -wget run https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/turtleremote.lua -``` ### Download and Run +for advanced computer/pocket/turtle +``` +wget https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/advremote.lua advremote.lua +advremote +``` +for non advanced computer/pocket/turtle ``` wget https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/remote.lua remote.lua remote ``` -for turtle -``` -wget https://raw.githubusercontent.com/DPSoftware-Foundation/ccIDE/main/remote.lua turtleremote.lua -turtleremote -``` If error "Domain not permitted" try [this solution](https://github.com/cc-tweaked/CC-Tweaked/discussions/626#discussioncomment-241924). ## official support peripherals diff --git a/remote.lua b/remote.lua index c5b55ad..f4bc528 100644 --- a/remote.lua +++ b/remote.lua @@ -17,9 +17,7 @@ while true do file:write(filedata) file:close() elseif message == "runcode" then - id = multishell.launch({}, "main.lua") - multishell.setTitle(id, "Code") - multishell.setFocus(id) + shell.run("main") elseif message == "exit" then print("Exiting...") break diff --git a/src/blocksmanager.js b/src/blocksmanager.js index 99d403b..c00d86c 100644 --- a/src/blocksmanager.js +++ b/src/blocksmanager.js @@ -12,7 +12,7 @@ const defineicon = { computer: { basic: path.join(__dirname, '..', 'assets', 'basic_computer.png'), adv: path.join(__dirname, '..', 'assets', 'adv_computer.png'), - command: path.join(__dirname, '..', 'assets', 'command_computer.png'), + //command: path.join(__dirname, '..', 'assets', 'command_computer.png'), // new version not use it pocket: path.join(__dirname, '..', 'assets', 'pocket_computer.png'), advpocket: path.join(__dirname, '..', 'assets', 'adv_pocket_computer.png'), turtle: path.join(__dirname, '..', 'assets', 'turtle.png'), @@ -183,9 +183,9 @@ function scanindex() { if (jsonData.design_for_computer.adv) { addimageiconinfo(libraryDetails, defineicon.computer.adv, "Advanced Computer Supported"); } - if (jsonData.design_for_computer.command) { - addimageiconinfo(libraryDetails, defineicon.computer.command, "Command Computer Supported"); - } + //if (jsonData.design_for_computer.command) { + // addimageiconinfo(libraryDetails, defineicon.computer.command, "Command Computer Supported"); + //} if (jsonData.design_for_computer.pocket) { addimageiconinfo(libraryDetails, defineicon.computer.pocket, "Pocket Computer Supported"); }