[Question] Enumerate Lua Variables menu

User Tag List

Results 1 to 2 of 2
  1. #1
    DrakeFish's Avatar Lazy Leecher

    Reputation
    634
    Join Date
    Nov 2008
    Posts
    569
    Thanks G/R
    0/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Enumerate Lua Variables

    Is there a way I could enumerate all the Lua variables using MemoryRead()? If this method isn't known much, then is it a way to do so using functions Calls, I'll try to reverse them to get what I'm searching.
    I don't want to add new variables, I just want to read the values.
    Ofcourse, I'd prefer enumerating Globals than Locales, since it's probly easier to do.

    Edit: I did try to find it myself, but I couldn't find a pointer to anything related to lua variables.
    Last edited by DrakeFish; 08-11-2010 at 06:32 PM.

    [Question] Enumerate Lua Variables
  2. #2
    fusspawn's Avatar Member
    Reputation
    5
    Join Date
    May 2008
    Posts
    54
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GetLocalizedText(); Will return a string based on a Lua Global,
    GetTop(); will tell you how many return varibles are on the stack after a function call.

    As for enuming all the global objects. Why not just define and call a Lua function that loops over the global table, stores it "Somewhere", and grab the values from that.

    I assume Lua global works in a similar method to that of python, Despite the use of tables over dicts?

Similar Threads

  1. [Help] Lua Variable question
    By Swarfega in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 03-21-2009, 03:19 PM
  2. Question about Lua scripting
    By bill45 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-13-2008, 02:49 AM
  3. [Question] About lua files...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-15-2008, 06:26 PM
  4. A simple question about Lua Scripts
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 12-28-2007, 01:57 AM
  5. [Question] My .lua doesnt work
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-20-2007, 07:32 PM
All times are GMT -5. The time now is 05:48 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search