Monsters in Nexuiz

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Re: Monsters in Nexuiz

Postby toneddu2000 » Sat Jan 16, 2010 11:32 pm

It's useless to open a new thread, so I re-use this old thread, because I've noticed that tZork included in the SVN trunk a "monster_zombie"! Unfortunately it doesn't work on my computer and I'd like to study it a bit, so everyone can help me is welcome!
1)I uncommented //#define MONSTES_ENABLED in monsters/monster_zombie.qc
2)I recompiled and all worked good
3)I opened NetRadiant and I created a simple monster_zombie entity, but, when I open the map this error appears in the command line:
Code: Select all
--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monsters
VM_remove: tried to remove the null entity or a reserved entity!
s6489: STORE_F     (=entity 0), GLOBAL4
s6490: CALL1      GLOBAL3605
s6491: STORE_F     (=entity 0), GLOBAL4
s6492: CALL1      GLOBAL214
             : remove_safely : statement 3
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : spawnfunc_monster_zombie : statement 1

--- CUT UNTIL HERE ---
server: 3 new entities parsed, 0 new inhibited, 35 (3 new) spawned (whereas 1 removed self, 2 stayed)
PRVM_SetTempString: enlarging tempstrings buffer (256KB -> 512KB)
PRVM_SetTempString: enlarging tempstrings buffer (512KB -> 1024KB)
Server spawned.


Can someone help me please, because this could be the "Archimedes Lever" to my attempt to create a monster!! :D


EDIT:
I made a mess!
I deleted in monster_zombie.qc this piece of code:

if not(cvar("g_monsters"))

{

remove(self);

return;

}


and now zombie appears but remain in a corner like a dumb, but it doesn't attacks and if I shoot at him (it?), it explodes and spawns another "not-so-smart" zombie that remains there and so on, on the screen, instead, appear tons of these strings(I post just few of these):


Code: Select all
--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_health
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_spawn : statement 25

--- CUT UNTIL HERE ---
GLSL shader glsl/default.glsl lightdirection diffuse offsetmapping compiled.
GLSL shader glsl/default.glsl lightdirection diffuse specular offsetmapping compiled.

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_idle_timer_max
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_idle : statement 7
             : verbstack_pop : statement 30
             : zombie_think : statement 21

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_idle_timer_min
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_idle : statement 10
             : verbstack_pop : statement 30
             : zombie_think : statement 21

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_idle_timer_min
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_idle : statement 15
             : verbstack_pop : statement 30
             : zombie_think : statement 21

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_respawntime
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_die : statement 106
             : zombie_damage : statement 19
             : Damage : statement 562
             : W_BallisticBullet_Hit : statement 78
             : fireBallisticBullet : statement 207
             : W_Shotgun_Attack : statement 57
             : w_shotgun : statement 35
             : weapon_action : statement 4
             : W_WeaponFrame : statement 125
             : PlayerPreThink : statement 528

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_health
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_spawn : statement 25

--- CUT UNTIL HERE ---
GLSL shader glsl/default.glsl lightsource diffuse colormapping specular offsetmapping shadowmaprect shadowmappcf shadowsampler shadowmapvsdct compiled.
GLSL shader glsl/default.glsl lightsource diffuse offsetmapping shadowmaprect shadowmappcf shadowsampler shadowmapvsdct compiled.
GLSL shader glsl/default.glsl flatcolor offsetmapping compiled.
GLSL shader glsl/default.glsl lightsource diffuse colormapping offsetmapping compiled.

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_targetrange
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_verb_attack_findtarget : statement 8
             : verbstack_pop : statement 30
             : zombie_think : statement 17

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_turnspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 3
             : zombie_think : statement 22

--- CUT UNTIL HERE ---

--- CUT HERE ---
WARNING: Attempt to access undefined cvar: g_monster_zombie_stopspeed
VM_remove: tried to remove the null entity or a reserved entity!
s6486: STORE_F     (=entity 0), GLOBAL4
s6487: CALL1      GLOBAL214
             : remove_unsafely : statement 1
             : backtrace : statement 21
             : cvar_string_normal : statement 8
             : cvar_normal : statement 1
             : zombie_move : statement 86
             : zombie_think : statement 22

--- CUT UNTIL HERE ---


that happens when graphic designers touch what they shouldn't touch! :D
toneddu2000
Alien trapper
 
Posts: 251
Joined: Mon Mar 09, 2009 7:56 pm
Location: Italy

Re: Monsters in Nexuiz

Postby Yoda almighty » Sun Jan 17, 2010 4:21 pm

man, those guns for uncommon bravery look awesome. too bad it was canceled :(
Why has a developer ever needed any reason other than "it looks bloody awesome?"

-Archon
Yoda almighty
Alien
 
Posts: 151
Joined: Thu Aug 20, 2009 2:19 am
Location: somewhere in the void

Re: Monsters in Nexuiz

Postby tZork » Sun Jan 17, 2010 9:08 pm

i never committed monster_lurk to svn afaik. if i did it was a mistake :D anyways, the code was crap so theres no sense in looking for it. The model's ok tough.

toneddu2000: if you want to play w ze zombie you need to do a "exec monster_zombie.cfg" (i just committed this file to svn). Without it, it does nothing. Its not working to well even w it atm tough. xD
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Re: Monsters in Nexuiz

Postby toneddu2000 » Tue Jan 19, 2010 3:54 pm

ok, thanks tZork!

EDIT:no, it doesn't work. I put exec monster_zombie.cfg in defaultNexuiz.cfg but it returns the same error of quake c above. I tried also to launch in the console exec monster_zombie.cfg but nothing!

RE-EDIT: now it works!I added in defaultNexuiz.cfg these lines:

Code: Select all
exec monster_zombie.cfg

set g_monsters             4//I invented a number, so I was able to use this cvar!!  :oops:
set g_monster_zombie_respawntime    2

set g_monster_zombie_movespeed      350

set g_monster_zombie_health         275

set g_monster_zombie_stopspeed      90

set g_monster_zombie_turnspeed      360

set g_monster_zombie_idle_timer_min 5

set g_monster_zombie_idle_timer_max 10

set g_monster_zombie_targetrange    2048



set g_monster_zombie_attack_run_range    128

set g_monster_zombie_attack_run_hitrange 96

set g_monster_zombie_attack_run_delay    0.35

set g_monster_zombie_attack_run_damage   30

set g_monster_zombie_attack_run_force    300



set g_monster_zombie_attack_stand_range    64

set g_monster_zombie_attack_stand_hitrange 64

set g_monster_zombie_attack_stand_delay    0.25

set g_monster_zombie_attack_stand_damage   60

set g_monster_zombie_attack_stand_force    250


thanx tZork. I'll work on it, however it goes, after a bit, in segmentation fault and crashes
toneddu2000
Alien trapper
 
Posts: 251
Joined: Mon Mar 09, 2009 7:56 pm
Location: Italy

Previous

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron