Author Topic: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support  (Read 19930 times)

0 Members and 1 Guest are viewing this topic.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
After a long wait, 5.0.2 is here: https://bitbucket.org/freshstuff3/freshstuff3/downloads/5.0.2.zip

Just extract over the previous install (if you have one), nothing will be overwritten. Compatible with PXLUA 5.1 as well as 5.3.
Version 5.5 is in the works, there are features being actively implemented.

Here is the changelog. More updates later, stay tuned!

Quote
added: LoadCfg() config loader function
   - checks for config files and if missing creates a default one
   - makes upgrading easier
   - every module can load its own config easier
   - you can now instal FreshStuff3 over your current install.
changed: Lua 5.3 compatibility (also compatible with 5.1)
   - removed deprecated functions or worked them around
   - reworked for new module system
   - Windows: changed for the "universal" LFS.dll (included)
changed: removed ***s form SendOut()s
added: directories 'lib' and 'data' with readmes
   (kinda forced as mercurial does not handle empty dirs,
   makes future upgrading/deployment easier)
« Last Edit: 28 June, 2017, 14:52:41 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

PtokaX forum


Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #1 on: 26 October, 2018, 02:19:52 »
I translated a lot of scripts and ptokax itself to use, however in the case of this script, I must have messed up something I should not, and the function of automatically announcing the latest and new releases defined in the script does not work, could you help me?

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #2 on: 04 January, 2019, 20:39:25 »
I translated a lot of scripts and ptokax itself to use, however in the case of this script, I must have messed up something I should not, and the function of automatically announcing the latest and new releases defined in the script does not work, could you help me?
Well, show me the actual modifications or else I can't really help.(This is why version control should be considered.)
Everything could have been anything else and it would have just as much meaning.

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #3 on: 06 January, 2019, 13:34:48 »
Well, show me the actual modifications or else I can't really help.(This is why version control should be considered.)

Attached.

Offline the-master

  • Triple Ace
  • **
  • Posts: 229
  • Karma: +10/-15
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #4 on: 06 January, 2019, 16:07:28 »
I used the Original, and it didn't chance also, it's not in the translation..  ;)
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #5 on: 07 January, 2019, 00:18:28 »
I used the Original, and it didn't chance also, it's not in the translation..  ;)

I had the impression that it had worked at some point when I used the original.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #6 on: 10 February, 2019, 19:15:44 »
OK guys, just to make it clear: is the automatic announcement failing now? If so, I will move this to bugs.
Everything could have been anything else and it would have just as much meaning.

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #7 on: 11 February, 2019, 11:36:02 »
OK guys, just to make it clear: is the automatic announcement failing now? If so, I will move this to bugs.

For me, yes.

Offline the-master

  • Triple Ace
  • **
  • Posts: 229
  • Karma: +10/-15
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #8 on: 12 February, 2019, 10:47:41 »
On lua 5.3 it failed, so bug for me to
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #9 on: 16 February, 2019, 16:54:35 »
Thanks for the report, I'm gonna look into it then. I cannot move posts because I no longer have any admin/moderator rights.
Everything could have been anything else and it would have just as much meaning.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #10 on: 22 September, 2019, 22:43:32 »
Fixed and will release 5.0.3 soon.
Everything could have been anything else and it would have just as much meaning.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #11 on: 22 September, 2019, 22:53:02 »
In order to quickly apply the fix without downloading the entire package overwrite scripts/freshstuff/ptokaxnew.lua with THIS (press CTRL+S when the file opens in your browser). Then simply restart freshstuff.lua.


Thanks for the report, fellas!
« Last Edit: 22 September, 2019, 22:55:55 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #12 on: 24 September, 2019, 10:53:09 »
In order to quickly apply the fix without downloading the entire package overwrite scripts/freshstuff/ptokaxnew.lua with THIS (press CTRL+S when the file opens in your browser). Then simply restart freshstuff.lua.


Thanks for the report, fellas!

It did not work with me, says he has a problem with ";" the line 58.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #13 on: 24 September, 2019, 14:55:49 »
It did not work with me, says he has a problem with ";" the line 58.


It is always advisable to paste the exact errror message when reporting.


Nevertheless, line 58 is this:

Code: Lua
  1. TmrMan.AddTimer(1000, function (); HandleEvent ("Timer"); end)


which is correct syntax so I have no idea what may be causing the problem (the exact same code is running just fine on my test setup). This line is however not currently used so it is fine to just comment it out/delete it if it seems to cause problems (which it is not supposed to do).
Everything could have been anything else and it would have just as much meaning.

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #14 on: 24 September, 2019, 18:56:58 »

ok

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #15 on: 25 September, 2019, 19:44:07 »
Thank you. Since I am running the same code the only culprit I can think of is Lua 5.1 because I develop and test on 5.3. I have made some amendments. I should be most grateful if you could please grab the updated ptokaxnew.lua and give it a go.


This was a very useful report as it highlights the coding standards I need to keep in order to retain Lua 5.1 compatibility. I have tested the linked file in a Lua 5.1 environment and throws no errors.

« Last Edit: 25 September, 2019, 20:20:44 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

Offline havokdan

  • Junior Member
  • **
  • Posts: 11
  • Karma: +0/-1
Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #16 on: 26 September, 2019, 01:20:46 »
Thank you. Since I am running the same code the only culprit I can think of is Lua 5.1 because I develop and test on 5.3. I have made some amendments. I should be most grateful if you could please grab the updated ptokaxnew.lua and give it a go.


This was a very useful report as it highlights the coding standards I need to keep in order to retain Lua 5.1 compatibility. I have tested the linked file in a Lua 5.1 environment and throws no errors.

Its ok now, thanks.  :)

PtokaX forum

Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Reply #16 on: 26 September, 2019, 01:20:46 »