[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - AddTemplate Stationary_Browning to Willy= Epic fail?

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Thu May 23, 2024 10:15 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Fri Mar 13, 2009 7:13 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Alright so, I addTemplated a Stationary_MG42 to a kubelwagen, CSM for coop. I did it in objects.con, no problems. Then I tried the Willy. I addTemplated a Stationary_Browning to it, in objects.con, and it worked fine I thought. I drove around blasting bots with the MG42 kubel for a while and then switched to allied. I looked at the Willy, saw the MG was on it fine, and then my game crashed. Strange coincidence? I tried again. Same result. So wtf is going on here? This is the exact code, it's in the objects.con of the vehicle. With the MG42 on the willy, it crashes after looking at it for about 10 seconds, not 5...and you can drive it for a second too. I also addTemplated a hohasupplydepot to both cars.
Willy (crashes when looked at close up, its fine at a distance too):
ObjectTemplate.addTemplate Stationary_Browning
ObjectTemplate.setPosition 0/1.3/-1

Kubelwagen(works fine, bots even drive it but dont shoot):
ObjectTemplate.addTemplate Stationary_MG42
ObjectTemplate.setPosition 0/1.3/-1

Any ideas?
OK WTF: I got it to work, sortof, by addTemplating the gun to the complex of the Willy. Problem is, it still crashes, just after several minutes instead of several seconds.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Mar 13, 2009 10:57 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Don't addTemplate the thing. Make a new PCO. Look at other vehicles to see how they did it. Hatsuzuki/Fletcher deck guns, for instance.


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Mar 14, 2009 2:00 am 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Also tried that... New PCO, with the Browning_Unlimited addtemplated, just like the stationary_browning is made, and added to the jeep and still crash after a few seconds. The thing that bothers me is that it works perfectly on the kubelwagen.
EDIT: Using a way of adding gun that I found in a custom map, It works in CQ. But not in COOP. In COOP it works fine until you try to use the gun, then you crash. I copied the AI files from the map also, so it should work but it doesn't.
EDIT2: Both now make it crash, screw this...it'll never work.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Mar 14, 2009 6:22 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Mar 14, 2009 10:00 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
But! It worked for the mapper of that Oahu map, why not for me! Even with his objects.con it still crashes.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Mar 15, 2009 5:19 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
I just realized something....
It could be that I tried giving the Browning_Unlimited and MG42_Unlimited a altfire zoom like a handweapon, and when the code had no affect I didn't remove it. I never tried in COOP, and every attempt at this utilized those two guns, and I think the AI didn't like it. I'll try without it. If this is why, I'll feel so stupid. :roll: If it works, I'd like to make a M35A1 (bfv) style motor carriage, like a land gunship, on the M3A1, with a Quad50, and several mounted positions.
EDIT: Never mind... :(

_________________
Image


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 67 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group