Monsters in Nexuiz

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Wed Sep 23, 2009 7:14 am

  • Hi guys, I'd like to add a monster in Nexuiz (you could say: "what kind of monster, a zombie, a sci-fi creature, a creepy lycantrope?"and I reply:"a monster." :D )
    So, I tried to copy knight.qc from Quake into Nexuiz qcsrc and, after some problem (functions mismatching, moreover) it has compiled. But when I create an entity monster_knight in Netradiant, it doesn't show it in the game(I obviously put knight.mdl in progs folder!). I saw there's a monsters subfolder in qcsrc, but I don't understand how I can use it. I know that in the tturets/units there's a unit_ewheel.qc that it could considered a monster, but I'm not a coder. I'd like only a piece of code of a monster who doesn't shoot, it only follows the player(animation timing and names is not a problem, I could change it)and, once blasted by a rocket, it dies!(infact knight.qc it would be perfect!).pls help!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Sep 23, 2009 8:37 am

  • Well, the monsters/ directory contains the Quake monsters (as taken from dpmod), but it is not active as code is missing (Quake works much different regarding that). Feel free to finish that conversion and then add your monster.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Sep 23, 2009 8:39 am

  • Feel free to finish that conversion and then add your monster

    :shock: ??Sorry, I didn't understand
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Wed Sep 23, 2009 10:08 pm

  • there was once a monster_lurk.qc in trunk somewhere or in a patch, idk what happened to it, but it looked interesting and spawned as if it were a quake monster instead of a bot and had different health and dps values per skill level.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

Thu Sep 24, 2009 11:15 am

  • Thx Mizu Kitsune, I've also googled a bit with monster_lurk.qc in the search field but appears only this thread! I'm quite sad that there's no possibility to add monsters in Nexuiz, because this would be the flame that could start the creation of a Single Player Mod. The better thing IMO (if others are insterested, of course) was to find the original Aurora Mod developers(the nick is DarkSnow but I can't find an email account), because he/she/they should know how to insert a non-player entity in the core. What do you think?

    EDIT:I've sent a mail to David Frendin, one of the developers of Aurora Mod, maybe he know something about that. Let's see what happens! :D
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Thu Sep 24, 2009 1:51 pm

Thu Sep 24, 2009 2:31 pm

  • oh my god! :shock: Thx a lot Mizu Kitsune! I've never thought that there were so many darkplaces mods!! I'll try imediately the hunted chronicle 2 because it has been releases with its source code (but there's no license file)!
    Unfortunately David Frendin's mail it's inactive. :( But, with these links, there's a lot of job to do! :D
    Thanks again!
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

Thu Sep 24, 2009 2:46 pm

  • no problem. i've been working with these mods for making my many folders of mods.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

Thu Sep 24, 2009 2:56 pm

  • Mizu Kitsune wrote:no problem. i've been working with these mods for making my many folders of mods.


    So this is a like compilation project you are working on?
    Flying Steel
    Keyboard killer
     
    Posts: 623
    Joined: Fri May 08, 2009 9:13 pm

Thu Sep 24, 2009 3:01 pm

  • pretty much a bunch of extra folders in my quake folder next to id1 full of stuff just to see what can be done with the engine and what i can do, but lately dp gives the error progsdefs.h out of date or i get a fteqcc error unknown value void. i got the grovitron to work though but at the cost of the grenade launcher. the older builds of nex have actually been quit some help as well.
    +The Dude+
    [-Project 2501-]
    Mizu Kitsune
    Alien trapper
     
    Posts: 362
    Joined: Sat Apr 11, 2009 7:51 pm
    Location: Maridia

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
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy

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
    User avatar
    Yoda almighty
    Alien
     
    Posts: 151
    Joined: Thu Aug 20, 2009 2:19 am
    Location: somewhere in the void

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.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

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
    User avatar
    toneddu2000
    Alien trapper
     
    Posts: 251
    Joined: Mon Mar 09, 2009 7:56 pm
    Location: Italy



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest