Aller au contenu

Photo

Is there any way to compile all scripts in a folder? (not module)


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Clangeddin86

Clangeddin86
  • Members
  • 220 messages

As topic title says.... I'm currently in need of recompiling every single spell script of the game.

Apparently any change to  "x2_inc_spellhook" also requires the spells to be recompiled for it to take effect.

Since there's a lot of spell scripts, I'm not really in the mood of doing this manually and when I try to open them all (to do compile all open scripts) the Toolset Crashes, I'd like to know if there's a way around this dilemma of mine.



#2
kevL

kevL
  • Members
  • 4 056 messages
Skywing's Advanced Script Compiler has a stand-alone app.
(there's also a plug-in for the TS folder, see its readme if interested -- )

create this batchfile and put it in the directory in which you want to recompile the scripts
 
::_ASC.bat

for /r %%1 in (.) do if exist "%%1\*.nss" f:\asc -aglo -v1.69 -y "%%1\*.nss"

pause
It recurses the directory and its subdirectories, skipping dirs that don't have .Nss files

note, "f:\asc" is the standalone: I've renamed the executable "asc.exe" and it's in the root of F:
  • Clangeddin86 aime ceci

#3
kevL

kevL
  • Members
  • 4 056 messages
ofc you'll have to copy all the scripts out of \Data, to \Override

, or something.

#4
Clangeddin86

Clangeddin86
  • Members
  • 220 messages

It worked like a charm, thank you very much.  :D



#5
kevL

kevL
  • Members
  • 4 056 messages
welcome <g>