Results 1 to 4 of 4

Thread: Need some help with SOCs!

  1. #1
    Join Date
    March 3rd, 2013
    Location
    In France, I believe.
    Posts
    575
    Level
    38

    Exclamation Need some help with SOCs!

    Yes I'm actually trying to port My devil super sonic boss to release it here but I am not able to do it.
    I tried everything but, it doesn't even spawn, it says that SpawnState etc. are uknow words and says that he can't found the states.

    Here is the start of the code:

    FREESLOT
    MT_DEVILSS
    Object DEVILSS


    MapThingNum = 4022
    SpawnState = S_DEVSPAWN
    SpawnHealth = 8
    SeeState = 1806
    SeeSound = 127
    ReactionTime = 32
    AttackSound = 0
    PainState = 1840
    PainChance = 200
    PainSound = 0
    MeleeState = S_DEVATCK11
    MissileState = 1838
    DEATHSTATE = 1846
    DEATHSOUND = 0
    XDEATHSTATE = 0
    SPEED = 7
    RADIUS = 1572864
    HEIGHT = 2097152
    MASS = 100
    DAMAGE = 2
    ACTIVESOUND = 0
    RAISESTATE = 1842
    FLAGS = MF_BOSS|MF_SHOOTABLE|MF_NOGRAVITY|MF_FLOAT|MF_SPEC IAL


    #Devil Super Sonic's spawn state:


    FRAME S_DEVSPAWN
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 1
    NEXT = DEVSPAWN
    ACTION None
    VAR1 = 0
    VAR2 = 0


    #Devil Super Sonic charging and firing a bomb ring at the player:


    FRAME S_DEVATCK11
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 2
    DURATION = 35
    NEXT = S_DEVATCK12
    ACTION A_PlaySound
    VAR1 = 156
    VAR2 = 0


    FRAME S_DEVATCK12
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 15
    NEXT = 1835
    ACTION A_FireShot
    VAR1 = 223
    VAR2 = 0

    Here are the bunch of error it spawns:
    srb20019.png

    So if anyone can at least convert the spawnstate and the melee state... Do it please...
    Steam ID: Nymphali Festif | SRB2 Nickname: Lat' | Skype: superrainboom
    > "I'm a boy. What? You're laughing? ...Bitches, please, I'M FABULOUS! "

  2. #2
    Join Date
    March 25th, 2010
    Posts
    1,442
    Level
    58
    Here's what would fix it:
    Code:
    FREESLOT
    MT_DEVILSS
    S_DEVSPAWN
    S_DEVATCK11
    S_DEVATCK12
    
    Thing MT_DEVILSS
    MapThingNum = 4022
    SpawnState = S_DEVSPAWN
    SpawnHealth = 8
    SeeState = 1806
    SeeSound = 127
    ReactionTime = 32
    AttackSound = 0
    PainState = 1840
    PainChance = 200
    PainSound = 0
    MeleeState = S_DEVATCK11
    MissileState = 1838
    DEATHSTATE = 1846
    DEATHSOUND = 0
    XDEATHSTATE = 0
    SPEED = 7
    RADIUS = 1572864
    HEIGHT = 2097152
    MASS = 100
    DAMAGE = 2
    ACTIVESOUND = 0
    RAISESTATE = 1842
    FLAGS = MF_BOSS|MF_SHOOTABLE|MF_NOGRAVITY|MF_FLOAT|MF_SPECIAL
    
    #Devil Super Sonic's spawn state:
    
    STATE S_DEVSPAWN
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 1
    NEXT = DEVSPAWN
    ACTION None
    VAR1 = 0
    VAR2 = 0
    
    #Devil Super Sonic charging and firing a bomb ring at the player:
    
    STATE S_DEVATCK11
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 2
    DURATION = 35
    NEXT = S_DEVATCK12
    ACTION A_PlaySound
    VAR1 = 156
    VAR2 = 0
    
    STATE S_DEVATCK12
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 15
    NEXT = 1835
    ACTION A_FireShot
    VAR1 = 223
    VAR2 = 0
    I get no errors with this code.
    You also need to put frames in the FREESLOT category.

    (Btw, you can also refer to FRAME as STATE, so I just changed that because state is used more)

    Maybe a little bit more help: http://wiki.srb2.org/wiki/State
    Quote Originally Posted by SRB2
    <Mystyc Cheez> I ****ING QUIT
    Mystyc Cheez left the game
    <~Sky> Am I too awesome or something?
    <X\Wind> Why is everyone on red...
    <X\Wind> Is Sky that awesome?
    Quote Originally Posted by Steam
    20:48 - Sky: one does not simply ban him
    20:49 - Wind: we must gather the chaos emeralds and blast him

  3. #3
    Join Date
    March 3rd, 2013
    Location
    In France, I believe.
    Posts
    575
    Level
    38
    Oh thankgod... You just save my life, gonna try it!
    But it doesn't spawn, it puts a "!" sing instead of the object.
    What is still wrong with this?
    Steam ID: Nymphali Festif | SRB2 Nickname: Lat' | Skype: superrainboom
    > "I'm a boy. What? You're laughing? ...Bitches, please, I'M FABULOUS! "

  4. #4
    Join Date
    March 25th, 2010
    Posts
    1,442
    Level
    58
    I'm pretty sure that means there's a missing sprite.

    Try instead of using a SpriteNumber, change that to SpriteName and give it an actual name (look at wiki article!). Same with SpriteSubNumber, change that into SpriteFrame (again see wiki). Remember to put it under FREESLOT too.

    Updated slightly. I changed "Thing" to "Object" and removed the unnecessary MT_, and added S_ in one of your states in your Object flags (States always need that S_ prefix).

    Code:
    FREESLOT
    MT_DEVILSS
    S_DEVSPAWN
    S_DEVATCK11
    S_DEVATCK12
    
    Object DEVILSS
    MapThingNum = 4022
    SpawnState = S_DEVSPAWN
    SpawnHealth = 8
    SeeState = 1806
    SeeSound = 127
    ReactionTime = 32
    AttackSound = 0
    PainState = 1840
    PainChance = 200
    PainSound = 0
    MeleeState = S_DEVATCK11
    MissileState = 1838
    DEATHSTATE = 1846
    DEATHSOUND = 0
    XDEATHSTATE = 0
    SPEED = 7
    RADIUS = 1572864
    HEIGHT = 2097152
    MASS = 100
    DAMAGE = 2
    ACTIVESOUND = 0
    RAISESTATE = 1842
    FLAGS = MF_BOSS|MF_SHOOTABLE|MF_NOGRAVITY|MF_FLOAT|MF_SPECIAL
    
    #Devil Super Sonic's spawn state:
    
    STATE S_DEVSPAWN
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 1
    NEXT = S_DEVSPAWN
    ACTION None
    VAR1 = 0
    VAR2 = 0
    
    #Devil Super Sonic charging and firing a bomb ring at the player:
    
    STATE S_DEVATCK11
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 2
    DURATION = 35
    NEXT = S_DEVATCK12
    ACTION A_PlaySound
    VAR1 = 156
    VAR2 = 0
    
    STATE S_DEVATCK12
    SPRITENUMBER = 245
    SPRITESUBNUMBER = 0
    DURATION = 15
    NEXT = 1835
    ACTION A_FireShot
    VAR1 = 223
    VAR2 = 0
    This thread might help if you haven't seen it too (the last post by Sonic100000 is good): http://mb.srb2.org/showthread.php?t=38428

    Again, here's the wiki article that will help you: http://wiki.srb2.org/wiki/State
    Quote Originally Posted by SRB2
    <Mystyc Cheez> I ****ING QUIT
    Mystyc Cheez left the game
    <~Sky> Am I too awesome or something?
    <X\Wind> Why is everyone on red...
    <X\Wind> Is Sky that awesome?
    Quote Originally Posted by Steam
    20:48 - Sky: one does not simply ban him
    20:49 - Wind: we must gather the chaos emeralds and blast him

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •