Re: Beerconf January 2023

2023-01-26 Thread Steven Schveighoffer via Digitalmars-d-announce

On 1/14/23 2:03 PM, Steven Schveighoffer wrote:

# BEERCONF!

Happy new year! Beerconf this month falls on January 28-29.


Just a friendly reminder, this is happening soon. 2 days.

I likely will be on late, but I'm sure someone will start it and post a 
message here with the link.


-Steve



Re: Qonquest 2 - A simple strategy game written in D

2023-01-26 Thread Sergey via Digitalmars-d-announce

On Thursday, 26 January 2023 at 23:10:39 UTC, TheZipCreator wrote:
On Thursday, 26 January 2023 at 01:29:09 UTC, TheZipCreator 
wrote:
also at some point I'm thinking of making a "how to play" 
button. I probably should've done that before the 
announcement. (By the way, have you tried increasing the 
numbers next to the "move" and "deploy" counters before 
clicking the button? The game worked for my windows tester, 
sorry for the lack of any tutorial whatsoever)


The newest version (2.2.0) now has a How to Play button! 
Hopefully the game will be easier to figure out now


[link](https://github.com/TheZipCreator/qonquest2/releases/tag/2.2.0)


Do you have plans add macOS support?


Re: Qonquest 2 - A simple strategy game written in D

2023-01-26 Thread TheZipCreator via Digitalmars-d-announce

On Thursday, 26 January 2023 at 01:29:09 UTC, TheZipCreator wrote:
also at some point I'm thinking of making a "how to play" 
button. I probably should've done that before the announcement. 
(By the way, have you tried increasing the numbers next to the 
"move" and "deploy" counters before clicking the button? The 
game worked for my windows tester, sorry for the lack of any 
tutorial whatsoever)


The newest version (2.2.0) now has a How to Play button! 
Hopefully the game will be easier to figure out now


[link](https://github.com/TheZipCreator/qonquest2/releases/tag/2.2.0)


Re: Qonquest 2 - A simple strategy game written in D

2023-01-26 Thread Dom Disc via Digitalmars-d-announce

On Thursday, 26 January 2023 at 00:49:03 UTC, Adam D Ruppe wrote:
It is my fault for resizing, i used width,height instead of 
width_,height_ so it used the pre-scaled things.

[...]
Or I'll see what I can do to clean up my branch and cherry pick 
this fix later in the week...


There is nothing better to test a library than an application 
that's using it.




Re: WildCAD - a simple 2D drawing application

2023-01-26 Thread Ferhat Kurtulmuş via Digitalmars-d-announce
On Wednesday, 25 January 2023 at 14:36:54 UTC, Johann Lermer 
wrote:

Hi,

I'd like to announce a little project of mine that started some 
years ago as a C++ application and which I finally managed to 
port to D. It's called WildCAD and it's a simple 2D drawing 
program (you know - lines, circles and so on). It uses a 
command line interface inspired by AutoCAD and features a very 
immature DXF im- and export.


The application uses a DIY widget set (which comes as a sub 
project) called WildWidgets. Both can be found at 
https://gitlab.com/elvin.eu/wildcad.git and 
https://gitlab.com/elvin.eu/wildwidgets.git


Currently both are restricted to DMD and Linux/X11 only. Sorry 
for that. On the plus side just very limited dependencies are 
needed - mostly X11, Cairo and Cups. It's still very rough and 
using it can be a bit of a challenge.


Any feedback or help is appreciated ;-)


this reminded me of KediCAD[1]. The author used the Gambas 
programming language. A long time ago, I chatted with the author, 
and he was thinking of an alternative language for development. I 
knew nothing about d at that time. I have just noticed that the 
author closed the source, or I failed to find it. I think D has 
great potential for creating CAD software. I will give it a try, 
but I wish it would use dub as a build system.


1: https://sourceforge.net/projects/parduscad/


Re: WildCAD - a simple 2D drawing application

2023-01-26 Thread Adam D Ruppe via Digitalmars-d-announce
I briefly played around with it, not bad at all. I did see the 
menus popped up in the wrong place though, something to note is 
that ConfigureNotify is a bit complicated in how it works. Let me 
copy/paste a comment from my simpledisplay.d:


/+
The ICCCM says window managers must send a synthetic 
event when the window
is moved but NOT when it is resized. In the resize case, 
an event is sent
with position (0, 0) which can be wrong and break the dpi 
calculations.


So we only consider the synthetic events from the WM and 
otherwise
need to wait for some other event to get the position 
which... sucks.

+/
if(event.send_event) {
win.screenPositionKnown = true;
win.screenPositionX = event.x;
win.screenPositionY = event.y;
}



You can also request the window position with 
XTranslateCoordinates:


int x, y;
Window dummyw;
XTranslateCoordinates(dpy, window.nativeHandle, RootWindow(dpy, 
DefaultScreen(dpy)), x, y, &x, &y, &dummyw);




Which is what I do when it is time to pop up a menu.


Your thing works ok when maximized tho, it is kinda nice how you 
got the rest working.


But as a fellow DIY widgetset author it is always fun to compare 
and contrast :)


And since some of these X things are a bit obscure it helps to 
steal tips from each other lol


Re: WildCAD - a simple 2D drawing application

2023-01-26 Thread Dadoum via Digitalmars-d-announce
On Wednesday, 25 January 2023 at 14:36:54 UTC, Johann Lermer 
wrote:

Hi,

I'd like to announce a little project of mine that started some 
years ago as a C++ application and which I finally managed to 
port to D. It's called WildCAD and it's a simple 2D drawing 
program (you know - lines, circles and so on). It uses a 
command line interface inspired by AutoCAD and features a very 
immature DXF im- and export.


The application uses a DIY widget set (which comes as a sub 
project) called WildWidgets. Both can be found at 
https://gitlab.com/elvin.eu/wildcad.git and 
https://gitlab.com/elvin.eu/wildwidgets.git


Currently both are restricted to DMD and Linux/X11 only. Sorry 
for that. On the plus side just very limited dependencies are 
needed - mostly X11, Cairo and Cups. It's still very rough and 
using it can be a bit of a challenge.


Any feedback or help is appreciated ;-)


Hello, cool work.

Just a small tip: add screenshots in your readmes. It will make 
people more interested  because when there are none, usually 
people will not take the time to fetch the project to check it 
out.


Re: Qonquest 2 - A simple strategy game written in D

2023-01-26 Thread Hipreme via Digitalmars-d-announce

On Thursday, 26 January 2023 at 02:58:03 UTC, Doigt wrote:

On Thursday, 26 January 2023 at 00:16:09 UTC, Hipreme wrote:

WARNING:
- Virus scanner activated on windows (but virus free 
thankfully), try checking if there is some way to not let that 
happen


Keep in mind that most people that is going to play your game 
is not a computer expert, and everyone I knew freak out in the 
idea of getting a virus, this is super important if you wish 
to distribute your game.


This is something that always frustrated me back when I was on 
windows. Sometimes avast or later avg would trigger on my own 
programs and there was no docs on the internet to make it not 
happen. It wasn't fun and it wasn't making things more secure, 
just make people panic blindly and not want to try my games 
hugh.


I saw some stack overflow issues on that too. I only found 2 
things on internet and it was basically:


1- If you're using mingw compiler, they said to use mingw-w64 
compiler instead and it would make your program probably not be 
detected.


2- Submit your binary to those antivirus softwares for them mark 
your software as a false positive[1]


Those were the 2 things I was able to find. The other thing that 
rings me a bell that could solve that is "Code Signing" for your 
software being identified as yours, probably there's some kind of 
scans involved into doing that for checking if your thing is 
virus free.



[1] https://www.microsoft.com/en-us/wdsi/filesubmission