Daimao Cancel System

Daimao Cancel System 1.0

No permission to download
nsw25 said:
tried this and character is supposed to jump and do a split kick, with this system you can press multiple times and he keeps jumping in the air higher and higher, can jump 200ft lol

Code:
anim	spawn
onspawnscript @script
	#import "data/scripts/dcancel.c"
	void main(){
		
		addGlobalCancel("a1+a2", "ANI_special"); // breakout move
	}

@end_script
	sound	data/sounds/rspawn.wav
	delay	20
	offset	98 171
	frame	data/chars/rick/idle.gif
		
anim	special
	energycost	20
	mponly	1
	jumpframe	1 3.2 dust
	landframe	6 dust
	sound	data/sounds/swing2.wav
	hitfx	data/sounds/kick.wav
	loop	0
	delay	10
	bbox	0 0 0 0
	offset	95 162
	frame	data/chars/rick/split2.gif
	attack	11 36 175 87 15 20 1 0 0 15
	delay	10
	offset	92 165
	frame	data/chars/rick/split3.gif
	attack	11 36 174 87 15 20 1 0 0 15
	delay	15
	offset	92 165
	frame	data/chars/rick/split3b.gif
	delay	10
	offset	95 145
	frame	data/chars/rick/split2.gif
	delay	15
	offset	95 145
	frame	data/chars/rick/split2b.gif
	delay	8
	offset	93 170
	frame	data/chars/rick/0001.png
	delay	8
	attack	0 0 0 0
	offset	93 170
	frame	data/chars/rick/0001.png

not what I am wanting obviously, should I remove jumpframe and try to cheat it with offsets ?


This :

Code:
onspawnscript @script
	#import "data/scripts/dcancel.c"
	void main(){
		
		addGlobalCancel("a1+a2", "ANI_special"); // breakout move
	}

@end_script

...is not to be put in spawn animation, but in entity header. It's a script event handling definition like animationscript, didhitscript, ondeathscript, etc


As for your other problem you just have to set a great switchFrame in the following animation so that you can not cancel from it. With my system any animation is "global cancelable" (~ special cancelable) if not told otherwise. It's easier this way.

Code:
anim	special
	@script
		if(frame == 0){
			void data = createDaimaoCancel();
			
			set(data, "switchFrame", 999);
		
		}
	@end_script
	energycost	20
	mponly	1
	jumpframe	1 3.2 dust
	landframe	6 dust
	sound	data/sounds/swing2.wav
	hitfx	data/sounds/kick.wav
	loop	0
	delay	10
	bbox	0 0 0 0
	offset	95 162
	frame	data/chars/rick/split2.gif
	attack	11 36 175 87 15 20 1 0 0 15
	delay	10
	offset	92 165
	frame	data/chars/rick/split3.gif
	attack	11 36 174 87 15 20 1 0 0 15
	delay	15
	offset	92 165
	frame	data/chars/rick/split3b.gif
	delay	10
	offset	95 145
	frame	data/chars/rick/split2.gif
	delay	15
	offset	95 145
	frame	data/chars/rick/split2b.gif
	delay	8
	offset	93 170
	frame	data/chars/rick/0001.png
	delay	8
	attack	0 0 0 0
	offset	93 170
	frame	data/chars/rick/0001.png
 
I implemented your scripts in my chars, and for some reason, the players keep on teleporting when they target each other (same goes for players targeting enemies). Is that even normal?
 
Hum that's odd. There is indeed an auto-lock system that does this, but it is disabled in the uploaded version. Are you sure you have the last version ?
 
Piccolo said:
Hum that's odd. There is indeed an auto-lock system that does this, but it is disabled in the uploaded version. Are you sure you have the last version ?
Whoops, looks like I did have an outdated version. Thanks for reminding me.
 
Is your script compatible with the new version of the engine? for some reason, when I tested out the script in my game, I ended up getting an exception:

Script function 'getentityproperty' returned an exception, check the manual for details.
parameters: #209253104, 8,

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

There's an exception while executing script 'animationscript' data/chars/Playable/Neptune/Neptune.txtTotal Ram: 2147483647 Bytes
Free Ram: 1002364928 Bytes
Used Ram: 653721600 Bytes
 
Sorry for bumping this but I also had a similar error.
Script function 'openborvariant' returned an exception, check the manual for details.
parameters: 20, 

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

There's an exception while executing script 'updateentityscript'
this is on the newest version of OBoR
 
Hum I fixed this a while back, but didn't update the files here. Will do it asap.

EDIT : crash should be fixed now.
 
Hi Piccolo. I was trying out with your Daimao cancel with the attack buttons. Almost all of them work. It's just that when using addGlobalCancel with any command and a special button, only special button doesn't work at all. a1-4 and jump buttons work fine. I added special command under around getCurrentCommand function.

Code:
else if(iSpecial) mainCode += "s";

Every time I press a special button, I can't activate it at all. Is it coming from trigger or something in DaimaoCancelKey (self, code, maincode, trigger)? I notice special is the only command in it for cancelling key.

This from the player header.
Code:
@script
	if(frame > 0) daimaoCancel();
@end_script

onspawnscript @script

#import "data/scripts/dcancel.c"
//#import "data/scripts/dcancel.c"
	void main(){
		addGlobalCancel("HB F a3", "ANI_freespecial41");
	//	addGlobalCancel("HB F B F a1", "ANI_freespecial20");
	//	addGlobalCancel("D F a1", "ANI_freespecial11");
	//	addGlobalCancel("Air D F a1", "ANI_freespecial40");
		addGlobalCancel("HD U s", "ANI_FREESPECIAL42");
	}

@end_script

How can I enable the special button for the global cancel?

EDIT: Never mind. I didn't like keyall.c before. I'm going to stick with it.
 
I tried to incorporate this into my edit of Neon Lightning Force, and I got this error log:

Code:
Loading 'Flash' from data/chars/misc/flash.txt
Loading 'flash1' from data/chars/misc/flash1.txt
Loading 'Cut' from data/chars/misc/cut.txt
Loading 'nada' from data/chars/misc/none.txt
Loading 'Blood' from data/chars/misc/blood.txt
Loading 'Blood2' from data/chars/misc/blood2.txt
Loading 'blocflash' from data/chars/misc/blocflash.txt
Loading 'Hit_missile' from data/chars/misc/hitmissile/hitmissile.txt
Loading 'Hit_misil' from data/chars/misc/hitmisil/hitmisil.txt
Command 'autoland' not understood in file 'data/chars/steven/Stevenbike/Stevenbike.txt'!
Loading 'Stevenbike' from data/chars/steven/Stevenbike/Stevenbike.txt
Command 'autoland' not understood in file 'data/chars/steven/steven1/steven1.txt'!
Loading 'Cuchillop' from data/chars/item/cuchillo/cuchillop.txt
WARNING: data/chars/steven/steven1/steven1.txt tries to load a nonnumeric value at weaponframe, where a number is expected!
erroneus string: Steven
Command 'equalairpause' not understood in file 'data/chars/steven/steven1/steven1.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven1/steven1.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven1/steven1.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven1/steven1.txt'!
Loading 'Steven1' from data/chars/steven/steven1/steven1.txt
Command 'autoland' not understood in file 'data/chars/steven/steven2/steven2.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven2/steven2.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven2/steven2.txt'!
Loading 'Steven2' from data/chars/steven/steven2/steven2.txt
Command 'autoland' not understood in file 'data/chars/steven/steven3/steven3.txt'!
Loading 'Bala' from data/chars/policeman/bullet/bullet1.txt
Command 'equalairpause' not understood in file 'data/chars/steven/steven3/steven3.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven3/steven3.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven3/steven3.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven3/steven3.txt'!
Loading 'Steven3' from data/chars/steven/steven3/steven3.txt
Command 'autoland' not understood in file 'data/chars/steven/steven4/steven4.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven4/steven4.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven4/steven4.txt'!
Command 'equalairpause' not understood in file 'data/chars/steven/steven4/steven4.txt'!
Loading 'Steven4' from data/chars/steven/steven4/steven4.txt
Command 'autoland' not understood in file 'data/chars/isolda/isoldabike/isoldabike.txt'!
Loading 'isoldabike' from data/chars/isolda/isoldabike/isoldabike.txt
Command 'autoland' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Loading 'Cuchillo_isolda' from data/chars/item/cuchillo/cuchillo_isolda.txt
WARNING: data/chars/isolda/isolda1/isolda1.txt tries to load a nonnumeric value at weaponframe, where a number is expected!
erroneus string: Isolda
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda1/isolda1.txt'!
Loading 'Isolda1' from data/chars/isolda/isolda1/isolda1.txt
Command 'autoland' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda2/isolda2.txt'!
Loading 'Isolda2' from data/chars/isolda/isolda2/isolda2.txt
Command 'autoland' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Loading 'Blast' from data/chars/isolda/blast/blast.txt
Command 'icond' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda3/isolda3.txt'!
Loading 'Isolda3' from data/chars/isolda/isolda3/isolda3.txt
Command 'autoland' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'icond' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Command 'equalairpause' not understood in file 'data/chars/isolda/isolda4/isolda4.txt'!
Loading 'Isolda4' from data/chars/isolda/isolda4/isolda4.txt
Command 'autoland' not understood in file 'data/chars/negishi/negishibike/negishibike.txt'!
Loading 'Dr._Negishibike' from data/chars/negishi/negishibike/negishibike.txt
Command 'autoland' not understood in file 'data/chars/negishi/negishi1/negishi1.txt'!
Loading 'Cuchillop1' from data/chars/item/cuchillo/cuchillop1.txt
WARNING: data/chars/negishi/negishi1/negishi1.txt tries to load a nonnumeric value at weaponframe, where a number is expected!
erroneus string: Dr._Negishi
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi1/negishi1.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi1/negishi1.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi1/negishi1.txt'!
Loading 'Dr._Negishi1' from data/chars/negishi/negishi1/negishi1.txt
Command 'autoland' not understood in file 'data/chars/negishi/negishi2/negishi2.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi2/negishi2.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi2/negishi2.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi2/negishi2.txt'!
Loading 'Dr._Negishi2' from data/chars/negishi/negishi2/negishi2.txt
Command 'autoland' not understood in file 'data/chars/negishi/negishi3/negishi3.txt'!
Loading 'Bala_' from data/chars/negishi/bullet/bullet2.txt
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi3/negishi3.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi3/negishi3.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi3/negishi3.txt'!
Loading 'Dr._Negishi3' from data/chars/negishi/negishi3/negishi3.txt
Command 'autoland' not understood in file 'data/chars/negishi/negishi4/negishi4.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi4/negishi4.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi4/negishi4.txt'!
Command 'equalairpause' not understood in file 'data/chars/negishi/negishi4/negishi4.txt'!
Loading 'Dr._Negishi4' from data/chars/negishi/negishi4/negishi4.txt
Command 'autoland' not understood in file 'data/chars/melania/melaniabike/melaniabike.txt'!
Loading 'Melaniabike' from data/chars/melania/melaniabike/melaniabike.txt
Command 'autoland' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Loading 'Blast1' from data/chars/melania/blast/blast1.txt
Loading 'cuchillo_melania' from data/chars/item/cuchillo/cuchillo_melania.txt
WARNING: data/chars/melania/melania1/melania1.txt tries to load a nonnumeric value at weaponframe, where a number is expected!
erroneus string: Melania
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania1/melania1.txt'!
Loading 'Melania1' from data/chars/melania/melania1/melania1.txt
Command 'autoland' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania2/melania2.txt'!
Loading 'Melania2' from data/chars/melania/melania2/melania2.txt
Command 'autoland' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania3/melania3.txt'!
Loading 'Melania3' from data/chars/melania/melania3/melania3.txt
Command 'autoland' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Command 'equalairpause' not understood in file 'data/chars/melania/melania4/melania4.txt'!
Loading 'Melania4' from data/chars/melania/melania4/melania4.txt
Command 'autoland' not understood in file 'data/chars/atlas/atlasbike/atlasbike.txt'!
Loading 'Misil_' from data/chars/atlas/misil/misil1.txt
Loading 'Atlasbike' from data/chars/atlas/atlasbike/atlasbike.txt
Command 'autoland' not understood in file 'data/chars/atlas/atlas1/atlas1.txt'!
WARNING: data/chars/atlas/atlas1/atlas1.txt tries to load a nonnumeric value at weaponframe, where a number is expected!
erroneus string: Atlas
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas1/atlas1.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas1/atlas1.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas1/atlas1.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas1/atlas1.txt'!
Loading 'Atlas1' from data/chars/atlas/atlas1/atlas1.txt
Command 'autoland' not understood in file 'data/chars/atlas/atlas2/atlas2.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas2/atlas2.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas2/atlas2.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas2/atlas2.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas2/atlas2.txt'!
Loading 'Atlas2' from data/chars/atlas/atlas2/atlas2.txt
Command 'autoland' not understood in file 'data/chars/atlas/atlas3/atlas3.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas3/atlas3.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas3/atlas3.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas3/atlas3.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas3/atlas3.txt'!
Loading 'Atlas3' from data/chars/atlas/atlas3/atlas3.txt
Command 'autoland' not understood in file 'data/chars/atlas/atlas4/atlas4.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas4/atlas4.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas4/atlas4.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas4/atlas4.txt'!
Command 'equalairpause' not understood in file 'data/chars/atlas/atlas4/atlas4.txt'!
Loading 'Atlas4' from data/chars/atlas/atlas4/atlas4.txt
Command 'autoland' not understood in file 'data/chars/pelo/bola8bike/bola8bike.txt'!
Loading 'Bola8bike' from data/chars/pelo/bola8bike/bola8bike.txt
Command 'autoland' not understood in file 'data/chars/jefa/jefabike/jefabike.txt'!
Loading 'Jefabike' from data/chars/jefa/jefabike/jefabike.txt
Command 'autoland' not understood in file 'data/chars/barbi/barbibike/barbibike.txt'!
Loading 'Barbibike' from data/chars/barbi/barbibike/barbibike.txt
Command 'autoland' not understood in file 'data/chars/valkiria/bloodymarybike/bloodymarybike.txt'!
Loading 'bloodymarybike' from data/chars/valkiria/bloodymarybike/bloodymarybike.txt
Loading 'EFlame' from data/chars/misc/xplos/eflame.txt
Loading 'ESchock' from data/chars/misc/elec/eschock.txt
Loading 'Bullet' from data/chars/gangster/bullet/bullet.txt
Loading 'Bala_moto' from data/chars/misc/bullet-bike/bullet-bike.txt
Loading 'cuchillo_steven' from data/chars/item/cuchillo/cuchillo_steven.txt
Loading 'Misil' from data/chars/wardroid/missile/missile.txt
Loading 'Misil_d' from data/chars/workdroid/misil/misil.txt
Loading 'Laser' from data/chars/wardroid/laser/laser.txt
Loading 'Laser_v' from data/chars/valkiria/laser/laserv.txt
Loading 'Laser_v_' from data/chars/valkiria/laser/laserv1.txt
Loading 'Explosion' from data/chars/misc/explosion.txt
Command 'autoland' not understood in file 'data/chars/isolda/isolda.txt'!

What went wrong?
 
Don't see any error in this log.

You can upload and send me the mod, I can take a look into it.
 
O Ilusionista said:
Some of those instructions should be in the models.txt, not character header, like "equalairpause", "autoland", etc

On it! Have begun to remove them.
 
Miru, did you add more attack animations or something? OpenBoR could crash without error message if you added say ATTACK7 without extended maxattacks limit
 
It turns out it was just typos in my incorporation of the system. The problem's solved now.
 
Hi Picollo, im really new in the open bor engine and i making a new mod and have intentions to use your fantastic script to make combos holding directions!!

But, im having troubles setting it up, because im the biggest noob in the world! hahaa

What im doing wrong?

First, i put the files of your dcancel script in my script folder.

zI0j9qQ.png



Then i create the keyall.c and the only code that its has is this

ZnX6JVv.png


then in the part that you said,
Then, you need this line at the top of your entities animationscript :

Code: [Select]

#import "data/scripts/dcancel.c"

By entities, you mean in the top of the character?  i did this, this the text of my char:
Code:
#import "data/scripts/dcancel.c"

name	Capamerica
health	100
speed	10
type	player
shadow	3
running  24  4  2  1  1
com A2 freespecial2
com F F A2 freespecial3

icon	data/chars/capamerica/icon.gif
diesound data/sounds/die1.wav

remap	data/chars/capamerica/walk0.gif data/chars/capamerica/alter.gif

then in the attack i tried to make this:
Code:
nim	attack1
@script
		if(frame == 0){
			void data = createDaimaoCancel();
			
			set(data, "switchFrame", 5);
			
			addCancel(data, "a1", "ANI_attack2");
			addCancel(data, "F a1", "ANI_attack3");
		}
	@end_script
	attack	0 0 0 15 3 1 1 0 0 0
	loop	0
	delay	4
	offset	58 101
	bbox	37 0 52 99
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit1.wav
	frame	data/chars/capamerica/atttack1.png
	attack	76 11 38 25 10 0 0 0 0 0
	frame	data/chars/capamerica/atttack2.png
	attack	79 7 70 33 10 0 1 0 0 0
	frame	data/chars/capamerica/atttack3.png
	attack	79 7 70 33 10 0 0 1 0 0
	frame	data/chars/capamerica/atttack4.png
	attack	76 14 40 18 10 0 0 0 0 0
	frame	data/chars/capamerica/atttack5.png
		
anim	attack2

	loop	0
	delay	5
	offset	58 101
	bbox	37 0 52 99
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit2.wav
	frame	data/chars/capamerica/attack2_1.png
	attack	81 43 54 73 10 0 1 0 0 0
	frame	data/chars/capamerica/attack2_2.png
	attack	81 43 54 73 10 0 1 0 0 0
	frame	data/chars/capamerica/attack2_3.png
		
anim	attack3
	loop	0
	delay	10
	offset	59 129
	bbox	38 89 61 49
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit3.wav
	frame	data/chars/capamerica/attack3_1.png
	bbox	50 31 50 111
	delay	5
	attack	89 8 75 130 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_2.png
	bbox	50 31 50 111
	delay	5
	attack	89 8 75 130 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_3.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 125 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_4.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 99 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_5.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 99 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_6.png

but im having this error:
Code:
Total Ram: 4294967295 Bytes
 Free Ram: 3561365504 Bytes
 Used Ram: 3485696 Bytes

debug:nativeWidth, nativeHeight, bpp, Hz  1920, 1080, 24, 59
OpenBoR v3.0 Build , Compile Date: Feb 25 2018

Game Selected: ./Paks/bor.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...............

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 'Capamerica' from data/chars/capamerica/capamerica.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 '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 'Ramon' from data/chars/ramon/ramon.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
Cacheing 'capamerica' from data/chars/capamerica/capamerica.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 
Loaded 'Capamerica' from data/chars/capamerica/capamerica.txt 
Warning: Failed to create colourmap. Failed to load file 1
Script compile error: can't find function 'createDaimaoCancel'

Script compile error in 'Capamerica': createDaimaoCancel line 9, column 24

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

Can't compile script 'Capamerica' data/chars/capamerica/capamerica.txt
Total Ram: 4294967295 Bytes
 Free Ram: 3481767936 Bytes
 Used Ram: 62779392 Bytes

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

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


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

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

Can't compile script 'Capamerica' data/chars/capamerica/capamerica.txt

