Unitsync & downloads

Unitsync & downloads

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
MasterBel
Posts: 166
Joined: 18 Mar 2018, 07:48

Unitsync & downloads

Post by MasterBel » 24 Nov 2019, 04:10

Hey guys,
I've integrated downloading into my lobby and I'm trying to get Unitsync to recognise the new file. I've triple-checked the file has been moved to the correct location in the data dir. Just asking for map count again doesn't work (somewhat predictably), but calling Init() and then getting the map count doesn't work either, even if I call UnInit() also (before Init())

I've had a look through SpringLobby's source code and there seems to be a gaping hole where unitsync should be? I've found some reload function called to LSL, but no lsl-related files seem to exist (even though they're included).

Could someone explain/point me to how it works?
0 x

User avatar
Silentwings
Moderator
Posts: 3592
Joined: 25 Oct 2008, 00:23

Re: Unitsync & downloads

Post by Silentwings » 24 Nov 2019, 16:11

SL includes pr-dl (https://github.com/spring/pr-downloader) as a submodule via https://github.com/springlobby/springlo ... downloader. This submodule includes the lsl-unitsync interface (https://github.com/spring/pr-downloader ... unitsync.h), and SL communicaites with UnitSync using this interface. UnitSync itself is built as part of Spring (https://github.com/spring/spring/tree/d ... s/unitsync) and comes with the engine as a dll/lib file.
0 x

MasterBel
Posts: 166
Joined: 18 Mar 2018, 07:48

Re: Unitsync & downloads

Post by MasterBel » 25 Nov 2019, 03:03

Thanks Silentwings, my code is now fixed and it finds my downloaded files!
Solution was to call UnInit before Init when reloading. That hadn't worked for me the first time because I had another error elsewhere, but understanding what to expect made it easier to track that down. Off by one errors… :roll:
0 x

Post Reply

Return to “Help & Bugs”