Loading scripts outside pk3?


(Jaquboss) #1

Please can you help me , i cant get how to load scripts for G_Script_ScriptLoad( ) without packing it to pk3 file …
I think it will be just simple thing…
Hope you can help…
EDIT: It does work without problem from pk3 file if you cant read it from this text…


(fretn) #2

add the extension .cfg .dat .menu .game (thats all I think) to your scriptfilename, I guess .dat will be the best solution for you


(Chruker) #3

are you running the server as sv_pure 0?


(Jaquboss) #4

@ fretn , yes it is in pak2 checking , so it may work , i wonder if it will look for proper file then…
@ churker , of course i dont , i want to make it work with sv_pure …
Got it working , strange . but it is working :clap:
I ever thought that Q3 and better ( or worse ) engines can load non packed resources…
And again looking for .dat caused infinite loop , because my code that counts that there is defualt script , that is what i must change… ( easly )
Thanks for feedback …