what im i doing wrong? sorry for my horrible english! and thanks for the support!

 
mml129 said:
...

then in the part that you said,
Then, you need this line at the top of your entities animationscript :

Code: [Select]

#import "data/scripts/dcancel.c"

By entities, you mean in the top of the character?  i did this, this the text of my char

Hi  :)

The problem is here. It's not at the top of the character file, but at the top of the character animation script file. If you don't have one yet, create one and set it up in the character file

Code:
name	Capamerica
health	100
speed	10
type	player
shadow	3
running  24  4  2  1  1
com A2 freespecial2
com F F A2 freespecial3

icon	data/chars/capamerica/icon.gif
diesound data/sounds/die1.wav

animationscript data/path_to_animationscript.c
 
Thanks! now the game starts, when i press the attack button the game close up and the log say this:

Code:
Total Ram: 4294967295 Bytes
 Free Ram: 4294967295 Bytes
 Used Ram: 3510272 Bytes

debug:nativeWidth, nativeHeight, bpp, Hz  1920, 1080, 24, 59
OpenBoR v3.0 Build , Compile Date: Feb 25 2018

Game Selected: ./Paks/bor.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...............

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 'Capamerica' from data/chars/capamerica/capamerica.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 '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 'Ramon' from data/chars/ramon/ramon.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
Cacheing 'capamerica' from data/chars/capamerica/capamerica.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 
Loaded 'Capamerica' from data/chars/capamerica/capamerica.txt 
Warning: Failed to create colourmap. Failed to load file 1

Loading models...............	Done!
Object engine init...........	Done!
Input init...................	
1 joystick(s) found!
XInput Controller #1 - 6 axes, 11 buttons, 1 hat(s)
Done!
Create blending tables.......	Done!
Save settings so far........	Done!


Level Loading:   'data/levels/example1.txt'
Total Ram: 4294967295 Bytes
 Free Ram: 4261285888 Bytes
 Used Ram: 66064384 Bytes

Loaded '1up' from data/chars/misc/1up.txt 
Loaded 'Shermie' from data/chars/shermie/shermie.txt 
Loaded 'Steamer' from data/chars/misc/steamer.txt 
Loaded 'Steam' from data/chars/misc/steam.txt 
Loaded 'Yashiro' from data/chars/yashiro/yashiro.txt 
Loaded 'Trash' from data/chars/misc/trash.txt 
Loaded 'money' from data/chars/misc/money.txt 
Loaded 'gold' from data/chars/misc/gold.txt 
Loaded 'ralf' from data/chars/ralf/ralf.txt 
Loaded 'biker-k'' from data/chars/biker-k/biker-k.txt 
Loaded 'K'' from data/chars/k/k.txt 
Loaded 'Lobster' from data/chars/Lobster/Lobster.txt 

Level Loaded:    'data/levels/example1.txt'
Total Ram: 4294967295 Bytes
 Free Ram: 4259221504 Bytes
 Used Ram: 67317760 Bytes
Total sprites mapped: 796

Script function 'getentityproperty' returned an exception, check the manual for details.
 parameters: #105216456, 8,  
 
********** An Error Occurred **********
*            Shutting Down            *

There's an exception while executing script 'Capamerica' data/chars/capamerica/capamerica.txtTotal Ram: 4294967295 Bytes
 Free Ram: 4258750464 Bytes
 Used Ram: 67399680 Bytes

Release level data...........
Level Unloading: 'data/levels/example1.txt'
Total Ram: 4294967295 Bytes
 Free Ram: 4258717696 Bytes
 Used Ram: 67399680 Bytes

RAM Status:
Total Ram: 4294967295 Bytes
 Free Ram: 4258717696 Bytes
 Used Ram: 67399680 Bytes

Done!

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

