You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ultrasam I lazied out and created a new C# project in Xamarin Studio (which is pretty much like Visual Studio) and added the C# files which where in the repo. Had to add references to System.Xml and System.Drawing before building.
When creating a new C# project in Visual Studio it gives me several options:
Windows Forms Application,
WPF Application
Console Application
Shared Project
Class Library
I've got all this errors when I tried to build this, I am new at doing a project in Visual Studio 2015, sorry about that, but any help would be appreciated
Ok, I think I had two programs with the method main and that was causing problems, but now I fixed that and now I am getting the error shown here:
By the way the file samples.xml is there...
After following @squarism 's directions I am getting
System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in <93576e487af246b9880ff86779ad60ff>:0
--- End of inner exception stack trace ---
at System.Drawing.Bitmap..ctor (System.String filename, System.Boolean useIcm) [0x0002b] in <93576e487af246b9880ff86779ad60ff>:0
at System.Drawing.Bitmap..ctor (System.String filename) [0x00000] in <93576e487af246b9880ff86779ad60ff>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
at OverlappingModel..ctor (System.String name, System.Int32 N, System.Int32 width, System.Int32 height, System.Boolean periodicInput, System.Boolean periodicOutput, System.Int32 symmetry, System.Int32 foundation) [0x00041] in <e8e8a4739e4b4f79b85af1dc0961b451>:0
at Program.Main () [0x000c9] in <e8e8a4739e4b4f79b85af1dc0961b451>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libgdiplus.dylib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000cc] in <93576e487af246b9880ff86779ad60ff>:0
--- End of inner exception stack trace ---
at System.Drawing.Bitmap..ctor (System.String filename, System.Boolean useIcm) [0x0002b] in <93576e487af246b9880ff86779ad60ff>:0
at System.Drawing.Bitmap..ctor (System.String filename) [0x00000] in <93576e487af246b9880ff86779ad60ff>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
at OverlappingModel..ctor (System.String name, System.Int32 N, System.Int32 width, System.Int32 height, System.Boolean periodicInput, System.Boolean periodicOutput, System.Int32 symmetry, System.Int32 foundation) [0x00041] in <e8e8a4739e4b4f79b85af1dc0961b451>:0
at Program.Main () [0x000c9] in <e8e8a4739e4b4f79b85af1dc0961b451>:0```
After googling I don't see a simple answer to that. Any one here encountered/solved it?
EDIT:
I was able to get it to do a bit more by following these commands in addition to what @squarism posted. Not sure if this is the best way, but it seems to be working.
brew cask install mono-mdk
open /usr/local/Caskroom/mono-mdk/4.6.1.3/MonoFramework-MDK-4.6.1.3.macos10.xamarin.universal.pkg
@ultrasam is the samples.xml files actually copied to the build directory ? If it isn't you could try copy pasting it there manually to confirm it fixes the issue you're having. I can't remember what was the setting to include a resource file in the build system of VS though...
EDIT: you will probably have the same issue with all the images
Ok I put the samples folder and samples.xml inside the bin/Debug/ folder and it worked!!!, it started creating a bunch of BMPs, now if I want to use my own designs, should I put them on the samples folder??
Not sure if this is still active but could somebody expand a bit on a 3D extension of the SW??
I was thinking of extending the XML with an "up" tag and then I would somehow need to "fix" those tiles in that level and build the rest around it??
Does that sound reasonable??
@procfxgen You mean a 3d example? 3d version is not released yet, so only Knots so far. Check out 6 2d example tilesets here, the algorithm is the same in all dimensions.
@mxgmn, is there a way you can close and lock this issue? Right now it seems to get reused every time anyone has a question (and emailing 23 people in the process), when really those questions should be new issues. Thanks!
Activity
Rubonnek commentedon Sep 30, 2016
In Arch Linux the same command works. Only had to install mono:
ultrasam commentedon Sep 30, 2016
How can I run this on a PC?
nilsding commentedon Sep 30, 2016
@ultrasam I lazied out and created a new C# project in Xamarin Studio (which is pretty much like Visual Studio) and added the C# files which where in the repo. Had to add references to
System.XmlandSystem.Drawingbefore building.ultrasam commentedon Sep 30, 2016
When creating a new C# project in Visual Studio it gives me several options:
Windows Forms Application,
WPF Application
Console Application
Shared Project
Class Library
Which one should I pick??
nilsding commentedon Sep 30, 2016
Use a Console Application and remove the
Program1.csfileultrasam commentedon Sep 30, 2016
I've got all this errors when I tried to build this, I am new at doing a project in Visual Studio 2015, sorry about that, but any help would be appreciated

mwaltersva commentedon Sep 30, 2016
Right click References > Add, select System.Draw
ultrasam commentedon Sep 30, 2016
Ok, perfect that worked it compiled with no errors, now how do I use the program??
ultrasam commentedon Sep 30, 2016
Ok, I think I had two programs with the method main and that was causing problems, but now I fixed that and now I am getting the error shown here:

By the way the file samples.xml is there...
dzoba commentedon Sep 30, 2016
After following @squarism 's directions I am getting
After googling I don't see a simple answer to that. Any one here encountered/solved it?
EDIT:
I was able to get it to do a bit more by following these commands in addition to what @squarism posted. Not sure if this is the best way, but it seems to be working.
kchapelier commentedon Sep 30, 2016
@ultrasam is the samples.xml files actually copied to the build directory ? If it isn't you could try copy pasting it there manually to confirm it fixes the issue you're having. I can't remember what was the setting to include a resource file in the build system of VS though...
EDIT: you will probably have the same issue with all the images
ultrasam commentedon Sep 30, 2016
well the file is there and I included it in the project:


Here is my project's folder:
Do you see anything wrong there?
ultrasam commentedon Sep 30, 2016
Ok I put the samples folder and samples.xml inside the bin/Debug/ folder and it worked!!!, it started creating a bunch of BMPs, now if I want to use my own designs, should I put them on the samples folder??
kchapelier commentedon Sep 30, 2016
yes, and reference them in the samples.xml file and fiddle with the properties a bit
TheDudeFromCI commentedon Sep 30, 2016
Is there a pre-compiled version of this? I am very new to C#, and have no idea how to compile or run it. >.>
60 remaining items
kronpano commentedon Jul 22, 2017
Not sure if this is still active but could somebody expand a bit on a 3D extension of the SW??
I was thinking of extending the XML with an "up" tag and then I would somehow need to "fix" those tiles in that level and build the rest around it??
Does that sound reasonable??
mxgmn commentedon Jul 23, 2017
@kronpano What is SW? I uploaded a simple 3D implementation of WFC here, the algorithm is the same in 3D.
kronpano commentedon Jul 23, 2017
SW = software and Thanks - hadn't seen that - will give it a try.
Cheers
fxgenstudio commentedon Aug 15, 2017
I want to generate a city for my voxel game, do you have a simple example, other than knots, to start understand ? thanks.
mxgmn commentedon Aug 16, 2017
@procfxgen You mean a 3d example? 3d version is not released yet, so only Knots so far. Check out 6 2d example tilesets here, the algorithm is the same in all dimensions.
fxgenstudio commentedon Aug 16, 2017
I play with knots 3d example, how to add ground ?
mxgmn commentedon Aug 16, 2017
@procfxgen Add ground.vox and ground.png, then in data.xml add the ground tile and vertical and horizontal adjacencies with existing tiles.
fxgenstudio commentedon Aug 18, 2017
Thanks, I have my ground titles now !

How to make "line" tile above "ground" titles ?
my "data.xml"
mxgmn commentedon Aug 18, 2017
@procfxgen Try this
It should generate vertical columns.
fxgenstudio commentedon Aug 18, 2017
sorry volume is empty ....
"vertical" correspond to blue axis (Z) and "horizontal" (X,Y) to red axis in magicavoxel ?
mxgmn commentedon Aug 18, 2017
@procfxgen This data.xml
and this samples.xml
should generate vertical columns.
If you want 3d, I think it's better to wait for a proper 3d release in September-October, it'll be much easier to experiment with, or try VoxModSynth.
mxgmn commentedon Aug 18, 2017
@procfxgen Yes, vertical corresponds to blue in MV, left=top, right=bottom. Horizontal - to red, and then it mixes red and green with symmetries.
nanodeath commentedon Aug 18, 2017
@mxgmn, is there a way you can close and lock this issue? Right now it seems to get reused every time anyone has a question (and emailing 23 people in the process), when really those questions should be new issues. Thanks!
mxgmn commentedon Aug 18, 2017
@nanodeath Oh, didn't know about that, closing.