Page 2 of 3

Re: *CUSTOM* Exploding Barrels

Posted: February 26th, 2008, 9:39 pm
by steveuk
this is the error im gettingwhen i add a destructable car with my exploding barrels.

Image

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

Posted: February 26th, 2008, 10:45 pm
by Pedsdude
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

Posted: February 26th, 2008, 11:26 pm
by steveuk
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.
ok i will change that and see ifthatworks will let you know shortly.

Steve

Re: *CUSTOM* Exploding Barrels

Posted: February 26th, 2008, 11:31 pm
by steveuk
steveuk wrote:
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.
ok i will change that and see ifthatworks will let you know shortly.

Steve
Nope didnt work

What next.lol
Steve

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 1:38 am
by steveuk
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.
Ok will do, but i was thinking, could it be somethink to do with the barrels. this is what i got.?
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.
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.
my GSC file contains the following
main()
{

maps\mp\_load::main();
maps\mp\_explosive_barrels::main();
}

im geting this error,
Image


Image

So whats happening.

Steve

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 2:33 am
by steveuk
KillerSam wrote:I forgot to say, load the map after /developer 1
it loads but cant destroy barrels or car,

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 3:02 am
by steveuk
KillerSam wrote:iprintlnbold ("stage 1");

Add the above code (with diff numbered stages) throughout your script -to see whats happening.
what in the GSC file ?
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

Posted: February 27th, 2008, 3:30 am
by steveuk
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
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...

Cheers Steve

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 12:23 pm
by [SoE]_Zaitsev
zomg massive quake!

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 12:51 pm
by steveuk
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

Re: *CUSTOM* Exploding Barrels

Posted: February 27th, 2008, 1:58 pm
by steveuk
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.
nope ive checked mate.
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

Posted: February 28th, 2008, 2:55 am
by steveuk
A quick update on this subject.
Ok this is what ive done. I was told to do the following
cant 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 that and recompile the map, The Car after being shot at started to give me the FX error, the tut says this
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!

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.
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

Posted: July 3rd, 2008, 4:04 pm
by Dizzy
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

Re: *CUSTOM* Exploding Barrels

Posted: July 3rd, 2008, 6:50 pm
by Pedsdude
Steve got it working eventually, I think. It may be worth keeping the topic.

Re: *CUSTOM* Exploding Barrels

Posted: July 3rd, 2008, 6:52 pm
by Dizzy
Alright. I will post some new ones here soon. Maybe one later today....