*CUSTOM* Exploding Barrels
Moderator: Core Staff
Re: *CUSTOM* Exploding Barrels
this is the error im gettingwhen i add a destructable car with my exploding barrels.
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
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
Re: *CUSTOM* Exploding Barrels
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.
Re: *CUSTOM* Exploding Barrels
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
Re: *CUSTOM* Exploding Barrels
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
What next.lol
Steve
Re: *CUSTOM* Exploding Barrels
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.
my GSC file contains the following
im geting this error,main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
}
So whats happening.
Steve
Re: *CUSTOM* Exploding Barrels
it loads but cant destroy barrels or car,KillerSam wrote:I forgot to say, load the map after /developer 1
Re: *CUSTOM* Exploding Barrels
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.
so it looks like this.?
main()
{
maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
iprintlnbold ("stage 1");
}
im now trying it with this option but it dont work as befor, so im trying it with that line of text ya said to try
Edited, ive tried 1-3 and still gives same error, dont wanta be trying numbers all note.lol
Steve
Re: *CUSTOM* Exploding Barrels
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
Cheers Steve
-
- Core Staff
- Posts: 14220
- Joined: October 21st, 2004, 7:17 pm
- Location: Holland
- Contact:
Re: *CUSTOM* Exploding Barrels
zomg massive quake!
matt101harris wrote:big cock was the first thing that came to my head lol
Re: *CUSTOM* Exploding Barrels
Quake, lol stop playing that game then .lol joking aside. luckly were very limited to Quakes in the UK, hope eveythink is ok there.
Well i tried the debugging option but still no good.
I cant understand why i cant have exploding barrels and cars working together.?
there has to be a way. If this an't going to work could someone put me a GSC script together with working cars/barrels in please, along with details on what needs to go into my (N) box and into my zonefile if any.. i be realy greatfull if someone can do this for me, and i will give all credit to them on my map, i wanta get these added to my Containerpark-b2 map for this weekend..
Cheers
Steve
Well i tried the debugging option but still no good.
I cant understand why i cant have exploding barrels and cars working together.?
there has to be a way. If this an't going to work could someone put me a GSC script together with working cars/barrels in please, along with details on what needs to go into my (N) box and into my zonefile if any.. i be realy greatfull if someone can do this for me, and i will give all credit to them on my map, i wanta get these added to my Containerpark-b2 map for this weekend..
Cheers
Steve
Re: *CUSTOM* Exploding Barrels
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.
GSC is terrian1.gsc
folder/raw/maps/map
ive trippled checked that,looks like i just cant have exploding cars in my map.???Unless there a fix, ive noticed that car script,dont work i dont hink as i did a map from scratch,Terrain/Skybox/ spwning point/ Added Car/ make GSC script and put into the right folder, compiled it , ran map, and shot car, and it didnt exploded, maybe it a non-working script.?
but i did everythink 3 times.
Steve
Re: *CUSTOM* Exploding Barrels
A quick update on this subject.
Ok this is what ive done. I was told to do the following
Also whne this happens it seem to of stopped the Barrels exploding they now down work.. I realy dont think these to tut are compatible with each other. What do you think.
Steve
Ok this is what ive done. I was told to do the following
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!
Also whne this happens it seem to of stopped the Barrels exploding they now down work.. I realy dont think these to tut are compatible with each other. What do you think.
Steve
Re: *CUSTOM* Exploding Barrels
Alright guys this is "lethal323".
I just want to appologize for this tutorial. It is basically my one from cod1 just copied and pasted with a few things changed. It would probably be best if you could just delete this thread. It obviously doesnt work all that well. At the time that I posted this thread I didnt quite realize the difference in coding between cod4 and cod. So if you want you can go ahead and remove this thread unless you do happen to get it working than repost the code for other users use.
Thanks,
Dizzy
I just want to appologize for this tutorial. It is basically my one from cod1 just copied and pasted with a few things changed. It would probably be best if you could just delete this thread. It obviously doesnt work all that well. At the time that I posted this thread I didnt quite realize the difference in coding between cod4 and cod. So if you want you can go ahead and remove this thread unless you do happen to get it working than repost the code for other users use.
Thanks,
Dizzy
"I am also know as lethal323" - Myself
Xfire = Dizzymagoo
Re: *CUSTOM* Exploding Barrels
Steve got it working eventually, I think. It may be worth keeping the topic.
Re: *CUSTOM* Exploding Barrels
Alright. I will post some new ones here soon. Maybe one later today....
"I am also know as lethal323" - Myself
Xfire = Dizzymagoo
Who is online
Users browsing this forum: No registered users and 2 guests