HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Get Data from .slk

09-25-2009, 01:08 PM#1
Tot
How to get data from an (imported) .slk-file via vJASS?
09-25-2009, 01:17 PM#2
Rising_Dusk
You don't. Poot and Bobo were working on some sort of tool to do this for people at one point, however.
09-25-2009, 01:37 PM#3
Tot
OHHH....

this is stupit....

my problem is that I need to get ~50 values (change with unit's unitid) in one struct with one call, so i thaught of sving all of them into a .slk (one line per unitid).
Probably via .txt or ....

ahh...eventually someone has an idea how to get my values into my struct (WITH ONE FUNCTIONCALL)
09-25-2009, 02:04 PM#4
Vexorian
Quote:
Originally Posted by Tot
OHHH....

this is stupit....

my problem is that I need to get ~50 values (change with unit's unitid) in one struct with one call, so i thaught of sving all of them into a .slk (one line per unitid).
Probably via .txt or ....

ahh...eventually someone has an idea how to get my values into my struct (WITH ONE FUNCTIONCALL)
Of course you can, I am not sure what the heck Dusk is talking about but it is probably about something else.

Take a look to the slk demo in jasshelper's 7z.
09-25-2009, 03:38 PM#5
Tot
thx, vex it seems to work, but how to refer to an imported .slk?
09-25-2009, 03:54 PM#6
Vexorian
The real question is "why refer to an imported slk"?
09-25-2009, 04:03 PM#7
Tot
Quote:
Originally Posted by Vexorian
The real question is "why refer to an imported slk"?

I try to make an extension for blizz unit thing and its not comfortable for the user to call 50+x functions to set unittypes data, so i store them into a .slk-file and refer to them.
09-25-2009, 04:34 PM#8
Vexorian
yes, but you don't need to use an imported file when calling jasshelper's slk thing.
09-25-2009, 04:36 PM#9
Tot
I know, but I don't want the user to have to care about the .slk-file and therefore I import it.

It's not about what I need, it's about beeing user-friendly
09-25-2009, 04:58 PM#10
Rising_Dusk
Is that only for imported slk's? I remember having a chat with Poot and Bobo about how there was no way to grab the data out of the map-generated slk's without the use of some tool they were developing.

My bad for misleading, I guess. Oo
09-25-2009, 05:21 PM#11
Tot
Quote:
Originally Posted by Rising_Dusk
Is that only for imported slk's? I remember having a chat with Poot and Bobo about how there was no way to grab the data out of the map-generated slk's without the use of some tool they were developing.

My bad for misleading, I guess. Oo

I know the jasshelper thingy works for external .slk's, my problem is to get it working for imported ones.

can you please send me a link to their tool-thingy?
09-25-2009, 05:58 PM#12
Rising_Dusk
Quote:
Originally Posted by Tot
can you please send me a link to their tool-thingy?
If it were finished/released, I would. They're lazy asses.
09-26-2009, 02:06 AM#13
PurplePoot
Quote:
Originally Posted by Rising_Dusk
Is that only for imported slk's? I remember having a chat with Poot and Bobo about how there was no way to grab the data out of the map-generated slk's without the use of some tool they were developing.

My bad for misleading, I guess. Oo
Actually, the tool converted the w3u data you wanted into slk JassHelper format which could then be loaded as a struct (yet another example of us being lazy asses).

Also, bobo was supposed to integrate it with JNGP (although last I heard he had it fully working) but I guess he must have never given it to you. You'll have to ask him because he's across the province right now, so I can't really do so.
09-26-2009, 02:27 AM#14
Rising_Dusk
Oh, I see, so that is what it does.
09-26-2009, 02:47 AM#15
cosmicat
If you're trying to write a spell or system or something for reuse by other mappers, chances are the spell/system will be added to an existing mapfile and not based on your map. In that case, the "user" will need to import/copy/relocate/whatever an external *.slk file anyway. I don't see why you're going to all this trouble.