Skip to content
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

Startup Help File Needed #54

Open
nrcionline opened this issue Feb 17, 2019 · 11 comments
Open

Startup Help File Needed #54

nrcionline opened this issue Feb 17, 2019 · 11 comments

Comments

@nrcionline
Copy link

nrcionline commented Feb 17, 2019

I've downloaded and compiled https://github.com/BrennanConroy/ShootR
I have software developer experience, but I can't figure out how to start the program. It looks like the files need to be moved around and put in one place so they all work together.
I tried going to wwwroot/index.html but the screen only hangs there.
Does this mean it didn't compile or where do I start?
Do I need to start the server separately?

I used VS to start in debug mode and it got a bit farther. I see the ship now but it still hangs on the "loading" graphic (two-tone gray). Why is it not continuing? From VS it accesses the game by going to http://localhost:61691 - is this the standard way to start the game?

@NTaylorMullen
Copy link
Owner

@BrennanConroy could you share some guidance?

@BrennanConroy
Copy link

Looks like the current code doesn't work, I'll push a quick fix to my fork.

@BrennanConroy
Copy link

Should be good now 😄

@nrcionline
Copy link
Author

Yes, that fixed it - at least when I run from VS. How do I start it outside of VS (what do I type into the browser?) The best I know would be to go to localhost/shootr where shootr points to the wwwroot, but this results in the same hanging (see picture).
shootr

@BrennanConroy
Copy link

Just try http://localhost:<port> you shouldn't need to navigate to a specific path

@nrcionline
Copy link
Author

Okay. Which port? How do I define which port? Don't I have to get the program running for it to be listening on a port? The compiler only creates a .dll, not an executable. So, I'm confused as to how to start the program. Or if a website, don't I have to create an entry in IIS for the website and define a port? But then where do I point the website? All I've got is a default website that responds to the default port (80).

I found this file, but the urls don't work (I get a cannot connect which means nothing is there):
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:64414/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ShootR": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:64415/"
}
}
}

@BrennanConroy
Copy link

When you dotnet run you should get some console output that says what port the app is listening on

@nrcionline
Copy link
Author

That's helping me get closer. I've looked up the syntax for dotnet run, but isn't there a bat file with the command and the necessary arguments in it? What parameters do I pass to dotnet run to get it to work?

@BrennanConroy
Copy link

All you should need to do is go to the folder with the .csproj and run dotnet run. Assuming you have dotnet installed https://dotnet.microsoft.com/download

@nrcionline
Copy link
Author

I can see how that starts everything and it at least pulls up now. I didn't change any code, but now it is hanging like it was before you made your fix. It hangs whether I use VS to start it, or I start from the command line with dotnet run. I've looked at main.js and it has your changes in it still and I've rebuilt the code several times. Still hangs. Let me know if you have any ideas. Do I need to clean out old files?

@nrcionline
Copy link
Author

Apparently a firefox caching problem. I can run it on Edge and Chrome.
Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants