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?
Unitsync & downloads
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Unitsync & downloads
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.
Re: Unitsync & downloads
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…
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…
