Joker's Patch Pack
Posted: 13 Jan 2016 14:53
..................
The place to talk about Transport Tycoon
https://www.tt-forums.net/
Code: Select all
EDIT this one I made compile, and others errors... but stopped on post below.
Code: Select all
[SRC] Compiling terraform_cmd.cpp
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp: In function ‘void ptv(TemplateVehicle*)’:
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:58:111: error: cast from ‘TemplateVehicle*’ to ‘uint32 {aka unsigned int}’ loses precision [-fpermissive]
printf("eid:%3d st:%2d tv:%x next:%x cargo: %d cargo_sub: %d\n", tv->engine_type, tv->subtype, (uint32)tv, (uint32)tv->Next(), tv->cargo_type, tv->cargo_subtype);
^
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:58:132: error: cast from ‘TemplateVehicle*’ to ‘uint32 {aka unsigned int}’ loses precision [-fpermissive]
printf("eid:%3d st:%2d tv:%x next:%x cargo: %d cargo_sub: %d\n", tv->engine_type, tv->subtype, (uint32)tv, (uint32)tv->Next(), tv->cargo_type, tv->cargo_subtype);
^
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:61:110: error: cast from ‘TemplateVehicle*’ to ‘uint32 {aka unsigned int}’ loses precision [-fpermissive]
printf("eid:%3d st:%2d tv:%x next:%x cargo: %d cargo_sub: %d\n", tv->engine_type, tv->subtype, (uint32)tv, (uint32)tv->Next(), tv->cargo_type, tv->cargo_subtype);
^
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:61:131: error: cast from ‘TemplateVehicle*’ to ‘uint32 {aka unsigned int}’ loses precision [-fpermissive]
printf("eid:%3d st:%2d tv:%x next:%x cargo: %d cargo_sub: %d\n", tv->engine_type, tv->subtype, (uint32)tv, (uint32)tv->Next(), tv->cargo_type, tv->cargo_subtype);
^
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp: In function ‘void pvt(const Train*)’:
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:67:84: error: cast from ‘const Train*’ to ‘uint {aka unsigned int}’ loses precision [-fpermissive]
printf("train has weird index: %d %d %x\n", tmp->index, tmp->engine_type, (uint)tmp);
^
/home/nihues/Downloads/OpenTTD_PatchPack-master_joker/src/tbtr_template_vehicle_func.cpp:70:202: error: cast from ‘const Train*’ to ‘uint32 {aka unsigned int}’ loses precision [-fpermissive]
printf("eid:%3d index:%2d subtype:%2d vehstat: %d cargo_t: %d cargo_sub: %d ref:%x\n", tmp->engine_type, tmp->index, tmp->subtype, tmp->vehstatus, tmp->cargo_type, tmp->cargo_subtype, (uint32)tmp);
^
[SRC] Compiling terraform_gui.cpp
[SRC] Compiling textbuf.cpp
make[1]: ** [tbtr_template_vehicle_func.o] Erro 1
I've had the same problem, and googled it, after that more 5-6 errors came... then I stopped at my post above yours... need to change something more complex for me, so I'm waiting someone to figure outStreckenläufer wrote:Hello Keldor,
I have more than one error, the original source code from your trunk, after ./configure and make the following errors occur:
The assert statement is really in a function that exists, or it would not get called and failLeanden wrote:It looks to me that you are trying to open a saved game from a patched copy of openttd in a trunk version and its attempting to call a function that doesnt exist in trunk.
It's no fun, those tracksLeanden wrote:I was actually referring to Trackfun.h