mxgmn / WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
Other
23.05k stars 1.23k forks source link

Unable to get the program to work in Windows 10 #74

Closed Orangery-DS closed 2 years ago

Orangery-DS commented 2 years ago

Hello - I have installed 'dotnet sdk' but cannot get the 'dotnet run --configuration Release WaveFunctionCollapse.csproj' command line to work. Any advice? Thank you.

masonwheeler commented 2 years ago

"It doesn't work" is not a particularly useful error report. All that means is "it's doing something other than what I expect it to do." But if you don't say what it's doing or what you expect, that gives the people who read the error report literally nothing to go on.

Could you explain what you expect it to do and what it's actually doing instead? For example, if it displays an error message, what is the message?

Orangery-DS commented 2 years ago

I appreciate you getting back to me.

Yes, I agree, the information I gave you was not much use. It's just that I spent a couple of frustrating hours trying to get WFC to run. It meant installing large files such as 'GitHubDestop', '.Net', 'Visual Studio' and 'GitBash'. YouTube videos weren't that much help either.

Anyhow, I remember now, that I could not get DotNet (.Net) to launch at all. Perhaps I should try a re-install, as a repair did not work (no error messages, just a flash). With Visual Studio, I would follow written suggestions online on how to run a project from GitHub but right clicking on files did not give me the same pull down menus, so got no further. GitBash seemed too long winded and confusing.

I still hope to get WFC to run, as the program looks fascinating. I was hoping I could experiment with it and import some of my own 8-bit pixel drawings. Does this help?

Regards - Dave S.

mxgmn commented 2 years ago

Hi! What happens when you run dotnet run --configuration Release WaveFunctionCollapse.csproj?

You don't need GitHub Desktop, Visual Studio or GitBash to run it, only .Net.

Orangery-DS commented 2 years ago

That's just it - I couldn't get .Net to launch at all. I only downloaded and installed other programs as a last resort. However, I do now remember that I copied and pasted 'dotnet run --configuration Release WaveFunctionCollapse.csproj' into the Windows 10 command prompt via .Net, but there was an issue (see attached).

dotnet via command prompt

What am I doing wrong here?

Thanks for your help.

Orangery-DS commented 2 years ago

Sorry about this. I have since moved all the files from the WFC-master into the same folder as dotnet.exe. Still an issue though.

dotnet via command prompt_issue

mxgmn commented 2 years ago

Replace net5.0 with net6.0 in WaveFunctionCollapse.csproj and run the command, it should work. In general, you can navigate to any folder using the cd command (google how to use it) and run dotnet run from there.

Orangery-DS commented 2 years ago

Okay - please ignore the last two comments. I had to run command prompt as administrator and I have also now installed .Net version 5.0, instead of 6.0.4. So I now have all the example files but still don't know how to get WFC running.

dotnet 5 0 via command prompt

Orangery-DS commented 2 years ago

You beat me to it. So I now have all the example files but how do I get the WFC to actually run?

Thanks - Dave S.

On Sun, May 1, 2022 at 5:42 PM Maxim Gumin @.***> wrote:

Replace net5.0 with net6.0 in WaveFunctionCollapse.csproj and run the command, it should work. In general, you can navigate to any folder using the cd command (google how to use it) and run dotnet run from there.

— Reply to this email directly, view it on GitHub https://github.com/mxgmn/WaveFunctionCollapse/issues/74#issuecomment-1114280776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOACQCEV7RHJCU73YSUC4TVH2X6FANCNFSM5UY2EUNA . You are receiving this because you authored the thread.Message ID: @.***>

mxgmn commented 2 years ago

It's not example files, it's generated files. You have run it. Example files are in samples/.

Orangery-DS commented 2 years ago

I see but what if want to edit the input PNG or try out my own? Also, how did you create your visuals (watching the patterns self generate)?

At 14;15 in this video https://www.youtube.com/watch?v=fnFj3dOKcIQ by Brian Bucklew, he shows a quick code example where you can alter the sample, output size and orientations. Is this something I can do by altering your code, in say Wordpad?

Sorry to be a pain.

Regards - Dave S.

On Sun, May 1, 2022 at 6:39 PM Maxim Gumin @.***> wrote:

It's not example files, it's generated files. You have run it. Example files are in samples/.

— Reply to this email directly, view it on GitHub https://github.com/mxgmn/WaveFunctionCollapse/issues/74#issuecomment-1114294148, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOACQCZCCYK6FJTED4P4O3VH26UVANCNFSM5UY2EUNA . You are receiving this because you authored the thread.Message ID: @.***>

mxgmn commented 2 years ago

Sure, you can alter the code or alter sample PNGs. Edit samples.xml to run with your own samples.