gonzikcz / GeoSkylines

Cities: Skylines game mod for import/export of geodata.
MIT License
28 stars 5 forks source link

Missing in Steam Workshop #1

Open marnec opened 4 years ago

marnec commented 4 years ago

I found your article online and I really wanted to try out the mod but I can't find it on the Steam Workshop. I don't know if there are limitations related to locations but I tried from italy

gonzikcz commented 4 years ago

I haven't publish it on Steam yet. At this moment just download the .dll and save it to c:\Users\\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\GeoSkylines\ Every time I think I might get it published I find more stuff to fix/update. But hopefully soon...

marnec commented 4 years ago

Do you need a hand? I know nothing of Cities Skylines modding but I'm a developer

gonzikcz commented 4 years ago

Thanks for the offer. Do you know regex? I can't use external parsers in the mod so I got a regex parser (that I copied from somewhere). It works great in 99% cases which is good enough. But I just found the 1% and it's bugging me that I don't see any difference in the data row than in any other rows. By the way, I just updated the code and documentation.

marnec commented 4 years ago

Yes I know a fair amount, I'm not expert though ;)

gonzikcz commented 4 years ago

this is the parser I use: private Regex CSVParser = new Regex(",(?=(?:[^\"]\"[^\"]\")(?![^\"]\"))");

can't handle this row (that looks like any other row to me): "LINESTRING (-9.1982935 38.7423783,-9.1980507 38.742498,-9.1977528 38.7427112,-9.1973483 38.7429441,-9.1970055 38.7431092,-9.1966536 38.7432406,-9.19631 38.7433362,-9.1959686 38.743394,-9.1955964 38.7434458,-9.1949877 38.7435343,-9.1942285 38.7436277,-9.1934601 38.7437143,-9.1924242 38.743828,-9.1910603 38.7439681,-9.1895765 38.7441273,-9.1881553 38.7442704,-9.1873442 38.7443116,-9.1867468 38.7442931,-9.1863825 38.7442462,-9.186001 38.7441985,-9.1854331 38.7440856,-9.1845118 38.7438909,-9.1840605 38.7437997)",w4987482,"4987482",way,trunk,"2",,Avenida General Correia Barreto/Radial de Benfica,yes,,,"Toponímia: Fundador dos Pupilos do Exército 1853 - 1939. Início do Arruamento: Eixo Norte-Sul. Fim do Arruamento: Avenida General Norton de Matos.",,,2001-02-21,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

It should be like 290 columns but it's 20 something instead. You can give it a go but no worries if you don't, it's a small issue. It was just the first thing that came to my mind when you offered help :-)

As for the original issue, I'll likely publish the mod on Steam this week.