markzl wrote:I'm having trouble compiling this patch pack & I would like to try it out by the very positive comments here.
Ok the LANG files....
You can ignore those warnings.
Once I have the patch a little more refined and closer to completion, I'll fix all the LANG files.
But it will compile correctly with those warnings.
markzl wrote:/openttd_27460_TerminusAirports144/src/station_base.h:384: error: integer constant is too large for ‘long’ type
For each of these, find the line in the file and you will see code similiar to this...
Code: Select all
terminals = terminals & 35184372088320; // TERM01 through TERM36 Bits 9 through 44
At the end of the large number, put an "L"
Code: Select all
terminals = terminals & 35184372088320L; // TERM01 through TERM36 Bits 9 through 44
That should fix all 6 of those...
I should have specified it anyway...
markzl wrote:/openttd_27460_TerminusAirports144/src/aircraft_cmd.cpp:955: warning: enumeration value ‘DIR_END’ not handled in switch
This is a warning and should compile anyway...
But to keep the warning from coming up...
Modify the section of code so it looks like below...
Code: Select all
case DIR_SE:
dist = abs(x + amd.x - v->x_pos) + abs(y + amd.y - (v->y_pos + 4));
break;
case DIR_END:
case INVALID_DIR:
dist = abs(x + amd.x - v->x_pos) + abs(y + amd.y - v->y_pos);
break;
}
else
dist = abs(x + amd.x - v->x_pos) + abs(y + amd.y - v->y_pos);
markzl wrote:/openttd_27460_TerminusAirports144/src/aircraft_cmd.cpp
warning: unused variable ‘reference’
Another warning, but to get rid of the warning, just comment out that line. Add the "//" to the beginning of that line
Code: Select all
//const AirportFTA *reference = &apc->layout[v->pos];
markzl wrote:/openttd_27460_TerminusAirports144/src/aircraft_cmd.cpp
warning: ‘uint GetNumTerminals(const AirportFTAClass*)’ defined but not used
Another warning....
This one just ignore.
But if you want to get rid of the warning..
Just comment out that block of code using "/*" and "*/"
Code: Select all
/*static uint GetNumTerminals(const AirportFTAClass *apc)
{
uint num = 0;
for (uint i = apc->terminals[0]; i > 0; i--) num += apc->terminals[i];
return num;
}*/
markzl wrote:Also, I am ignoring the 2 folders in the .7z file named ..._OpenGFX & ..._ZBase. Is that correct for my case?
Correct. The difference between the 2 is the placement of the hanger graphics.
I am not sure who is wrong, OpenGFX or ZBase... Probably ZBase... but the graphic placement is wrong.
The patch file I provide is for ZBase.
If you play with OpenGFX, then you will need to modify 7 lines of code in the station_land.h file...
In that file, you will see 7 lines that look like below...
Code: Select all
static const DrawTileSeqStruct _station_display_flag_1_fence_ne[] = {
TILE_SEQ_LINE( SPR_AIRPORT_FENCE_Y_L, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1U << PALETTE_MODIFIER_COLOUR)) // fence ne
TILE_SEQ_LINE(-3, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_1 | (1U << PALETTE_MODIFIER_COLOUR)) //ZBase
//TILE_SEQ_LINE( 5, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_1 | (1U << PALETTE_MODIFIER_COLOUR)) //OpenGFX
TILE_SEQ_END()
};
Simply move the "//" to the other line and recompile.
OpenGFX is the base graphics set, more like original and uses 8bpp.
ZBase is a newer graphics set, uses 32bpp.
Now the one issue you may run into that I am not sure how to fix is the ALT key being enabled.
I enabled it in the Windows files, but not sure if Mac uses that file or not.
I am pretty sure Unix/Linux will not work. But not sure about Mac.
Let me know if the ALT key works or not.