Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function PreloadGenEnd. You can see all the information about this function keyword HERE.

[functions] PreloadGenEnd No New Posts Jassdoc

Started by
City17

0 Members and 1 Guest are viewing this topic.

[functions] PreloadGenEnd
on: April 11, 2022, 08:56:17 PM

Writes the current Preload buffer to filename.
The first and final preload directives are call PreloadStart() - call PreloadEnd( realTime ). The value represents the time in seconds between the calls PreloadStart() and PreloadGenEnd(). There's no way to get this value with the API.

Does not clear the buffer or timer after flushing. The file is overwritten. Max length for filename is 259 characters (see: MAX_PATH). It's possible to specify subfolders: "myMapFolder/file.txt". Any other tricks such as relative paths, UNC or drive letters will not write any files.

Before Reforged (which version?) you needed to enable "Allow Local Files" in registry.

Save Path:
Reforged: %USERPROFILE%\Documents\Warcraft III\CustomMapData\
Classic: ?

Example preload file:
Code: [Select]
function PreloadFiles takes nothing returns nothing

call PreloadStart()
call Preload( "units\\human\\Knight\\Knight.mdx" )
call PreloadEnd( 2.5 )

endfunction

See: Preload, PreloadEnd, PreloadStart, PreloadRefresh, PreloadEndEx, PreloadGenClear, PreloadGenStart, Preloader
« Last Edit: April 16, 2022, 03:42:35 AM by City17 »



 

Started by moyack

Replies: 3
Views: 4229
Jassdoc

Started by Jedi

Replies: 5
Views: 14817
General Jass Discussion

Started by moyack

Replies: 40
Views: 58650
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 656
Jassdoc

Started by moyack

Replies: 0
Views: 646
Jassdoc
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...