Search

Search found 7 matches

by Chimro
17 Jul 2008, 02:23
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

Re: unitsync.dll: GetMapCount() returns 0 unexpectedly

aegis wrote:what language are you using?
C#
by Chimro
16 Jul 2008, 02:20
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

Re: unitsync.dll: GetMapCount() returns 0 unexpectedly

aegis wrote:change the working directory to the spring directory before init'ing unitsync
Thanks. How would I go about doing that?
by Chimro
15 Jul 2008, 23:46
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

Re: unitsync.dll: GetMapCount() returns 0 unexpectedly

Alright, I've gotten it work. For some reason it only works when the executable file is in the Spring directory, even through the DLL doing the actual work is always in the Spring directory. :P

Does anyone know of a way around this?
by Chimro
15 Jul 2008, 22:27
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

Re: unitsync.dll: GetMapCount() returns 0 unexpectedly

do you have any maps? ;-) Yes, tons; well over 400. I looked at the C++ test code and it used InitArchiveScanner(), but even when I invoke this before GetMapCount() the latter function still returns zero. I've also tried using AddAllArchives("C:\\Program Files\\Spring\\maps\\") and both c...
by Chimro
15 Jul 2008, 21:50
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

Re: unitsync.dll: GetMapCount() returns 0 unexpectedly

trepan, thank you for your prompt reply and the link to the test code.

As I mentioned in my original post, I'd already called Init() with the proper parameters; however, GetMapCount() still returns zero.
by Chimro
15 Jul 2008, 21:38
Forum: Engine
Topic: unitsync.dll: GetMapCount() returns 0 unexpectedly
Replies: 11
Views: 1303

unitsync.dll: GetMapCount() returns 0 unexpectedly

When I call GetMapCount() I always get a return value of 0 even though I have already called Init(false, 0) and received a success value of 1. I assume there is some other method I need to call before GetMapCount() however, I haven't been able to find it yet in the TASClient source code. Any help wo...
by Chimro
07 Jul 2008, 00:13
Forum: Feature Requests
Topic: An index for map searches? (lobby client)
Replies: 0
Views: 828

An index for map searches? (lobby client)

The search box in the map list seems incredibly slow to me, I have 431 maps installed and it takes several seconds to find one by name. There's no reason why a simple text search should be so slow, I'm sure it could be optimized with a small index of map names in RAM or something similar.

Go to advanced search