alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

Windows setup? #21

Open tombrown08 opened 7 years ago

tombrown08 commented 7 years ago

does anyone have instructions on how to do this in a windows environment rather than mac or is it not possible?

ginareams commented 7 years ago

I'm looking for the same answer. I was under the impression (including from the website), until the final steps in the ReadMe, that this was possible on Windows.

AlBakerKY commented 7 years ago

I successfully ran this on windows 10. It shouldn't deviate too much, BUT see the answer from @MureedSultan on https://github.com/alexa/interactive-adventure-game-tool/issues/3. I hit that issue.

ferguson4848 commented 7 years ago

Thanks for pointing me in that direction. But where did you run those commands from? I see in the Readme that this is run using Node.js and with a standard web browser. But I'm a bit confused on how to get that function on Windows?

I'd really appreciate any guidance.

Thanks

On Mon, Jan 23, 2017 at 10:50 AM, Al Baker notifications@github.com wrote:

I successfully ran this on windows. It shouldn't deviate too much, BUT see the answer from @MureedSultan https://github.com/MureedSultan on #3 https://github.com/alexa/interactive-adventure-game-tool/issues/3. I hit that issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/21#issuecomment-274544534, or mute the thread https://github.com/notifications/unsubscribe-auth/ASHPY6DjTILZRtFkhOTiK757dg7GlGn9ks5rVNpQgaJpZM4LfexG .

AlBakerKY commented 7 years ago

That (from @MureedSultan) is a change to upload.js.

The installation commands themselves are run from the command line. 'Brew' is os x centric, so you can skip that, but you will need to install node (I have v6.8.0). NPM comes with it.

ferguson4848 commented 7 years ago

Okay, so I did install Node, but how do I create a file under a ".aws" directory?

On Mon, Jan 23, 2017 at 11:18 AM, Al Baker notifications@github.com wrote:

That (from @MureedSultan https://github.com/MureedSultan) is a change to upload.js.

The installation commands themselves are run from the command line. 'Brew' is os x centric, so you can skip that, but you will need to install node (I have v6.8.0). NPM comes with it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/21#issuecomment-274553720, or mute the thread https://github.com/notifications/unsubscribe-auth/ASHPY0En7KZ9nkeu--72ktiQz-wEGy2cks5rVOECgaJpZM4LfexG .

ginareams commented 7 years ago

Hey! Just started seeing notifications for this thread on the way to work. I happened to get this running on Windows 10 thanks to this and another thread, with some kinks in the upload process. (It sounds like a change to the upload.js might solve my other issues.)

I've been meaning to write a Windows installation guide for a friend. If I get to that before this thread is answered, I'll post it here! (Though I think I'll be referring to this thread quite a bit to remember the steps. :) )

ferguson4848 commented 7 years ago

That would be amazing. I'd really appreciate that.

Thanks

On Mon, Jan 23, 2017 at 12:28 PM, ginareams notifications@github.com wrote:

Hey! Just started seeing notifications for this thread on the way to work. I happened to get this running on Windows 10 thanks to this and another thread, with some kinks in the upload process. (It sounds like a change to the upload.js might solve my other issues.)

I've been meaning to write a Windows installation guide for a friend. If I get to that before this thread is answered, I'll post it here! (Though I think I'll be referring to this thread quite a bit to remember the steps. :) )

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/21#issuecomment-274574417, or mute the thread https://github.com/notifications/unsubscribe-auth/ASHPYwe_-ePyss1hcr_KJv6lXSn0Ib5Qks5rVPFagaJpZM4LfexG .

AlBakerKY commented 7 years ago

@ginareams There are quite a few updates that are needed AKAIK. For example, the online simulation just doesn't work for me at all. I can get Alexa to open the skill, but she will not accept any further commands after that. I did find that the test functionality of the skill on AWS itself was very useful for phonetic purposes. I did a puzzle game with this for Global Game Jam.

ginareams commented 7 years ago

@AlBakerKY When you say the online simulation, do you mean Echosim.io? I was able to test through the AWS test tool, Echoism.io, and my Alexa. So you can open your skill using "my skill" (or whatever prompt), but nothing else?

I've only got the tool running recently, but I've been able to run the example scenario (with the 4 doors) to the end on my device.

A puzzle game? That sounds neat! You mean using this tool or another?

MureedSultan commented 7 years ago

@ferguson4848

You can also set windows env variables AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY. Refer to the Configuration Settings and Precedence section here.

AlBakerKY commented 7 years ago

@ginareams Correct. It would load the initial scene, but no interaction beyond that. I tried it in chrome and edge.

Yes, using this tool. It is game that lets you, conceptually, mask sentences to get new meaning from them. I wanted to see if I could come up with a game mechanic other than just exploring. It worked out pretty well. I didn't use any JS, but I would like to explore figuring out how to hook into the code so I could set session variables and hit Dynamo on my own.

ginareams commented 7 years ago

@AlBakerKY Were you able to test your Puzzle Game through Device though or submit it?

AlBakerKY commented 7 years ago

@ginareams Yes. I could use it directly through Alexa with virtually no delay. The editor works ok, but if I had to do it again, I would probably adopt a more advanced JSON editor until they have cut/paste and move functionality. I am not sure if I will submit yet.

nimzoking commented 7 years ago

Coming to this a little late! However, on Windows-10 I created a Linux VM with Hyper-V and do all the npm / github stuff on the Linux VM. Works a treat, and I do not need to worry about Windows trying to emulate Linux :)

For an editor, I use Notepad++, it runs perfectly fine in Windows-10.

Whitwood commented 6 years ago

Was a Windows installation guide ever produced for this ? I could really do with some help

Manpuncher commented 6 years ago

Yeah, I'm up to a point where I've got Node and NPM installed, I've created the .aws directory with the credentials file inside, but I appear unable to start npm the way it expects to be run.

Edit: Okay, I managed to get to the part where the tool opens in my web browser. I had Node and NPM installed on my machine, but it looks like what I hadn't done was install npm into the project directory - navigate to the folder in a command line and run "npm install", wait for it to finish, then "npm start".