Patch: The Rainfall River Generator

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Patch: The Rainfall River Generator

Post 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.

User avatar
GuilhermeJK
Engineer
Engineer
Posts: 53
Joined: 01 Nov 2014 05:24
Location: São José dos Campos, Brazil

Re: Patch: The Rainfall River Generator

Post by GuilhermeJK »

It worked! :D

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

User avatar
GuilhermeJK
Engineer
Engineer
Posts: 53
Joined: 01 Nov 2014 05:24
Location: São José dos Campos, Brazil

Re: Patch: The Rainfall River Generator

Post 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	

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: le_harv and 9 guests