Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Support / Re: Editing registered users database
« Last post by PPK on 26 February, 2016, 06:44:45 »
Simple way is one line script:
Code: Lua
  1. RegMan.ChangeReg(sNick, sPass, iProfileNumber)
For example:
Code: Lua
  1. RegMan.ChangeReg("PPK", "MyNewPassword", 2)
92
Support / Editing registered users database
« Last post by illustris on 26 February, 2016, 02:39:28 »
Is there any way to edit the new RegisteredUsers.pxb like the old .xml to change profile and passwords easily?
93
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" ...
94
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:
95
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"
96
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?
97
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
98
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
99
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
100
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.
Pages: 1 ... 5 6 7 8 9 [10]