jgosar / mine-city-2000

A program that converts SimCity 2000 cities into Minecraft worlds
GNU General Public License v3.0
731 stars 11 forks source link

converted world only generates sand #1

Closed S21810014 closed 2 years ago

S21810014 commented 2 years ago

the terrain were correctly converted, but the entire map is only consist of sand blocks image

jgosar commented 2 years ago

Interesting, maybe the DOS version of SimCity 2000 generates files differently than the Windows one. Can you attach the .sc2 file, so I can check?

Another possible reason for this happening would be if the app wasn't able to access the .mcafiles in the buildings directory

S21810014 commented 2 years ago

here's the savefile, does the 'building' folder has to be in the same directory as the executable? i compiled the entire solution and the executables were stored in 'bin' folder

.sc2 save file

S21810014 commented 2 years ago

yep, it appears that moving the 'buildings' folder to the same dir as the executable works

image

jgosar commented 2 years ago

The app looks for the buildings directory on path ..\..\..\buildings https://github.com/jgosar/mine-city-2000/blob/master/MineCity2000/Program.cs#L18

I guess this depends a lot on how the files are arranged when you run it. I'll look into making this more robust

jgosar commented 9 months ago

@S21810014 I know that you had this problem a really long time ago, but this should be fixed now. I upgraded the projects to .NET 8, and added copying of the buildings dir to the correct place as a build step.