
Ive tried 3 differnt cars compiled 3 times and still getting this same erro, any idears.?
My Gsc file is like this
ok this is what i have in my GSC file..
main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
}
Steve
Moderator: Core Staff
ok i will change that and see ifthatworks will let you know shortly.Pedsdude wrote:I presume you're using explosive_barrels.gsc - if so then change the scripting above so that it's "explosive_barrels" instead of "_explosive_barrels". You only need the _ for the load bit originally, then you use just the name from then on.
Nope didnt worksteveuk wrote:ok i will change that and see ifthatworks will let you know shortly.Pedsdude wrote:I presume you're using explosive_barrels.gsc - if so then change the scripting above so that it's "explosive_barrels" instead of "_explosive_barrels". You only need the _ for the load bit originally, then you use just the name from then on.
Steve
Ok will do, but i was thinking, could it be somethink to do with the barrels. this is what i got.?KillerSam wrote:rename it to the original one (As on modsonline).
Do /developer 1
then bring down extended console + give more details of the error.
Note Section 3 would any of thse files effect the compiling , As a car is an a destructible item, i was woundering if there was a conflict somewhere.1) I used this barrel: prefabs/interactable_objects/prop_barrel_benzin.map
I checked a couple of the prefab barrels in this folder and all seem to have the necessary properties set.
"targetname" is already set for this to work. If you go into the prefab you'll see a targetname of "explodable_barrel". You don't need to touch this though.
2) put this line into your maps\mp\.gsc file:
maps\mp\_explosive_barrels::main();
This is the script that makes the barrel explode.
3) Update Zone File: add these files to the right column and save.
rawfile,maps/mp/_explosive_barrels.gsc
xmodel,com_barrel_piece
xmodel,com_barrel_piece2
fx,props/barrel_ignite
fx,props/barrel_fire_top
4)Rebuild your map and test it out.
im geting this error,main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
}
it loads but cant destroy barrels or car,KillerSam wrote:I forgot to say, load the map after /developer 1
what in the GSC file ?KillerSam wrote:iprintlnbold ("stage 1");
Add the above code (with diff numbered stages) throughout your script -to see whats happening.
ok thanks i try tomorrow i have to get to bed, as im out tomorrow early, like im be lucky to get 3 hours sleep.lol i try tomorrow when i get home...KillerSam wrote:that line is purely for 'debugging' as it will put text on your screen if the script gets that far, put it higher up and see if you can get it to display text on your screen, if you can't then its not reading your gsc
matt101harris wrote:big cock was the first thing that came to my head lol
nope ive checked mate.KillerSam wrote:steve, if you are not getting the text displayed on your screen (Stage 1) e.t.c, then you have your gsc either wrongly titled or in the wrong location.
I did that and recompile the map, The Car after being shot at started to give me the FX error, the tut says thiscant remember who said this but add // infront of line 57 in your _load.gsc file in C<root>/call of duty 4\raw\maps\mp
should be // thread maps\mp\_destructible::init();
I did this but when running map again i still get the FX error and if and when the car explodes which you dont see, you get the Red FX logo.Now compile your map, updating zone files, ect.
Run your map and exit out. (When you shoot the car you will get some missing fx, and then a script_compile, so do the following steps to fix it)
Update your Zone File again. Then build fast file again.
Run your map and you car should be ready to explode!
Users browsing this forum: No registered users and 2 guests