ᚖ Alpha Gaming ᚖ
Chieftain
Hello everyone,
Do you know a way to make a non-coastal city into a coastal city with a Lua script ?
Do you know a way to make a non-coastal city into a coastal city with a Lua script ?
Can't be done with Lua, you'd need to mod the C++ code (ie the DLL).
A city is coastal if the plot it's on is coastal and there is no way to override this without modding the DLL
1) Same issue as a city, the code to ascertain if a plot is coastal is in the C++ code and there is no Lua override available1). Is it possible to transform the plot into coastal?
2). When does the game check if the city is coastal? when you open the production menu? when we found the city?
3). Is it possible to decompile a DLL, because I already use a custom DLL but it is not mine. so I don't have the code.
4). Do you know the location of the piece of code that checks if the vile is coastal in all the c++ files because there are a lot of them, or if you know what I have to look for, I'm listening.
Hey tanks for your reply1) Same issue as a city, the code to ascertain if a plot is coastal is in the C++ code and there is no Lua override available
2) Many, many places. A city doesn't store if it's coastal or not, it asks the plot every time it needs to know.
3) In theory yes, in practice no. Without the source code for the DLL you're using it's just not worth the weeks of effort it will take.
4) Get yourself a good multi-file search tool (eg Agent Ransack) and search all the .cpp/.h files for "isCoastal"