## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 00:21

Rich2 on master

Minor (compare)

• May 19 09:52

Rich2 on master

#171 Correctedsides on wolrd en… (compare)

• May 18 13:11

Rich2 on master

#171 Created all warm grids. (compare)

• May 18 11:50

Rich2 on master

#171 Created 320Km 150 West gri… (compare)

• May 18 11:29

Rich2 on master

#171 Created 320Km 120 West gri… (compare)

• May 17 23:23

Rich2 on master

#171 Finished 320Km East 180 gr… (compare)

• May 17 20:07

Rich2 on master

#171 Finished 320Km West 90 gri… (compare)

• May 17 17:30

Rich2 on master

#171 Start on 320Km West 90 gri… (compare)

• May 17 10:22

Rich2 on master

#171 Automated EGridMan product… (compare)

• May 17 01:34

Rich2 on master

#171 Created a new multi grid f… (compare)

• May 16 23:20

Rich2 on master

#171 Started 320km West 60. (compare)

• May 16 20:47

Rich2 on master

#171 Created east 150 grid. (compare)

• May 16 17:51

Rich2 on master

#171 Added grids for 90E and 15… (compare)

• May 15 13:54

Rich2 on master

• May 15 11:19

Rich2 on master

#171 Sides in wrong place on mu… (compare)

• May 15 10:09

Rich2 on master

#124 Created LineSegBuilder. (compare)

• May 15 00:40

Rich2 on master

#171 Started auto creating EGri… (compare)

• May 14 22:58

Rich2 on master

Minor. (compare)

• May 14 22:07

Rich2 on master

#171 Removed cOffset parameter. (compare)

• May 14 21:50

Rich2 on master

#171 CenLongInt now passed as p… (compare)

w0d
@w0d
@mghildiy Hi there, if we can help in anyway feel free to ask here
mghildiy
@mghildiy
I ran sbt at project root, got this error
[error] server failed to start on local:sbt-server-ae79988dabf357ab37d4. java.io.IOException: Could not create lock for \.\pipe\sbt-server-ae79988dabf357ab37d4_lock, error 5
but Dev/reStart launched the program
mghildiy
@mghildiy
which part of code can I dive into directly?
Rich
@Rich2

@mghildiy I would suggest working on the examples in the Graphics/srcExs folder.

I've just updated the website documentation page. So copy the DevSettings.rson file from the Dev/Misc folder to the Dev/User folder. You will have to create the Dev/User folder yourself as its under git ignore. Then you can change the app / example that runs for:

~Dev/reStart

If you change the appStr in Dev/User/DevSettings.rson and save it then sbt will automatically relaunch the new specified example /app in the same way that sbt rebuilds when you make and save code changes.

Rich
@Rich2
@w0d I'm definitely swinging back to thinking the default method for specifying a circle should be by diameter not by radius.
Rich
@Rich2
Docs at richstrat.com have been updated.
agarwalBinay18
@agarwalBinay18
hi
How can I run project in Windows 10?
Rich
@Rich2

@agarwalBinay18 So you need to have a JDK version of Java installed. Jdk 11 is ideal but later versions should all work. Then install sbt. Clone the project to a location of your choice and then shift into the openstrat folder and run sbt. Then from the Sbt command prompt run:

~ Dev/reStart

That will compile and open a graphical application. If you make any changes to the source files it will recompile and run with your changes.

w0d
@w0d
@agarwalBinay18 let us know if you have any problems with the steps outlined above
agarwalBinay18
@agarwalBinay18
unable to write any command
Rich
@Rich2
@agarwalBinay18 I've run into the same weird problem on Windows 10. Sbt ran as normal using power-shell and the command prompt. You could run the commands in Sbt as normal, but when I ran Sbt in Git bash I got exactly the same problem as you. So as a temporary measure could try running Sbt form power-shell or the command prompt. I will try and investigate this problem further.
agarwalBinay18
@agarwalBinay18
I am getting this after compiling and running
Rich
@Rich2
@agarwalBinay18 OK so if you create a folder called User inside the Dev folder and then copy the DevSettings.rson file from Dev/Misc to Dev/User. Tou can then change the appstr at the top of the Dev/User/DevSettings.rson file it will change the app or example that Sbt runs.
The purpose of this is that the Dev/User folder is ignored by git, allowing each developer to change the app/example they are working on as many times as they want without worrying about the change getting staged, committed and pushed back to the upstream repository.
Rich
@Rich2
@agarwalBinay18 So I'm fairly certain I know what the problem is. The simple answer is that the project won't run using git bash but will work from the command prompt and Power Shell. My preferred development environment is IntelliJ IDEA. This is a powerful IDE for working in Scala and popular across the Scala community, however it does use a lot of system resources, so it may not be the ideal solution for working on lower powered devices. It works for openstrat under Windows. You can also use common editors with the Scala metals plugin. I've just tested this using the Visual Studio Code editor on Windows 10 and it works. But Scala-Metals should also work with Atom, Vim, Sublime, EMacs and even Eclipse.
Rich
@Rich2
@agarwalBinay18 So ignore this explanation, if it confuses. Myself and @w0d both work mainly in Linux, however I had used gitbash successfully on Windows 7 and Windows 10 with Openstrat previously. Openstrat can be currently output to JavaFx and to WebCanvas through Scala.js, although we're starting to add SVG as an output target. However a while back we moved from JDK 8 to JDK 11+. JavaFx was bundled as part of the Oracle JDK with Java 8. However from Java 11 it became a library dependency you can see it called in on line 70 of the openstrat.sbt file in the root folder of openstrat. This is a platform specific library dependency. So the library that is called in is different on Windows from Linux. I strongly expect that this is causing the problem when trying to run the project from Git bash.
mghildiy
@mghildiy
How to build the project?
following this
mghildiy
@mghildiy
ignore above
so what should be appStr value for running Graphics/srcExs examples
got it
mghildiy
@mghildiy
Any specific issue I can work upon?
Rich
@Rich2
@mghildiy So help on #124 would be great. Probably the best place to start is on the Shapes, filling in the missing classes, methods, implementations and implicit type class instances. Its generally best to make small changes and create a pull request, rather than making a lot of changes in one go and getting out of sync with the main master branch.
w0d
@w0d
@Rich2 have been looking at Ellipses & their platform implementations, it seems that if we can export to SVGPath + Transformation we could simplify the boundary between OpenStrat & the Platforms (web/javafx/svg - all accept that format)
im wondering what im missing in taking this approach - are we losing something that we would want to keep in OpenStrat?
Rich
@Rich2
@w0d There would be quite a performance hit from converting into SVG strings and then back again.
Rich
@Rich2
@w0d I've updated the 2 main webpages for the new SbtDir location. So they should work again.
w0d
@w0d
Finally! well I've made progress on the JavaFx tlCArcDraw3 & CArc and I believe the last bit that needs fixing will get taken care of when I switch back to using theAngle class. Dont use the javaFx8 documentation has been my learning point!
Rich
@Rich2
@w0d Good stuff I've updated the arc names.
w0d
@w0d
@Rich2 ive fixed the workflows except the tests - any chance you could have a look at why strat.geom.PersistGeomTest.Vec2Test
ostrat.geom.PersistGeomTest.Line2Test
ostrat.geom.PersistGeomTest.OtherTest
are failing - cheers
Rich
@Rich2
@w0d Should fontSize be a Double rather than an Int?
w0d
@w0d
@Rich2 yes
Rich
@Rich2
Done!
w0d
@w0d

@Rich2 Re: Ellipses & Javafx Tranformations on Canvas:

gc.rotate(xAxisRotationAngle)
gc.setLineWidth(ed.lineWidth)
gc.setStroke(toFxColor(ed.lineColour))
gc.rotate(-xAxisRotationAngle)

Im guessing you'll need to do a translation too - you can use gc.save & restore to simplify that a little

Rich
@Rich2
@w0d Thanks for that. I'm just trying to make the naming in EArc and Ellipse consistent, prior to implementing this.
Rich
@Rich2
@w0d Should Unshow be renamed to UnShowT and Persist be renamed to PersistT?
Rich
@Rich2
@/all DevApp now runs on JavaFx for Scala 3!
Rich
@Rich2
Important comment in #141.
Rich
@Rich2
@w0d Can we close #73?
w0d
@w0d
#73 closed & a pm for u
w0d
@w0d
hi :)
hope to be around more again
will let you know how compiling goes
w0d
@w0d
@Rich2 is OpenStrat Alpha on source forge related to openstrat?
@Rich2 are we interested in publishing releases over there?
Rich
@Rich2
@w0d Apologies I haven't been checking my Gitter as most Scala stuff has gone over to discord. Openstrat on sourcefourge is not related. The project doesn't seem to have any files.
I was thinking of possibly using the Game GO as something to use for publicity. I think the rules are simpler than Draughts and openstrat is an inelegant solution for Draughts as Draughts only uses half of the square tiles.