[SOLVED] Charging anim for punch and kick

kimono

Well-known member
Hi everybody :)

I've got two basic attacks, punch (A) and kick (A2). I wish to make a charging animation with keep pressing A or A2 (different from A charging).

Here's what I try to set:
Code:
anim	attack1 #Punch
	delay	8
	offset	42 110
	bbox 30 6 27 104
	cancel 1 6 0 A freespecial21
	@cmd	keyint "ANI_FREESPECIAL9" 0 "A2" 0
	sound	data/sounds/punch.wav
	frame	data/chars/karatedo/punch1.gif
	frame	data/chars/karatedo/punch2.gif
	attack1 67 19 59 23 8 0 0 0 0 0
	frame	data/chars/karatedo/punch3.gif
	attack1 67 19 59 23 8 0 0 0 0 0
	frame	data/chars/karatedo/punch3.gif
	attack1 0 0 0 0 0 0 0 0 0 0
	frame	data/chars/karatedo/punch2.gif
	frame	data/chars/karatedo/punch1.gif

anim freespecial21 #Charge
	offset	44 102
	bbox 26 2 32 100
	delay	3
	sound	data/sounds/yossha.wav
	frame	data/chars/karatedo/chargingpunch1.gif
	frame	data/chars/karatedo/chargingpunch2.gif
	frame	data/chars/karatedo/chargingpunch3.gif
	
anim chargeattack
	offset	44 104
	bbox 26 4 32 100
	chargetime	0.4
	delay 13
	frame	data/chars/karatedo/chargepunch1.gif
	attack5 42 0 45 42 10 1 1 0 0 0
	frame	data/chars/karatedo/chargepunch2.gif
	attack5 0 0 0 0 0 0 0 0 0 0
	attack5 81 12 40 42 10 1 1 0 0 0
	sound	data/sounds/yossha.wav
	@cmd	dasher 1 0 0 1
	frame	data/chars/karatedo/chargepunch3.gif
	attack5 0 0 0 0 0 0 0 0 0 0
	attack5 80 26 30 38 10 1 0 0 0 0
	frame	data/chars/karatedo/chargepunch4.gif
	attack5 0 0 0 0 0 0 0 0 0 0
	@cmd	stop
	frame	data/chars/karatedo/chargepunch5.gif

Chargeattack works well but not my charging anim. Any clue to resolve that? Maybye an anim charging function would be nice to add to a further Openbor engine update, won't it?
Thank you for taking time to read this small problem :).
 
Bloodbane said:
Hmm.... can you find the error message in log file? not the one near end of the file but somewhere above that.

Greetings, thanks for responding. I did the test with a clean version of OpenBOR, this is the error that appears when I put "keyall.c" in the scripts folder

Code:
********** An Error Occurred **********
*            Shutting Down            *

Total Ram: 2147483647 Bytes
Free  Ram: 2147483647 Bytes
Used  Ram: 0 Bytes

Release level data...........	Done!
Release graphics data........	Done!
Release game data............

Unloaded 'Mighty'
Unloaded 'Max'
Unloaded 'Mandy'
Unloaded 'Kula'
Unloaded 'Flash'

Release game data............	Done!
Release timer................	Done!
Release input hardware.......	Done!
Release sound system.........	Done!

**************** Done *****************

There's an exception while executing script 'keyall'.
 
That's not the whole log - there is a detailed error report further upstream. Please post the entire log so we can see it.

DC
 
This is the Log

Code:
Total Ram: 68619530240 Bytes
 Free Ram: 55425417216 Bytes
 Used Ram: 6582272 Bytes

debug:nativeWidth, nativeHeight, bpp, Hz  1920, 1080, 24, 60
OpenBoR v3.0 Build , Compile Date: Jul 20 2018

Game Selected: ./Paks/My Mod.pak

FileCaching System Init......	Disabled
Initializing video............
Reading video settings from 'data/video.txt'.

Colordepth is depreciated. All modules are displayed with a 32bit color screen.

Initialized video.............	320x240 (Mode: 0)

Loading menu.txt.............	Done!
Loading fonts................	1 2 3 4 Done!
Timer init...................	Done!
Initialize Sound..............	
Loading sprites..............	Done!
Loading level order..........	Done!
Loading model constants......	Done!
Loading script settings......	Done!
Loading scripts..............	Done!
Loading models...............

Joystick: "UNKNOWN" connected at port: 0 at 2021-06-04 22:07:51
Joystick: "UNKNOWN" connected at port: 1 at 2021-06-04 22:07:51
Joystick: "UNKNOWN" connected at port: 2 at 2021-06-04 22:07:51
Joystick: "UNKNOWN" connected at port: 3 at 2021-06-04 22:07:51
Cacheing 'Flash' from data/chars/misc/flash.txt
Cacheing 'Kula' from data/chars/kula/kula.txt
Cacheing 'Max' from data/chars/maxima/maxima.txt
Cacheing 'Mandy' from data/chars/mary/mary.txt
Cacheing 'Mighty' from data/chars/mighty/mighty.txt
Cacheing 'Apple' from data/chars/misc/apple.txt
Cacheing 'Meat' from data/chars/misc/meat.txt
Cacheing '1up' from data/chars/misc/1up.txt
Cacheing 'Money' from data/chars/misc/money.txt
Cacheing 'Gold' from data/chars/misc/gold.txt
Cacheing 'Time' from data/chars/misc/time.txt
Cacheing 'Box' from data/chars/misc/box.txt
Cacheing 'Crate' from data/chars/misc/crate.txt
Cacheing 'Trash' from data/chars/misc/trash.txt
Cacheing 'Table' from data/chars/misc/table.txt
Cacheing 'Chair' from data/chars/misc/chair.txt
Cacheing 'Fence' from data/chars/misc/fence.txt
Cacheing 'Drum' from data/chars/misc/drum.txt
Cacheing 'Trolly' from data/chars/misc/trolly.txt
Cacheing 'linda' from data/chars/linda/linda.txt
Cacheing 'K'' from data/chars/k/k.txt
Cacheing 'biker-K'' from data/chars/biker-k/biker-k.txt
Cacheing 'Yashiro' from data/chars/yashiro/yashiro.txt
Cacheing 'Ralf' from data/chars/ralf/ralf.txt
Cacheing 'Shermie' from data/chars/shermie/shermie.txt
Cacheing 'Eiji' from data/chars/eiji/eiji.txt
Cacheing 'Joe' from data/chars/joe/joe.txt
Cacheing 'Yamazaki' from data/chars/yamazaki/yamazaki.txt
Cacheing 'Angel' from data/chars/angel/angel.txt
Cacheing 'Billy' from data/chars/billy/billy.txt
Cacheing 'Jhun' from data/chars/jhun/jhun.txt
Cacheing 'Mrbig' from data/chars/mrbig/mrbig.txt
Cacheing 'Robert' from data/chars/robert/robert.txt
Cacheing 'Heavy' from data/chars/heavy/heavy.txt
Cacheing 'K9999' from data/chars/K9999/K9999.txt
Cacheing 'Rugal' from data/chars/Rugal/Rugal.txt
Cacheing 'Knife' from data/chars/misc/knife.txt
Cacheing 'Shot' from data/chars/misc/shot.txt
Cacheing 'Star' from data/chars/misc/star.txt
Cacheing 'Steam' from data/chars/misc/steam.txt
Cacheing 'Steamer' from data/chars/misc/steamer.txt
Cacheing 'Furnace' from data/chars/misc/furnace.txt
Cacheing 'Crab' from data/chars/crab/crab.txt
Cacheing 'Lobster' from data/chars/Lobster/Lobster.txt

Loaded 'Flash' from data/chars/misc/flash.txt 
Loaded 'Kula' from data/chars/kula/kula.txt 
Loaded 'Max' from data/chars/maxima/maxima.txt 
Loaded 'Mandy' from data/chars/mary/mary.txt 
Loaded 'Mighty' from data/chars/mighty/mighty.txt 

Loading models...............	Done!
Object engine init...........	Done!
Input init...................	
4 joystick(s) found!
1. UNKNOWN - 6 axes, 11 buttons, 1 hat(s)

2. UNKNOWN - 6 axes, 24 buttons, 1 hat(s)

3. UNKNOWN - 6 axes, 24 buttons, 1 hat(s)

4. UNKNOWN - 6 axes, 24 buttons, 1 hat(s)
Done!
Create blending tables.......	Done!
Save settings so far........	Done!



********** An Error Occurred **********
*            Shutting Down            *

There's an exception while executing script 'keyall' Total Ram: 68619530240 Bytes
 Free Ram: 55380049920 Bytes
 Used Ram: 57810944 Bytes

Release level data...........
Done!

Release graphics data........	Done!
Release game data............

Unload 'Flash' ............Done.
Unload 'Kula' ............Done.
Unload 'Max' ............Done.
Unload 'Mandy' ............Done.
Unload 'Mighty' ............Done.

Release game data............	Done!
Release timer................	Done!
Release input hardware.......	Done!
Release sound system.........	Done!
Release FileCaching System...	Done!

**************** Done *****************

There's an exception while executing script 'keyall'
 
Bloodbane said:
Thanks for posting the whole log, too bad there's no useful info there  :'(.

Can you post the keyall.c then?

Indeed - that's very odd there is no error report. Please post the script is well, and if you have an #includes or #imports we need those files too.

DC
 
Damon Caskey said:
Bloodbane said:
Thanks for posting the whole log, too bad there's no useful info there  :'(.

Can you post the keyall.c then?

Indeed - that's very odd there is no error report. Please post the script is well, and if you have an #includes or #imports we need those files too.

DC

I just noticed that the last LOG I sent corresponds to an empty Keyall.c, this happened due to an error of mine to make some tests.
I apologize, this is due to my lack of experience with scritps.
 
Back
Top Bottom