jdf221 / CC-WirelessPeripheral

An implementation of the Computer Craft peripheral API allowing the use of wireless modems
MIT License
13 stars 4 forks source link

nil value - index global #10

Closed PantACRO4life closed 4 months ago

PantACRO4life commented 4 months ago

I don't know how to describe the issue so ill just post a few screen.

If you need to know anything please let me know.

image image

jdf221 commented 4 months ago

Did you run the command to install/download the "wpp" file?

wget https://raw.githubusercontent.com/jdf221/CC-WirelessPeripheral/main/wpp.lua wpp
PantACRO4life commented 4 months ago

Did you run the command to install/download the "wpp" file?

wget https://raw.githubusercontent.com/jdf221/CC-WirelessPeripheral/main/wpp.lua wpp

I did but I found out that it only happen when I type the command "local" in front of the other words

PantACRO4life commented 4 months ago

idk if it matter that im on single player but including "local" doesnt work for other script aswell. MC V: 1.20.1

Im not use to play around with CC, in fact its been a long while. What does Local do ?

jdf221 commented 4 months ago

Are you able to edit a new file and put your code in there? Then run the code by running that file?

Do you need to use local? Try it without it.

PantACRO4life commented 4 months ago

Are you able to edit a new file and put your code in there? Then run the code by running that file?

Do you need to use local? Try it without it.

it was from manual typing but now doing local does work if its a lua code that run by itself.

I asume its like batch file where some comment are different depending if you run it manually or if you execute a script.

jdf221 commented 4 months ago

Hope you got it working!

PantACRO4life commented 4 months ago

yes I did, I made something great ! thanks