There currently will be warnings showing in the SMAPI console about unknown items. These items are new for 1.6 and currently they are not catalogued. The warnings do not effect game play so you are good to go. I hope to get the warnings removed with a release in the next few days.
I see I have a number of outstanding posts. I will be answering everyone, soon. My wife suffered a stroke this week so my time is being spent at the hospital. I am not ignoring anyone, just had a little priority shift.
Here is a copy of the error code from the console. [Stardew Web] StardewWebServer.ServiceRequest: System.NullReferenceException: Object reference not set to an instance of an object. at StardewWeb.Utilities.StardewWebFarmUtilities.GetAllFeatures() in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Utilities\StardewWebFarmUtilities.cs:line 164 at StardewWeb.RequestHandlers.HomeRequestHandler.HandleTown(HttpListenerRequest request) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\RequestHandlers\HomeRequestHandler.cs:line 395 at StardewWeb.RequestHandlers.HomeRequestHandler.Handle(HttpListenerRequest request) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\RequestHandlers\HomeRequestHandler.cs:line 48 at StardewWeb.StardewWebServer.ServiceRequest(HttpListenerRequest request, HttpListenerResponse response) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Objects\StardewWebServer.cs:line 396
Also, the mines information in the 'Around Town' page seems inaccurate. I went to a floor listed as monster floor, but it turned out to be a normal floor.
I can't get the angler achievement tracker to work. Whenever I try to see which fish I need to catch before the season end, it shows that i didn't catch any. I clicked the HELP button and it showed an error: Page Not Found No resource is available at the specified filepath: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\StardewWeb\data\stardewwebhelp\Help\achieve_master_angler.html
The file is completely empty, when i compare to the file in the same folder, achieve_gourmet_chef, it has some code in it.
I like this module very much. It brings me a lot of convenience in playing games. But in the latest version, when I started the game with the module, it seemed that he had some problems, perhaps caused by my own problems. I didn't know what these mistakes and warnings were about, and there was no way to solve them. Anyway, the use of this module is not very smooth at present. I have removed it from the mod until it looks fine. My English is not good. This passage comes from translation software.
I only need 5000 experiences to get to skill level 10 instead of 15000 experiences when I have this mod activated. Is this a bug or did I accidentally trigger some cheats?
I have been looking for a mod like this for months! Love how you make the web intergrate well into the game and made it look like its meant to be there (instead of just mirroring the web browser in the game)
I do indeed love this mod but the problem starts wtih playing Stardew offline. If I want to play Stardew on my steam deck or laptop when I am out then this mod wont work [sadge :( ]. I know its a big ask (and probably imposable but to me its seems like something that can be done but I dont know much so idk) but I would love if you (or someone eles that is willing to do it) to add the info into the mod (or seprate mod) so it is possable to use this without a connection.
I know that if the wiki updates then the mod will be outdated but most people (or at least me) are fine with that as long as we dont have to alt tab or have 20+ tabs open when playing.
Again, I dont know if this is possable but would love if somehow this was added in someway
My theory for adding it into the game itself would be taking all the info that the game reads and rip it and put it in the mod. I dont know if this is how this works but my brain thigns that you can just take the info that the game uses and put it in the mod itself
If this is not how this works and I am being silly, then I apologies
When you say the mod does not work offline, do the mod pages get displayed and on the wiki entries are blank?
You are basically looking for the wiki pages to be cached up for offline viewing, correct?
Helpful Info, if you could:
Upload the logs to smapi.io for either/both your laptop and steamdeck when you try the mod.
Probably why it is currently not working:
Steamdeck, not sure if all of the code libraries I use are on the steamdeck (would be interesting to see you error)
Laptop, possibly your network is public when you are out and windows security blocks the mod from starting public networks (again the logs have the answer)
Okay, to be honest I did not try to the mod before I posted this. I was under the impression that the Stardew Web would appear in game. I see now that it stays in your web browser.
To answer your questions, I was incorrect. I am glad to say that the mod works and displayed the "domain" without any connection (wifi) what so ever. I am mainly looking for this exact mod, but inside the game so I dont need to alt-tab to get to the information I want.
I apologies for the misunderstanding on my part. But yes, I would love it if you (or someone who is willing) to put this mod inside the game without any external sources (web browser). Would be cool for this to appear when you use the farm computer I think. But that is just how I would implement it
Yeah, embedding a browser in a monogame (Stardew's engine) does starting push the everything is possible boundary. But let me put on my thinking cap and see what I can come up with.
I saw this this morning at like 7 PST and was thinking through it as the day went by.
Since a browser might be impossible without building one from the ground up I remembered about "Almanac" Mod that I also thought was interesting, but in the end dose not display the information I think is right to have on hand. If you do something that this you could turn the sight into something like the handbook from Fan-gamer but inside the game. Now ofc I dont mean exactly like the one that is for sale or exactly like the other mod, but I am sure you know what I mean.
Thats just my thoughts though. If this dose not sound any more possible then sorry for wasting time lol But just trying to help :3 But if it is possible I would LOVE to help in what ever way I can. I dont know a lot about coding but would still like to try to help in any way I can as I know that lots of other people would love to see this mod thrive
If you are still interested or thinking or a way to implementing this in game I also want to point you to the Lookup Anything mod as it also implements something like this inside the game. I do how ever like the look of your mod better so thats why I am trying to help in what ever way I cant. Technically you dont need to emulate a full web browser into the game. If needed, you could just put the real UI elements into the game when pushing a button or using an item, since I know that making a fake web browser might be impossible.
Is there a way to access the page not from the same device running the game? Like, if I run the game/mod on my PC and access the page from my mobile device?
3. Open window Firewall and add an exception for port 8080.
The pages will be served up, however, the mobile formatting is not great. I have been slowly migrating my HTML to be mobile friendly, but it is not yet complete.
Tag Value url - The fully qualified URL user - The user or user-group name listen - One of the following values: yes: Allow the user to register URLs. This is the Default value. no: Deny the user from registering URLs delegate - One of the following values: yes: Allow the user to delegate URLs no: Deny the user from delegating URLs. This is the default value. sddl - SDDL string that describes the DACL
Remarks: This command reserves the URL for non-administrator users and accounts. The DACL can be specified by using an NT account name with the listen and delegate parameters or by using an SDDL string.
I am on windows 11 and I got the same message as 'yndrelbosch.' I tried to play around with the examples given at the end of the message, but all of the entries I put were incorrect.
netsh http add urlacl url=http://+:8080/ user={username from whoami command}
EDIT: okay, so the reserving worked, BUT stardew web completely stopped working. it's giving me http error 503 WITHOUT inbound firewall exception, and then a standard "website refused to load" error WITH inbound exception. also, big walls of red on SMAPI log, saying that Stardew Web has an invalid address. (The same error happens with outbound exception only + with both turned on, too.) I tried to delete the url reservation (hoping that stardew web would work again), but it kept saying the command was not found, command was incorrect, or syntax incorrect. infinite respect on ur name as a mod creator for dealing with all this code stuff :') I'm getting a headache trying to make sense of it.
Yeah, this mod is pushing the edge for a mod, turning on a web server makes Windows mad. If you want to keep going you need to now add a Firewall rule. I am guessing Win11 is tighter on security. To add the rule:
Start Windows Defender Firewall.
Select 'Allow apps to communicate through Windows Defender Firewall'
In the list of apps, select 'Stardewmoddingapi' and tick the 'Private' box.
Start Stardew.
All this does is allow Stardewmoddingapi to listen for connections on Private networks only.
I did as you said in the most recent comment and it still wouldn't work-- so I deleted the reservations to make the mod work on my main pc again. I have hated Windows 11 since the day I got this pc, so that makes sense honestly.
Yeah, now the site doesn't load at all anywhere XD I dunno, here's a SMAPI log if that'll help at all? https://smapi.io/log/1cdf1a1cfa1640b0a9442d7d61de95b7
If you want the mod to work on your main pc again, open a CMD window as administrator and copy this into it. I don't think it's necessary to revert the firewall changes in order for the mod to work again, (I didn't) but if it still doesn't work then that might be something to try. netsh http delete urlacl url=http://+:8080/
166 comments
Thanks
SMAPI log: https://smapi.io/log/0e2480a667b44f2ea4390752720d626e
Here is a copy of the error code from the console.
[Stardew Web] StardewWebServer.ServiceRequest: System.NullReferenceException: Object reference not set to an instance of an object.
at StardewWeb.Utilities.StardewWebFarmUtilities.GetAllFeatures() in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Utilities\StardewWebFarmUtilities.cs:line 164
at StardewWeb.RequestHandlers.HomeRequestHandler.HandleTown(HttpListenerRequest request) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\RequestHandlers\HomeRequestHandler.cs:line 395
at StardewWeb.RequestHandlers.HomeRequestHandler.Handle(HttpListenerRequest request) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\RequestHandlers\HomeRequestHandler.cs:line 48
at StardewWeb.StardewWebServer.ServiceRequest(HttpListenerRequest request, HttpListenerResponse response) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Objects\StardewWebServer.cs:line 396
Also, the mines information in the 'Around Town' page seems inaccurate. I went to a floor listed as monster floor, but it turned out to be a normal floor.
I can't get the angler achievement tracker to work. Whenever I try to see which fish I need to catch before the season end, it shows that i didn't catch any. I clicked the HELP button and it showed an error:
Page Not Found
No resource is available at the specified filepath: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\StardewWeb\data\stardewwebhelp\Help\achieve_master_angler.html
The file is completely empty, when i compare to the file in the same folder, achieve_gourmet_chef, it has some code in it.
I like this module very much. It brings me a lot of convenience in playing games. But in the latest version, when I started the game with the module, it seemed that he had some problems, perhaps caused by my own problems. I didn't know what these mistakes and warnings were about, and there was no way to solve them. Anyway, the use of this module is not very smooth at present. I have removed it from the mod until it looks fine.
My English is not good. This passage comes from translation software.
[Stardew Web] LS_CropData.LoadSection: crop key: Cornucopia_BroccoliSeeds, System.ArgumentNullException: Value cannot be null. (Parameter 'key')
at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
at StardewWeb.Librarian.Sections.ILibrarySection.AddItem(String sKey, StardewItem oItem) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Librarian\Sections\ILibrarySection.cs:line 165
at StardewWeb.Librarian.Sections.LS_CropData.LoadSection() in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDW Components-1.6\Library\LS_CropData.cs:line 135
[Stardew Web] AddSeedToCropRecord: null parameter value [sSeedMetaId=626-05224, sCropMetaId=????]
[Stardew Web] LS_CropData.LoadSection: crop key: Cornucopia_YellowSquashSeeds, System.ArgumentNullException: Value cannot be null. (Parameter 'key')
at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
at StardewWeb.Librarian.Sections.ILibrarySection.AddItem(String sKey, StardewItem oItem) in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDV_StardewWeb_Core\StardewWeb\Librarian\Sections\ILibrarySection.cs:line 165
at StardewWeb.Librarian.Sections.LS_CropData.LoadSection() in \\media-server\rwd\SourceCode\Gaming\Stardew Valley\My Mods\SDV_StardewWeb\Source\Shared\SDW Components-1.6\Library\LS_CropData.cs:line 135
https://smapi.io/log/82125009c46749efbf5003ff22306d4c
I do indeed love this mod but the problem starts wtih playing Stardew offline. If I want to play Stardew on my steam deck or laptop when I am out then this mod wont work [sadge :( ].
I know its a big ask (and probably imposable but to me its seems like something that can be done but I dont know much so idk) but I would love if you (or someone eles that is willing to do it) to add the info into the mod (or seprate mod) so it is possable to use this without a connection.
I know that if the wiki updates then the mod will be outdated but most people (or at least me) are fine with that as long as we dont have to alt tab or have 20+ tabs open when playing.
Again, I dont know if this is possable but would love if somehow this was added in someway
I dont know if this is how this works but my brain thigns that you can just take the info that the game uses and put it in the mod itself
If this is not how this works and I am being silly, then I apologies
Helpful Info, if you could:
Probably why it is currently not working:
Nothing is impossible.
To answer your questions, I was incorrect. I am glad to say that the mod works and displayed the "domain" without any connection (wifi) what so ever.
I am mainly looking for this exact mod, but inside the game so I dont need to alt-tab to get to the information I want.
I apologies for the misunderstanding on my part.
But yes, I would love it if you (or someone who is willing) to put this mod inside the game without any external sources (web browser).
Would be cool for this to appear when you use the farm computer I think. But that is just how I would implement it
Since a browser might be impossible without building one from the ground up I remembered about "Almanac" Mod that I also thought was interesting, but in the end dose not display the information I think is right to have on hand.
If you do something that this you could turn the sight into something like the handbook from Fan-gamer but inside the game. Now ofc I dont mean exactly like the one that is for sale or exactly like the other mod, but I am sure you know what I mean.
Thats just my thoughts though. If this dose not sound any more possible then sorry for wasting time lol
But just trying to help :3
But if it is possible I would LOVE to help in what ever way I can. I dont know a lot about coding but would still like to try to help in any way I can as I know that lots of other people would love to see this mod thrive
If you are still interested or thinking or a way to implementing this in game I also want to point you to the Lookup Anything mod as it also implements something like this inside the game.
I do how ever like the look of your mod better so thats why I am trying to help in what ever way I cant.
Technically you dont need to emulate a full web browser into the game. If needed, you could just put the real UI elements into the game when pushing a button or using an item, since I know that making a fake web browser might be impossible.
I dont know if I am or just being annoying lol
1. In the Stardew Web configuration page set your web server address to:
http://+:8080/
2. You need to "reserve" that URL in windows security. Open a command window (as administrator) and run the following:
netsh http add urlacl url=http://+:8080/ listen=yes
3. Open window Firewall and add an exception for port 8080.
The pages will be served up, however, the mobile formatting is not great. I have been slowly migrating my HTML to be mobile friendly, but it is not yet complete.
The syntax supplied for this command is not valid. Check help for the correct syntax.
Usage: add urlacl [url=]<string>
[ [user=]<string>
[ [listen=]yes|no [delegate=]yes|no ]
|
[sddl=]<string>
]
Parameters:
Tag Value
url - The fully qualified URL
user - The user or user-group name
listen - One of the following values:
yes: Allow the user to register URLs. This is the Default value.
no: Deny the user from registering URLs
delegate - One of the following values:
yes: Allow the user to delegate URLs
no: Deny the user from delegating URLs. This is the default value.
sddl - SDDL string that describes the DACL
Remarks: This command reserves the URL for non-administrator users and
accounts. The DACL can be specified by using an NT account name
with the listen and delegate parameters or by using an SDDL string.
Example:
add urlacl url=http://+:80/MyUri user=DOMAIN\user
add urlacl url=http://www.contoso.com:80/MyUri user=DOMAIN\user listen=yes
add urlacl url=http://www.contoso.com:80/MyUri user=DOMAIN\user delegate=no
add urlacl url=http://+:80/MyUri sddl=...
I tried to play around with the examples given at the end of the message, but all of the entries I put were incorrect.
I spun up a Windows 11 VM and found the following works (I do not have Stardew installed on the VM, I have just tested the command)
netsh http add urlacl url=http:/+:8080/ user={the name from the whoami command}
I ran the command netsh http show urlacl and the new entry was added to the end of the list.
Let me know how that works.
netsh http add urlacl url=http://+:8080/ user={username from whoami command}
EDIT: okay, so the reserving worked, BUT stardew web completely stopped working. it's giving me http error 503 WITHOUT inbound firewall exception, and then a standard "website refused to load" error WITH inbound exception. also, big walls of red on SMAPI log, saying that Stardew Web has an invalid address. (The same error happens with outbound exception only + with both turned on, too.)
I tried to delete the url reservation (hoping that stardew web would work again), but it kept saying the command was not found, command was incorrect, or syntax incorrect.
infinite respect on ur name as a mod creator for dealing with all this code stuff :') I'm getting a headache trying to make sense of it.
- Start Windows Defender Firewall.
- Select 'Allow apps to communicate through Windows Defender Firewall'
- In the list of apps, select 'Stardewmoddingapi' and tick the 'Private' box.
- Start Stardew.
All this does is allow Stardewmoddingapi to listen for connections on Private networks only.I have hated Windows 11 since the day I got this pc, so that makes sense honestly.
https://smapi.io/log/1cdf1a1cfa1640b0a9442d7d61de95b7
netsh http delete urlacl url=http://+:8080/