Latest version is 4.4 RC2 which is Lua 5.1 compatible, but not fully tested.
http://lawmaker.no-ip.org/forum/forum.php?id=11
Edit
Compatible with 5.0.2 as well.
you rock bastya_elvtars ;D
http://ptxscriptdb.psycho-chihuahua.net/e107_plugins/docrep_menu/docrep.php?0.view.71.19.
FreshStuff 4.4 RC4
This is the latest version before 4.4 final (hopefully), then a major rewrite comes, will be 5.0.
4.4.0 out.
http://lawmaker.no-ip.org/pages/posts/freshstuff3-4.4.010.php
i have some problem when a user login and the bot should show the latest releases it doesn't ???
and yes i have added releases to it :P
i have tried both PM and Main same thing on both it will not show anything.
i get no errors in ptokax so whats wrong ?
cheers
Will check. ;)
oki great :)
Posted on: 22 May 2006, 16:56:26
bastya_elvtars any luck on login release problem ? :)
cheers
OK, I started coding v5 a few days ago. It will be totally different from v4, the main thing is that it will be modular (1000+ lines of code in a single lua file are hard to maintain, and Lua 5.1 ,akes it possible in the way I want), and will have requests.
Other ideas are welcome here (http://lawmaker.no-ip.org/forum/forum.php?id=11).
Development info is here (http://lawmaker.no-ip.org/forum/topic.php?post=393).
Coding of v5 goes fine, it will be ready for September I hope. I already have implemented requests and rewrote the code base to fit the purposes described in the links above.
I find it very disturbing that all releases spams in main everyday. Is there any way to turn this off?
WhenAndWhatToShow={
["20:47"]="music",
["20:48"]="warez",
["20:49"]="new",
["20:50"]="all",
["20:59"]="new",
}-- Timed release announcing. You can specify a category name, or "all" or "new"
Feel free to comment out or remove (or add :P) the lines you don't want. All you have to keep are the two brackets: {}
:-)
Thanks! One more thing:
+topadders list is all fucked up.. is there anyway to reset the counter??
Baysta a good idea would be adding a rightclick to your bot...
i have done it in my hub...
Here is a status report on FreshStuff3 v5.0 (request in action, sorry for the lovers of this particular band):
[23:21:26] *** Server command: !addreq backsterretboys
[23:21:26] <post-it_memo> Your request has been saved, you will have to wait until it gets fulfilled. Thanks for your patience!
[23:21:36] *** Server command: !showreqs
[23:24:13] <post-it_memo>
ID: 1; backsterretboys -// Requested by [TGA-OP]bastya_elvtars
[23:24:38] *** Server command: !addrel music 1 bsb-gaymuzik
[23:24:38] <post-it_memo> bsb-gaymuzik2 is added to the releases as music
[23:24:38] <post-it_memo> [TGA-OP]bastya_elvtars added to the music releases: bsb-gaymuzik
[23:24:38] <post-it_memo> Your request ("1" has been completed! It is named bsb-gaymuzik under category music. Has been completed by [TGA-OP]bastya_elvtars.
looks very good!! :)
How is FreshStuff3 v5. coming along? =)
Uh, oh, forgot to keep youposted here...
OK, v5 is moving along nicely, we have a working alpha version now (downloadable from SVN, although I disrecommend using it). It will speak PtokaX and BCDC language, the latter will be done with Mutor's assistance. Many thanks, Sir! ;)
I am hoping to release the script in March, however the real release is subject the value of WID (When It's Done).
I'll keep you posted with updates. Stay tuned! :)
Here is a todo list:
Quote from: memake rightclick registration use metatables,
make script decide whether to register rightclicks or not (BCDC++ issue mainly) - this is easy, just need to (not) register this on host-spec. mods
make the script fully portable, i. e. it can use all stuff from the host program, while it interoperates with it smoothly (especially data sending)
make the script automatically detect the environment
Incorporate a word filter.
Showing category descriptions on listing
Sortin the displayed category listing
Showing latest n releases... (?)
Split this config below into module-specific parts.
Add a prune function for completed requests (low priority, since they get autodeleted upon the requester's joining.)
Establish a new file format that is suitable for storing multiline releases.
Merge Rodeo73's patches
Requests are working, multiline release names are working, but as you can see, there are many more things to get done. I will release a beta when I feel like it is ready for testing.
Magic Version :D
Hello, people, I want opinions on the following: should mrequests be arranged under categories as releases or should they be mixed? I vote for the latter...
Bastya, I think that it separates them for categories facilitates to the research and the classification for users
Respectfully,
7P-Darkman
does not matter to me I think.. But wouldn?t it be much "cleaner" to separate them?
A few words about what's new:
1) The current alpha version is available from SVN. It is not suitable for everyday use, but testers are welcome. The SVN URL is https://opensvn.csie.org/PtokaXScripts/FreshStuff3/branches/5_0/
You can browse the source directly if you paste that link into your browser.
2) Hopefully there'll be a BCDC-specific module. To my knowledge, this is gonna be the first cross-host Lua script for DirectConnect.
3) The bot will no longer be monolithic. This means that extra functions (pruning and topadders as of now) are stored in a separate module (extras.lua) and there is a separate request module that interacts with the release additions. Moreover, there is a kernel module that contains essential functions, and there are hostapp-specific modules that get loaded by the main Lua file. The host app is automatically detected. Only PtokaX is supported at the moment.
4) I don't plan RSS/ATOM feed generation unless someone requires it explicitly, although it is not hard.
5) The first beta version will be available in March, and the moment it gets released, there will be a feature freeze, i. e. no more feature requests will be accepted for 5.0, only bugs will be fixed.
Wow... so this version will also be available for clients with LUA support (BCDC, Zion, zK, LDC, ...) ?!
Yes, if they have Lua 5.1.
Hello Bastya...
I initiated some tests here with freshstuff v5, and confess that I got excited myself with it... I liked the way very as it is organized, Bastya? and believes that he will make very success!
In my first attempt to use it, I created the sub-folders for it, and it functioned well, correctly, but, when trying to create a category, or excluds it, I got this error:
[07:52] Sintaxe freshstuff/tables.lua:21: bad argument #1 to 'open' (string expected, got table)
[07:55] Sintaxe freshstuff/tables.lua:21: bad argument #1 to 'open' (string expected, got table)
In main chat, shows:
[07:52:28] <7P-Darkman> !addcat Filmes Filmes
[07:55:44] <7P-Darkman> !delcat warez
But... although the error message, the command correctly was executed.
I did not obtain to discover what it could be giving origin to this error, Bastya. Some suggestion?
Respectfully,
7P-Darkman
Quotebastya_elvtars Thu Mar 8 12:40:01 2007 UTC
Repository:
https://OpenSVN.csie.org/PtokaXScripts/
Revision:
68
Log:
FreshStuff3 changes:
rightclick registration is done by metatables and rightcick commands can be specified inside modules (good way is undecided, though)
host app autodetection added, detects ptokax, bcdc and verli
moved release loading to kernel.lua
changes to the development interface (command functions get the nick, not the userobject)
added docs folder, and documented some development info
fixed category saving, thx 7P-Darkman
Hello Bastya...
Works fine now...
[09:04:06] <post-it_memo>
======================
Availlable categories:
======================
warez Warez
music Music
movie Movies
game Games
[09:04:20] <post-it_memo> The category warez has successfully been deleted.
[09:04:38] <post-it_memo> The category music has successfully been deleted.
[09:05:06] <post-it_memo> The category movie has successfully been deleted.
[09:05:17] <post-it_memo> The category game has successfully been deleted.
[09:05:39] <post-it_memo> The category Filmes has successfully been added.
[09:06:54] <post-it_memo> The category Musicas has successfully been added.
[09:07:21] <post-it_memo> The category Livros has successfully been added.
[09:07:46] <post-it_memo> The category Softwares has successfully been added.
[09:08:47] <post-it_memo> The category Fotos has successfully been added.
[09:09:13] <post-it_memo> The category Videoclipes has successfully been added.
[09:11:03] <post-it_memo>
======================
Availlable categories:
======================
Filmes Filmes
Musicas Musicas
Livros Livros
Videoclipes Videoclipes
Fotos Fotos
Softwares Softwares
I go to continue here with the tests, and in case that some error appears, I will come back to enter in contact.
Respectfully,
7P-Darkman
Hello Bastya...
One asks:
When we exclude or we add some category, the commands that appear in the menu of the click of the right button of mouse had only been to be brought up to date I after to have restarted script?
This is the correct behavior? I confess that I found that, after I reconnect me to the HUB, it would be brought up to date!
Well... it says if this age the behavior to me waited of script, ok?
Respectfully,
7P-Darkman
Yes, that is the correct behaviour, as $UserCommand support is broken in DC++-based clients and I don't know if dynamic rightclick menus would work. I will however ask PPK.
If it is possible, I can add a proxy table that will track changes so we can regenerate the menu dynamically upon the changes of Types table.
Hello Bastya...
Thanks for the explanation.
Well... I do not obtain to add itens in the new categories that I created... No erros... only not work:
[11:56] 7P-Darkman (127.0.0.1) > <7P-Darkman> !addrel Musicas Full albun - Evanescense - The Open Door|
Into main chat:
[11:56:00] <post-it_memo> yea right, like i know what you got 2 add when you don't tell me!
[11:56] 7P-Darkman (127.0.0.1) > <7P-Darkman> !releases Musicas|
Into main chat:
[11:56:28] <post-it_memo> There are no releases yet, please check back soon.
What it can be happening?
Respectfully,
7P-Darkman
Works for me.
Quote[17:27:27] *** Server command: !addcat Console Console
[17:27:39] *** Server command: !addrel Console crash bandicoot
[17:27:44] <post-it_memo> crash bandicoot is added to the releases as Console
[17:27:44] <post-it_memo> [TGA-OP]bastya_elvtars added to the Console releases: crash bandicoot
Quote[17:36:30] *** Server command: !addrel music Full albun - Evanescense - The Open Door
[17:36:34] <post-it_memo> Full albun - Evanescense - The Open Door is added to the releases as music
[17:36:34] <post-it_memo> [TGA-OP]bastya_elvtars added to the music releases: Full albun - Evanescense - The Open Door
Note that release deletion won't work. I'll commit a fix later tonight.
Could we please continue at the development section of my board (http://lawmaker.no-ip.org/forum/forum.php?id=29&usebb_sid=86fe0216280bf9bddd6eb880717df802)?
Of course, Bastya... no problem
Just to notify you all:development is going rapidly, now we are at a quite stable alpha version.
Please express your opinions here (http://lawmaker.no-ip.org/forum/topic.php?id=130) and here (http://lawmaker.no-ip.org/forum/topic.php?id=129).
Quote from: bastya_elvtars on 22 March, 2007, 22:47:26
Just to notify you all:development is going rapidly, now we are at a quite stable alpha version.
Please express your opinions here (http://lawmaker.no-ip.org/forum/topic.php?id=130) and here (http://lawmaker.no-ip.org/forum/topic.php?id=129).
Hi Bastya,
I prefer the requests by catagory!
QuoteShould all releases belonging to a specific category be deleted upon category deletion?
Euh... I think so. But you also can put a specific nr to every release, and then it will not be necessary.
I've checked the alpha version with BCDC and with zK++. I don't get it worked. Maybe there are some probs with the code, I don't know. But I might do something wrong, if so... please help me out. First BCDC++:
A. Downloaded: http://fleet.4242.hu/BCDC/inst/Setup_0699ax.exe
B. Downloaded https://opensvn.csie.org/PtokaXScripts/FreshStuff3/branches/5_0/
C. Step B in BCDC++/scripts
D. In startup.lua dofile added: dofile( DC():GetAppPath() .. "/scripts/freshstuff5.lua" )
Result: [10:22] LUA ERROR: c:\x\BCDC++\/scripts/freshstuff5.lua:80: module 'bcdc' not found:
no field package.preload['bcdc']
no file 'freshstuff/bcdc.lua'
no file 'freshstuff/libs/bcdc.dll'
This version uses lua 5.0. Indeed, you said that it only should run with LUA 5.1. But how can I get this in BCDC++? zK++ gives also errors:
LUA ERROR: ...\scripts\freshstuff5.lua:74: attempt to index global `package' (a nil value)
This if for your information.
Can you please help me to run this clientside?Thanx in advance.
At the moment only PtokaX is supported. Mutor has just started on the clientside part.
Ok... thanx. I will check that when there is a testversion (beta, or what so ever) available. It is nice scripted, keep it comin Bastya and Mutor!
any news on this baby?
I have added a few things, check my forum (http://lawmaker.no-ip.org/forum/forum.php?id=29). Sorry for the plug, I just do not want to post again.
The actual nightly build can directly be downloaded at:
http://rnrdoctor.sytes.net/~szg/freshstuff-nightly/freshstuff3v5.tar.bz2
It updates every 5:00 (GMT1). It's an SVN export.
You'll need WinRAR, 7-Zip, IZArc or similar software to extract the tarball.
FreshStuff3 is now licensed under the terms of CDDL 1.0. GPL does not allow for using the code with code licensed under other licenses, which is bad. CDDLd code can be used as a plugin for anything. Note that CDDL is also viral and requires you to mark your modifications. Alternative licensing is possible if you can agree with me. :-P
I am going to review my other scripts' codes and relicense them.
Well, the nightly builds seem usable now. Here is the log from the last few commits (more than 50% of the code has been rewritten):
- added: show number of new releases at the given day in the bot's desc (requested by Stormbringer)
- added: table.load returns an empty table if a non-existing/corrupt file has been specified
- added: the CDDL license to docs/
- added: a little readme
- fixed: OnReqFulfilled() in ptokax.lua
- fixed: in ptokax.lua the whole userobject was passed to functions instead of nicks only
- fixed: removed SaveReq() and stupid old fileformat, using table.save for now
- fixed: removed dollar sign check
- fixed: made requester fully work at last (lots of fixes here and there incl. but not limited to the above ones)
- fixed: category deletion checks for the OnCatDeleted()'s existence before calling it
- changed: if the request category or ID does not exist, the release won't be added either
- changed: multiple requests can be deleted at once
- changed: table.load and table.save for requests
- changed: made the PtokaX OnTimer() function a timer event
- changed: rewrote the event handlers (thanks to Luiz Henrique de Figueiredo and Jérôme Vuarand for hints)
- changed: using table.save/load for requests
- changed: renamed freshstuff5.lua to freshstuff.lua
- changed: updated development documentation (unfinished)
- changed: new host module loader, it loads host module dependencies, such as Lua or C libraries
- changed: freshstuff is now licensed under the terms of CDDL 1.0. GPL does not allow for using the code with code licensed under other licenses, which is bad. CDDLd code can be used as a plugin for anything. Note that CDDL is also viral and requires you to mark your modifications. Alternative licensing is possible if you can agree with me. :-P
- changed: rewrote the event handler routine to a really failsafe one, as predicted in the previous revsion :-)
Please test and post feedback to my forum (http://lawmaker.no-ip.org/forum/).
The latest nightlies have proven to be quite usable. Please test the bot, things should work now.
This is a pre-beta version, please test it and report bugs here (http://lawmaker.no-ip.org/forum).
I have download this script but your forum is offline bastya_elvtars :-\
Yes, unfortunately that one is offline since I had no time yet to transfer it from the b0rked server (whose CPU fried, but no data has been lost). I'm gonna work on it. until it gets done, please post here.
script runs fine =)
One thing i miss is when a user adds a request, the script don?t announce that in main. I mean like User blabla added Release-2007-KK Under Cat.. Also it would be nice to have announce in WhenAndWhatToShow.. so it spams once per day all requests
Quote from: flake on 14 September, 2007, 02:21:01
script runs fine =)
One thing i miss is when a user adds a request, the script don?t announce that in main. I mean like User blabla added Release-2007-KK Under Cat.. Also it would be nice to have announce in WhenAndWhatToShow.. so it spams once per day all requests
Well, I am going to release 5.0 and start working on 5.1 soon (new Lua API) which will get minor feature requests stuffed in. Until then, I'll write a module for 5.0 that does exactly this.
Nice :)
Some other things:
When a user does !releases Trance it replies with Syntax freshstuff/kernel.lua:396: attempt to concatenate global 'i' (a nil value)
When hub is restarted, freshstuff.lua won?t restart by default, so i have to mark in in scripts tab for it to start.
Add req / show reqs / del req , not showing in rightclick.
OK, you seem to be using an older version. I'll prepare an RC soon (and transfer my forum too).
ok, forum is still offline, hmm where can i get the most new version? no good to test on old one hehe
Attached the latest revision.
freshstuff.lua:110: module 'pxlfs' not found:
no field package.preload['pxlfs']
no file 'freshstuff/pxlfs.lua'
no file 'freshstuff/lib/pxlfs.dll'
in your attachment, I found the dll files but not the .lua
pxsqlite3.dll and pxsqlite3.tds should be in the freshstuff\lib directory, I just keep forgetting that.
ok, where do i find these files (pxsqlite3.dll and pxsqlite3.tds)?? have no lib folder either.. If you could make another attachment with all files included? =)
Attacherd the latest revision with libs. It is for the latest stable PtokaX, won't work with recent versions.
Great script and thank you Bastya! So far so good :)
Two things:
1. Is BCDC supported yet? It works fine until I right click, then I get caught in a loop.
2. topadders is not working, unless it is my fault?
Quote from: dontwalkpast on 20 September, 2007, 09:15:101. Is BCDC supported yet? It works fine until I right click, then I get caught in a loop.
I don't really understand. Haven't tested rightclick thoroghly, but care to elaborate this a little bit?
Quote from: dontwalkpast on 20 September, 2007, 09:15:102. topadders is not working, unless it is my fault?
Last time I checked it worked. I might have broken something, though.
There is a rightclick issue in BCDC. I reported it about two years ago to the dev.
/Snooze
Quote from: bastya_elvtars on 20 September, 2007, 10:09:17
I don't really understand. Haven't tested rightclick thoroghly, but care to elaborate this a little bit?
This script seems to work ok with BCDC as long as you only use command line. As soon as I right-click main page on a username, it will give me a "Releases\add an item to the\category" pop-up. Once that happens, that pop-up will loop forever. I can "x" "ok" "close" that pop-up but another appears immediately. I cannot click off it to do anything in BCDC or even close program normally.
Quote from: bastya_elvtars on 20 September, 2007, 10:09:17
Last time I checked it worked. I might have broken something, though.
I have added releases and asked to see the top 5 adders. Everytime it only gives me, "The top 0 release-addders sorted by the number of releases are:". It never shows any topadders. Also there is a typo in "addders".
Thanks once again Bastya!
Still problem in new script:
when i try !releases Metal
Syntax freshstuff/kernel.lua:396: attempt to concatenate global 'i' (a nil value)
Requestfunktion runs fine exept it don?t spam anything, and not showing in rightclick:/
I tried Top-Adders, no loop problem here.
thx bastya
Topadders does work ok, I have to restart script to update it. But it works.
Still problem with right-click in BCDC.
Script works perfect with latest shakespeer client which is good for my mac users :)
yes. same here. Have to restart for top adders to update
Thanks for the reports, guys. I'll try to fix these tonight.
Hi Bastya, this script works good with Apex and Linux clients. Very nice! Is there a list of compatible/noncompatible clients for Freshstuff?
One more bug to report, the command !releases <type> is broken. However, !releases <type> <number> works good.
Thanks again, my hub is very happy with Freshstuff :)
I have developed and tested it under CZDC and all is fine there. I am going to test it on BCDC and DC++ as well.
sofar the scripts works just fine! wooOOT
there's only a few mising userrightklikmenu links that are not working..
like show relaeases (cat) >>all...
this goes for each cat..
it will returen in mainchat >!releases music...
thats goes for each cat..
thnx ...
i hope ya can fix it though :)
as i told ya in a pm this simply rocks...
Hello guys,
I have not had time to test this yet but today I will.
Hello,
The releases bug has been fixed. I'll post an updated kernel.lua soon. I cannot reproduce the BCDC bug since both crash on my laptop before I could join any hub, but I have triple-checked the rightclick on CZDC and it works fine, so looks like the latest versions of BCDC and DC++ are broken BADLY.
that would be real cool!
thank you...bastya_elvtars....
will ad it soon to my stuff...
and try it out on both..
OK, folks. Attached is a zip file with the changed files. Extract it to your scripts folder (overwrite old files) and restart the scripts. No reconfiguration is necessary.
If, and only if you want to install the whole freshstuff package (i. e. you haven't had it before), you have to get the RC1 zip (http://forum.ptokax.org/index.php?action=dlattach;topic=5932.0;attach=712) first, extract it to the scripts folder then extract this zip into the scripts folder.
If no objection comes till Wednesday afternoon, this code is going to be the final release, with a splitted configuration.
Changelog:
fixed: top release adders get updated on release addition and removal, not just on script restart. Also removed topadders remnants from kernel.lua. Now extras.lua scans AllStuff and calculates top release adders on startup.
fixed: show by category crash (bloody typos)
Thanks to flake, P_pan and dontwalkpast for reporting these bugs.
Oh, and a warning: TEST, TEST, TEST! I'll make I am almost ready with a PtokaXNew module, so it will be able to run with the old and the new API as well. :-)
A surprise for you. This is the required stuff for FreshStuff3 to work with 0.3.6.0f. Just extract it into the scripts folder. It will not overwrite anything. You have to reconfigure the whole script, though, but you can use FreshStuff with the latest PtokaX betas, which some folks may consider cool. Note that the API is incomplete and those versions are considered unstable, so an upgrade may render FreshStuff unusable.
But hey, there are brave people. They are encouraged to test this. The recompiled PXLFS libraries are also included.
You can always revert to the old PtokaX. It will not affect FreshStuff, since it runs perfectly with the old AND the new PtokaX API. This is due to the modular design I have worked on for more than a year.
This PtokaXNew module is not part of the script, though (and won't be until the new API is in beta stage). And it is beta as well, so handle it with care. :)
Download the module for 0.3.6.0f (http://rnrdoctor.sytes.net/~szg/freshstuff-nightly/freshstuff-pxnew.zip)
Downloaded the changedfiles.zip and all works like a charm now :D
Now i just miss the requestpart :P ( rightklick & that it should spam in main as users adds requests )
Very good work! A better rls bot can?t be found :P
Quote from: flake on 24 September, 2007, 21:13:13
Now i just miss the requestpart :P ( rightklick
What do you mean with this rightclick thing?
running Ptokax 0.3.6.0 with ur latest build and fix...
and i tell ya it rocks!
anything is working as it should
thanks to You :)
respect.... ;D
The request function should show in rightklick-menu I mean, for example:
Requests Show Requests
Add Request
Fill Request
Delete Request
Quote from: flake on 25 September, 2007, 11:40:14
The request function should show in rightklick-menu I mean, for example:
Requests Show Requests
Add Request
Fill Request
Delete Request
I am going to add this too.
BTW I have restarted the LawMaker site (http://lawmaker.no-ip.org), too.
was wondering if it was possibble to add a extra button on userrightklik menu....
where ya can add a website intoo
so when they klik on it the web will show?
just a thought though....
1) Separate link support is not implemented. You can do !addrel movie the good the bad and the ugly -- http://imdb.com/title/tt0060196/
2) URLs do no get converted into clickable links in rightclick.
Oh, and since this topic is already huge and messy, I am locking it. I'll only open a new topic if the LawMaker Site is down for some reason (oh wait... they are on the same server with the luaboard :P). Please use the forum (http://lawmaker.no-ip.org/modules/newbb/index.php) there.
Download here (http://lawmaker.no-ip.org/modules/PDdownloads/viewcat.php?cid=1).
Libraries are included. Will not work with PtokaX 0.3.6.0e and newer.