fnuecke / lama

Location Aware Movement API for ComputerCraft Turtles
MIT License
22 stars 7 forks source link

Potential gotcha when including in a resource pack #1

Open michthom opened 10 years ago

michthom commented 10 years ago

Hi Sangar, thanks for the work so far - I just stumbled on LAMA while trying in vain to reimplement something similar.

In case it helps anyone else, I stumbled when trying to include LAMA in a resource pack e.g. to distribute with the programs that will require it: I foolishly copied the 'lama' minified version file into:

minecraft/resourcepacks/ResPackName/assets/computercraft/lua/rom/apis/lama

However when I tried that all I got was blank-screened turtles, that I was unable to restart with CTRL-R.

The approach that worked was to copy the lama-src version into that same location but renamed as just 'lama'.

Is it worth a "note to noobs" in the installation notes?

Cheers Mike

fnuecke commented 10 years ago

Either way you'd probably want to adjust the apiPath setting. Should probably even work with the minified version then, but it's been too long for me to be sure.

It may be a good idea to add a "resource packs" subsection to the readme. I'd appreciate if you could formulate that and do a PR with it, since I have no experience with Lua in resource packs, so what I could write would be very limited and quite possibly wrong ;)

michthom commented 10 years ago

I'll keep researching then. It looks like my earlier success was premature - I was unable to repeat with either the minified or source versions. Presumably if I include the bapil API then the lama API should be resolved even without changing the apiPath? But that didn't seem to work (yet). Thanks for the quick response, I'll let you know how I get on. Resource packs are cool, and a good way to get useful projects like these shared more widely IMHO.

fnuecke commented 10 years ago

Ah, right, bapil (been too long). Yes, it should, then. Let me know how it goes! I probably won't be much help, but if there's anything that seems wrong let me know, maybe I remember something ;)