lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Stand-Alone Plugins > Other

Category: OtherFreeCode
Interface Information
Download
How do I install this? (FAQ)
Name: FreeCode   Popular!
Author:
Date: 08-24-2019 02:22 AM
Size: 2.75 Kb
Version: 1.0.1
Rate File: 5 out of 5 with 2 votes  
Pictures
Click to enlarge 

Views: 0
Size: 12.95 Kb
Dimensions: 262 x 147
Displaying Free Code
 
Description
FreeCode is a plugin which displays the weekly free coupon code in the chat window.

How to Use:

Type /fc in the chat window

How to install:

Unzip the folder in to your plugins folder.

This plugin also contains a python file, which is responsible for identifying the free code. I considered compiling it, but decided against that for now, in order for people to be able to check the source code for themselves before running it, so you will also need to make sure you have the python interpreter installed from the official website here.

If you want the free code to automatically update, you will also have to run 0SETUP.pyw. This will create a new desktop shortcut for LOTRO, which will also run the python file.

This setup file can also be found here, if you have your own external scripts that you want to run when LOTRO starts.

Release Notes

V1.0.1 (24/08/2019) - Fixed an issue where a file storing the most recent issue of lotro beacon was saved to desktop, now saved inside the FreeCode plugin folder

V1 (23/08/2019) -Initial Release
Archive List (Old Versions)
File Name
Version
Size
Author
Date
1.0
2.67 Kb
Agollas
08-23-2019 01:38 PM
File Statistics
User Rating:
5 out of 5 with 2 votes
Downloads: 14541
Views: 46082
Favorites: 4
Uploaded By:
 
Last Modified: N/A

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 05-05-2022, 07:09 PM  
Chestertonian
The Wary
 
Chestertonian's Avatar

Forum posts: 0
File comments: 2
Uploads: 0
Many thanks to the OP and Tiberivs for keeping this updated. The Powershell script works great still with the latest updates. However, I could not get it to auto-start the launcher, but I do have it installed not in the default location (on another hard drive).

Thanks again!
Chestertonian is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 05-15-2021, 07:14 AM  
Tiberivs
The Wary

Forum posts: 0
File comments: 4
Uploads: 0
New code

So it seems the beacon site is always a bit behind, and there's a forum post each week which is more accurate and ontime... so I again changed my code, it's no longer multi language though:

Code:
#Find LOTRO install location, and start launcher
if((Get-Process LotroLauncher -ea SilentlyContinue) -eq $null)
{
    Get-ChildItem -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | ForEach-Object{
        if((Get-ItemProperty -Path $_.PSPath -Name DisplayName -ea SilentlyContinue).DisplayName -like '*The Lord of the Rings Online*')
        {
            Start-Process -FilePath  $(Join-Path -Path (Get-ItemProperty -Path $_.PSPath -Name InstallLocation).InstallLocation -ChildPath 'LotroLauncher.exe')
        }
    }
}
cls

#FR: https://www.lotro.com/forums/showthread.php?686794-Un-peu-d-actu-!
#DE: https://www.lotro.com/forums/showthread.php?686793-Die-neueste-Kunde!

#Find latest sales and promopost
$LatestPromo = ((Invoke-WebRequest -Uri 'https://www.lotro.com/forums/forumdisplay.php?819-LOTRO-Store-Sales-and-Promotions' -UseBasicParsing).links | Where-Object{ $_.href -like "*showthread.php*sales*"} | Select-Object -ExpandProperty href -First 1).split('&')[0]
Write-Host "Latest promo:`thttps://www.lotro.com/forums/$LatestPromo" -ForegroundColor Cyan
$return = Invoke-WebRequest -Uri $("https://www.lotro.com/forums/$LatestPromo")

