-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init.lua errors for latest stable and beta 4 releases #165
Comments
Some added information that might help that I noticed was asked for on another, near 3 year old issue thread for games not displaying: Have tried removing the \documents\Rainmeter\Skins\Lauhdutin@Resources\cache folder and refreshing skin / reloading Rainmeter. There are appmanifest files in the C:\Program Files (x86)\Steam\Steamapps folder - but only for the 3 programs that are installed in that location. There are also appmanifest files in the D:\Steam\Steamapps folder - which would be for the games themselves as those are stored on that drive, separately from the non-game steamapps in the default location. I don't think renaming the appmanifest files is necessary as everything worked fine up till today without having to do that ever in the past. games.json is empty aside from a single string: |
Getting the same error. There was a big-ish Steam update yesterday (download queue looks different) and I'm worried that they changed something that the skin relies on. :/ |
Yes, now that you mention it, I remember opening the Steam client and seeing that the whole layout / look had changed rather dramatically and that's a recent change. Hopefully the skins most talented author can provide some tips on how to fix this or if that's not something we can do - update the skin to fix it for us from that end. |
What Steam version do you have? @humanspida @Nathipha I tried a fresh install of Lauhdutin and I'm not getting any issue of getting all my steam games (both installed and uninstalled) with the last Lauhdutin beta. EDIT: also not having any kind of issue in my used version. EDIT2: Only Steam selected on the fresh install, as you stated. This is what I get. |
I have same version of Steam, literally identical. I get black bar with the words 'No games to show' on the left side |
Could you open filter.ini and check what do you get? I am interested on the "hidden games" part. Maybe your issue is that your games are detected as hidden games? |
Yes, that's my Steam version too. Lauhdutin is version 3.1.0 beta 4. Edit: My Filter.ini hasn't been edited since 2018 (according to Windows' file explorer) and I'm not sure what to look for tbh (there's not "hidden games" part). |
oh wait... i clicked detect games and it spat the init.lua error at me again so I dont think opening the filter .ini is going to give me anything to work with... That said... the filter.ini does have a line that points to an init.lua file and thats the error im getting init.lua:188: attempt to call method 'endsWith' (a nil value) I ran the .ini file and cleared all filters, nothing. thats when I tried to detect games and got the init.lua error again |
no filters in play only poxy init.lua:188: attempt to call method 'endsWith' (a nil value) which would perhaps help... IF IT TOLD ME which bloody init.lua file it was because theres more than one init.lua and they're in different folders What that DOES tell me is that on line 188 is where the issue is - obviously not finding the data it wants there |
Oh sorry. The filter doesn't display anything, it just says "Filter" and the bottom part is empty. I tried to scroll down and the filter window displayed a different error: @BanCrash Btw, thanks for looking into this! Sorry, I didn't see your last message in the other thread about looking at stuff. @humanspida Before this error started appearing I kept getting a different lua error every time I started up my PC and I had to do "Reload Games" every time to actually display any games. |
same behaviour with my filter window if i launch it now i have the init.lua error on the bar |
Here you go, checking with notepad is easy to check what line is getting you the error: This is part of the getLibraries function of Steam: So yeah, there seems to be some kind of error with Steam in your case. Odd... Let me think about it a little and see if I can think of something to test if we can know what is not working. EDIT: The file is Lauhdutin@Resources\main\platforms\steam\init.lua |
thanks for pinpointing the specific init.lua file, at least that's some small step farward... we know what file is kicking the error out and where it is now. |
Ok @Nathipha @humanspida , let's try this little change:
on the line 188 of the file that I pointed before. EDIT: Be carerul, Github removes one of the backlash! now it's fixed |
same init.lua error |
Yeah, I didn't think about it enough. I will take more time xD |
that whole getLibraries function starts at line 175 my D:\Steam\Steamapps\libraryfolders.vdf has plenty of entries |
I think the issue is that there is not getting the rainmeter_helpers on that function for some reason. Just to check if I'm right, could you add this on line 176 and see if this solves the issue? Please understand that since I can't replicate the bug all I'm saying it's for testing since I don't have a way to check if it works. |
so add that on line 176 BEFORE what is currently on that line? pushing whats currently on that line down one line, yes ? |
Do you know if that file stores any kind of personal information? If no, could you paste here one line of that file? I mean, libraryfolders.vdf file. I don't know how to debug this since I can't replicate the bug. |
Since you don't have any trouble showing it, could you upload the file here then? So I can replace mine and check what it's going on. |
which file you want? or you want the libraryfolders.vdf ? |
libraryfolders.vdf it's the file that are making you to have that error. If you send me that file, I should be able to replicate the bug (at least I think so checking the code). |
So, probably should block out one piece of data on that VDF - the contentstatsid which I've seen replaced with many X's on other threads so I'll redact it and re-add it shortly... Probably shouldn't send it to anyone either. For a little test, I yanked the VDF file out of its home in the Steam folder in the default location and restarted steam. As you would expect, Steam recreated the VDF when it opened. This leads me to believe that the format of the VDF has changed or there's something off about the way the skin accesses the information in the VDF This thread mentions differences in the VDF structure usage for another game: This thread also speaks of the format change: There's also this, that talks about changes to the VDF and how they broke a bunch of shit with it: |
OK... "LibraryFolders" The problen now is that it thinks Steam isn't running for some reason and when you click a game tile it crashes the skin... |
Ok, since you cant send me the file, could you tell me how I can generate it? Mine is empty (well, only one line but unrelated I think) |
Yep, shouldn't be necessary. @Nathipha I will make (maybe tomorrow) a PR to this repository if you prefer to wait, though since it won't be merged you will have to download the file manually and replace it, but maybe it's better to you than to manually modify the file. @humanspida the fix for steam not running: In the same file (Lauhdutin@Resources\main\platforms\steam\init.lua), go to line 589 and replace this original line: I will include this change also on that PR. |
That line of code for me is on line 590 for whatever reason now.... and that's all it is - a simple switch from an upper case S to a lowercase one. Thanks very much |
Is it possible to have the sort options persist across restarts?... I like to have my display sorted by most recently played usually. |
Not with the actual version. Again IIRC I also added that change on my own version, but can't confirm now. Until I check that, you can see if my answer to this issue solves your issue at the moment: #153 |
Perfect... Another wonderfully simple fix: Cheers pal |
Now there's just that last thing with the Game.ini causing that error on open unless someone finds something else that doesn't work: init.lua:926: attempt to index field 'GAME_BEING_MODIFIED' (a nil value) As mentioned a few comments ago, this section of code starts at line 905 in the "moon file", as you called it earlier, which is stashed in the resources\game folder. While not important to me, I'm sure there's people that will want to use that feature. |
Could you put your steps to get that error? Middleclicking a game to open the menu it's working fine to me |
Doesn't seem to matter which game tile I right click on - select Game from the lauhdutin expandable menu and launch Game.ini Middle click also seems to work fine for me. It's only the right click and "manual" launch of the Game.ini that throws an error at me |
That seems to be the error. You have to click the wheel mouse hovering the game to launch the game.ini. Right clicking won't work. |
I haven't come across that error myself, no. Interesting, I wonder why it hates the right click and manual opening of the Game.ini |
I've never had such issue. Not a clue atm, I'll check tomorrow to see if I find something |
Thanks again for your help with sorting through these bits today, much appreciated. |
No problem! Glad to help. Did you check my previous post about your game.ini issue? I mean, this: That seems to be the error. You have to click the wheel mouse hovering the game to launch the game.ini. Right clicking won't work. |
Yea I did, and middle clicking works as you would expect. So, im just gonna ignore the right click menu for launching the game.ini file. On the appmanifest error: |
That's a Rainmeter feature, skins can't do anything about that. Besides, this project seems to be abandoned at the moment, so... |
Gotcha, well I shall continue to ignore the right click game.ini as there's a working alternative that's faster in place. |
@Nathipha @humanspida check this PR: #166 @humanspida I suggest you to update the file with the modified one since I updated the system to get it more precisely ;) |
Have downloaded the files from my master now I've merged the quick fixes into it. On loading the skin theres a rainmeter_helpers error: rainmeter_helpers.lua:152: Failed to write to "C:\Users...\Documents\Rainmeter\Skins\Lauhdutin\Resources\Languages\English.txt". This same error appears over the settings window if you launch that as well. |
Yes, it's expected. The |
Ahh so pull specific files out of the dist folders to replace them individually. That makes sense now you say it. Nice and easy - deleted the skin folder I replaced and restored the backup I made a moment ago. Then grabbed the Steam init.lua file and replaced the one from yesterday with the one I downloaded with all the commits added into it. |
After more than two years the error is back unfortunately, this time with id 219740, which is Don't Starve according to google. The game is still installed but the file is indeed missing. Any idea how to fix this (@BanCrash )? |
I forget exactly how I fixed this issue myself, I do remember it happening though...You can try moving the appmanifest file out of the folder to somewhere else temporarily, and restarting steam - it should recreate the appmanifest file if im not mistaken. |
That's the thing: The file doesn't exist at that path because the game is installed on the other SSD (sorry, forgot that it's there), which is also where the actual appmanifest file is. The game starts just fine, already verified the files and I restart my PC and Steam every day. A bunch of other games are also installed on the other SSD and I was playing at least one of them a lot in the days before the error appeared. |
Please note that I don't use anymore this skin and I don't test this solution, but well, since it's the best you'll have I guess it worth a shot. Please make a backup before testing this, just in case it destroys your already existent database. Add In line 468 of dist/@Resources/main/platforms/steam/init.lua (I used as base my PR opened of quick fixes) this part of code without removing anything else:
Test it and let me know if this fixes the issue. Also let me know if the game that has the issue is being detected properly. |
@BanCrash |
Could you confirm that your Steam path is well set on your Lauhdutin settings ? I mean, if you have Steam installed on X: drive, confirm that in Lauhdutin settings your Steam path is on X: drive too. I'm not using any Rainmeter skin any longer, but Playnite |
Yes, in the "Steam" settings it's got the correct "Client path" (G:\games\Steam). This is a small SSD with the Steam install and only a handful of games, while the other SSD (F:) has got all the other games, including the one that apparently caused the error.
Thanks for the link. Is it possible to add some type of shortcut for multiple games to the desktop (like this skin) with that app? |
In your primary/default steam install location, under Steam\steamapps there should be a libraryfolders.vdf - and also in the secondary steam library folder there should be a libraryfolder.vdf file... is there a libraryfolder.vdf file in this secondary location?... if you open your libraryfolder.vdf from this secondary game install location in notepad, what does the format/layout look like? I had to make changes regarding the libraryfolder.vdf file in this secondary location... with BanCrashs assistance, managed to get that sorted and that fix is detailed earlier in this thread - had to revert the libraryfolders.vdf data layout to the old way to get the skin to recognise that there were games to detect in that location. Here's a link to a comment of mine in that section of this thread regarding the libraryfolder.vdf file and related changes needed at that time: The contents of the libraryfolder.vdf file in my secondary install location looks like this now as steam has gone through a few updates since then and I guess they changed/fixed some things: "libraryfolder" Note: github not repecting the indentation in that snippet. The libraryfolders.vdf file in the primary install location should have some content that matches the data in the libraryfolder.vdf from the secondary install location as well as a few extra details, and list the appmanifest files located there for everything installed in this secondary location below the data for the primary install location. Also, have you tried uninstalling and reinstalling the the game you think caused the issue... I think this should make steam replace the appmanifest file for that game. Maybe there was some small problem with the file. |
Short description of the issue
After installing skin, restarting Rainmeter, loading the skin, opening settings and making changes to the size and number of frames to display, then inputting the Steam client path... my Steam username is automatically added at this point. No other settings changed. No other platforms or windows shortcuts are enabled for the skin, only Steam.
After saving and closing the settings - then refreshing, the skin throws an init.lua error and goes no further.
Expected behaviour was to load all the Steam games, which obviously didn't happen.
Lauhdutin version
Old Version 3.0.4 (with large grey settings window) - stopped working on 11 Sept' 2021, removed for latest stable
Version 3.0.4 (latest stable release) - didn't work, threw an error - provided below
Version 3.1.0 beta 4 - also didn't work, threw same error as stable, provided below
Rainmeter version
Version 4.5 (latest from website)
Python version
Version 3.9
Windows version
Windows 10 Pro 21H1 - Build 19043.1165
Error messages
Version 3.0.4 (old grey settings window) - only said "processing", no other details.
Version 3.0.4 (latest stable release) - init.lua:189: attempt to call method 'endsWith' (a nil value)
Version 3.1.0 beta 4 - init.lua:188: attempt to call method 'endsWith' (a nil value)
Steps to reproduce the issue
Not sure what's causing the issue to be honest. I only know from those init.lua errors that it's not finding what it wants in whichever lua file it's looking in and kacks itself when the information isn't present.
If it cant find the games that probably just means it doesn't know where my games are because they're not in the default location. Strange, this wans't an issue before.
Steam client is in the default location of C:\Program Files (x86)\Steam
Non-game programs from Steam are stored in the default location
Games are stored on a separate drive with the location of D:\Steam\Steamapps\Common
This hasn't changed in years.
I see no way to add another steam location to the skin settings anywhere though... How would I add an alternative location?
Not using community profile parsing, have it disabled.
Steam profile is all set to public anyway.
The text was updated successfully, but these errors were encountered: