Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Help with scripts / Re: freshstuff start failed
« Last post by PPK on 19 February, 2016, 11:44:44 »
2.
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.dll"
with 
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.so"
Or better solution. Remove package.cpath from that script and then it will use lua libraries from paths set on os ;) Script should not change paths, because then it is "Defective by Design" ...
92
Help with scripts / Re: freshstuff start failed
« Last post by the-master on 19 February, 2016, 11:30:45 »
WD  :D
My guess.. :huh: it's using both places with the dll/so files. :boxed:
93
Help with scripts / Re: freshstuff start failed
« Last post by illustris on 19 February, 2016, 10:04:58 »
I finally got it working. Here's what i did

cp /usr/lib/arm-linux-gnueabihf/lua/5.1/lfs.so <PtokaX path>/scripts/freshstuff/libnew
or if you're on x86 linux,
cp /usr/lib/x86_64-linux-gnu/lua/5.1/lfs.so <PtokaX path>/scripts/freshstuff/libnew

edit freshstuff.lua and replace :
1. 
require "pxlfs"
with 
require "lfs"
2.
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.dll"
with 
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.so"
94
Help with scripts / Re: freshstuff start failed
« Last post by the-master on 19 February, 2016, 09:10:50 »
Quote
it comes bundles with pxlfs.dll, which was compiled for x86 windows
I had to replace it with proper dll, so it's bundled with a prior version  :(
But freshstuff is a release script, how about other release scripts?
95
Help with scripts / Re: freshstuff start failed
« Last post by illustris on 19 February, 2016, 08:40:13 »
I can get freshstuff working on windows without any issues. The problem is, it comes bundles with pxlfs.dll, which was compiled for x86 windows. That will not work on my raspberry pi.
a .so file is the UNIX equivalent of a dll ( http://www.codeproject.com/Articles/13501/Platform-Independent-Coding-DLLs-and-SOs )
The freshstuff zip you gave would work in windows, but not linux because it uses the platform dependent pxlfs.dll
96
Help with scripts / Re: freshstuff start failed
« Last post by the-master on 19 February, 2016, 08:09:05 »
Try using these files, copied from running freshstuf on Pto 0.5.2.1 32bit
97
Help with scripts / Re: freshstuff start failed
« Last post by illustris on 19 February, 2016, 03:49:38 »
Code: [Select]
Fri 19 Feb 2016 01:47:01 UTC - /home/pi/PtokaX/scripts/freshstuff.lua:57: module 'pxlfs' not found:
        no field package.preload['pxlfs']
        no file '/home/pi/PtokaX/scripts/freshstuff/pxlfs.lua'
        no file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll'

I tried renaming PXLFS.dll to pxlfs.dll and got this error
Code: [Select]
Fri 19 Feb 2016 02:41:24 UTC - error loading module 'pxlfs' from file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll':
        /home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll: invalid ELF header

I tried copying the lfs.so file from /usr/lib/arm-linux-gnueabihf/lua/5.1/lfs.so to the libnew folder and renaming it to pxlfs.dll and got this error
Code: [Select]
Fri 19 Feb 2016 02:45:54 UTC - error loading module 'pxlfs' from file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll':
        /home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll: undefined symbol: luaopen_pxlfs
98
Request for scripts / Re: script file for ticker(at the top)
« Last post by the-master on 18 February, 2016, 16:59:05 »
Ticker? try topic, a line of tekst with info.
99
Request for scripts / script file for ticker(at the top)
« Last post by abhay_44 on 18 February, 2016, 12:40:05 »
Hi...I am looking for a script file which shows some information on the top of the screen i.e., TICKER.I searched in the forum but i couldn't find :(.If anyone knows where the script files is please post that thread link or please share that script file.
Thanks in advance :)
100
Help with scripts / Re: freshstuff start failed
« Last post by PPK on 18 February, 2016, 10:59:09 »
If anyone can tell me where this elusive "real error message" is, i can post it here.
Check if you have in Settings.pxt
Quote
LogScriptErrors   =   1
Then all scripts error are written in ptokax_dir/logs/script.log
Pages: 1 ... 5 6 7 8 9 [10]