#parse message post and grab item,code,date
$PostId = (($return.ParsedHtml.body.getElementsByTagName('Li') | Where {$_.getAttributeNode('id').Value -like 'post_*'}).id -split '_')[-1]
Write-Host "PostId:`t`t$PostId" -ForegroundColor Cyan
$PostContent = ($return.ParsedHtml.getElementById("Post_message_$PostId").innertext)
if(($PostContent -match 'Weekly Coupon') -eq $True){
    $aCoupon = (($return.ParsedHtml.getElementById("Post_message_$PostId").innertext) -split 'Weekly Coupon')[-1]  -split [System.Environment]::NewLine
    $couponCode = ($aCoupon[2] -split ' ')[-1]
    $couponItem = $aCoupon[1]
    $couponDate = $aCoupon[3]

    Write-Host "Free Item:`t$($couponItem)" -ForegroundColor Cya
    Write-Host "Coupon Code:`t$($couponCode)" -ForegroundColor Cya
    Write-Host "Date:`t`t$($couponDate)" -ForegroundColor Cya

    #update FreeCode
    "currentCode=$([char]34)$couponCode$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Force -Encoding utf8  | Out-Null
    "currentDate=$([char]34)$couponDate$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null
    "currentItem=$([char]34)$couponItem$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null

    $currentCode = Get-Content $(Join-Path $PSScriptRoot 'currentCode.lua')
    $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
    $MyPathOut = $(Join-Path $PSScriptRoot 'currentCode.lua') # export it here without BOM
    [System.IO.File]::WriteAllLines($(Join-Path $PSScriptRoot 'currentCode.lua'), $currentCode, $Utf8NoBomEncoding)
}
else{
    Write-Host "Error:`t`t`tUnable to retrieve data, so nothing changed." -ForegroundColor Red
}
Tiberivs is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-08-2021, 04:43 AM  
Tiberivs
The Wary

Forum posts: 0
File comments: 4
Uploads: 0
fixes

So I came back to lotro after some months, and also concluded that sometimes the return values are empty.... This is due the inconsistency of SSG posting the codes on their website... So I tried to make the regex more robust... I tested with the last 100 weekly codes, and the majority comes back correct.
I also corrected FR and DE:

Code:
#Find LOTRO install location, and start launcher
if((Get-Process LotroLauncher -ea SilentlyContinue) -eq $null)
{
    Get-ChildItem -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | ForEach-Object{
        if((Get-ItemProperty -Path $_.PSPath -Name DisplayName -ea SilentlyContinue).DisplayName -like '*The Lord of the Rings Online*')
        {
            Start-Process -FilePath  $(Join-Path -Path (Get-ItemProperty -Path $_.PSPath -Name InstallLocation).InstallLocation -ChildPath 'LotroLauncher.exe')
        }
    }
}

#Get lastlocale (Language)
$LastLocale = 'en'
$LastLocale = (Get-Content -Path $([IO.Path]::Combine([System.Environment]::getfolderpath('mydocuments'),'The Lord of the Rings Online','UserPreferences.ini')) | Where-Object { $_ -match 'LastLocale=' }).Split('=')[1]

switch ($LastLocale)
{
    'en' 
    {
        $beacon = 'beacon'
        $NameRegex = "gets you a (.*?) with the Coupon Code"
        $CodeRegex = "Coupon Code[ :](.*?) [nN]ow through"
    }
    'fr' 
    {
        $beacon = 'gazette'
        $NameRegex = "obtenir (.*?) avec le code"
        $CodeRegex = "avec le code[ :](.*?) jusqu'au"
    }
    'de' 
    {
        $beacon = 'Newsletter'
        $NameRegex = "kostenlos:(.*?). Coupon-Code"
        $CodeRegex = "Coupon-Code:(.*?). Das Angebot"
    }
}

#Beacon examples
#https://www.lotro.com/en/game/articles/lotro-beacon-issue-198
#https://www.lotro.com/fr/jeu/articles/la-gazette-sdao-198
#https://www.lotro.com/de/spiel/aktuelles/der-hdro-leuchtfeuer-newsletter-198

#Get latest beacon from lotro.com
$beaconSuffix = (Invoke-WebRequest –Uri "https://www.lotro.com/$LastLocale/game/articles" -UseBasicParsing).Links | Where-Object{ $_.href -like "*$beacon*"} | Sort-Object -Property href -Descending |  Select-Object -First 1 -ExpandProperty href

#Request to current beacon site, and find coupon code
$site = Invoke-WebRequest –Uri $("https://www.lotro.com/$beaconSuffix")
foreach($line in $($($($site.RawContent -split "[`r`n]" | Select-String 'coupon') -replace '<[^>]+>','') -replace '\?',' ')){
    $ItemName = $(([regex]::match($line, $NameRegex).Groups[1].Value -replace 'free |gratuitement ','').trim())
    $ItemCode = $(([regex]::match($line, $CodeRegex).Groups[1].Value -replace 'free |gratuitement ','') -replace ',|:','').trim()
}

$text = ((($site.RawContent -split "[`r`n]" | select-string 'coupon') -split '<span style="font-size:16px;">')[-1] -split '</span>')[0] -replace '<strong>\?\?',' <rgb=0x00ffff>' -replace '\?\?<strong>',' <rgb=0xffcc00>' -replace '</strong>','</rgb>' -replace '<strong>','<rgb=0xff0000>' -replace '\?\?',' '
if($text)
{
    #Write couponCode to plugin directory
    Write-Host "Language: $LastLocale" -ForegroundColor Cyan
    Write-Host "${beacon}: $("https://www.lotro.com/$beaconSuffix")" -ForegroundColor Cyan
    Write-Host "Free Item: $couponItem" -ForegroundColor Cyan
    Write-Host "CouponCode: $couponCode" -ForegroundColor Cyan
    Write-Host "SiteText: $text" -ForegroundColor Cyan
    "currentCode=$([char]34)$couponCode$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Force -Encoding utf8  | Out-Null
    "currentText=$([char]34)$text1$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null
    "currentItem=$([char]34)$couponItem$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null

    $currentCode = Get-Content $(Join-Path $PSScriptRoot 'currentCode.lua')
    $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
    $MyPathOut = $(Join-Path $PSScriptRoot 'currentCode.lua') # export it here without BOM
    [System.IO.File]::WriteAllLines($(Join-Path $PSScriptRoot 'currentCode.lua'), $currentCode, $Utf8NoBomEncoding)
}
else
{
    Write-Error 'Unable to retrieve data, so nothing changed.' -ErrorId 1 -RecommendedAction 'Restart'
}

Last edited by Tiberivs : 04-09-2021 at 07:50 AM.
Tiberivs is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 10-23-2020, 03:48 AM  
lancelottm
The Wary

Forum posts: 0
File comments: 1
Uploads: 0
And here's a fixed version of the script (URL should be https://www.lotro.com/$LastLocale/game/articles, not https://www.lotro.com/$LastLocale, a couple of errors like "uri instead of -uri)

Fairly sure it won't work for DE/FR, though..

SCRIPT:

Code:
#Find lord of the rings install location, and start launcher
if((Get-Process LotroLauncher -ea SilentlyContinue) -eq $null)
{
    Get-ChildItem -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | ForEach-Object{
        if((Get-ItemProperty -Path $_.PSPath -Name DisplayName -ea SilentlyContinue).DisplayName -like '*The Lord of the Rings Online*')
        {
            Start-Process -FilePath  $(Join-Path -Path (Get-ItemProperty -Path $_.PSPath -Name InstallLocation).InstallLocation -ChildPath 'LotroLauncher.exe')
        }
    }
}


#Get lastlocale (Language)
$LastLocale = (Get-Content -Path $([IO.Path]::Combine([environment]::getfolderpath("mydocuments"),'The Lord of the Rings Online','UserPreferences.ini')) | Where-Object { $_ -match 'LastLocale=' }).Split('=')[1]

switch ($LastLocale)
{
    'en' {$beacon = 'beacon'}
    'fr' {$beacon = 'gazette'}
    'de' {$beacon = 'Newsletter'}
    Default {$beacon = 'beacon'}
}

#Get latest beacon lotro.com
$beacon = (Invoke-WebRequest -Uri "https://www.lotro.com/$LastLocale/game/articles").Links | Where-Object{ $_.href -like "*beacon*"} | Select-Object -First 1 -ExpandProperty href

