I should preface this with the fact that I am a bit of a luddite, but I think I've identified an issue (and solution) with the most up to date Jupyter notebook (Version 2.3.1 as of writing this).
Basically, I had been trying to port COE2 to a few different maps and was unsuccessful until today. I was previously able to generat the .conf files but the actual notebook would struggle to read the .bin files I generated. All debugger logs read that it saw zero roads, no buildings, etc in all maps I tried. Obviously we can ascertain there was a mistake somewhere. Eventually I was able to narrow it down to a format mismatch between what enfusion would export and what the notebook expected in the .bin files. They would export as sparse coordinate lists but the load_terrain_dat in libksc expects a dense 2D bitmap.
My solution was to write a custom Python "load_terrain_dat_new" function that correctly parses the sparse coordinate format the current exporter produces, converting it to a dense numpy grid for the notebook to process. This worked and I was able to create a new COE2 map for Faircroft Islands.
Again, I'm not the brightest when it comes to coding or running python, so maybe this was an unforced error somehow on my end, but I tried this all with a fairly fresh install of the mods and the newest source code release here.
Either way, I hope this helps you out! Now that I've got a workaround I'm going to start porting COE2 to some more niche maps.
I should preface this with the fact that I am a bit of a luddite, but I think I've identified an issue (and solution) with the most up to date Jupyter notebook (Version 2.3.1 as of writing this).
Basically, I had been trying to port COE2 to a few different maps and was unsuccessful until today. I was previously able to generat the .conf files but the actual notebook would struggle to read the .bin files I generated. All debugger logs read that it saw zero roads, no buildings, etc in all maps I tried. Obviously we can ascertain there was a mistake somewhere. Eventually I was able to narrow it down to a format mismatch between what enfusion would export and what the notebook expected in the .bin files. They would export as sparse coordinate lists but the load_terrain_dat in libksc expects a dense 2D bitmap.
My solution was to write a custom Python "load_terrain_dat_new" function that correctly parses the sparse coordinate format the current exporter produces, converting it to a dense numpy grid for the notebook to process. This worked and I was able to create a new COE2 map for Faircroft Islands.
Again, I'm not the brightest when it comes to coding or running python, so maybe this was an unforced error somehow on my end, but I tried this all with a fairly fresh install of the mods and the newest source code release here.
Either way, I hope this helps you out! Now that I've got a workaround I'm going to start porting COE2 to some more niche maps.