update something in 1.1.1

This commit is contained in:
dharm pimsen 2024-07-16 20:22:24 +07:00
parent 62d6a70841
commit 962ada36f0
5 changed files with 19 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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");
}