Search found 137 matches

by shermanp
Sat 26 Sep, 2020 3:28 am
Forum: Development
Topic: Sep 2020 ed.] PCem MSYS2 build guide (with wxWidgets)
Replies: 62
Views: 39914

Re: Sep 2020 ed.] PCem MSYS2 build guide (with wxWidgets)

Just made a few updates to the OP. No major changes, but I went through it again on the latest version of MSYS2 (still slow, sigh...).

Main changes are using an updated version of the npcap SDK, and using git to clone the github pcem repository.
by shermanp
Tue 04 Aug, 2020 9:11 pm
Forum: Development
Topic: Translating PCEM
Replies: 7
Views: 1990

Re: Translating PCEM

Note, a lot of user facing strings will be in 'pc.xrc', although looking at the docs, I get the impression that strings here SHOULD be auto-translated if the resource is constructed correctly. Translation files are sill needed to actually translate of course...
by shermanp
Sat 01 Aug, 2020 12:50 pm
Forum: General
Topic: Confused about creating hard drive images and sizes
Replies: 13
Views: 1950

Re: Confused about creating hard drive images and sizes

Or, just type in the desired size of disk (in MB) and let the GUI do the calculations for you :p
by shermanp
Sat 01 Aug, 2020 2:47 am
Forum: General
Topic: Confused about creating hard drive images and sizes
Replies: 13
Views: 1950

Re: Confused about creating hard drive images and sizes

The largest heads and sectors-per-track supported by PCem is 16 and 63 respectively, so for large hard disks, you have to use the cylinders to get the final size. This is an issue I've run into with VHD support, as it only supports up to 65535 cylinders, so for large hard disks, you are supposed to...
by shermanp
Fri 31 Jul, 2020 11:25 pm
Forum: General
Topic: Confused about creating hard drive images and sizes
Replies: 13
Views: 1950

Re: Confused about creating hard drive images and sizes

The largest heads and sectors-per-track supported by PCem is 16 and 63 respectively, so for large hard disks, you have to use the cylinders to get the final size. This is an issue I've run into with VHD support, as it only supports up to 65535 cylinders, so for large hard disks, you are supposed to ...
by shermanp
Tue 21 Jul, 2020 9:50 pm
Forum: Development
Topic: Translating PCEM
Replies: 7
Views: 1990

Re: Translating PCEM

Note that PCem is almost all C, with a few bits of C to C++ wrapping for the wxwidgets bit.

If one were to do translation stuff, it would probably be best to use the tools provided by wxWidgets for the job. See https://docs.wxwidgets.org/trunk/overview_i18n.html on the approach wxWidgets uses.
by shermanp
Sat 18 Apr, 2020 10:52 am
Forum: Development
Topic: Sep 2020 ed.] PCem MSYS2 build guide (with wxWidgets)
Replies: 62
Views: 39914

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

Glad to hear! I must admit I don't tend to use MSYS2 these days. The makefile autoconf produces is so sloooooow. I instead use the included windows makefile with mingw-w64 and manually installed libraries. It's a LOT quicker! EDIT: This was a reason I experimented with cmake a while back. But Sarah ...
by shermanp
Wed 12 Feb, 2020 2:01 am
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 5136

Re: Dot-matrix printing in PCem

Oh, hadn't thought about creating italics from standard fonts. Mainly because my font experience comes from the ebook sphere, and IMHO, autogenerated italics is a crime against humanity. (I had to suffer this in the early days of epub, because Adobe and/or Sony were too cheap to include italics vari...
by shermanp
Sat 08 Feb, 2020 10:43 pm
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 5136

Re: Dot-matrix printing in PCem

Yeah, stuff like line height can be modified. But stuff like negative left bearings is quite normal, especially for proportional fonts. Use the metrics to determine WHERE to place glyphs. Just don't rely on them to determine your buffer sizes. If you end up using STB_Truetype, you should be safe to ...
by shermanp
Sat 08 Feb, 2020 9:48 pm
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 5136

Re: Dot-matrix printing in PCem

I don't know how much experience you have rendering fonts, but one thing I learned was: don't trust the fonts own metrics. I once made that mistake. The code worked properly with the fonts I was using. Someone else tested with broken font metrics, and started getting segfaults. I quickly learned tha...
by shermanp
Mon 03 Feb, 2020 11:50 am
Forum: Development
Topic: Dot-matrix printing in PCem
Replies: 14
Views: 5136

Re: Dot-matrix printing in PCem

Are you just using Freetype for font rasterization? If so, another potential font rasterizer is [url]https://github.com/nothings/stb/blob/master/stb_truetype.h[/url]. It's a portable, single-header opentype font rasterizer library. I've used it to create a rudimentary text layout program on an eink ...
by shermanp
Mon 06 Jan, 2020 6:56 pm
Forum: General
Topic: v15 released!
Replies: 49
Views: 37075

Re: v15 released!

And unfortunately, it's not a simple fix (otherwise it probably would have been done already!). Actually, it can be! All you need to do is allow unicode in the dialog (which I guess is what standard Windows Dialogs will give you anyway) and then apply the Windows API to turn that into a DOS-compati...
by shermanp
Mon 06 Jan, 2020 6:45 am
Forum: General
Topic: v15 released!
Replies: 49
Views: 37075

Re: v15 released!

Finally gotten around to upgrading. (I've not been active for a while on account of dealing with heart failure and the fitting of a pacemaker). I've noticed a "bug" that's probably been around for a while, and this prompted me to update to v15. However the bug is still there. PCem does not cope wit...
by shermanp
Sun 05 Jan, 2020 7:51 pm
Forum: Development
Topic: Bitbucket deleting all Mercurial repositories on June 1, 2020?
Replies: 21
Views: 8020

Re: Bitbucket deleting all Mercurial repositories on June 1, 2020?

Personally, I'd be inclined to move the repo to GitHub, but hey, I'm biased as that is what I use for my own projects. Also never could really figure mercurial out.

But at the end of the day, it's your project, so I'll work with whatever you decide to do.
by shermanp
Sun 05 Jan, 2020 10:30 am
Forum: Development
Topic: Bitbucket deleting all Mercurial repositories on June 1, 2020?
Replies: 21
Views: 8020

Re: Bitbucket deleting all Mercurial repositories on June 1, 2020?

Oh my. Some very unhappy developers... https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380 I don't know why. It's not like BitBucket are going to delete issues, pull requests and wikis. And they're providing an automated tool...
by shermanp
Sat 27 Jul, 2019 9:41 pm
Forum: Development
Topic: Compiling PCem for Windows from Windows Subsystem for Linux with Ubuntu
Replies: 2
Views: 3068

Re: Compiling PCem for Windows from Windows Subsystem for Linux with Ubuntu

You'll probably want OpenAL-Soft. It is a CMAKE project.

OpenAL-Soft seems to provide a toolchain file for cross-compiling with MinGW-w64 at https://github.com/kcat/openal-soft/blo ... ompile.txt.

Does this help?
by shermanp
Fri 24 May, 2019 11:10 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

altheos wrote:
Fri 24 May, 2019 10:14 am
Hi,

I can't apply your patch against a stock v14 : do you have a compatible version of your patch ?

Regards.
Sorry, not at the moment. I need to rebase the patch on V15, and I'm not really in a PCem frame of mind at the moment, so it could be a wee while yet.
by shermanp
Wed 24 Apr, 2019 10:22 pm
Forum: Development
Topic: v15 & new recompiler update
Replies: 86
Views: 48477

Re: v15 & new recompiler update

BTW, compiled for me fine on MinGW-w64 with GCC 7.2

It looks like Sarah added some makefile fixes not too long ago at commit 51e4eb5, is that the problem?
by shermanp
Wed 24 Apr, 2019 10:19 pm
Forum: Development
Topic: v15 & new recompiler update
Replies: 86
Views: 48477

Re: v15 & new recompiler update

The makefile does have an absolute path to a mingw install for Wx. other than that, it compiles fine (for gcc 4.7.2 win32 anyway) It always has. Thankfully you can override make variables on the command line, so I've got a batch file that points to the location of my WX install. I started to try an...
by shermanp
Mon 22 Apr, 2019 5:06 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

This patch would be awesome for v15, but it's not ready yet, right? I'm working on it! Hope to have it ready by the feature freeze, but no guarantees. Nope, wasn't able to get it working in time I'm afraid. Currently scratching my head over why Windows (or Hyper-V) doesn't like my differencing VHD....
by shermanp
Sun 21 Apr, 2019 11:56 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

This patch would be awesome for v15, but it's not ready yet, right? I'm working on it! Hope to have it ready by the feature freeze, but no guarantees. Nope, wasn't able to get it working in time I'm afraid. Currently scratching my head over why Windows (or Hyper-V) doesn't like my differencing VHD....
by shermanp
Thu 18 Apr, 2019 9:11 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

seth wrote:
Thu 18 Apr, 2019 7:26 pm
This patch would be awesome for v15, but it's not ready yet, right?
I'm working on it! Hope to have it ready by the feature freeze, but no guarantees.
by shermanp
Wed 03 Apr, 2019 9:07 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

It does support multi-parent chains. But I was thinking more about your comment about the handling of file paths and text encodings. As far as I can tell, the Dosbox-X implementation uses no external libraries for that, and it does it with a pretty small amount of code. Also, for the purposes of PC...
by shermanp
Tue 02 Apr, 2019 10:35 pm
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

Might it be helpful to look at how VHDs are implemented in Dosbox-X? https://github.com/joncampbell123/dosbox-x/blob/master/src/ints/bios_vhd.cpp Interesting, I hadn't seen that before. After a (very) brief look at the code, I think my implementation will be more complete. For example, the DosBox-X...
by shermanp
Mon 18 Mar, 2019 3:24 am
Forum: Patches
Topic: [Patch] New VHD support... now with added dynamics
Replies: 17
Views: 12691

Re: [Patch] New VHD support... now with added dynamics

This is a very useful addition! I just managed to apply the patch and compile the emulator. I did some quick tests with a VHD hardfile and it seems to work fine, from now on I will probably only use VHD files. If it's possible to include it in the next official release that would be great, it has m...
by shermanp
Wed 23 Jan, 2019 6:20 am
Forum: General
Topic: Wordbasic overflow error 6 with DX processor
Replies: 5
Views: 4579

Re: Wordbasic overflow error 6 with DX processor

I'm not an expert by any means, but I believe that PCem doesn't accurately emulate the full 80-bit precision of the floating point co-processor. Word is probably sensitive enough to detect the inaccuracy, or it's doing something to make the PCem FPU emulation trip up. As, I said, I'm no expert, just...
by shermanp
Tue 08 Jan, 2019 8:01 pm
Forum: General
Topic: PCem requests for a Win9x Project
Replies: 9
Views: 5765

Re: PCem requests for a Win9x Project

Hi, As stated, I have have been creating VHD support for PCem. I think I have dynamic images pretty well sorted, and I'm currently trying to get differencing support working (reading works, but I haven't got creation support yet, nor any of the parent/child integrity checks). The original VHD format...
by shermanp
Fri 04 Jan, 2019 8:29 pm
Forum: Development
Topic: Sep 2020 ed.] PCem MSYS2 build guide (with wxWidgets)
Replies: 62
Views: 39914

Re: [Feb 2018 ed.] PCem MSYS2 build guide (with wxWidgets)

MSYS2 is a Windows build environment Please forgive my silly question, I saw all those $ shell commands that looked like linux That's because MSYS2 is basically a stripped down linux distribution (Arch I believe) compiled to run on windows. It contains a linux shell, package manager, and all the *n...
by shermanp
Wed 02 Jan, 2019 2:47 am
Forum: General
Topic: VHD support
Replies: 72
Views: 40325

Re: VHD support

EDIT: I deleted the contents of this post, because I realized I had made a colossal arse of myself. Turns out, the bitmap macros I was using were incorrect for VHD's (the order was reversed). This mistake will also explain why I've been having so much trouble with differencing VHD's, as they rely ex...
by shermanp
Mon 31 Dec, 2018 1:09 am
Forum: General
Topic: VHD support
Replies: 72
Views: 40325

Re: VHD support

I mean, well, once it has installed win95 and rebooted (after the whole setup routine), for now, it's fine, but once adding one file (as little as 32kb for example) in the vhd (after closing PCem), it would result in some files (not all) missing like vwin32.vxd, etc, thus, corrupting and making win...