lotrointerface.com
Search Downloads


Go Back   LoTROInterface > Outdated LotRO Interfaces

Category: Outdated LotRO InterfacesCalculator
Interface Information
Download
How do I install this? (FAQ)
Name: Calculator   Popular!
Author:
Date: 09-08-2010 05:24 PM
Size: 2.79 Kb
Version: 0.4
Rate File: 5 out of 5 with 4 votes  
Pictures
Click to enlarge 

Views: 0
Size: 96.38 Kb
Dimensions: 1424 x 822
Vamli using the calculator under the TA bridge
 
Description
Calculator

A basic calculator. I'm not sure when exactly it's useful, but it beats alt-tabbing out of the game or (god forbid) keeping one next to the computer. Also, it was good practice for me, I'm looking forwards to making other plugins.

If you have any comments, suggestions, bug reports, please tell me and I'll do my best to please you.

Features :
  • Backspace
  • Addition, Substraction, Multiplication, Division
  • Highlights current operation
  • Shows subtotal
  • Lots of precision
  • Saves window position on an account basis


Stuff I'd like to add :
  • Command list for showing/hiding window
  • Entering numbers through numpad as well
  • Window scaling
  • Maybe some other functionality (save number, exponents, square root, etc..) Please let me know if anything seems important to add.
  • Suggested features (That's your job!)
File Statistics
User Rating:
5 out of 5 with 4 votes
Downloads: 23666
Views: 83865
Favorites: 9
Uploaded By:
 
Last Modified: 09-15-2010 08:33 AM by Willby    

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 09-11-2010, 12:48 PM  
Bryandt
The Wary

Forum posts: 0
File comments: 1
Uploads: 0
What is the command list for this plugin?
Bryandt is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-14-2010, 08:06 PM  
Olenn
The Undying
 
Olenn's Avatar
Interface Author - Click to view interfaces

Forum posts: 47
File comments: 10
Uploads: 1
This is Olenn from www.lotroui.com. I posted a video review of your plugin on the site. I am still working out the bugs so the quality is not the best yet, but I will redo it when I get a chance.

Thanks for the great plugin and keep up the good work!!!
Olenn is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-15-2010, 08:33 AM  
Willby
The Wary
 
Willby's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 1
Uploads: 1
There isn't a command list, really just a calculator you have to load / unload.

I'll try and look into it though.
Willby is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-06-2010, 08:10 AM  
Kaisoul
The Indomitable
 
Kaisoul's Avatar

Forum posts: 11
File comments: 33
Uploads: 0
hope to see a update with at least the option to show/hide the plugin.
would also be nice to see a toggle to change this from a normal calculator into a scientific version. But really would like to see a working toggle.
Kaisoul is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-17-2010, 03:46 AM  
Ignotus
The Wary
 
Ignotus's Avatar

Forum posts: 1
File comments: 22
Uploads: 0
I agree with needing a way to show and hide the calculator. I can't get it to reshow after I close it other than by using the plugin manager that someone else wrote and reloading all of my plugins using that. After I close it using the X in the corner, typing /plugins load calculator results in Unable to load "calculator". Typing /plugins unload calculator results in Plugin script state "calculator" could not be unloaded. I'm probably not doing the unload command correctly. Regardless, we could use a more graceful way to show/hide it like /calculator or /calculator toggle or /calculator show and /calculator hide. Is a scientific mode really necessary though? Really? Thanks for giving us something to use though. Beats looking around on the desk for my calculator, then trying to hold it in the light of my screen so I can see it.
Ignotus is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-25-2010, 03:29 PM  
Big_H
The Wary

Forum posts: 0
File comments: 5
Uploads: 0
I love the plugin, I use it all the time!

But I was also looking for a way to reopen the calculator window. So I made one myself, keep in mind I'm bad at coding, so while this works on my computer it may not on yours

Main.lua
Add the following at the bottom:
Code:
CalcCommand = Turbine.ShellCommand();

function CalcCommand:Execute( command, arguments )
		calculator:SetVisible( true );
end

Turbine.Shell.AddCommand( "tob;Calc", CalcCommand );


listCommandsCommand = Turbine.ShellCommand();
The command /calc should reopen the calculator window once it has been loaded.
Big_H is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-06-2010, 03:45 AM  
Ignotus
The Wary
 
Ignotus's Avatar

Forum posts: 1
File comments: 22
Uploads: 0
Yes! Thank you for adding the /calc command. Hopefully the author won't get upset. I've been checking back here periodically for updates to the addon hoping for an update for just this particular reason and you have solved it. It works fine on my system. I use the Shady plugin manager and was previously having to reload all of my plugins every time I wanted to redisplay the calculator, now I just type /calc and it's there.
Ignotus is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-06-2010, 10:52 PM  
Calion
The Wary

Forum posts: 1
File comments: 7
Uploads: 0
Question Doesn't work

When I try to load Calculator, I get
...nline\Plugins\Willby\Calculator\CalculatorWindo w.lua:1: Unable to resolve package "Turbine.Debug".
... Rings Online\Plugins\Willby\Calculator/__init__.lua:1: Failed to import package "Willby.Calculator.CalculatorWindow".
... the Rings Online\Plugins\Willby\Calculator\Main.lua:3: Failed to import package "Willby.Calculator".

Am I doing something wrong, or is this just broken?
Calion is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-07-2010, 03:31 PM  
Calion
The Wary

Forum posts: 1
File comments: 7
Uploads: 0
Post Re: Doesn't work

Quote:
When I try to load Calculator, I get
...nline\Plugins\Willby\Calculator\CalculatorWindo w.lua:1: Unable to resolve package "Turbine.Debug".
... Rings Online\Plugins\Willby\Calculator/__init__.lua:1: Failed to import package "Willby.Calculator.CalculatorWindow".
... the Rings Online\Plugins\Willby\Calculator\Main.lua:3: Failed to import package "Willby.Calculator".

Am I doing something wrong, or is this just broken?
Okay, I figured it out. You've got to install the example scripts from Turbine. Then it works fine.
Calion is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-12-2010, 12:02 PM  
Zelda
The Wary

Forum posts: 0
File comments: 1
Uploads: 0
Just wrote one

What is the command list for this plugin?

There is no command list for this plugin. I just wrote one that should suit everyone. Replace everything in Main.lua with this code:
Code:
import "Turbine"
import "Turbine.UI"
import "Willby.Calculator";

calculator = CalculatorWindow();
calculator:SetVisible( true );

CalcCommand = Turbine.ShellCommand();

function CalcCommand:Execute(cmd, args)
	if ( args == "show" ) then
		calculator:SetVisible( true );
	elseif ( args == "hide" ) then
		calculator:SetVisible( false );
	elseif ( args == "toggle" ) then
		calculator:SetVisible( not calculator:IsVisible() );
	elseif ( args == "help" ) then
		CalcCommand:GetHelp();
	elseif ( args ~= nil ) then
		calculator:SetVisible( not calculator:IsVisible() );
	end
end

function CalcCommand:GetHelp()
	Turbine.Shell.WriteLine( "Calculator show: Display Calculator Window");
	Turbine.Shell.WriteLine( "Calculator hide: Hide Calculator Window");
	Turbine.Shell.WriteLine( "Calculator toggle: Toggle Calculator Window");
        Turbine.Shell.WriteLine( "Calculator or Calc: Toggle Calculator Window");
end

Turbine.Shell.AddCommand( "calculator", CalcCommand );
Turbine.Shell.AddCommand( "calc", CalcCommand );
Now you can toggle the windows with /calc and /calculator
You can also show it with /calc show or /calculator show
Hide it with /calc hide /calculator hide
toggle is also available with /calc toggle or /calculator toggle

I've added all methods i could think of, so you may choose the one you're used too, enjoy
Zelda is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 11-19-2010, 06:10 PM  
Wicked Mouse
The Undying
 
Wicked Mouse's Avatar
Interface Author - Click to view interfaces

Forum posts: 183
File comments: 108
Uploads: 3
Thanks Zelda

Maybe someone add "memory" to it? So one can do (A + B) * (C + D) or stuff like that

Maybe make a "toggle button" like lotropad?
Wicked Mouse is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-17-2010, 12:28 AM  
xaero
The Wary
 
xaero's Avatar

Forum posts: 0
File comments: 64
Uploads: 0
Re: Just wrote one

What is the command list for this plugin?

There is no command list for this plugin. I just wrote one that should suit everyone. Replace everything in Main.lua with this code:
Code:
import "Turbine"
import "Turbine.UI"
import "Willby.Calculator";

calculator = CalculatorWindow();
calculator:SetVisible( true );

CalcCommand = Turbine.ShellCommand();

function CalcCommand:Execute(cmd, args)
	if ( args == "show" ) then
		calculator:SetVisible( true );
	elseif ( args == "hide" ) then
		calculator:SetVisible( false );
	elseif ( args == "toggle" ) then
		calculator:SetVisible( not calculator:IsVisible() );
	elseif ( args == "help" ) then
		CalcCommand:GetHelp();
	elseif ( args ~= nil ) then
		calculator:SetVisible( not calculator:IsVisible() );
	end
end

function CalcCommand:GetHelp()
	Turbine.Shell.WriteLine( "Calculator show: Display Calculator Window");
	Turbine.Shell.WriteLine( "Calculator hide: Hide Calculator Window");
	Turbine.Shell.WriteLine( "Calculator toggle: Toggle Calculator Window");
        Turbine.Shell.WriteLine( "Calculator or Calc: Toggle Calculator Window");
end

Turbine.Shell.AddCommand( "calculator", CalcCommand );
Turbine.Shell.AddCommand( "calc", CalcCommand );
Now you can toggle the windows with /calc and /calculator
You can also show it with /calc show or /calculator show
Hide it with /calc hide /calculator hide
toggle is also available with /calc toggle or /calculator toggle

I've added all methods i could think of, so you may choose the one you're used too, enjoy


***

Great idea ... what about dropping it to a button like lotropad, tonicbars or AltInv... just a thought, I'm happy w/ a cmdln toggle lol.
xaero is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-23-2010, 04:04 AM  
Ignotus
The Wary
 
Ignotus's Avatar

Forum posts: 1
File comments: 22
Uploads: 0
Re: Re: Just wrote one

Quote:
Great idea ... what about dropping it to a button like lotropad, tonicbars or AltInv... just a thought, I'm happy w/ a cmdln toggle lol.
If you just want a button to toggle the calculator visible, type:
/shortcut 1 /calc
That will cause a button to be placed in quickslot 1. You can change the 1 to any number. I just always use 1 and then move it to whichever quickslot I want and then put my skill back in slot 1 that was there previously. If you want a completely independent button like the one that the travel window plugin has, then I can't do that. Someone would have to code that into the plugin, but that little shortcut will at least give you a quickslot button that will show the calculator when you press it assuming you have made the modifications in this thread for adding the command list.
Ignotus is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 01-19-2011, 10:18 PM  
Intrinsity
The Wary
 
Intrinsity's Avatar

Forum posts: 2
File comments: 3
Uploads: 0
Turbine.Utils error - Does this plugin still work?

Hey all, brand new plugin user here and I am having a problem with this Calculator. I recently downloaded the plugin manager as well as lotropad and the travel plugin and all of those work perfectly. But this one gives me an error and I really want this one to work. Been dreaming of an in-game calculator since 2007...

Anyway, I get the following error on loading attempt:

...nline\Plugins\Willby\Calculator\CalculatorWindo w.lua:5: Unable to resolve package "Turbine.Utils".

... Rings Online\Plugins\Willby\Calculator\__init__.lua:1: Failed to import package "Willby.Calculator.CalculatorWindow".

... the Rings Online\Plugins\Willby\Calculator\Main.lua:3: Failed to import package "Willby.Calculator".


I found this thread on the LOTRO forums...see here

I re-downloaded and unzipped the Examples package that Narrel posted at the beginning of the linked LOTRO forum thread. No Turbine.Utils in that package...only a Turbine.MathUtils.

In post #15 by Biabo, he talks about the Turbine.Utils package not being included in the recent update of the examples package. Then he goes on to say you can still access it by using the "pcall(import, 'Turbine.Utils')"....whatever that means.

Here is the quote from the post on the LOTRO forum:

"[Edit: Turns out we can't keep Turbine.Utils around since it doesn't exist in the new package. Ah well, upgrade or die!!!]
[Edit2: Turns out you can keep it by using pcall(import, 'Turbine.Utils')]"

So I ask is there a way for me to get Turbine.Utils in the correct spot to make this calculator work? Or will I just have to wait for it to be updated by the creator? Anyone else have a similar problem with the Turbine.Utils package? Would it be possible for someone to copy and paste the old Turbine.Utils file here and I just save it to the Plugin folder?

Thanks in advance for any help.

Edit: I forgot to mention that I copied and pasted the code below provided by Zelda in the Main.lua file. Not sure if that is needed info. Thanks.

Last edited by Intrinsity : 01-19-2011 at 10:28 PM.
Intrinsity is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 01-21-2011, 10:34 PM  
Intrinsity
The Wary
 
Intrinsity's Avatar

Forum posts: 2
File comments: 3
Uploads: 0
Kragen answered my question on the forum board and it worked.

You have to replace the Turbine.Utils in all .lua files with just Turbine and everything works fine.
Intrinsity is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 09:40 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui