stefanhendriks / Dune-II---The-Maker

A remake of the classic Dune 2 - The Building of a Dynasty (by Westwood Studios) with several enhancements. Like: higher screenresolutions, zooming, multiselect, skirmish play, etc.
https://www.dune2themaker.com
302 stars 27 forks source link

Rewriting/c preview maps #496

Closed Mira-Chronos closed 2 years ago

Mira-Chronos commented 2 years ago

After merge #490 and #495 :

stefanhendriks commented 2 years ago

Rebased to latest master. Compiles, but it won't run. Needs investigation to get this up and running again.

stefanhendriks commented 2 years ago

Found the reason.

It fails because a filename (4PL_SinéadPlains.ini) is not being found. This is due to https://stackoverflow.com/questions/5727791/opening-a-text-file-with-fstream-but-filename-characters-are-not-in-ascii/5727958

(ie , std::ifstream cannot deal with unicode chars)

stefanhendriks commented 2 years ago

Found another bug in this PR. The startcell items in an ini file are not with comma separated values (ie, it is not StartCell=1234,456,432). Instead, the ini file contains multiple StartCell=1234 lines.

I'll change the code so that works again.