PtokaX forum

Stuff => Offtopic => Topic started by: Walazo on 08 April, 2006, 19:00:21

Title: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 08 April, 2006, 19:00:21
Hi everybody,
Can anyone help me to run BirthdayMan script on Voltron server. I have use script version from http://forum.ptokax.org/index.php?topic=5863.0. no errors on server start. I tested others scriptes in Lua 5.0X to see but without success.  No command functions except the commands of Voltron.  If somebody has an idea, I would  :).  Thank you.

Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Typhoon on 09 April, 2006, 06:15:45
it's moved ...
and i also removed the other identical post..

Walazo : please continue it in this section since it is kind of offtopic compared to this board ..

Typhoon?
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 09 April, 2006, 10:25:39
Hi Mutor, Hi Typhoon?,

Thanks for your responses and sorry about this topic not placed in to an appropriate section.
Ok Mutor, I will try to find and give you necessary infos.
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 09 April, 2006, 11:06:44
Here is the package: http://www.mpps-web.com/mambo/downloads/Voltron.0.35.Release.zip

You can find the API functions in #startup.lua under mpps\scripts\
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 09 April, 2006, 11:29:08
Hi jiten
Thanks for your contribution. You can find all need to run Volton Server and scripts in this link : http://jugurthax.free.fr/MppsVoltronServer/. 
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Markitos on 09 April, 2006, 11:58:26
Is voltron better than ptokax  ;D ???
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 09 April, 2006, 13:29:59
Voltron Server is a good server with many options. Look at http://www.mpps-web.com/mambo/index.php?option=com_content&task=view&id=13&Itemid=2 to view screenshots. All users with admin role can manage the hub. Ptokax is a good one server but voltron can run on Linux, Win and Mac OS.
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: bastya_elvtars on 09 April, 2006, 16:36:17
Quote from: Walazo on 09 April, 2006, 13:29:59
Voltron Server is a good server with many options. Look at http://www.mpps-web.com/mambo/index.php?option=com_content&task=view&id=13&Itemid=2 to view screenshots. All users with admin role can manage the hub. Ptokax is a good one server but voltron can run on Linux, Win and Mac OS.

Good, good, but seems undocumented. I think everything is as worthwile as its documentation is.
BTW not every piece of software is good just because of being multiplatform - and not Voltron is that's multiplatform but MPPS - Voltron is just a (otherwise fine) extension to it.

QuoteIt can be run in any OS environment like :
- Windows
- Linux
- Mac


Is this *any*? Where is *BSD, which is the best platform for a server?
As the soft is closed-source, no hope for a *BSD version unless the author wants to make one.
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Typhoon on 09 April, 2006, 18:24:22
Quote from: Walazo on 09 April, 2006, 13:29:59
Voltron Server is a good server with many options. Look at http://www.mpps-web.com/mambo/index.php?option=com_content&task=view&id=13&Itemid=2 to view screenshots. All users with admin role can manage the hub. Ptokax is a good one server but voltron can run on Linux, Win and Mac OS.

it is actually possible to run PtokaX in VmWare under linux... vmware emulates a windows drive where you can install a win version and under that run PtokaX .. and evenmore windows should be more stable when running "on" a linux distro.. i tested it a while back and it worked quite good..

Typhoon?
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 09 April, 2006, 19:13:06
Ok. Yes, Voltron is just a extension of multiplatform MPPS.
If you have another server like voltron that support Lua language (under linux) I am interested. But i need to run BirthdayMan script and need capability management with other admin.

Thanks to all :)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: bastya_elvtars on 09 April, 2006, 21:56:56
Quote from: Mutor on 09 April, 2006, 17:47:26
Quote from: bastya_elvtars on 09 April, 2006, 16:36:17
As the soft is closed-source, no hope for a *BSD version unless the author wants to make one.

Well thats where it matches PtokaX exactly   :P

You keep forgetting that the current development is done by another person who did not know the whole code before. Though PXLUA is opensource, and AFAIK it's a question of time for PX to follow (PPK also develops an opensource project: CZDC++.)
Moreover, can you see 'multiplatform' being mentioned together with PtokaX? :)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Psycho_Chihuahua on 09 April, 2006, 22:04:47
Well i got PtokaX running on Ubuntu (linux) a couple of months ago ;) would still have it there if i hadn't gotten rid of my server
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 10 April, 2006, 11:59:33
Quote from: Walazo on 08 April, 2006, 19:00:21
Hi everybody,
Can anyone help me to run BirthdayMan script on Voltron server. I have use script version from http://forum.ptokax.org/index.php?topic=5863.0. no errors on server start. I tested others scriptes in Lua 5.0X to see but without success.? No command functions except the commands of Voltron.? If somebody has an idea, I would? :).? Thank you.



Do you want it urgently? If yes, I'll post cenobyte's version with the necessary API changes later today, but, with a lot of things to be modded.

I'm asking this because, will release a new and rewritten version of this bot for PX, and at the same time, for Voltron.
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 10 April, 2006, 17:28:02
Hi jiten,

It's not urgently, but i will appreciate if you can make same script.  All the members and other owner's hub will be happy to have this. Thanks a lot.
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 10 April, 2006, 19:28:58
Quote from: Walazo on 10 April, 2006, 17:28:02
Hi jiten,

It's not urgently, but i will appreciate if you can make same script.? All the members and other owner's hub will be happy to have this. Thanks a lot.

Ok then. Will try to get some spare time to finish it (in a week or so).
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 12 April, 2006, 09:52:48
I will be posting the MPPS/Voltron version of Birthday Main v.4.0 later today ;)
Title: BirthdayMan v4.0 - LUA 5.0.2 for MPPS/Voltron
Post by: jiten on 12 April, 2006, 17:57:17
You can find the code attached to this post. Have fun!
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 12 April, 2006, 20:22:05
Hi jiten,

-{The script is gooooooooood}-

Thanks a lot and I am very very :) .? The script functions under the Voltron server :).? All the functions run except remove date and not display message "happy birthday" for the operators or admin. Ok, now we can use it in the Build server. Thanks again.

msg from JBigwood2> merciiiiiiiiiiiiiii jiten  ;) :)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 13 April, 2006, 07:07:55
Quote from: Walazo on 12 April, 2006, 20:22:05
All the functions run except remove date and not display message "happy birthday" for the operators or admin.

Can you tell me more about these reports? So, that I can look into them.
By the way, I'm glad you like it :)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 13 April, 2006, 20:03:42
Quote
Can you tell me more about these reports? So, that I can look into them.
Quote

Hi jiten  :)
There's a reports about BirthdayMan script for voltron server (see attached file). Thanks again for your contribution.
@+++  ;)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 13 April, 2006, 20:17:36
Quote from: Walazo on 13 April, 2006, 20:03:42
2) !delbirthday 19/05/1970
<B-Day> *** Error: 19/05/1970's Birthday hasn't been added to the DB yet!

You should delete by user's nick. Example: !delbirthday Walazo

And regarding the other reports, I'll fix them as soon as possible.

Best regards
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 13 April, 2006, 21:25:25
Hi jiten
QuoteAnd regarding the other reports, I'll fix them as soon as possible
Ok? 8) ;)

QuoteYou should delete by user's nick. Example: !delbirthday Walazo

the command !delbirthday Userxxx (for example) don't work :
<B-Day> *** Error: Userxxx's Birthday hasn't been added to the DB yet!

Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 14 April, 2006, 07:44:45
Quote from: Walazo on 13 April, 2006, 21:25:25
the command !delbirthday Userxxx (for example) don't work :
<B-Day> *** Error: Userxxx's Birthday hasn't been added to the DB yet!

This message will only appear if Userxxx hasn't added his birthday to Birthday Man's DB.

As you can see, It works fine here:

Quote
<jiten> !mybirthday 25/07/1983
<B-Day> *** jiten's Birthday is on Jul 25, 1983! I didn't know jiten was a Leo!
<B-Day> *** New Birthday added by scorpio on: jiten 25/07/1983
<jiten> !delbirthday jiten
<B-Day> *** Success: jiten's Birthday was successfully deleted from the DB!
Title: BirthdayMan v4.02 - LUA 5.0.2 for MPPS/Voltron
Post by: jiten on 14 April, 2006, 12:53:20
Here you go:

