News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Version not working in nightlybuilds

Started by River, October 26, 2016, 09:07:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

River

Hi,

People on my server have been complaining that there is no build version. Can this be fixed in the nightly builds?

River

DrSuperGood

If the nightly build server is using Makefile then the following applies.


ifneq ($(WITH_REVISION),)
  ifeq ($(shell expr $(WITH_REVISION) \>= 1), 1)
    ifeq ($(shell expr $(WITH_REVISION) \>= 2), 1)
      REV = $(WITH_REVISION)
    else
      REV = $(shell svnversion)
    endif
    ifneq ($(REV),)
      CFLAGS  += -DREVISION="$(REV)"
    endif
  endif
endif

REV is meant to be sources from shell svnversion.

Ters

I just downloaded the latest Windows nightly, and it had the string r7923 embedded in the executable, suggesting that the code DrSuperGood posted (or some alternative) is run. I didn't try running the nightly, though, since I didn't want to mess up my current installation, so it may be that this isn't shown in the caption bar anymore for all I know.

The revision number is however not shown when looking at the file details in Explorer. Does anyone look there at all?

DrSuperGood

Quote
I just downloaded the latest Windows nightly, and it had the string r7923 embedded in the executable, suggesting that the code DrSuperGood posted (or some alternative) is run. I didn't try running the nightly, though, since I didn't want to mess up my current installation, so it may be that this isn't shown in the caption bar anymore for all I know.

The revision number is however not shown when looking at the file details in Explorer. Does anyone look there at all?
The problem is that if one runs a server using the nightly build then it shows up as revision "0", in other words no revision number. This makes it possible to join with any nightly version that uses the same pakset version (pakset hashes will still stop one from joining). This is a problem that is not unique to River, as I have noticed several such servers since the move to the new build server.