V1.5 small fix localisation, better instructions for offline.

His Dad [04-30-15 - 08:02]
V1.5 small fix localisation, better instructions for offline.
Filename
ResearchTimer.lua
ResearchTimer.txt
Shortcuts/Addons Path.jpg
Shortcuts/Properties.jpg
Shortcuts/RTOffline-Example.lnk
doc/changelog.txt
doc/description.txt
doc/offline_use.txt
diff --git a/ResearchTimer.lua b/ResearchTimer.lua
index 49258cd..23b414c 100644
--- a/ResearchTimer.lua
+++ b/ResearchTimer.lua
@@ -5,7 +5,7 @@ RT = {
 	name = "ResearchTimer",
 	font = "ZoFontGame",
 	cmdsetup = "/rt",
-	version = "v1.4",
+	version = "v1.5",
 	playername = "",
 	Init_done = false,
 	UI = {},
@@ -51,12 +51,12 @@ function RT.Info_Research(craft_type,craft_id)

 			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft] = {}
 			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["EndTimeStamp"] = GetTimeStamp() + timeRemaining
-			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Item_name"] = string.sub(item_name, 1, 18)
+			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Item_name"] = string.sub(zo_strformat("<<C:1>>",item_name), 1, 18)
 			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Item_icon"] = item_icon
-			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_stone"] = trait_name
+			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_stone"] = zo_strformat("<<C:1>>",trait_name)
 			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_icon"] = trait_icon
-			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_description"] = trait_description
-			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_name"]= GetString("SI_ITEMTRAITTYPE",traitType)
+			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_description"] = zo_strformat("<<C:1>>",trait_description)
+			RT.SV.data.Craft[RT.playername][craft_id].doing[Simu_craft]["Trait_name"]= zo_strformat("<<C:1>>",GetString("SI_ITEMTRAITTYPE",traitType))
 			end
 		end
 	end
diff --git a/ResearchTimer.txt b/ResearchTimer.txt
index 7a8742a..5142ff6 100644
--- a/ResearchTimer.txt
+++ b/ResearchTimer.txt
@@ -1,7 +1,7 @@
 ## Title: |c96FF00Research Timer|r - |c96FF00 v1|r
 ## APIVersion: 100011
 ## SavedVariables: ResearchTimer
-## Version: 1.4
+## Version: 1.5
 ## Author: Hisdad


diff --git a/Shortcuts/Addons Path.jpg b/Shortcuts/Addons Path.jpg
new file mode 100644
index 0000000..91f76de
Binary files /dev/null and b/Shortcuts/Addons Path.jpg differ
diff --git a/Shortcuts/Properties.jpg b/Shortcuts/Properties.jpg
new file mode 100644
index 0000000..f8629d9
Binary files /dev/null and b/Shortcuts/Properties.jpg differ
diff --git a/Shortcuts/RTOffline-Example.lnk b/Shortcuts/RTOffline-Example.lnk
new file mode 100644
index 0000000..09c5a9e
Binary files /dev/null and b/Shortcuts/RTOffline-Example.lnk differ
diff --git a/doc/changelog.txt b/doc/changelog.txt
index 5b919de..9642dbb 100644
--- a/doc/changelog.txt
+++ b/doc/changelog.txt
@@ -1,3 +1,8 @@
+2015-04-30  v1.5
+	Small fix to localisation. Sadly the viewer is still not unicode compatible.
+	More effort in the offline use documentation and some screenshots.
+
+
 2015-04-21 v1.4
 	Deactivate debugging code printing RT.oPtion

diff --git a/doc/description.txt b/doc/description.txt
index edc7480..7087394 100644
--- a/doc/description.txt
+++ b/doc/description.txt
@@ -10,6 +10,7 @@ The list of upcoming research completions is sorted.
 The soonest are on top.

 It comes with a little viewer that can show the same information from your desktop, without having to start the game.
+Sadly the viewer is not unicode compatible and non-english users may see confused text.


 To use:
