Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 13th, 2007, 08:49 AM
bob306 bob306 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 2 bob306 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 36 sec
Reputation Power: 0
[Lua] extracting values

i play a game called world of warcraft and i have an addon that saves data about your character to a Lua file. I was wondering if someone could make something that could extract values from the Lua files and then display them just on like a basic php website page


like from this \/

Quote:
["Tabard"] = {
["Name"] = "Tabard of Flames",
["Color"] = "a335ee",
["Tooltip"] = "Tabard of Flames<br>Soulbound<br>Tabard",
["Icon"] = "INV_Misc_TabardPVP_02",
["Item"] = "23705:0:0:0:0:0:0:0",
},



to this \/

Quote:


Equitment type: Tabard
Name: Tabard of Flames
Item Id: 23705



This isnt the only type of information that i want to export so if someone could show me a general way that would work i would be very thankfull.

If you would like me to show the whole file i will try and do that.

Reply With Quote
  #2  
Old October 13th, 2007, 04:15 PM
MrFujin's Avatar
MrFujin MrFujin is offline
Lord of the Dance
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2003
Posts: 1,282 MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level)MrFujin User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 6 h 55 m 47 sec
Reputation Power: 342
is that the from the file "CharacterProfiler.lua"?

it not that easy to split the data apart. you would have to split and analyze each line.

i.e read line, does the line contain a { , then then the value between '[' and ']' is the type name. and you would have to check the values between those brackets too, determine if it a name or item id.

if you know php, there is a roster for uploading data to a website, which does contain a analyzer for lua files. you would like to look at the files update.php and luaparser.php.

info for those who don't play world of warcraft (wow) but know lua and think this isn't lua:

the addon in wow is programmed using lua code. when an addon need to save some data it is saved in a file called <addon name>.lua e.g. the addon characterProfile save data to the file characterProfile.lua

Last edited by MrFujin : October 13th, 2007 at 04:20 PM.

Reply With Quote
  #3  
Old October 13th, 2007, 06:19 PM
bob306 bob306 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 2 bob306 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 36 sec
Reputation Power: 0
Yes this is just a part from CharacterProfiler.lua and also thanks for the link for the roster i am trying to download it now (i hvae reached my limit and speed slowed down ). im not that good with php so i might still ask some questions if i run into a problem

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > [Lua] extracting values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT