Doddler / RagnarokRebuildTcp

Ragnarok-like server + client
135 stars 34 forks source link

DataLoader can not load CVS in my Country #7

Closed bangbangpoof closed 5 months ago

bangbangpoof commented 5 months ago

Hi Doddler!

this is the same reason as with the missing monsterclass.json in the DataToClientUtility. In the DataLoader when the CsvReader is initialized it uses CultureInfo.CurrentCulture which does not work in my country. When you use CultureInfo.GetCultureInfo("en-US") it works. i fixed it in my local copy but i wanted to let you know.

Doddler commented 5 months ago

I had overlooked that the CSV files might load differently on different systems. I've updated the data loading code and client utility to use InvariantCulture which should produce the same results regardless of the system language and locale settings, and while it's probably not required I now explicitly specify UTF-8 encoding as well. Let me know if that still has issues.

bangbangpoof commented 5 months ago

Looking good, thank you!