Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 145
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: Need Some help wit h coding  (Read 799 times)

0 Members and 1 Guest are viewing this topic.

Offline imaninja1991

  • Sr. Member
  • ****
  • Posts: 422
Need Some help wit h coding
« on: December 22, 2010, 11:06:22 pm »
Are there any coders on that can help me figure out what I did wrong. I'm using Open Bor Stats and this is my 1st time experimenting with coding. The idea was that the player could push different buttons during the attack chain to get a different attack. I tried doing this using the freespecial A A S, but for some reason it would not work. Here is the characters file. Everytime I try to do my attack, Openbor crashes.

Code: [Select]


name        Rock
health            200
mp        100
speed        9
type        player
shadow        3
makeinv        2
running        30  4.1  2  1
dust           dust
throwdamage    26
candamage    enemy obstacle
atchain        1 2 3 4 5
fmap           6
projectilehit  player obstacle
gfxshadow 1
flash Blood5

com D F A freespecial
com D A freespecial2
com A A S freespecial3



icon           data/chars/Rock/Rock90000000.gif

animationscript data/scripts/aniScp.c


anim attack1
loop 0
delay 6
offset 41 101
bbox 24 9 38 85
frame data/chars/Rock/Rock02000000.gif
attack 61 8 44 18 6
frame data/chars/Rock/Rock02000001.gif
offset 41 100
attack 0
frame data/chars/Rock/Rock02100000.gif
offset 41 95
frame data/chars/Rock/Rock02100001.gif
offset 41 94
attack 65 6 61 26 6 0 0 0 10
frame data/chars/Rock/Rock02100002.gif
offset 41 93
frame data/chars/Rock/Rock02100003.gif
offset 41 92
frame data/chars/Rock/Rock02100004.gif
offset 41 96
attack 0
frame data/chars/Rock/Rock02100005.gif

anim attack2
loop 0
delay 6
offset 44 99
bbox 29 10 35 78
frame data/chars/Rock/Rock02200001.gif
bbox 51 7 23 88
frame data/chars/Rock/Rock02200002.gif
offset 47 88
bbox 45 4 24 78
attack 70 5 48 40 6
frame data/chars/Rock/Rock02200003.gif
offset 47 87
delay 8
@cmd changeanibykeytoattack "ANI_attack6" 0 "D" 0 0 (game crashes here)
frame data/chars/Rock/Rock02200004.gif
attack 0
frame data/chars/Rock/Rock02200005.gif

anim attack3
loop 0
delay 6
offset 35 103
bbox 14 9 30 85
frame data/chars/Rock/Rock02310000.gif
offset 39 101
attack 45 1 32 88 6 0 0 0 30
frame data/chars/Rock/Rock02310001.gif
frame data/chars/Rock/Rock02310002.gif
frame data/chars/Rock/Rock02310003.gif

anim attack4
loop 0
delay 5
offset 43 112
bbox 33 15 25 83
attack 0
frame data/chars/Rock/Rock02300000.gif
offset 30 99
bbox 14 8 33 80
frame data/chars/Rock/Rock02300001.gif
offset 41 97
bbox 12 6 33 83
attack 38 21 52 61 6
frame data/chars/Rock/Rock02300002.gif
offset 39 98
@cmd changeanibykeytoattack "ANI_attack7" 0 "U" 0 0 (crashes here too)
frame data/chars/Rock/Rock02300003.gif
offset 42 101
attack 0
frame data/chars/Rock/Rock02400000.gif
attack 47 17 61 33 7
frame data/chars/Rock/Rock02400001.gif
frame data/chars/Rock/Rock02400002.gif
frame data/chars/Rock/Rock02400003.gif

anim attack5
loop 0
delay 5
offset 49 104
bbox 19 6 28 86
frame data/chars/Rock/Rock02510000.gif
offset 78 115
bbox 49 13 34 94
blast 84 0 40 74 12 0 0 50
frame data/chars/Rock/Rock02510001.gif

anim attack6
loop 0
delay 12
offset 63 118
bbox 48 19 11 87
blast -7 15 64 49 12 0 0 20
frame data/chars/Rock/Rock03000003.gif
offset 30 114
bbox 18 16 22 79
attack 48 12 60 35 25 0 0 0 50
frame data/chars/Rock/Rock03000006.gif
frame data/chars/Rock/Rock03000006.gif

anim attack7
loop 0
delay 12
offset 220 88
bbox 214 7 21 54
jumpframe 1 0 9 0
blast 194 11 100 11 15 0 0 20
frame data/chars/Rock/Rock32000006.gif
frame data/chars/Rock/Rock32000006.gif
frame data/chars/Rock/Rock32000006.gif
frame data/chars/Rock/Rock32000006.gif
frame data/chars/Rock/Rock32000006.gif
« Last Edit: September 16, 2012, 06:27:14 am by MatMan »
Current Projects:
Super Mega Beatdown volume 2(in progress)Final Fight X Battletoads volume 2(in progress)

Offline imaninja1991

  • Sr. Member
  • ****
  • Posts: 422
Re: Need Some help wit h coding
« Reply #1 on: December 22, 2010, 11:17:13 pm »
Oops, meant to post this in the open bor section.
Current Projects:
Super Mega Beatdown volume 2(in progress)Final Fight X Battletoads volume 2(in progress)

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: Need Some help with coding
« Reply #2 on: December 25, 2010, 10:55:04 am »
 I skipped this thread before cause I thought you have posted a clone in OpenBoR section but you didn't. I reply this as usual and hopes admin would move this thread to correct section.

 Anyways, I can't say what's actually the cause of the crash until I see the function named changeanibykeytoattack. Could you open aniscp.c and quote this function here?
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline MatMan

  • Hero Member
  • *****
  • Posts: 1320
Re: Need Some help wit h coding
« Reply #3 on: March 08, 2012, 03:49:03 am »
What does the log say?

Also try to use the latest aniScp.c either generated with openBorStats or get it through MixMasters although that is a old working command and hasn't had any need to change in ages.

The command that you have used should worked but post a copy of the log with the crash please.

 



 0%




mighty
SimplePortal 2.3.3 © 2008-2010, SimplePortal