Unload 'Flash' ............Done.
Unload 'Kula' ............Done.
Unload 'Max' ............Done.
Unload 'Mandy' ............Done.
Unload 'Mighty' ............Done.
Unload 'Capamerica' ............Done.
Unload '1up' ............Done.
Unload 'Shermie' ............Done.
Unload 'Steamer' ............Done.
Unload 'Steam' ............Done.
Unload 'Yashiro' ............Done.
Unload 'Trash' ............Done.
Unload 'Money' ............Done.
Unload 'Gold' ............Done.
Unload 'Ralf' ............Done.
Unload 'Biker-K'' ............Done.
Unload 'K'' ............Done.
Unload 'Lobster' ............Done.

Warning: 1 script variants are not freed, dumping...
openbor_array

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 'Capamerica' data/chars/capamerica/capamerica.txt

I create the animation script, the the death script, the end level and the key all, but i think im missing this part of the tutorial (maybe for my bad english):

Finally, to allow input buffering (that is more flexible input timings), add this block around the top of your entity model file :

Code:
@script
	if(frame > 0) daimaoCancel();
@end_script

also, this is how it is my character.txt  (just the important part).
Code:
health	100
speed	10
type	player
shadow	3
running  24  4  2  1  1
com A2 freespecial2
com F F A2 freespecial3

icon	data/chars/capamerica/icon.gif
diesound data/sounds/die1.wav

remap	data/chars/capamerica/walk0.gif data/chars/capamerica/alter.gif

animationscript data/scripts/animation.c



anim	attack1
@script
		if(frame == 0){
			void data = createDaimaoCancel();
			
			set(data, "switchFrame", 5);
			
			addCancel(data, "a1", "ANI_attack2");
			addCancel(data, "F a1", "ANI_attack3");
		}
	@end_script

	attack	0 0 0 15 3 1 1 0 0 0
	loop	0
	delay	4
	offset	58 101
	bbox	37 0 52 99
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit1.wav
	frame	data/chars/capamerica/atttack1.png
	attack	76 11 38 25 10 0 0 0 0 0
	frame	data/chars/capamerica/atttack2.png
	attack	79 7 70 33 10 0 1 0 0 0
	frame	data/chars/capamerica/atttack3.png
	attack	79 7 70 33 10 0 0 1 0 0
	frame	data/chars/capamerica/atttack4.png
	attack	76 14 40 18 10 0 0 0 0 0
	frame	data/chars/capamerica/atttack5.png
		
anim	attack2

	loop	0
	delay	5
	offset	58 101
	bbox	37 0 52 99
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit2.wav
	frame	data/chars/capamerica/attack2_1.png
	attack	81 43 54 73 10 0 1 0 0 0
	frame	data/chars/capamerica/attack2_2.png
	attack	81 43 54 73 10 0 1 0 0 0
	frame	data/chars/capamerica/attack2_3.png
		
anim	attack3
	loop	0
	delay	10
	offset	59 129
	bbox	38 89 61 49
	cancel	0 99 0 F F A1 freespecial
	sound	data/sounds/caphit3.wav
	frame	data/chars/capamerica/attack3_1.png
	bbox	50 31 50 111
	delay	5
	attack	89 8 75 130 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_2.png
	bbox	50 31 50 111
	delay	5
	attack	89 8 75 130 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_3.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 125 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_4.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 99 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_5.png
	bbox	50 31 50 111
	delay	5
	attack	6 4 99 50 15 3 1 0 0 0
	frame	data/chars/capamerica/attack3_6.png


Where i need tu put that block of code? in the models.txt (i dont think hahaha)? in the character.txt?  in some script file? thank for all your support!


 
Where i need tu put that block of code? in the models.txt (i dont think hahaha)? in the character.txt?  in some script file?
I strongly suggest you to read all the OpenBOR manual if you intersted in coding stuff to OpenBOR: http://www.chronocrash.com/apps/wiki/obor/index.php?title=OpenBOR_Legacy_Manual because  you would already know this answer.

When I started, I've downloaded the manual as a PDF an keep reading it everyday while I was going to my work.  Do not take the easy route: read it ;)
 
Yeah, you are right, im want to make the things easy and fast, i know that im making the thing wrong, that is beacause i want to make my games work very fast.
 
Back
Top Bottom