--[[

Birthday Man v.4.02 - LUA 5.0.2 by jiten for Voltron (4/14/2006)

Based on: BirthdayMan v 3.5 by Herodes and mods by C??o?y??

Recent Changelog:

Rewritten: Whole code;

Changed: Command structure to tables (Function, Permissions, RightClick and Ddescription);
Changed: B-Day table structure to Julian values;
Removed: File content that was sent on B-Day;
Removed: Allowed Age;
Removed: Topic updater (maybe in the future);
Changed: Whole B-Day counting system to os.*;
Changed: Many other mods that can't recall at the moment (4/12/2006);
Added: addbirthday command - requested by TT (4/13/2006);
Fixed: Zodiac Sign Dates - thanks to Walazo;
Changed: Error message on empty !bornon result - thanks to Walazo;
Changed: !birthdays' content structure to fix bad tabbing;
Fixed: OnConnect Birthday and RightClick - thanks to Walazo (4/14/2006)

]]--
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 14 April, 2006, 22:01:21
Thanks a lot. The new version was tested. It's ok but still errors.

In the first run script :
Quote<Voltron> *** Restarting Scripts
- [19:20] <ERROR> Lua error : voltron.lua:1983 : scripts/BirthdayMan.v4.02.lua:31: malformed number near `4.02'


iVer = 4.02 added "" to variable ==> iVer = "4.02"
Script run now

See attached file for others errors.

Best regards
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 14 April, 2006, 22:34:36
Thanks again for the reports.

I've already found the problem with the del command.
The code was missing some string.lower's, but, that has already been fixed.

However, I don't understand what you mean with this:

result !bornon command with Fast user

What's wrong with the output of this command?
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 15 April, 2006, 11:47:06
Hi jiten,

QuoteHowever, I don't understand what you mean with this:
result !bornon command with Fast user
What's wrong with the output of this command

For example, in the DB file, you have two users with
3   *Online*      Pisces      jeu      fév 19, 1965      Paxxxxxx
4   *Online*      Taurus      mar      mai 19, 1970      Fast

The command !bornon display this result with Fast user

<B-Day> =================================================================================
                    People born in the same "Field" as yours:
Field:   Nick:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Year   Paxxxxxx
Day   Paxxxxxx

There's a difference in the year with user Fast and Patxxxxxx. It's ok with the day.  Perhaps of no importance  ::).

;)

Title: Birthday Man v.4.04 - LUA 5.0.2 for MPPS/Voltron
Post by: jiten on 15 April, 2006, 18:01:27
--[[

Birthday Man v.4.04 - LUA 5.0.2 by jiten for Voltron (4/14/2006)

Based on: BirthdayMan v 3.5 by Herodes and mods by C??o?y??

Changelog:

Rewritten: Whole code;

Changed: Command structure to tables (Function, Permissions, RightClick and Ddescription);
Changed: B-Day table structure to Julian values;
Removed: File content that was sent on B-Day;
Removed: Allowed Age;
Removed: Topic updater (maybe in the future);
Changed: Whole B-Day counting system to os.*;
Changed: Many other mods that can't recall at the moment (4/12/2006);
Added: addbirthday command - requested by TT (4/13/2006);
Fixed: Zodiac Sign Dates - thanks to Walazo;
Changed: Error message on empty !bornon result - thanks to Walazo;
Changed: !birthdays' content structure to fix bad tabbing;
Fixed: OnConnect Birthday and RightClick - thanks to Walazo (4/14/2006)
Changed: Settings.iVer;
Added: string.lower checks - thanks to Walazo (4/14/2006)
Fixed: !bornon Year function - thanks to Walazo;
Added: sNick to each index - requested by TT (4/15/2006)

]]--
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: Walazo on 16 April, 2006, 20:40:34
Hi jiten  ;),

Thanks again for the new version. At the first, some command (!birthdays, !delbirthday...) don't run  ???.
I have tested a solution : delete the old tBirthday.tbl. Then, all scripts are restarted. Now, all works fine.   :) :-*

Thanks special from Jbigwood2  :)
Title: Re: Run BirthdayMan script on Voltron server (Lua 5.02)
Post by: jiten on 17 April, 2006, 08:13:19
You're quite welcome, mate.

Regards