It is currently May 7th, 2024, 6:33 am

Read from .DAT file

Get help with creating, editing & fixing problems with skins
BinaryCon
Posts: 13
Joined: October 7th, 2010, 8:43 pm
Location: New Zealand

Re: Read from .DAT file

Post by BinaryCon »

awesome thank you so much :D
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Read from .DAT file

Post by jsmorley »

Ok, get this and install it:
Xample.rmskin
What this will do is read a sample .dat file in the folder with this info:

Code: Select all

Line1:Value1
Line2:Value2
Line3:Value3
Line4:Value4
Line5:Value5
Line6:Value6
Line7:Value7
Line8:Value8
Line9:Value9
Line10:Value10
Line11:Value11
Line12:Value12
Line13:Value13
Line14:Value14
Line15:Value15
Line16:Value16
Line17:Value17
Line18:Value18
Line19:Value19
Line20:Value20
So just 20 lines with some random stuff in them.

It will display three lines from the file, determined by some variables set in the skin .ini file.

So take a look at Xample.ini, the skin, to see how I am setting variables and the script measure, and how I am setting up the three meters to display the results.

Then open Xample.lua in an editor so you can see what it is doing. If you haven't messed with Lua, and particularly our implementation, it might seem a bt daunting. It's not really complicated though, and we can talk in through in this thread if you have questions.
You do not have the required permissions to view the files attached to this post.