PDA

View Full Version : error in insertcharacter.cns



Zetsubou Billy
29th November 2016, 22:48
Error message: Can't access Data
Error in cvssilverzero.cns
Error loading chars/cvssilverzero/cvssilverzero.def
Error loading p1


So I'm working on a character that is a cvs ryu edit. And I'm working to make it more than just a pallete edit.

THIS IS A ROADBLOCK. Happened after I saved all the files.

I'd like some help

Anji Mito
30th November 2016, 06:24
You might have messed up your cns, MUGEN can't find the required [Data] section, where the main constants are located.

KuroTenshi67
30th November 2016, 06:32
...How peculiar.
Can you show us the .def file of your character ?
That or the cvssilverzero.cns just to see if the constants are in there ?
That is generally one of the first things you put in a character, but if you tried to save him via Fighter Factory while you had no disk space, the character may be erased instead of saved ! (Seriously, it happened with a character in my project, thank f'in goodness I had a backup !)
That or you may have attempted to run MUGEN with not a lot of available RAM (also happened to me but it's better than a freeze or BSOD.)
That is just my experience on this unusual type of error. But as I have said, if you show us the incriminated files, I can make a more accurate answer to your question.

Edit: Darn it, Anji was quicker than me :laugh:

Zetsubou Billy
30th November 2016, 16:03
https://drive.google.com/open?id=0B5341ktwK4HgWWVlZGJtTVZ6T0U

sorry tho give you a download link to the .cns, but it was the only way to show you. ( it was 3x more characters than allowed )

- - - Updated - - -

heres the .def tho

[Info]
name = "cvssilverzero" ;’*’€’E(cvs)
displayname = "Silverzero" ;’*’€’E
versiondate=09,08,2011 ;Version date of character
mugenversion=1.0 ;Version of M.U.G.E.N character works on
author="Warusaki3" ;i'll mention my self later*
Pal.Defaults=4,5,10,11

[Files]
cmd=cvssilverzero.cmd
cns=cvssilverzero.cns
st=cvssilverzero.cns
st1=cvs_common.cns
st2=groove.cns
st3=config.txt
stcommon=common1.cns
sprite=cvssilverzero.sff
anim=cvssilverzero.air
sound=cvssilverzero.snd
pal1=act004.act;’J’v’G’X2ŽãK’J’€[
pal2=act005.act;’J’v’G’X2€™€*K’J’€[
pal3=act009.act;’X’gZERO’J’€[
pal4=act001.act;’J’v’G’X2ŽãP’J’€[
pal5=act002.act;’J’v’G’X2€™€*P’J’€[
pal6=act010.act;’X’p2X’X’^[’g’J’€[
pal7=act104.act;’J’v’G’X2ŽE†“ŽãK’J’€ [
pal8=act105.act;’J’v’G’X2ŽE†“€™€*K’J’€ [
pal9=act106.act;’J’v’G’X2ŽE†“€*K’J’€ [
pal10=act101.act;’J’v’G’X2ŽE†“ŽãP’J’€ [
pal11=act102.act;’J’v’G’X2ŽE†“€™€*P’J’ €[
pal12=act107.act;’J’v’G’X2ŽE†“P€œ¯Žž€ Ÿ€šµ’J’€[

;pal**=act003.act;’J’v’G’X2€*P’J’€[
;pal**=act006.act;’J’v’G’X2€*K’J’€[
;pal**=act007.act;’J’v’G’X2P€œ¯Žž€Ÿ€š ’J’€[
;pal**=act008.act;’J’v’G’X2K€œ¯Žž€Ÿ€š ’J’€[
;pal**=act103.act;’J’v’G’X2ŽE†“€*P’J’ €[
;pal**=act108.act;’J’v’G’X2ŽE†“K€œ¯Žž€ Ÿ€šµ’J’€[

KuroTenshi67
1st December 2016, 14:02
Aaaah yup yup, so there's no data indeed. Anji guessed it right.
So in order to have your character working, you have to add on top of cvssilverzero.cns the following paragraphs (that you can edit accordingly to the stats you want to give to your character)

[Data]
life = 1000
power = 3000
attack = 100
defence = 100
fall.defence_up = 0
liedown.time = 40
airjuggle = 30
sparkno = 8000
guard.sparkno = 130
KO.echo = 0
;volume = 255
IntPersistIndex = 60
FloatPersistIndex = 40

[Size]
xscale = 1 ;Horizontal scaling factor.
yscale = 1 ;Vertical scaling factor.
ground.back = 7 ;Player width (back, ground)
ground.front = 14 ;Player width (front, ground)
air.back = 20 ;Player width (back, air)
air.front = 20 ;Player width (front, air)
height = 60 ;Height of player (for opponent to jump over)
attack.dist = 160 ;Default attack distance
proj.attack.dist = 90 ;Default attack distance for projectiles
proj.doscale = 0 ;Set to 1 to scale projectiles too
head.pos = 0, -85 ;Approximate position of head
mid.pos = 0, -55 ;Approximate position of midsection
shadowoffset = 0 ;Number of pixels to vertically offset the shadow
draw.offset = 0,0 ;Player drawing offset in pixels (x, y)

[Velocity]
walk.fwd = 2.6 ;Walk forward
walk.back = -2.6 ;Walk backward
run.fwd = 4.0, 0 ;Run forward (x, y)
run.back = -2.5,-2.4 ;Hop backward (x, y)
jump.neu = 0,-10.4 ;Neutral jumping velocity (x, y)
jump.back = -2.4 ;Jump back Speed (x, y)
jump.fwd = 2.4 ;Jump forward Speed (x, y)
runjump.back = -2.7,-8.1 ;Running jump speeds (opt)
runjump.fwd = 2.7,-8.1 ;.
airjump.neu = 0,-8.1 ;.
airjump.back = -2.55 ;Air jump speeds (opt)
airjump.fwd = 2.5 ;.
air.gethit.groundrecover = -.15,-3.5 ;Velocity for ground recovery state (x, y) **MUGEN 1.0**
air.gethit.airrecover.mul = .5,.2 ;Multiplier for air recovery velocity (x, y) **MUGEN 1.0**
air.gethit.airrecover.add = 0,-4.5 ;Velocity offset for air recovery (x, y) **MUGEN 1.0**
air.gethit.airrecover.back = -1 ;Extra x-velocity for holding back during air recovery **MUGEN 1.0**
air.gethit.airrecover.fwd = 0 ;Extra x-velocity for holding forward during air recovery **MUGEN 1.0**
air.gethit.airrecover.up = -2 ;Extra y-velocity for holding up during air recovery **MUGEN 1.0**
air.gethit.airrecover.down = 1.5 ;Extra y-velocity for holding down during air recovery **MUGEN 1.0**

[Movement]
airjump.num = 0 ;Number of air jumps allowed (opt)
airjump.height = 35 ;Minimum distance from ground before you can air jump (opt)
yaccel = .50 ;Vertical acceleration
stand.friction = .85 ;Friction coefficient when standing
crouch.friction = .82 ;Friction coefficient when crouching
stand.friction.threshold = 2 ;If player's speed drops below this threshold while standing, stop his movement **MUGEN 1.0**
crouch.friction.threshold = .05 ;If player's speed drops below this threshold while crouching, stop his movement **MUGEN 1.0**
air.gethit.groundlevel = 25 ;Y-position at which a falling player is considered to hit the ground **MUGEN 1.0**
air.gethit.groundrecover.ground.threshold = -20 ;Y-position below which falling player can use the recovery command **MUGEN 1.0**
air.gethit.groundrecover.groundlevel = 10 ;Y-position at which player in the ground recovery state touches the ground **MUGEN 1.0**
air.gethit.airrecover.threshold = -1 ;Y-velocity above which player may use the air recovery command **MUGEN 1.0**
air.gethit.airrecover.yaccel = .35 ;Vertical acceleration for player in the air recovery state **MUGEN 1.0**
air.gethit.trip.groundlevel = 15 ;Y-position at which player in the tripped state touches the ground **MUGEN 1.0**
down.bounce.offset = 0, 20 ;Offset for player bouncing off the ground (x, y) **MUGEN 1.0**
down.bounce.yaccel = .5 ;Vertical acceleration for player bouncing off the ground **MUGEN 1.0**
down.bounce.groundlevel = 12 ;Y-position at which player bouncing off the ground touches the ground again **MUGEN 1.0**
down.friction.threshold = .05 ;If the player's speed drops below this threshold while lying down, stop his movement **MUGEN 1.0**

[Quotes]
victory1 = "Lorem ipsum dolor blahblahblah"
victory2 = "..."
victory3 = "..."
victory4 = "..."
victory5 = "..."

Zetsubou Billy
1st December 2016, 20:29
Thanks! But now there's this error.

Error message:
Could not open file: config.txt
Error loading chars/cvssilverzero/cvssilverzero.def
Error loading p1

KuroTenshi67
2nd December 2016, 10:30
There seems to be a bunch of things missing then, because such error may mean the file isn't in the folder, or is not readable (which would be surprising for a .txt file)
Mind to up this one too ?

Zetsubou Billy
2nd December 2016, 13:56
https://drive.google.com/open?id=0B5341ktwK4HgMWZUejZnYnMyd2c

Here ya go.

Once this character is fixed, I'll mention ya the special thanks.

Zetsubou Billy
9th December 2016, 00:47
Working ok yet?

KuroTenshi67
12th December 2016, 20:14
OMG I can't believe I've skipped this one for so long. I'm so sorry ! :facepalm:

So, here's the thing.
Actually, in your file, the config.txt was missing and needed to be created in order to work.
If you simply remove the line from the .def file, it will result in a golden Ryu clone standing idle, not doing anything.
This config.txt file used to contain data that will be sent back to the character as for his helpers specific to the CVS system.
So one has to build a file with the statedef 10000 and 10010 appropriated to the Ryu clone displayed.
Luckily enough, I've found a config.txt file from an already existing character using the CVS system.
You can then :
1. Create a .txt file.
2. Copy-paste the above text in it and save.

[Statedef 10000]
type = S
anim = 6900

;================================================= ==========================
;================================================= ==========================
;グルーヴポイントの表示設定(var(0)の数値を弄ってください)
[State 10000, see GROOVE POINT]
type = ParentVarAdd
trigger1 = !(root,var(0)&2**0)
var(0) = 0
;0...GROOVE POINT ON /グルーヴポイントの表示あり
;2**0...GROOVE POINT OFF/グルーヴポイントの表示なし

;================================================= ==========================
;グルーヴゲージのDoubleRes設定(var(0)の数値を弄ってください)
[State 10000, Gauge Setting]
type = ParentVarAdd
trigger1 = !(root,var(0)&2**1)
var(0) = 0
;0...DoubleRes=4
;2**1...DoubleRes=0

;================================================= ==========================
;メッセージアイコンの表示Y座標補正(var(57)の数値を弄ってください)
[State 10000, Message Icon Y axis]
type = ParentVarSet
trigger1 = 1
var(57) = -10
;+...Up
;-...Down
;================================================= ==========================
;================================================= ==========================

[State 10000, DestroySelf]
type = DestroySelf
trigger1 = time = 1


;---------------------------------------------------------------------------
[Statedef 10010]
type = S
anim = 6900

;================================================= ==========================
;================================================= ==========================
;グルーヴポイントの表示X座標補正(var(20)の数値を弄ってください)
[State 10010, GROOVE POINT X axis]
type = ParentVarSet
trigger1 = 1
var(20) = 5
;+...Foward
;-...Back

;================================================= ==========================
;グルーヴポイントの表示Y座標補正(var(21)の数値を弄ってください)
[State 10010, GROOVE POINT Y axis]
type = ParentVarSet
trigger1 = 1
var(21) = -1
;+...Up
;-...Down
;================================================= ==========================
;================================================= ==========================

[State 10010, DestroySelf]
type = DestroySelf
trigger1 = time = 1


Voil