Recent Posts

Pages: 1 ... 4 5 6 7 8 [9] 10
81
Request for scripts / Re: Memory Usage Script
« Last post by the-master on 06 March, 2016, 11:48:44 »
You do know the words "NO LONGER SUPPORTED" ? Update your ddos supported hubsoft m8.
82
Request for scripts / Memory Usage Script
« Last post by nEgativE on 05 March, 2016, 19:44:39 »
Hi there, is there a way to get all scripts memory usage ? like having all scripts getting usage info, dumping in txt file and another script getting that collected info on memory. thx in advance

PS: api 1
83
Basically I want to create a script where when the user types !sharegraph , the following things should happen:
  • Get the online users share size using Core.GetUserData and iShareSize and store it in an array
  • Create another array called size_count which will contain the count of share size of each user according to size category
  • Size categories will be: 0GB-200GB,200GB-400GB,400GB-600GB,600GB-800GB,800GB-1000GB,1000GB+
  • Run a comparison loop and update size_count array
  • Print on main hub chat the size by printing "*" for each user
[li]If a category has more than 50 users, it will print "+" at the end of 30 "*"
[/li][/list]
So lets say if the hub has 10 users where 2 users have less than 200GB , 4 users have 400-600GB and the rest have 1000GB+ , the output should be:
0GB-200GB:      **
200GB-400GB:
400GB-600GB:  ****
600GB-800GB:
800GB-1000GB:
1000GB+:         ****
Can someone please help me out?
84
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)
85
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?
86
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" ...
87
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:
88
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"
89
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?
90
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
Pages: 1 ... 4 5 6 7 8 [9] 10