Author Topic: Danmakufu Error Message Troubleshooting  (Read 40415 times)

Re: Danamkufu Error Message Troubleshooting
« Reply #30 on: December 27, 2009, 11:22:00 PM »
You are correct. However, nothing in any of the includes relies on any other.

Re: Danamkufu Error Message Troubleshooting
« Reply #31 on: December 28, 2009, 12:28:55 AM »
Trying to draw thigns in event scripts

I got this

---------------------------
ScriptError「C:\Users\Owner\Desktop\Danmakufu\script\Creative exchange\strongspell.txt」
---------------------------
SetTextureは未定義の識別子です(82行目)

    SetTexture(bad1);

    SetGraphicRect(0, 0, 202, 120);

    DrawGraphic(x1, y1);

    SetTexture(bad2);

    SetGraphicRec
~~~
---------------------------
OK   
---------------------------

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: Danamkufu Error Message Troubleshooting
« Reply #32 on: December 28, 2009, 01:23:01 AM »
Trying to draw thigns in event scripts

I got this

---------------------------
ScriptError「C:\Users\Owner\Desktop\Danmakufu\script\Creative exchange\strongspell.txt」
---------------------------
SetTextureは未定義の識別子です(82行目)

    SetTexture(bad1);

    SetGraphicRect(0, 0, 202, 120);

    DrawGraphic(x1, y1);

    SetTexture(bad2);

    SetGraphicRec
~~~
---------------------------
OK   
---------------------------
Doesn't exist? >_<

Azure Lazuline

  • Looooove!!
  • PM me for free huggles and love!
    • Entanma Project - indie game development
Re: Danamkufu Error Message Troubleshooting
« Reply #33 on: December 28, 2009, 06:31:16 AM »
My understanding of the #include in Danmakufu is that it just straight-up copy/pastes the script from the second file into the first file where the #include is, so if one file has something another needs, putting them in the wrong order might leave it going "lol where's this I dunno lol" and exploding.

Of course, this is assuming I'm remembering my experiences with #include correctly ...

Exactly. It even counts #included files in the line number for errors - don't trust the line count if you have any #includes in the script. I'm really glad it shows you the actual code as well, otherwise troubleshooting would be horrible...

Re: Danamkufu Error Message Troubleshooting
« Reply #34 on: December 28, 2009, 07:58:13 AM »
型が一致しません(269行目)

   SetX(GetCommonData(ToString(gg)) + radius*cos(a + xvar));

   SetY(GetCommonData(ToString(gg)) + radius*sin(a + yvar));

   if(ra
~~~
---------------------------
OK  
---------------------------



I get the most creative errors nowadays. I have a feeling I know what this is.

EDIT: Yup, types not matching. Woohoo~
« Last Edit: December 28, 2009, 08:01:33 AM by Naut »

Blargel

  • RAWR!
  • I'M AN ANGRY LOLI!
Re: Danamkufu Error Message Troubleshooting
« Reply #35 on: December 28, 2009, 09:34:12 AM »
Trying to draw thigns in event scripts

I got this

---------------------------
ScriptError「C:\Users\Owner\Desktop\Danmakufu\script\Creative exchange\strongspell.txt」
---------------------------
SetTextureは未定義の識別子です(82行目)

    SetTexture(bad1);

    SetGraphicRect(0, 0, 202, 120);

    DrawGraphic(x1, y1);

    SetTexture(bad2);

    SetGraphicRec
~~~
---------------------------
OK   
---------------------------

I'm not an expert on Events, but I believe the function "SetTexture" or any of the other drawing functions do not work inside event scripts. You need to draw it somewhere else while the event is playing.
<WorkingKeine> when i get home i just go to the ps3 and beat people up in blazblue with a loli
<Azure> Keine: Danmakufu helper by day, violent loli by night.

Iryan

  • Ph?nglui mglw?nafh
  • Cat R?lyeh wgah?nagl fhtagn.
Re: Danamkufu Error Message Troubleshooting
« Reply #36 on: December 28, 2009, 05:00:02 PM »
---------------------------
error
---------------------------
bad allocation
---------------------------
OK   
---------------------------


I found another thing that causes everyone's favorite error: Trying to set existing commands to something else.

That is, typing stuff like - SetX=GetCenterX; - instead of - SetX(GetCenterX); - .

Danmakufu will assume that you want to assign the value of GetCenterX to the command or a nonexistent variable with the same name as the command, which is impossible and thus results in an error.

The problem now is that a mistake like that can be made pretty much anywhere in the script, thus this info is actually not very helpful.  :V
Old Danmakufu stuff can be found here!

"As the size of an explosion increases, the numbers of social situations it is incapable of solving approaches zero."

Re: Danamkufu Error Message Troubleshooting
« Reply #37 on: January 01, 2010, 11:52:57 AM »
I found another error message, I think,
---------------------------ScriptError「C:UsersBrandonDesktop   h_dnhscriptRandom ScriptsIdea 4.txt」---------------------------配列以外にconcatenateを使いました(38行目)↓DrawText(frame ~ a, GetClipMinX,GetClipMinY+20,20,255);}


   @Finalize{DeleteGraphic(BossImg);}


task   BorderCrawl01{
let up~~~---------------------------OK   ---------------------------
It happened when I tried the "Put multiple things in DrawText using the ~" method
EDIT: Oh and by the way, after this error, the boss immedietely dies.
« Last Edit: January 01, 2010, 12:00:36 PM by Demonbman »

Blargel

  • RAWR!
  • I'M AN ANGRY LOLI!
Re: Danamkufu Error Message Troubleshooting
« Reply #38 on: January 01, 2010, 04:54:39 PM »
Yeah that occurs when you try to concatenate a string with something else. Concatenate meaning putting together to form one string/array. The same error will probably be spit out if you do this:
let array = [1, 2, 3, 4];
let array2 = array ~ ["lolfail"];

Adding to the main post now.
<WorkingKeine> when i get home i just go to the ps3 and beat people up in blazblue with a loli
<Azure> Keine: Danmakufu helper by day, violent loli by night.

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: Danamkufu Error Message Troubleshooting
« Reply #39 on: January 02, 2010, 12:36:34 AM »
Brandon
wow my name is brandon too ^^ wait are you serious?
EDIT: I just got the crashing error, and looked up on the chart for what to do. So I posted the script and stuff to the Q/A topic.

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #40 on: January 13, 2010, 10:33:29 PM »
---------------------------
ScriptError「C:\Users\(AweStriker's real name)\Downloads\th_dnh\script\Assault Wall Formation.txt」
---------------------------
"("が必要です(169行目)

         if frame == 15{
            CreateShot01(GetX,GetY,5,dir,WHITE12,0);
            frame = 0;
         }
         SetMovePosition03(GetEnemyX+r*cos(d
~~~
---------------------------
OK   
---------------------------
What is this? Did the quadratic formula explooooooo

Re: Danamkufu Error Message Troubleshooting
« Reply #41 on: January 13, 2010, 10:40:04 PM »
It's telling you that you need parenthesis.

         if(frame == 15){
            CreateShot01(GetX,GetY,5,dir,WHITE12,0);
            frame = 0;
         }

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #42 on: January 14, 2010, 02:09:21 AM »
---------------------------
ScriptError「C:\Users\(real name)\Downloads\th_dnh\script\Assault Wall Formation.txt」
---------------------------
waitは未定義の識別子です(458行目)

      wait(90);
      VanishEnemy(RedWall);
   }

   task wall;
      loop{
         CreateShotA(1,GetX,GetY,0);
         SetShotDataA(1,0,0,GetAng
~~~
---------------------------
OK   
---------------------------
What's wrong now? I definitely defined wait. Is it not allowed to use VanishEnemy to vanish the enemy that VanishEnemy is in?

Oh wait, sometimes I get this instead!
---------------------------
ScriptError「C:\Users\(real name)\Downloads\th_dnh\script\Assault Wall Formation.txt」
---------------------------
RedWallは未定義の識別子です(531行目)

      VanishEnemy(RedWall);
   }

   task wall{
      loop{
         redshot;
         wait(5);
         yield;
      }
   }

   task redshot{
      let red
~~~
---------------------------
OK   
---------------------------
It's the same error message for a different line of code. Odd.
« Last Edit: January 14, 2010, 03:54:00 AM by AweStriker Nova »

Fetch()tirade

  • serial time-waster
Re: Danamkufu Error Message Troubleshooting
« Reply #43 on: January 14, 2010, 02:15:50 AM »
Seen the wait problem before when I tried scripting. I solved it by defining it before anything else in the script, right after @Finalize. If the other one is the same problem, try the same thing.

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #44 on: January 14, 2010, 02:19:38 AM »
Seen the wait problem before when I tried scripting. I solved it by defining it before anything else in the script, right after @Finalize. If the other one is the same problem, try the same thing.

I just tried that and nothing happened. (oh, and by the way RedWall is the name of the script_enemy this is running in.) Clearly this is a different wait problem.

Blargel

  • RAWR!
  • I'M AN ANGRY LOLI!
Re: Danamkufu Error Message Troubleshooting
« Reply #45 on: January 14, 2010, 02:28:37 AM »
VanishEnemy doesn't take a parameter first of all. It just vanishes whatever enemy it's called in. As for the wait problem, could it be that you have two wait functions defined by accident?
<WorkingKeine> when i get home i just go to the ps3 and beat people up in blazblue with a loli
<Azure> Keine: Danmakufu helper by day, violent loli by night.

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #46 on: January 14, 2010, 03:43:13 AM »
No, it was the same wait problem in a different enemy script.

Re: Danamkufu Error Message Troubleshooting
« Reply #47 on: January 14, 2010, 03:51:25 AM »
Post the script in the Q&A thread. It's very clear what the error messages are saying, please don't come to this thread to troubleshoot your script, it's only for translating the error messages.
« Last Edit: January 14, 2010, 03:54:44 AM by Naut »

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #48 on: January 14, 2010, 03:55:25 AM »
Oh, man, I forgot about the name. Thanks Naut.

Oh, and since most of the rest of the script is copy-pasted...

AweStriker Nova

  • Star Sign "Thunder Constellation"
Re: Danamkufu Error Message Troubleshooting
« Reply #49 on: January 17, 2010, 10:18:46 PM »
---------------------------
ScriptError「C:\Users\AweStriker\Downloads\th_dnh\script\AweScript\AlmightySignMegidola.txt」
---------------------------
単独のピリオドはこのスクリプトでは使いません(369行目)

      ascent(a in 1...60){
         ascent(v in 1..4){
            CreateShot01(x,y,3*v,360/a,SP02,0);
         }
      }
   }

   function wait(w){
   
~~~
---------------------------
OK   
---------------------------

Augh. I got this error, noticed a problem (calling non-defined variable), got this error again (ascent uses parenths), and got this error AGAIN. What's actually the problem here?

Drake

  • *
Re: Danamkufu Error Message Troubleshooting
« Reply #50 on: January 17, 2010, 10:34:32 PM »
Three periods in the first ascent.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Re: Danamkufu Error Message Troubleshooting
« Reply #51 on: February 03, 2010, 02:46:18 AM »
---------------------------
ScriptError「C:UsersStevenDesktop   h_ijiscriptscript_stagestage_ijiyatsu.txt」
---------------------------
イベントを深い階層に記述することはできません(1334行目)

    @Initialize {

   SetClearFrameEffectEnable(false);            // directly exits to title when game ends.

   CreateDebugWindow;                  
~~~
---------------------------
OK   
---------------------------


Deep in the event that can not be described (line 1334).

ChaoStar

  • Dark History Boy
Re: Danamkufu Error Message Troubleshooting
« Reply #52 on: February 22, 2010, 03:25:59 AM »
*necromancy*

Hey. Just fyi, if you're getting a weird error that talks about idetifiyers, make sure none of your variables start with numbers. It's a baaaad idea.

rogus247

  • Rogus is serious...
Re: Danamkufu Error Message Troubleshooting
« Reply #53 on: June 02, 2011, 11:20:50 PM »

I dont get it...

*ok the image isnt showing up..:(*
Ok can i just e-mail someone the picture to make my life easier? xD
« Last Edit: June 02, 2011, 11:25:19 PM by rogus247 »
"Think you got what it takes to beat me? Ive blown up universes before, so what makes you think you got a chance?" -Rogus

Agent of the BSoD

  • Takeminakata Invocation
  • *
  • Never forget
Re: Danamkufu Error Message Troubleshooting
« Reply #54 on: June 13, 2011, 11:57:13 PM »
Here's one:


So, while I was patching EoSH and putting in English dialogs, this showed up. Funny how it brings this up when I play as any character, when this should only show up when playing as Marisa on Donatic. (For this, I was using Reimu on Easy)
I'm not sure why it's doing this when I haven't changed anything except the dialog.
« Last Edit: June 13, 2011, 11:59:59 PM by Agent of the BSoD »
I figured out how to play midi in games with a different device on Win7 ^^
TF2 Backpack
Embodiment of Scarlet Hair English Patch is almost completed.
^ I didn't forget about this. I don't know what you're talking about. >_>

Drake

  • *
Re: Danamkufu Error Message Troubleshooting
« Reply #55 on: June 14, 2011, 12:41:22 AM »
It says "weird special character" as in the special character you're using is odd.

Not really sure why, though. Maybe try opening the script in a hex editor, find that block of code and check if there are invisicharacters in there.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Agent of the BSoD

  • Takeminakata Invocation
  • *
  • Never forget
Re: Danamkufu Error Message Troubleshooting
« Reply #56 on: June 14, 2011, 01:09:06 AM »
It says "weird special character" as in the special character you're using is odd.

Not really sure why, though. Maybe try opening the script in a hex editor, find that block of code and check if there are invisicharacters in there.
Hex editor didn't see anything out of the ordinary. Everything looked the way I had it, nothing strange.

I started thinking it was an apostrophe but taking it out threw up the same error. (unless I really do have to define ' differently) Meh, nevermind. Taking it out resulted in the same error. (I'm still learning danmakufu)

The block of code looks like this btw:
Code: [Select]
// 魔理沙の場合(Donatic)
task EventMarisaEx {
SetChar(LEFT, cutMarisa2);
SetGraphicRect(LEFT, 1, 1, 256, 268);
MoveChar(LEFT,FRONT);
TextOutA("\c[BLUE]I fought that weird guy around here last time.");
SetChar(LEFT, cutMarisa1);
SetGraphicRect(LEFT, 1, 1, 256, 268);
MoveChar(LEFT,FRONT);
TextOutA("\c[BLUE]I guess I could try going again,\n
since I'm already here for the library.");
}
(this does weird things to tabbing. looks fine here lol)
I figured out how to play midi in games with a different device on Win7 ^^
TF2 Backpack
Embodiment of Scarlet Hair English Patch is almost completed.
^ I didn't forget about this. I don't know what you're talking about. >_>

Re: Danamkufu Error Message Troubleshooting
« Reply #57 on: July 07, 2011, 10:40:15 PM »
....it can't find my script. :3
And for some reason after I select 'All' it stops responding.

Drake

  • *
Re: Danamkufu Error Message Troubleshooting
« Reply #58 on: July 07, 2011, 11:03:05 PM »
We moved your earlier post into here.

It doesn't stop responding after you select All, it just has to load a lot of scripts, which takes forever. Use Directory to find scripts instead.

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Agent of the BSoD

  • Takeminakata Invocation
  • *
  • Never forget
Re: Danamkufu Error Message Troubleshooting
« Reply #59 on: July 08, 2011, 03:21:02 AM »
I figured out what that "odd character" thing was about. There wasn't any invisible characters at all, what it was was that I accidentally deleted and ending quote for dialog. It was much later in the script, yet it detected it from way at the beginning, but not right away. Odd. It all works fine now.
I figured out how to play midi in games with a different device on Win7 ^^
TF2 Backpack
Embodiment of Scarlet Hair English Patch is almost completed.
^ I didn't forget about this. I don't know what you're talking about. >_>