#Request to current beacon site, and find coupon code
$site = Invoke-WebRequest -Uri  $("https://www.lotro.com/${beacon}")
$couponCode = $(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-1] -split '</strong>')[0]
$couponItem = $(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-2] -split '</strong>')[0] -replace '\?\?',''
#$text = ((($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<span style="font-size:16px;">')[-1] -split '</span>')[0] -replace 'strong','rgb' -replace '<rgb>','<rgb=0x00FFDE>' -replace '\??',''
$text = ((($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<span style="font-size:16px;">')[-1] -split '</span>')[0] -replace '<strong>\?\?',' <rgb=0x00ffff>' -replace '\?\?<strong>',' <rgb=0xffcc00>' -replace '</strong>','</rgb>' -replace '<strong>','<rgb=0xff0000>' -replace '\?\?',' '
if($text)
{
    #Write couponCode to plugin directory
    Write-Host ""CouponCode: $couponCode"
    Write-Host "Text: $text" -ForegroundColor Cyan
    "currentCode=$([char]34)$couponCode$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Force -Encoding utf8  | Out-Null
    "currentText=$([char]34)$text$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null
    "currentItem=$([char]34)$couponItem$([char]34)"" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null

    $currentCode = Get-Content $(Join-Path $PSScriptRoot 'currentCode.lua')
    $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
    $MyPathOut = $(Join-Path $PSScriptRoot 'currentCode.lua') # export it here without BOM
    [System.IO.File]::WriteAllLines($(Join-Path $PSScriptRoot 'currentCode.lua'), $currentCode, $Utf8NoBomEncoding)
}   
else
{
    Write-Error 'Unable to retrieve data, so nothing changed.' -ErrorId 1 -RecommendedAction 'Restart'
}


$(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-2] -split '</strong>')[0] -replace '\?\?',''
Output at the time of this writing is:

Code:
Documents\The Lord of the Rings Online\Plugins\FreeCode V1.0.1\Get-FreeCode.ps1
 CouponCode: REJUVENATION5
    Write-Host Text: The <rgb=0xff0000>Weekly Coupon </rgb>gets you a free <rgb=0xff0000>Rejuvenation Potion x5</rgb> with the Coupon Code <rgb=0xff0000>REJUVENATION5</rgb>, now through October 8th! -ForegroundColor Cyan
    currentCode="REJUVENATION5" | Out-File -FilePath E:\lance\Documents\The Lord of the Rings Online\Plugins\FreeCode V1.0.1\currentCode.lua -Force -Encoding utf8  | Out-Null
    currentText="The <rgb=0xff0000>Weekly Coupon </rgb>gets you a free <rgb=0xff0000>Rejuvenation Potion x5</rgb> with the Coupon Code <rgb=0xff0000>REJUVENATION5</rgb>, now through October 8th!" | Out-File -FilePath E:\lance\Documents\The Lord of the Rings 
Online\Plugins\FreeCode V1.0.1\currentCode.lua -Append -Encoding utf8 | Out-Null
    currentItem="Rejuvenation Potion x5"
Rejuvenation Potion x5

Edit: well, the script works but I can't load the plugin ;-(

Code:
Unable to resolve package "FreeCode.man".
Unable to load "freecode".

Last edited by lancelottm : 10-23-2020 at 04:14 AM.
lancelottm is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 09-09-2020, 02:30 AM  
Tiberivs
The Wary

Forum posts: 0
File comments: 4
Uploads: 0
I made some changed and added language support (because FR and DE use other links)...
So powershell script is as followed:
Code:
#Find lord of the rings install location, and start launcher
if((Get-Process LotroLauncher -ea SilentlyContinue) -eq $null)
{
    Get-ChildItem -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | ForEach-Object{
        if((Get-ItemProperty -Path $_.PSPath -Name DisplayName -ea SilentlyContinue).DisplayName -like '*The Lord of the Rings Online*')
        {
            Start-Process -FilePath  $(Join-Path -Path (Get-ItemProperty -Path $_.PSPath -Name InstallLocation).InstallLocation -ChildPath 'LotroLauncher.exe')
        }
    }
}

#Get lastlocale (Language)
$LastLocale = (Get-Content -Path $([IO.Path]::Combine([environment]::getfolderpath("mydocuments"),'The Lord of the Rings Online','UserPreferences.ini')) | Where-Object { $_ -match 'LastLocale=' }).Split('=')[1]

switch ($LastLocale)
{
    'en' {$beacon = 'beacon'}
    'fr' {$beacon = 'gazette'}
    'de' {$beacon = 'Newsletter'}
    Default {$beacon = 'beacon'}
}

#Get latest beacon lotro.com
$beacon = (Invoke-WebRequest –Uri "https://www.lotro.com/$LastLocale").Links | Where-Object{ $_.href -like "*$beacon*"} | Select-Object -First 1 -ExpandProperty href

#Request to current beacon site, and find coupon code
$site = Invoke-WebRequest –Uri  $("https://www.lotro.com/${beacon}")
$couponCode = $(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-1] -split '</strong>')[0]
$couponItem = $(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-2] -split '</strong>')[0] -replace '\?\?',''
#$text = ((($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<span style="font-size:16px;">')[-1] -split '</span>')[0] -replace 'strong','rgb' -replace '<rgb>','<rgb=0x00FFDE>' -replace '\??',''
$text = ((($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<span style="font-size:16px;">')[-1] -split '</span>')[0] -replace '<strong>\?\?',' <rgb=0x00ffff>' -replace '\?\?<strong>',' <rgb=0xffcc00>' -replace '</strong>','</rgb>' -replace '<strong>','<rgb=0xff0000>' -replace '\?\?',' '
if($text)
{
    #Write couponCode to plugin directory
    Write-Host "CouponCode: $couponCode" -ForegroundColor Cyan
    Write-Host "Text: $text" -ForegroundColor Cyan
    "currentCode=$([char]34)$couponCode$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Force -Encoding utf8  | Out-Null
    "currentText=$([char]34)$text$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null
    "currentItem=$([char]34)$couponItem$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Append -Encoding utf8 | Out-Null

    $currentCode = Get-Content $(Join-Path $PSScriptRoot 'currentCode.lua')
    $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
    $MyPathOut = $(Join-Path $PSScriptRoot 'currentCode.lua') # export it here without BOM
    [System.IO.File]::WriteAllLines($(Join-Path $PSScriptRoot 'currentCode.lua'), $currentCode, $Utf8NoBomEncoding)
}
else
{
    Write-Error 'Unable to retrieve data, so nothing changed.' -ErrorId 1 -RecommendedAction 'Restart'
}


$(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-2] -split '</strong>')[0] -replace '\?\?',''
Main.lua as followed:
Code:
import "FreeCode.currentCode"
print=Turbine.Shell.WriteLine
c=Turbine.ShellCommand();
Turbine.Shell.AddCommand("fc", c);
function c:Execute(cmd, args)
    print("<rgb=0x00FFDE>The Current Free Code is </rgb><rgb=0xFF9600>"..currentCode.."</rgb>")
end
t=Turbine.ShellCommand();
Turbine.Shell.AddCommand("fct", t);
function t:Execute(cmd, args)
    print(currentText)
end
print("<rgb=0x00b300>Tiberivs</rgb><rgb=0xffffff> says, 'Here you go friend, a free Coupon code for a </rgb><rgb=0x00ffff>"..currentItem.."</rgb> <rgb=0xffffff>which is </rgb><rgb=0xffcc00>"..currentCode.."</rgb><rgb=0xffffff> have a nice day!'</rgb>")
Tiberivs is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 08-04-2020, 04:47 AM  
Agollas
The Undefeated
 
Agollas's Avatar
Interface Author - Click to view interfaces

Forum posts: 9
File comments: 19
Uploads: 11
That's a nice addition thanks for that. I always knew python wasn't really the best thing to use for it tbh
Agollas is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 07-22-2020, 05:28 PM  
Tiberivs
The Wary

Forum posts: 0
File comments: 4
Uploads: 0
This is a really awesome plugin, which gave me the idea to rewrite the pyton script to powershell (so no pyton needed), if anyone is interested, use this plugin and save the following script as 'Get-FreeCode.ps1' in the same directory as 'currentCode.lua'. You can start the powershell script by making the following shortcut:
C:\Windows\System32\WindowsPowerShell\v1.0\powersh ell.exe -ExecutionPolicy Bypass -File "C:\Users\<username>\Documents\The Lord of the Rings Online\Plugins\FreeCode\Get-FreeCode.ps1"

The script also starts the Lotro Launcher:

Code:
#Find current beacon link
$beacon = (Invoke-WebRequest –Uri 'https://www.lotro.com/en').Links | Where-Object{ $_.href -like '*beacon*'} | select -First 1 -ExpandProperty href

#Request to current beacon site, and find coupon code
$site = Invoke-WebRequest –Uri  "https://www.lotro.com$beacon"
$couponCode = $(($($site.tostring() -split "[`r`n]" | select-string 'coupon') -split '<strong>')[-1] -split '</strong>')[0]

#Write couponCode to plugin directory
"currentCode=$([char]34)$couponCode$([char]34)" | Out-File -FilePath $(Join-Path $PSScriptRoot 'currentCode.lua') -Force | Out-Null

#Find lord of the rings install location, and start launcher
Get-ChildItem -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall' | ForEach-Object{
    if((Get-ItemProperty -Path $_.PSPath -Name DisplayName -ea SilentlyContinue).DisplayName -like '*The Lord of the Rings Online*')
    {
        Start-Process -FilePath  $(Join-Path -Path (Get-ItemProperty -Path $_.PSPath -Name InstallLocation).InstallLocation -ChildPath 'LotroLauncher.exe')
    }
}

Last edited by Tiberivs : 07-22-2020 at 05:34 PM.
Tiberivs is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 04-15-2020, 10:25 PM  
val1n
The Wary
 
val1n's Avatar

Forum posts: 0
File comments: 5
Uploads: 0
Uhh, this is a nice plugin. Really nice!
Usually I'm starting LotRO through a shortcut on my desktop. So no problem with your plugin.

But one question remains. I added -nosplash -skiprawdownload to the shortcut. Is there a way to include these in there? I am not at all good with batch, so I'm thought I might ask
val1n is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-21-2019, 08:31 AM  
Agollas
The Undefeated
 
Agollas's Avatar
Interface Author - Click to view interfaces

Forum posts: 9
File comments: 19
Uploads: 11
Quote:
I used the non-Steam Lotro launcher and it does work. I wished it worked with Steam version of the Lotro launcher.
Glad it worked. I don't use the steam launcher for LoTRO and I wasn't aware of many people who did, I can look in to finding a way for it to work however. Thanks for the feedback
Agollas is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-21-2019, 02:14 AM  
farmhand99
The Wary
 
farmhand99's Avatar

Forum posts: 0
File comments: 38
Uploads: 0
I used the non-Steam Lotro launcher and it does work. I wished it worked with Steam version of the Lotro launcher.
farmhand99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-20-2019, 11:56 PM  
farmhand99
The Wary
 
farmhand99's Avatar

Forum posts: 0
File comments: 38
Uploads: 0
I am using Windows 10.

I did a search for LOTROplus and it did show up but I could not locate it or it tried to open it not sure what happened.

Why wont it work with the Steam version of Lotro?
farmhand99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-20-2019, 04:01 PM  
Agollas
The Undefeated
 
Agollas's Avatar
Interface Author - Click to view interfaces

Forum posts: 9
File comments: 19
Uploads: 11
Quote:
I did download python and ran the osetup file. I did not get any shortcut desktop.

When I run the osetup this is what I get:

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
= RESTART: C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins\FreeCode\0SETUP.pyw
C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins\FreeCode
C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins
>>>

I normally use go through Steam to launch Lotro but I do have both and have been known to switch between the two.

I have never used python so I am not sure if I am doing anything incorrectly.
Unfortunately it wont work when you start with steam. Ah sorry missed your first part, what OS are you using?

Edit: One thing you could try is looking inside your plugins folder and seeing if a file called LOTROPlus has been created?

Last edited by Agollas : 12-20-2019 at 04:08 PM.
Agollas is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-20-2019, 12:45 PM  
farmhand99
The Wary
 
farmhand99's Avatar

Forum posts: 0
File comments: 38
Uploads: 0
I did download python and ran the osetup file. I did not get any shortcut desktop.

When I run the osetup this is what I get:

Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
= RESTART: C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins\FreeCode\0SETUP.pyw
C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins\FreeCode
C:\Users\Owner\Documents\The Lord of the Rings Online\Plugins
>>>

I normally use go through Steam to launch Lotro but I do have both and have been known to switch between the two.

I have never used python so I am not sure if I am doing anything incorrectly.
farmhand99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-20-2019, 10:49 AM  
Agollas
The Undefeated
 
Agollas's Avatar
Interface Author - Click to view interfaces

Forum posts: 9
File comments: 19
Uploads: 11
Quote:
I like the idea of this plugin. Having said that I have tried to figure out how to get it to work however I do not program and what is required for me to do. I have never done before.

Any help that you can give would be great.
The code isn't compiled, so you would first need to download python.
You can get it from here

The way that it works is by running a script that checks every Thursday if there is a new lotro beacon and updates the free code.

In order for it to run every time you open lotro, you will need to run the 0SETUP file with the project. What this will do is create a desktop shortcut (called LOTROPlus) for you to use instead of the normal desktop shortcut which runs the program to check as lotro starts up.

You then need to load the ingame plugin as usual.


Is there a particular part of the process you are having trouble with, so I can help better?
Agollas is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 12-19-2019, 02:22 AM  
farmhand99
The Wary
 
farmhand99's Avatar

Forum posts: 0
File comments: 38
Uploads: 0
I like the idea of this plugin. Having said that I have tried to figure out how to get it to work however I do not program and what is required for me to do. I have never done before.

Any help that you can give would be great.
farmhand99 is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 08:32 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui