[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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/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/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/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 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Coding in Entites for maps.

Coding in Entites for maps.

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Coding in Entites for maps.

Postby sniperz227 » Thu May 05, 2011 8:14 pm

sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Thu May 05, 2011 8:33 pm

User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Thu May 05, 2011 8:38 pm

sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby sniperz227 » Fri May 06, 2011 12:37 am

sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Fri May 06, 2011 2:52 am

look up the torch entitie in qc and in worldcrafts quake fgd. it should be similar to that.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Fri May 06, 2011 2:55 am

how do i look at the worldcraft fdg ? and how would the torch be the same as a circus tent?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Fri May 06, 2011 3:06 am

go into your worldcraft folder and open the fgd with a text editor and they would be similar because they both spawn models.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Fri May 06, 2011 3:15 am

thats what i get in the fdg

@PointClass size(-4 -4 -12, 4 4 20) base(Light, Target, Targetname) =
light_torch_small_walltorch : "Small walltorch" []

and isnt there another way of spawning entites without using the fdg just code ?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Fri May 06, 2011 3:20 am

@PointClass base(ctent) = info_ctent_spawn : "circus tent" []

try that. i'm not sure if it's right havnt messed with fgds much.
maybe this.

@PointClass base() = info_ctent_spawn : "circus tent" []

if this isn't working it might be the code. not the fgd.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Fri May 06, 2011 3:25 am

nope didnt work :( is this the only way to add a model in to worldcraft as an entity ?
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Fri May 06, 2011 3:30 am

it's not the fgd then. it's your code.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Fri May 06, 2011 3:31 am

no like the name doesnt show up in the entity list for worldcraft
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby ceriux » Fri May 06, 2011 3:35 am

have you added the new fgd to worldcrafts fgd list in configuration? if not just make an entity in worldcraft , right click it go to properties and change the name of the entity to info_ctent_spawn. save and compile the map and test.

if that doesnt work do the same thing, but change the name to the classname of the entity and try again. if none of this works. it must be your code.

which your code looks okay to me.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby sniperz227 » Fri May 06, 2011 3:37 am

thats what i did before but it still wouldn't work. the code above in my first post is put in a new .qc file and i tried it in my items.qc would you please have a look and tell me if there is something wrong with it because their must be if it does not work.
sniperz227
 
Posts: 112
Joined: Sat Apr 09, 2011 3:19 am

Postby daemonicky » Fri May 06, 2011 4:58 am

You seem to miss setorigin(self, self.origin);
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 2 guests