By compiling spring from ex. git maintance branch you get the name ( git describe --tags ) "104.0.1-675-ga7f92cfe6". However, all the binary releases from buildbots have 2 less letters, like not 104.0.1-675-ga7f92cfe6 but 104.0.1-675-ga7f92cf. This creates a problem, when springlobby wants do download that engine, it can't because there is no ga7f92cfe6, only ga7f92cf.
How can i rename the engine name when compiling?
Compiling the engine but also making it available to be used with server hosting
Moderator: Moderators
-
- Posts: 31
- Joined: 27 Sep 2015, 23:00
Re: Compiling the engine but also making it available to be used with server hosting
git describe --tags --abbrev=7
-
- Posts: 31
- Joined: 27 Sep 2015, 23:00
Re: Compiling the engine but also making it available to be used with server hosting
Where do you get this name? I've always self-compiled engines (using the Gentoo ebuild overlay at https://github.com/springlobby/overlay) and I can both join public rooms with it without Springlobby asking for download AND I host rooms via SPADS without other players having syncing problems.constatinus wrote: ↑27 Aug 2018, 13:39 ...you get the name ( git describe --tags ) "104.0.1-675-ga7f92cfe6".
Have you actually added the self-compiled engine in Springlobby preferences?
Re: Compiling the engine but also making it available to be used with server hosting
You would either have to hack the FetchSpringVersion macro in rts/build/cmake/UtilVersion.cmake, or set the core.abbrev value in your .gitconfig file to 7. Your git client (which is invoked by FetchSpringVersion) appears to be using a larger default length.i don't know how to tell the compiling process to use that tag
-
- Posts: 31
- Joined: 27 Sep 2015, 23:00
Re: Compiling the engine but also making it available to be used with server hosting
I did, thats how i found out it was using the wrong name/tag.ThinkSome wrote: ↑27 Aug 2018, 18:00Where do you get this name? I've always self-compiled engines (using the Gentoo ebuild overlay at https://github.com/springlobby/overlay) and I can both join public rooms with it without Springlobby asking for download AND I host rooms via SPADS without other players having syncing problems.constatinus wrote: ↑27 Aug 2018, 13:39 ...you get the name ( git describe --tags ) "104.0.1-675-ga7f92cfe6".
Have you actually added the self-compiled engine in Springlobby preferences?
Changing the .gitconfig worked, now the engine is using the correct used name. Maybe Fedora packagers for git changed something? Thatks, issue solved :)Kloot wrote: ↑27 Aug 2018, 18:23You would either have to hack the FetchSpringVersion macro in rts/build/cmake/UtilVersion.cmake, or set the core.abbrev value in your .gitconfig file to 7. Your git client (which is invoked by FetchSpringVersion) appears to be using a larger default length.i don't know how to tell the compiling process to use that tag