diff --git a/doc/offline_use.txt b/doc/offline_use.txt
index d4ebb40..c19c639 100644
--- a/doc/offline_use.txt
+++ b/doc/offline_use.txt
@@ -1,4 +1,6 @@
-The program "RTOffline.lua" will read the saved variables file and presents a grid on your windows desktop.
+The program "RTOffline.lua" will read the saved variables file and presents a grid on your windows desktop of your research projects.
+Non-English users may see garbles test. Sorry, can't fix.
+
 To use it you need a copy of IUP for lua which you can download from here.

 The site page:  http://webserver2.tecgraf.puc-rio.br/iup/
@@ -6,12 +8,50 @@ download http://sourceforge.net/projects/iup/files/3.13/



-This is a zip archive which contains 2 versions of Lua with the IUP Dlls.
-It also contains some exe programs that we don't need.
-Unzip it and move stuff around if you want.
-The necessary files are in  \IUP\Lua52  All else can be discarded.
+Unzip IUP into a folder. No other installation procedure is required. I.E it's portable.
+The only folder required is "Lua52", you can delete everything else, if you wish.
+
+I will assume you are using the folder path  C:\IUP\Lua52
+
+
+First, some testing
+
+Log in to the game with a character at least once and log out. That will ensure the savedvariable file exists.
+
+
+In the Lua52 folder. Run the iuplua52.exe, which will give a little graphical dialog.
+Use the load button to navigate to the RToffline.lua file. (Do not move it from its location or it won't be able to find its datafile.)
+Press "execute" to run it. If there is an error, please cut and paste into a message on the webpage so I can debug.
+
+Create Shortcuts
+Now that you know it works, create a shortcut to run it directly from your desktop.
+
+
+The Target is: C:\iup\Lua52\wlua52.exe RToffline.lua
+This does not change for the mega-server or PTS.
+
+The Start in: is:   "D:\data\John\Documents\Elder Scrolls Online\live\AddOns\History"   <=== see the enclosing Quotes!
+This is for user 'John'. This user has had his documents folder redirected, which is why we don't use %USERPROFILE%/Documents , Btw.

-Lua52 contains a command line exe (lua52.exe) that has a console--good for debugging and a windows exe, wlua52.exe
+"Start in" varies for each user.
+"Start in" varies for each mega-server.
+Note that path has spaces in it, so the path is enclosed in quotes. This can be hard to see as the "Start In:" field doesn't show the right side, although pressing the END key will put the cursor there.
+If you use more than one server, install the addon to that server and create a shortcut for that server with the correct "Start in:". You don't have to change IUP.
+
+
+The easiest way of getting the correct path is to
+
+Delete contents of the Start in: Field on the Shortcut.
+Use explorer to Navigate to the ResearchTimer addon folder. See Screenshot.
+Click in the address bar to highlight it.
+Ctrl-C to copy the path.
+Click inside the Start in: Field on the Shortcut.
+Ctrl-P to Paste it into the Start in: Field
+Put the leading and trailing Quotes in.
+Click OK
+
+
+You may want to rename the shortcut.


 ===Optional===
@@ -23,18 +63,21 @@ dateformat = "%d/%m, %H:%M"
 This formats the date display. That's for day/month format.
 ==============

-Create a shortcut on your desktop for the lua52.exe.
-Edit its properties, change the "Start in" to the Addons/ResearchTimer Folder. You will probably need quotes around it.

-Run it and you will get a lua console
-Type dofile "RTOffline.lua"
+If it worked from the iuplua52 file  but your shortcut doesn't work..
+The problem is almost certainly the "Start IN" path and its Quotes.
+
+Regards,
+
+Dad
+
+
+
+

-It should work fine. Otherwise it should give  something helpful as an error.

-When it works ok, you can edit the shortcut to use wlua52.exe and put RTOffline.lua in the "target" field after wlua52.exe


-Feel free to edit. It's not rocket science.


 -Dad