Ascii Bug
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Ascii Bug

Started by Syphrone-NL, 10 May, 2006, 19:03:12

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Syphrone-NL

Found again a error in the new 1.0.1 octavo

Quote
Rincewind's Octavo/Functions.lua:813: attempt to call global 'CalculateShareSize' (a nil value)

Get this error when i typ +ascii hub
or any other ascii file
i got as min share 0gb

and i think there needs to be a little change in the help file
you see:
Quote
+loadgun? ? -? ? ? ?start roulette
..........
..........
..........
..........

+startmonty? ? -? ?start roulette
maybe the last Start Roulette changin in Start 3 Card Monty? so all users now what is what.
Owner of 2 public hubs in Palace Network ---> www.palace-network.nl

Rincewind

Yeah the three card monty help is wrong. I can correct that easily.

I have the CalculateShareSize function in SecurityFunctions which is not part of Octavo. If yo add the following code into the bottom of Functions.lua it will resolve the problem;

----------------------------------------------------------------------------
-- Function Calculate Share Size
----------------------------------------------------------------------------
function CalculateShareSize(iData)
	
	local iShare = ""
	local sShare = ""
	if string.len(iData) < 7 then
		iShare = iData / kb
		iShare = string.format("%.2f", iShare)
		sShare = iShare.." KiBs"
	elseif string.len(iData) < 10 then
		iShare = iData / mb
		iShare = string.format("%.2f", iShare)
		sShare = iShare.." MiBs"
	elseif string.len(iData) < 13 then
		iShare = iData / gb
		iShare = string.format("%.2f", iShare)
		sShare = iShare.." GiBs"
	else
		iShare = iData / tb
		iShare = string.format("%.2f", iShare)
		sShare = iShare.." TiBs"
	end
	
	return sShare
	
end


I will resolve this properly in the next version.

SMF spam blocked by CleanTalk