I give up.. my brain is melted (addplayerclass) 8U

Discuss all aspects related to modding Zandronum here.
Post Reply
ninja2000
 
Posts: 25
Joined: Fri Aug 03, 2012 3:10 pm

I give up.. my brain is melted (addplayerclass) 8U

#1

Post by ninja2000 » Thu Dec 27, 2012 5:34 pm

After 4 hours of struggle I was unable to force it to work.

The only thing I want to do is to remove and than add a new player class with different weapons... zandronum constantly beats my face with crash logs about program termination. Even skulltag does so.

IMO I have tried everything.. +NOSKIN, inheritance from PlayerPawn and DoomPlayer, setting more than 1 class, messing up with safety copies, even dark magic from level 8 circle. Nothing worked...

The only reason it doesn't work is the fact that zandronum probably don't see the new player class.

HALP! 8U 8U 8U

DECORATE

Code: Select all

ACTOR doom2 : PlayerPawn Replaces DoomPlayer
{
 +QUICKTORETALIATE
 +SHOOTABLE
 +SOLID
 +ISMONSTER
 -INVISIBLE
 -INVULNERABLE
  Speed 1
  Health 100
  Radius 16
  Height 56
  Mass 100
  PainChance 255
  Player.DisplayName "Marine"
  Player.CrouchSprite "PLYC"
  Player.StartItem "assaultrifle"
  Player.StartItem "Fist"
  Player.StartItem "Clip", 70
  Player.StartItem "Rocket", 3
  Player.ColorRange 112, 127

  States
  {
  Spawn:
    PLAY A -1
    Loop
  See:
    PLAY ABCD 4 
    Loop
  Missile:
    PLAY E 12 
    Goto Spawn
  Melee:
    PLAY F 6 BRIGHT
    Goto Missile
  Pain:
    PLAY G 4 
    PLAY G 4 A_Pain
    Goto Spawn
  Death:
    PLAY H 0 A_PlayerSkinCheck("AltSkinDeath")
  Death1:
    PLAY H 10
    PLAY I 10 A_PlayerScream
    PLAY J 10 A_NoBlocking
    PLAY KLM 10
    PLAY N -1
    Stop
  XDeath:
    PLAY O 0 A_PlayerSkinCheck("AltSkinXDeath")
  XDeath1:
    PLAY O 5
    PLAY P 5 A_XScream
    PLAY Q 5 A_NoBlocking
    PLAY RSTUV 5
    PLAY W -1
    Stop
  AltSkinDeath:
    PLAY H 6
    PLAY I 6 A_PlayerScream
    PLAY JK 6
    PLAY L 6 A_NoBlocking
    PLAY MNO 6
    PLAY P -1
    Stop
  AltSkinXDeath:
    PLAY Q 5 A_PlayerScream
    PLAY R 0 A_NoBlocking
    PLAY R 5 A_SkullPop
    PLAY STUVWX 5
    PLAY Y -1
    Stop
  }
}
KEYCONF

Code: Select all

clearplayerclasses
addplayerclass doom2
MAPINFO

Code: Select all

GameInfo
{
   PlayerClasses = "doom2"
}
CRASH LOG

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0x4

System: Linux 163-10 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
GCC version: 4.4.5

Zandronum version 1.0 (Aug 19 2012)

Command line: /usr/games/zandronum/zandronum /home/ninja2000/Desktop/someweponz.wad

Wad 0: zandronum.pk3
Wad 1: DOOM2.WAD
Wad 2: skulltag_data.pk3
Wad 3: skulltag_actors.pk3
Wad 4: someweponz.wad

Current map: MAP01

viewx = 0
viewy = 0
viewz = 0
viewangle = 0

Executing: gdb --quiet --batch --command=gdb-respfile-rTBEvM --pid=8631

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: I give up.. my brain is melted (addplayerclass) 8U

#2

Post by one_Two » Thu Dec 27, 2012 5:51 pm

I know the brain ache adding a new player class can cause too well :/
For the decorate just have

Code: Select all

ACTOR doom2 : DoomPlayer { stuff }
Your Keyconf looks correct, maybe try with and without the mapinfo changes.

EDIT: I wasn't correct in my answer. Aenima - who is b& apparently - contacted me and said

Code: Select all

 "Player.StartItem "Rocket", 3"
is wrong because you can't give a player a projectile, so try that.
Last edited by one_Two on Thu Dec 27, 2012 6:09 pm, edited 1 time in total.

ninja2000
 
Posts: 25
Joined: Fri Aug 03, 2012 3:10 pm

RE: I give up.. my brain is melted (addplayerclass) 8U

#3

Post by ninja2000 » Thu Dec 27, 2012 6:24 pm

Nope.. it doesn't work. "Rocket", 3" stuff and deleting MAPINFO did not work.

here is the output.

Code: Select all

Script error, "someweponz.wad:DECORATE" line 10:
Unexpected '
}


ACTOR Junklol
{
+NOCLIP
  states
  {
  Spawn:
    JUNK A 700
    Stop
    JUNK B 700
    Stop
    JUNK C 700
    Stop
    JUNK D 700
    Stop
    JUNK E 700
    Stop
  }
}


ACTOR lolSentinel
{
  Health 500
  Painchance 50
  Speed 9
  Radius 23
  Height 53
  Mass 300
  Monster
  +SPAWNCEILING
  +NOGRAVITY
  +DROPOFF
  +NOBLOOD
  +NOBLOCKMONST
  +INCOMBAT
  +MISSILEMORE
   +MISSILEEVENMORE
  +LOOKALLAROUND
  MinMissileChance 200
  SeeSound ' in definition of 'doom2'
it shows the rest of decorate after the "Rocket", 3" line :/

But i managed to fix it!

The "Rocket", 3" line was causing problems!

I've changed it to "RocketBox", 5 (cause 3 is a small amount for start)

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: I give up.. my brain is melted (addplayerclass) 8U

#4

Post by one_Two » Thu Dec 27, 2012 6:27 pm

That's what I meant, the rocket line was causing the problems :/ (well what Aenima meant) but I'm glad you've solved it.
Last edited by one_Two on Thu Dec 27, 2012 6:27 pm, edited 1 time in total.

Post Reply