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 Preloader. You can see all the information about this function keyword HERE.

[functions] Preloader No New Posts Jassdoc

Started by

0 Members and 1 Guest are viewing this topic.

[functions] Preloader
on: April 11, 2022, 09:08:53 PM

Runs the filename as a preload script, only if the filename has an extension. For Jass, the capabilities are very restricted.

There're no restrictions for Lua code if you add it to Preload files (which are supposed to be in Jass), that's only possible with dirty hacks or manual editing. If the map runs in Lua mode, the Jass code is transpiled using Jass2Lua before execution.

Look up order when "Allow Local Files" is enabled:
0. Map resources
1. %USERPROFILE%\Documents\Warcraft III\CustomMapData\
2. Game data folder: Warcraft III\_retail_\
3. (presumably) game MPQs/CASC

Example from blizzard.j:
Code: jass
  1. if (doPreload) then
  2.         call Preloader( "scripts\\HumanMelee.pld" )
  3. endif

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


Started by moyack

Replies: 3
Views: 4233

Started by Jedi

Replies: 5
Views: 14820
General Jass Discussion

Started by moyack

Replies: 40
Views: 58677
Jass Theory & Questions

Started by AGD

Replies: 1
Views: 8059
Codes & Snippets

Started by moyack

Replies: 0
Views: 658
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...