Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
3 Active | 18 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: Help getting SP turret working
LawBlur
General Member
Since: Nov 10, 2009
Posts: 2
Last: Nov 11, 2009
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 10, 2009 03:44 pm
Hey gang,

this is my first post so hopefully I'm not breaking any rules.

I followed the "Placing a usable machinegun" tutorial thinking that if I simply change some values it will work for SP maps as well.

So this is what I have:

I created a misc->turret with the following attributes (entities):

angles: 0 90 0
classname: misc_turret
export: 2
model: weapon_saw_MG_Setup
spawnflags: 0
weaponinfo: saw_bipod_crouch

With that configuration I get the following error:

cannot spawn turret 'saw_bipod_crouch' which has a script, unless one instance placed in map

I tried using other weaponinfos unsuccessfully. Most of the ones I tried told me "the weapClass in weaponinfo for (insert weapon i tried here) needs turret key to have value turret" or something along those lines.

Any ideas on what I am forgetting?
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 13, 2010
[view latest posts]
Level 9
Category: CoD4 SP Mapping
Posted: Tuesday, Nov. 10, 2009 04:40 pm
For the zone file (yourlevel.csv in zone_source) you'll need:

xmodel,weapon_saw_mg_setup

And for the in editor I would say your weapon info is correct.

The error doesn't make sense really to me as I'm used to WAW where you'd get that error when trying to setup a bipod, not use a pre-placed one.

If it still doesn't work I've installed the COD4 tools again so I'll try it out.
Share |
LawBlur
General Member
Since: Nov 10, 2009
Posts: 2
Last: Nov 11, 2009
[view latest posts]
Level 0
Category: CoD4 SP Mapping
Posted: Wednesday, Nov. 11, 2009 12:22 pm
even with the xmodel,weapon_saw_mg_setup inserted into my csv I'm still getting the error.

The error occurs when I try to compile the reflections.

I'm kind of running out of ideas.

I thought maybe it saying "cannot spawn" means I should change its spawnflags from 0 to 1. But it still gives me the same error.

Ok I just discovered that I can run the map just fine. It is only for the compile reflections that the error occurs. I guess I changed something to get it to work in that regard. Do the reflections compile even though I'm getting this error? And is there a way to test if they are compiled?

Thanks for all your help so far
Share |
tomv8
General Member
Since: Oct 5, 2008
Posts: 469
Last: Jul 14, 2010
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Wednesday, Nov. 11, 2009 12:30 pm
add this just at the start of the main() function

if ( getdvar( "r_reflectionProbeGenerate" ) == "1" )
return;

and see if it works
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 13, 2010
[view latest posts]
Level 9
Category: CoD4 SP Mapping
Posted: Wednesday, Nov. 11, 2009 04:29 pm
The easiest way is to just dump a reflection probe in the map and then compile - if the textures are red then it hasn't worked.

What scripts are you using?
Share |
tunini
General Member
Since: Apr 7, 2011
Posts: 23
Last: May 26, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Sunday, May. 8, 2011 06:18 am
LawBlur writes...
Quote:
even with the xmodel,weapon_saw_mg_setup inserted into my csv I'm still getting the error.

The error occurs when I try to compile the reflections.

I'm kind of running out of ideas.

I thought maybe it saying "cannot spawn" means I should change its spawnflags from 0 to 1. But it still gives me the same error.

Ok I just discovered that I can run the map just fine. It is only for the compile reflections that the error occurs. I guess I changed something to get it to work in that regard. Do the reflections compile even though I'm getting this error? And is there a way to test if they are compiled?

Thanks for all your help so far


Im getting this problem now...where I can't compile reflections. Everything runs just fine (50 cal spawns, technical driving around) but my world is red and need to compile reflections. Any ideas?

Oh and I also added TomV8 line into my main script.

edited on May. 8, 2011 09:21 am by tunini
Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1506
Last: Apr 21, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Sunday, May. 8, 2011 09:42 am
did you put a node to target the saw? usually u need that.
Share |
tunini
General Member
Since: Apr 7, 2011
Posts: 23
Last: May 26, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Sunday, May. 8, 2011 03:57 pm
voidsource writes...
Quote:
did you put a node to target the saw? usually u need that.


What do you mean? A path node? In my case, a path node targetting the 50 cal ?
Share |
tunini
General Member
Since: Apr 7, 2011
Posts: 23
Last: May 26, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Sunday, May. 8, 2011 05:44 pm
tunini writes...
Quote:
voidsource writes...
Quote:
did you put a node to target the saw? usually u need that.


What do you mean? A path node? In my case, a path node targetting the 50 cal ?


No luck here.
Share |
9837265498
General Member
Since: Nov 6, 2009
Posts: 193
Last: Jan 23, 2012
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Monday, May. 9, 2011 07:06 pm
I had this about a month ago....


you need your turret with all its settings be targeted by a node_turret.

That is all i needed and the errors went away.

took for ever to put that together though :)
Share |
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»