Hi,
I get some weird bug when i try testing my map.
This bug happens when i add my ambient sound in the script: ambientPlay("airplane");
If i remove that line, the error still appears and i have to delete that .gsc and add an other .gsc (without the ambientPlay thing)
The error: ******* script compile error *******
bad token 'ï': (file 'maps/mp/mp_plane.gsc', line 1)
main()
Script:
main()
{
maps\mp\_load::main();
thread geilerBebenEffekt();
ambientPlay("ambient_france");
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");
game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");
}
geilerBebenEffekt()
{
level endon("endmap");
while(1) { //Endlosschleife, das Script darin wird immer wieder ausgeführt (mit ner unten mit 'wait' angegebenen Wartezeit dazwischen)
wait randomInt(120) + 360; //zuerst mal warten, mindestens 6 Minuten, dazu 0 bis 120 Sekunden zufällige Zeit sodass das erste Beben irgendwann nach 6 bis 8 Minuten kommt
thread machGeilenBebenEffekt(); //gleich geht's um die Wurscht
}
}
machGeilenBebenEffekt()
{
staerke = 1;
dauer = 5;
ausgangspunkt = (0, 0, 0);
radius = 4096;
schwerkraft = getCvar("g_gravity");
setCvar("g_gravity", "200");
earthquake(staerke, dauer, ausgangspunkt, radius); //lass wackeln!
wait dauer;
setCvar("g_gravity", schwerkraft);
}
Maybe the error is somehow in the .csv so i post it here too:
name,sequence,file,vol_min,vol_max,vol_mod,pitch_m in,pitch_max,dist_min,dist_max,channel,type,probab ility,loop,masterslave,loadspec,subtitle,compressi on,secondaryaliasname,volumefalloffcurve,startdela y,speakermap,reverb,lfe percentage
airplane,,ambient/mp_airplane/ambient.mp3,0.63,,,,,,,local,streamed,,looping,,mp _airplane
I already asked some ppl but they have no idea too :/