anno1800-scripting-api
anno1800-scripting-api copied to clipboard
API doesn't seem to find all islands or can't determine their name
The API doesn't seem to find all islands the player owns, or all islands in general (by adding a method for that).
OR THEN, the API doesn't seem to be able to correctly determine the names of the islands, sometimes the error "[The name cannot be that long...]" seems to be thrown, but most of the time no error is sent, I checked the problem should start from here: https://github.com/egomeh/anno1800-scripting-api/blob/bef0d20c391975bcc29a049017a5800945a4690c/Injected/anno_tools.cpp#L25 (knowing that according to my logs, the "IsLong" condition has never been met for me, yet).
It almost looks like (wchar_t*)(address);
returns nothing, which makes wchar_t* stringLocation
unusable.