Page 4 of 4
Re: Smart Bone Helpers by Ramón López
Posted: Tue Oct 14, 2014 5:35 pm
by Rai López
KuzKuz wrote:Hi, need this wonderful script fix for ASP 10.1.1. Thanks!
...Oh, yes! Thankfully I already made a quick fix for this, so now it's only an upload matter. Here is the new link:
It is kind of a "mend" but it should do the job for 10.1.1, anyway... let me know whatever you consider appropriate. Greetings!
Re: Smart Bone Helpers by Ramón López
Posted: Tue Oct 14, 2014 5:51 pm
by Stan
Ramón López wrote:It is kind of a "mend" but it should do the job for 10.1.1, anyway... let me know whatever you consider appropriate. Greetings!
Hey Ramon, I just want to add my 2 cents. Here's how I solved the same problem in my scripts:
Code: Select all
if moho.AppVersion ~= nil then
local sVersion = string.gsub(moho:AppVersion(), "^(%d+)(%.%d+)(%..+)", "%1%2")
version = tonumber(sVersion)
end
That simple pattern will always return an appropriate number from any string versions like "11", "11.1", "11.1.2.1111", etc.
Re: Smart Bone Helpers by Ramón López
Posted: Tue Oct 14, 2014 6:25 pm
by Rai López
Stan wrote:Hey Ramon, I just want to add my 2 cents. Here's how I solved the same problem in my scripts:
Code: Select all
if moho.AppVersion ~= nil then
local sVersion = string.gsub(moho:AppVersion(), "^(%d+)(%.%d+)(%..+)", "%1%2")
version = tonumber(sVersion)
end
That simple pattern will always return an appropriate number from any string versions like "11", "11.1", "11.1.2.1111", etc.
Wow! I'll study that thanks!
I'm currently out of shape about all this and I had to make a quick fix that I knew it was not going to be perfect under all the possible situations (as someone pointed afterwards), but I left that way because it was the
nearest solution I could find at that moment. Of course, I always wanted a simpler and more trustworthy solution, something more like yours seems to be, at least at first sight and for what you say, because I have to re-learn how to deal with strings as soon as I stop doing in a daily basis... Anyway... it's so/very welcomed! So thanks again
Re: Smart Bone Helpers by Ramón López
Posted: Wed Oct 15, 2014 6:58 am
by KuzKuz
Ramón López wrote:KuzKuz wrote:Hi, need this wonderful script fix for ASP 10.1.1. Thanks!
...Oh, yes! Thankfully I already made a quick fix for this, so now it's only an upload matter. Here is the new link:
It is kind of a "mend" but it should do the job for 10.1.1, anyway... let me know whatever you consider appropriate. Greetings!
Thanks!
Re: Smart Bone Helpers by Ramón López
Posted: Wed Oct 15, 2014 9:18 am
by Lukas
Thanks for the quick fix Ramón!
Re: Smart Bone Helpers by Ramón López
Posted: Wed Oct 15, 2014 10:55 am
by Rai López
You're all welcome!
Re: Smart Bone Helpers by Ramón López
Posted: Thu Feb 25, 2016 2:30 am
by sillyanimate
um where do i put the pictures??!??!