Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Jan 16, 2019 11:20 am

All times are UTC




Post new topic  Reply to topic  [ 283 posts ]  Go to page Previous 111 12 13 14 15
Author Message
PostPosted: Thu Jan 19, 2017 11:20 am 
Offline
Engineer
Engineer

Joined: Mon Oct 24, 2011 8:42 pm
Posts: 23
Just spend some time extracting JGR's fixes (hope he doesn't mine) from his patch pack (https://www.tt-forums.net/viewtopic.php?f=33&t=73469).

Thought I should share them here if you're interested. The fixes I included (from his Git log):

  • Fix main pane of departure boards window not being mouse-wheel scrollable.
  • Fix crash when a station is deleted with the departure boards window open.
  • Fix departures_widget.h being missing from source.list.
  • Fix whitespace issues.
  • Fix timetable rounding depending on the client time display mode setting. This causes desyncs if clients and the server have different values for this client setting.
  • Fix departure boards with orders with timetabled 0 travel times, e.g. those with depot service orders.

The full patch updated to (as of writing) newest trunk is attached.


Attachments:
departureboardswallclock25-r27737.diff [132.37 KiB]
Downloaded 54 times
Top
   
PostPosted: Sat Dec 22, 2018 12:25 pm 
Offline
Engineer
Engineer

Joined: Sat Dec 22, 2018 12:14 pm
Posts: 1
Hi all

I'm trying to compile r27737 with the patch posted above by Patagonicus. I'm not a Windows or C++ dev, so Visual Studio is a scary beast for me and I'm running into problems, I'm hoping someone can shed some light :D

When importing, I retarget for VS2017 and that seems to work OK. However, when I try a build with "x86" & "Release" selected, I receive the following errors:

Code:
1>------ Rebuild All started: Project: OpenTTD, Configuration: Release Win32 ------
1>exe2coff.c
1>c:\users\andrew\desktop\openttd-trunk-r27737\os\dos\exe2coff\exe2coff.c(9): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
1>svnver1.c
1>c:\users\andrew\desktop\openttd-trunk-r27737\os\os2\svnver1.c(3): error C2001: newline in constant
1>c:\users\andrew\desktop\openttd-trunk-r27737\os\os2\svnver1.c(4): fatal error C1004: unexpected end-of-file found
1>svnver2.c
1>c:\users\andrew\desktop\openttd-trunk-r27737\os\os2\svnver2.c(1): error C2001: newline in constant
1>c:\users\andrew\desktop\openttd-trunk-r27737\os\os2\svnver2.c(1): error C2059: syntax error: 'string'
1>getaddrinfo.c
1>c:\users\andrew\desktop\openttd-trunk-r27737\src\3rdparty\os2\getaddrinfo.c(38): fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory
1>getnameinfo.c
1>c:\users\andrew\desktop\openttd-trunk-r27737\src\3rdparty\os2\getnameinfo.c(56): fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory
1>Compiling...
1>Generating Code...
1>Done building project "OpenTTD.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Looking at the file paths and Googling the missing file, it looks like these are all non-Windows dependencies, so if that's the case, I'm not surprised it's failing.

I'm sure this is a completely n00b question, so apologies for that. But how would I go about resolving this. It feels like I should be able to ignore missing libraries that don't apply to the platform I'm building for, but I freely admit my ignorance on the subject!

Many thanks! :bow:


Top
   
PostPosted: Tue Dec 25, 2018 9:58 am 
Offline
Tycoon
Tycoon

Joined: Wed Jan 17, 2007 12:14 am
Posts: 7260
can you compile the unpatched base revision?

_________________
You might not exactly be interested in Ferion, but if you are, have fun :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 283 posts ]  Go to page Previous 111 12 13 14 15

All times are UTC


Who is online

Users browsing this forum: BeSt-Com, Google Adsense [Bot], JGR and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.