It is currently 06 Sep 2025, 14:33
   
Text Size

Magic Album - Feature Requests

enable debug.getinfo(function,'S') in MA's lua interpreter (new)

 

I had an interesting idea for a new feature to simplify configuring pricing scripts by adding an infix to the filename.
For example, http://magic.tcgplayer.com/magic_price_guides.asp offer three columns, with high, medium and low price. The script contains a variable to select which column to import from - and youcould keep two copies of the script to import two different columns. As you have to rename one copy anyways for MA to offer both as options, I thought it would be nice if the user could chose the wanted colum by simply adding an infix to the filename instead of editing the script: LHpi.tcgplayerPriceGuide.lua would (by default) import from the medium column, and the same file, saved as LHpi.tcgplayerPriceGuide.LOW.lua would import low prices.
There might be other neat tricks posible but I need a way to read the currently running script's filename, which is possible through
local info = debug.getinfo(site.ReadFilenameOptions,'S');
local _s,_e,fname = string.find(info.source,"([^\\/]+)$")

Comments

No comments have been made

Ticket details

  • Ticket ID: 487
  • Project: Magic Album
  • Status: New
  • Component: Pricing
  • Project version: (unknown)
  • Priority: Normal
  • Assigned to: (unassigned)
  • Reported by: LordHelmchen
  • Reporter's tickets: List all tickets
  • Reported on: 29 Oct 2014, 20:58
  • Last visited by Goblin Hero ยป 31 Oct 2014, 13:43.
 

Main Menu

User Menu

Our Partners


Login Form