| 09-25-2009, 01:08 PM | #1 |
How to get data from an (imported) .slk-file via vJASS? |
| 09-25-2009, 01:17 PM | #2 |
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 |
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 | |
Quote:
Take a look to the slk demo in jasshelper's 7z. |
| 09-25-2009, 03:38 PM | #5 |
thx, vex it seems to work, but how to refer to an imported .slk? |
| 09-25-2009, 03:54 PM | #6 |
The real question is "why refer to an imported slk"? |
| 09-25-2009, 04:03 PM | #7 | |
Quote:
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 |
yes, but you don't need to use an imported file when calling jasshelper's slk thing. |
| 09-25-2009, 04:36 PM | #9 |
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 |
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 | |
Quote:
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 | |
Quote:
|
| 09-26-2009, 02:06 AM | #13 | |
Quote:
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 |
Oh, I see, so that is what it does. |
| 09-26-2009, 02:47 AM | #15 |
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. |
