HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do you preload a file?

09-15-2002, 05:39 PM#1
Newhydra
I tried "game preload units\unitdata.slk" and the changes I made to unitdata didn't take effect...do I just say preload unitdata.slk? do I need begin preloading? before or after I tell the game to preload? The event should be map init?
09-15-2002, 06:22 PM#2
dataangel
The action must take place at map init, and just to be safe I'd make it the first action. Not sure if you have to include path or not, try with both. I don't think you need the begin preloading action...although if you didn't I'm not sure what it'd be there for so...try with and without ;)
09-15-2002, 06:45 PM#3
Newhydra
Okay, stuff I've tried and had not work. Event is map init, and it is the ONLY trigger run at map init.

1.Game Preload file UnitData.slk

2.Preload file Units\UnitData.slk

3.Game Begin preloading .5
3.Preload file UnitData.slk

4.Game begin preloading .5
4.Preloadfile Units\UnitData.slk

The change I made was to make the AM have no movement type, MK to have flying movement, and a farm to use the 12x12 pathing map. (just to see if I could get it to work)

Also I've tried setting the timeout to 10 seconds incase that was the problem
09-15-2002, 08:36 PM#4
h0pesfall
newhydra: keeping the default loading screen fixes all preload problems and all your changes will work. i've tested and confirmed this.
09-15-2002, 10:37 PM#5
Newhydra
I use the default loading screen
09-15-2002, 11:08 PM#6
h0pesfall
is your map in maps\download? My map's changes only started working once I moved it there. but I'm not sure if it really matters... it wouldnt make sense, but it seemed to fix my map anyways
09-16-2002, 12:23 AM#7
Newhydra
No, thats not where it is...EDIT: Moved the map there and still no change
09-16-2002, 10:59 PM#8
Newhydra
Could someone post a map that has the preload file thing working so I can compare it with what I'm doing?
09-16-2002, 11:02 PM#9
h0pesfall
here
also, are you using mpq2k or winmpq? coz winmpq has probs :-/
09-16-2002, 11:05 PM#10
Newhydra
mpq2k, I opened the map file(w/a viewer) to make sure that my edited files actually got into the w3m and they were there...Oh yeah, what was changed so I know what to look for ? ;)
09-17-2002, 01:53 AM#11
Newhydra
Okay, I'm forced to conclude one thing, DataAngel was wrong when they said that some .slk files could be changed if you preloaded them. And zzzz the files that you're "preloading" are files which work even without being preloaded. The other thing is, you use preload batch, preload batch wants you to give it the filename which has a list of files for it to preload, you said "Units" the folder name, I looked for a file called units in your map an' I didn't see one (coulda missed it)

-OR-

I'm doing something wrong, here's what I'm doing: have a map with a buncha units pre-defined, (imported them from a protected map 'cause I was curious about their stats) and I shoved the edited .slk file into the w3m after I saved the map (IE:make changes to trigger to tell it to preload files, save, put file in map, run WC3)