Page 16 of 16

Re: Patch: The Rainfall River Generator

Posted: 03 Jun 2020 06:39
by Yexo
In currrent master AyStar_EndNodeCheck is defined like this:

Code: Select all

typedef int32 AyStar_EndNodeCheck(const AyStar *aystar, const OpenListNode *current);
I'm not sure if the error message you see would have "const" in it, but it looks like that is missing from your function signature.

Re: Patch: The Rainfall River Generator

Posted: 03 Jun 2020 15:21
by GuilhermeJK
It worked! :D

Got a bit of Linker errors now. But I'll take some time on them before posting here.

Re: Patch: The Rainfall River Generator

Posted: 03 Jun 2020 20:59
by GuilhermeJK
No success on the Linker errors, here they are.

Hey Aegir, I saw that you were dealing with linker errors too. Have you managed to compile it?

Here are the errors:

Code: Select all

Error	LNK2001	unresolved external symbol "int * _water_flow" (?_water_flow@@3PEAHEA)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "int * _river_iteration" (?_river_iteration@@3PEAHEA)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "int * _number_of_lower_tiles" (?_number_of_lower_tiles@@3PEAHEA)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "public: __cdecl RainfallRiverGenerator::RainfallRiverGenerator(void)" (??0RainfallRiverGenerator@@QEAA@XZ)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "unsigned char * _water_info" (?_water_info@@3PEAEEA)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "int * _river_map" (?_river_map@@3PEAHEA)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual bool __cdecl PathRiverGenerator::GenerateRivers(void)" (?GenerateRivers@PathRiverGenerator@@UEAA_NXZ)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\landscape.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl ShowTownRainfallOptionsWindow(struct Window *)" (?ShowTownRainfallOptionsWindow@@YAXPEAUWindow@@@Z)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\genworld_gui.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl ShowRainfallOptionsWindow(struct Window *)" (?ShowRainfallOptionsWindow@@YAXPEAUWindow@@@Z)	openttd	D:\OpenTTD-patches-jgrpp-rainfall\projects\genworld_gui.obj	1	
Error	LNK1120	9 unresolved externals	openttd	D:\OpenTTD-patches-jgrpp-rainfall\objs\x64\Release\openttd.exe	1