Maidens of the Kaleidoscope

~Hakurei Shrine~ => Rika and Nitori's Garage Experiments => Topic started by: Blargel on December 02, 2009, 08:43:00 AM

Title: Danmakufu Error Message Troubleshooting
Post by: Blargel on December 02, 2009, 08:43:00 AM
Due to the increasing number of people who seem to be interested in learning Danmakufu, there has been an increase in the number of repetitive questions about error messages. Truthfully, it's started to annoy me a little, but instead of complain about it and do nothing, I thought I'd complain about it and write something that will hopefully help out. :V

Feel free to point out mistakes, ask your own questions here (about error messages of course), or contribute. If there's any missing information, I'll gladly answer and update this first post so future readers are more likely to find their problem answered here.



First off, if you're getting a bad allocation error, we currently do not have enough information about it to give an explicit reason why it occurs. The first thing you should do is reload Danmakufu and try your script again. If the bad allocation occurs at the exact same time as before, then there is may be a scripting error. Unfortunately for you, since it pops up with "bad allocation" rather than a scripting error, you won't get a specific message and troubleshooting will be rather difficult. If you looked through it and can't find any errors, go ahead and skip all these steps and post your code.



Step 1: Do you even get a scripting error?

Yes: Go to the next step.

No, it just freezes: You likely have an infinite loop somewhere in your script. Check all your while and loop statements to see if they ever exit correctly. If it's supposed to be an infinitely looping task, make sure you're yielding the task too.

No, it just crashes: There are a lot of things that can cause this. Common causes are attempts to create effect objects in @Initialize, naming things with names that Danmakufu is already using but didn't tell you (index, for example, should never be used as a variable/function name), or sound files that somehow aren't compatible with Danmakufu. This seems to vary from person to person and if none of the above reasons seem to be the case, go ahead and ask for help.



Step 2: Does the error give you a line number? It's usually in parentheses.

Yes: Check the line AND a few lines above and below it for common mistakes such as typos, capitalization errors, missing semi-colons, parentheses or other punctuation, or missing/extra parameters in functions. If you can't find the problem, go to the next step for more specific instructions.

No: Check to see if all your braces ('{' and '}') match up. Good spacing and tabbing habits help tremendously for this. A good way to check if these things match is to use your editor's find function (Ctrl+F for most programs) to look for { and then counting how many there are and then doing the same for }. This method also may find them in strange places you don't remember putting them into. If everything seems fine, skip to step 4.



Step 3: Does the error give a function or variable name?

Yes, and it's a function: Make sure that it is spelled correctly. If it's a subroutine, function, or task that you wrote yourself, make sure that both where you're calling it and where you defined it is spelled and capitalized correctly. Lastly, make sure the correct amount of parameters are in the parentheses. You may also have forgotten a comma or typoed it as a period instead so check for that too. A common mistake that I make is writing stuff like Obj_SetAngle(obj, 180-Obj_GetAngle(obj); As you can see, there's a parentheses missing.

Yes, and it's a variable: Make sure that the variable is spelled correctly. Make sure that the variable is also defined beforehand and within the scope of where you are trying to call it. Remember, a variable defined inside an if, while, loop, etc. statement cannot be used outside of that statement. Lastly, if your variable is storing one type of value (string, number, boolean, etc), it cannot be changed or compared to another type of value. For example, if you say let ThisThing = "five";, you cannot later put ThisThing = 5;. Similarly, ThisThing += 8 and if(ThisThing==5) will also raise errors.

No: Tough luck. Keep reading.



Step 4: Specific Error Messages
The following is de-engrishified machine translations. If there's someone who can translate them better, please do and I'll edit this.

[script name]内で「{...}」が対応していません - In [script name], "{...}" is not supported(?)
Okay this translation is way off, but I've seen this message so many times. You almost definitely have mismatched braces ('{' and '}').

[something]わ未定義の識別子 - [something] is not defined.
Check your spelling on the variable/function and make sure it was defined somewhere. Just so you know, functions also have scope similar to how variables do. If you define a function in a task, only that task can use that function.

型が違う値同士お比較しようとしました - Variables of different types are being compared.
As I just mentioned, you can't compare a string to a number. Even if it makes sense in your head, computers are very picky.

代入によって型が変えられようとしました - A variable was changing it's value type.
You're trying to change a variable's type (for example from a boolean to a string) which isn't allowed.

[punctuation]が必要です - [punctuation] is required.
You're missing the indicated punctuation on the indicated line. Usually a parentheses. Unfortunately, it will likely never catch a missing semi-colon.

配列のサイズお超えています - Size of the array was exceeded.
Remember, an array with 8 values is numbered from 0 to 7, not 1 to 8.

同じスコープで同名のルーチンが複数宣言されています -  Functions and variables of the same name are declared in the same scope
You have a variable/sub/function/task named the same as another variable/sub/function/task.

解釈できないものがあります(「;」を忘れていませんか) - Unable to be interpreted (Don't forget ";"s)
You wrote something so weird, Danmakufu has no idea what you're trying to accomplish and gave up trying to give you a matching error message.

配列以外にconcatenateを使いました - No translation.
You're trying to add a value to an array that doesn't store that type of array. For example, trying to add "omg" to an array that only stores numbers. This error also appears if you try to add numbers to strings like "One plus one is" ~ 2. In that case, you'd need to use the function ToString to change the number to a string before using ~. Like this: "One plus one is " ~ ToString(2).


If there's an error message you got that doesn't match these, go ahead and post it up and we'll get it translated.



Step 5: It's STILL not working! You're useless Blargel!

Thanks. :V

Before you go ahead and post your problem, go through your code one more time using your editor's search function to find all the {'s and all the }'s. Count them. Make sure they are in appropriate spots and match up correctly. The most random error messages can pop up because these things aren't in the right places. It's all good? I'm still useless? Okay, go ahead and post your problem.

Just keep in mind that if your issue turns out to be something that I already addressed in here, you're gonna look rather silly. :V
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Helepolis on December 02, 2009, 11:50:57 AM
Add the 'script_enemy_main'  error , it is like one of the most common and the cause is missplaced }'s or forgotten ones. Imo this should be also turned into a chart. Do I have your permission to put it in a chart with MS Visio?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on December 02, 2009, 02:28:36 PM
The language barrier is certainly annoying... If someone finds another error I'll try to translate it to be put up.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Helepolis on December 05, 2009, 05:52:08 PM
Flowchart based on Blargel's paint flowchar and his post. Credit to Blargel for the idea and permission :3
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel on December 05, 2009, 06:14:15 PM
Here's the totally non-serious MSPaint flowchart if anyone is wondering.
lolflowchart (http://i44.photobucket.com/albums/f28/Blargel/errormessageflowchart.png)
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on December 05, 2009, 06:39:28 PM
Bad Apple Allocation!! Where does it go?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel on December 05, 2009, 06:53:34 PM
Bad allocation is a bizarre error. Thanks for reminding me. From my experience, if restarting Danmakufu doesn't fix it, then there's actually a scripting error in there somewhere. I rarely ever see it though and there's not enough data to give any reliable reasons for its random appearances.

I guess I should put something about it in the first post.

EDIT: Btw, I believe "bad allocation" actually refers to a bad allocation of memory which means that Danmakufu is somehow handling memory incorrectly. Someone more experienced about this should look into this is it really becomes a problem.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 05, 2009, 10:10:55 PM
"Bad allocation" means you fucked up hard. Read through your script, check for any common errors. On the way through you might spot something out of the ordinary. Chances are you're trying to do something batshit, so check over your logic first. All else fails, burn your script or post it in the Q&A thread. The answer to your problem will almost invariably be "you're doing something batshit, stop", so be careful.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on December 05, 2009, 10:15:53 PM
"Bad allocation" means you fucked up hard. Read through your script, check for any common errors. On the way through you might spot something out of the ordinary. Chances are you're trying to do something batshit, so check over your logic first. All else fails, burn your script or post it in the Q&A thread. The answer to your problem will almost invariably be "you're doing something batshit, stop", so be careful.

I tried using #Player[REIMU_A, MARISA_B]
and I get Bad allocation.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Suikama on December 05, 2009, 10:17:34 PM
I tried using #Player[REIMU_A, MARISA_B]
and I get Bad allocation.
I don't think you can choose the types for the default characters. Only REIMU and MARISA.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 05, 2009, 10:20:41 PM
I tried using #Player[REIMU_A, MARISA_B]
and I get Bad allocation.

REIMU_A and MARISA_A don't exist. Get rid of the underscores.

#Player[REIMUA, MARISAB]
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Lawence Codye on December 07, 2009, 04:54:19 PM
okay...what does this mean?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Iryan on December 07, 2009, 05:21:10 PM
It says "sub", which I believe means that the error is related to a subroutine or function.

Possibilities:

If Season is a sub or function that is supposed to return you a number, and you want to check whether or not this number equals to 2, it may be that either you messed up something with Season so that it doesn't return you a number. Maybe it returns a string instead, maybe an object id or even nothing, I don't know. Alternatively, if it is a function, the error may be that you didn't give it any input for its variables to work with.
Also it may even be that you cannot use subs or funtions inside the if() check, so you would need Season to pass the respective value to a variable which then in the next step you can compare to two.

If these aren't the case, look whether or not something is awry in the line directly above that, especially if you forgot to put a bracket or a semicolon somewhere.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 07, 2009, 05:55:06 PM
if(Season==2){position="BLUE1";}

I don't actually know what the error message reads, but it might have something to do with the line before it as well.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Lawence Codye on December 07, 2009, 05:59:13 PM
ah, I see I messed up on epic levels...thanks all who helped & I'm just gonna try something way different...& easier...
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 14, 2009, 01:33:37 AM
How's it goin'.

(http://i641.photobucket.com/albums/uu134/Nautth/wazt.jpg)
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on December 14, 2009, 02:04:42 AM
How's it goin'.

(http://thisisanimage.jpg)
takes random guess and says no such script
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 14, 2009, 02:38:50 AM
It means I've defined something that has already been defined.

Like:

Code: [Select]
let shit = 0;

task shit{}
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on December 14, 2009, 02:40:24 AM
It means I've defined something that has already been defined.

Like:

Code: [Select]
let shit = 0;

task shit{}
:/
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Gc on December 23, 2009, 03:19:56 AM
(http://dl.dropbox.com/u/3185156/Danmakufu%20errors/shoterror1.png)
What the fuck does it mean, I can't read moonrunes.

After getting this error, the script continues running normally, only without bullets.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on December 23, 2009, 03:45:06 AM
Bullet declaration file error. Post your shot.txt in the Q&A thread~
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Snowpaw on December 24, 2009, 03:22:22 PM
I have a problem specifically with Concealed the Conclusion...It SHOULD work right out of the box. You have to pay for it after all, right? (this is my friend's copy I'm borrowing, so I don't know)

My issue is that if I click the only exe that gives me a touhou like interface(th_dnh.exe), it crashes as soon as I select anything besides Directory and Quit...one of those famous Windows "This program has encountered an error and needs to close" things. I dunno what I'm doing wrong. I can't read anything in config or the other exe (thC_ptf.exe) because it's all in ?? instead of Japanese -.-" Help...I wanna play this before I have to give it back when school starts up again.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: KomeijiKoishi on December 24, 2009, 03:48:22 PM
I have a problem specifically with Concealed the Conclusion...It SHOULD work right out of the box. You have to pay for it after all, right? (this is my friend's copy I'm borrowing, so I don't know)

My issue is that if I click the only exe that gives me a touhou like interface(th_dnh.exe), it crashes as soon as I select anything besides Directory and Quit...one of those famous Windows "This program has encountered an error and needs to close" things. I dunno what I'm doing wrong. I can't read anything in config or the other exe (thC_ptf.exe) because it's all in ?? instead of Japanese -.-" Help...I wanna play this before I have to give it back when school starts up again.

Get AppLocale and open the .exe file with it.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 27, 2009, 04:00:28 AM
I swear to God if this is telling me I'm missing a semi-colon

(http://i641.photobucket.com/albums/uu134/Nautth/sdsdsd.jpg)


EDIT: Of course it is.

Post fucking Script: The issue wasn't the G.D. semi-colon.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel on December 27, 2009, 11:22:17 AM
Just so you guys know, pressing Ctrl+C on an message box like Danmakufu's scripting error messages actually copies the whole message. This is how I made the first post with Japanese in it (I don't have Japanese input after all). So if from now on you can paste the messages in instead of posting a screenshot, I can actually update the first post with the Japanese and the translations.

Also, what WAS the cause for that error message, Naut? Looks like it was telling you that you're missing semicolons but that wasn't the case?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Suikama on December 27, 2009, 08:52:22 PM
---------------------------
ScriptError「C:\Users\Owner\Desktop\Danmakufu\script\Creative exchange\chenspell.txt」
---------------------------
script_eventは未定義の識別子です(3行目)

   script_event name{



  let reimu = GetCurrentScriptDirectory ~ "img\cutins\reimu.png";

  let chen = GetCurrentScriptDirecto
~~~
---------------------------
OK   
---------------------------


I've never used event scripts before halp ;_;


Edit: fixed but now I get

---------------------------
ScriptError「C:\Users\Owner\Desktop\Danmakufu\script\Creative exchange\chenspell.txt」
---------------------------
"}"が必要です(15行目)

 SetChar(RIGHT, chen2);                      //Set the boss' picture on the right side of the screen.

 SetGraphicRect(RIGHT, 0, 0
~~~
---------------------------
OK   
---------------------------
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 27, 2009, 09:08:09 PM
The line right before it is missing a semi-colon, most likely. It says you're missing a bracket though.


So if from now on you can paste the messages in instead of posting a screenshot, I can actually update the first post with the Japanese and the translations.

Alrighty.

Also, what WAS the cause for that error message, Naut? Looks like it was telling you that you're missing semicolons but that wasn't the case?

Oh this is good.

Broken version:

Code: [Select]
script_enemy_main {

    let cut = "script\img\face\face.png"; // fill me

    #include_function "script\script_library\function_cutin.txt"
    #include_function "script\script_library\function_aura.txt"
    #include_function "script\script_library\library01.txt"

    @Initialize {
SetLife(350);
SetDamageRate(1,1);
SetTimer(70);
//...

Fixed version:

Code: [Select]
script_enemy_main {

    let cut = "script\img\face\face.png"; // fill me

    #include_function "script\script_library\library01.txt"
    #include_function "script\script_library\function_cutin.txt"
    #include_function "script\script_library\function_aura.txt"

    @Initialize {
SetLife(350);
SetDamageRate(1,1);
SetTimer(70);
//...

I shit you not. Nothing else was changed. I don't even.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on December 27, 2009, 09:11:23 PM
oh god lol
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Suikama on December 27, 2009, 09:12:53 PM
welp
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Nuclear Cheese on December 27, 2009, 10:31:10 PM
Broken version:

<snip>

Fixed version:

<snip>

I shit you not. Nothing else was changed. I don't even.


If something in function_cutin.txt or function_aura.txt relies on something in library01.txt, I think you need to include the library first.

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 ...
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut on December 27, 2009, 11:22:00 PM
You are correct. However, nothing in any of the includes relies on any other.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Suikama 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   
---------------------------
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon 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? >_<
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Azure Lazuline 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...
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut 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~
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Iryan 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
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Demonbman 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova 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
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut 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;
         }
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Fetch()tirade 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel 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?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova on January 14, 2010, 03:43:13 AM
No, it was the same wait problem in a different enemy script.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova 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...
Title: Re: Danamkufu Error Message Troubleshooting
Post by: AweStriker Nova 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?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on January 17, 2010, 10:34:32 PM
Three periods in the first ascent.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Naut 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).
Title: Re: Danamkufu Error Message Troubleshooting
Post by: ChaoStar 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: rogus247 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
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Agent of the BSoD on June 13, 2011, 11:57:13 PM
Here's one:
(http://i1000.photobucket.com/albums/af129/AgentOfTheBSoD/Danmakufu/DanmakufuError-1.png)

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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Agent of the BSoD 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)
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Yuni17 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on July 07, 2011, 11:03:05 PM
We moved your earlier post into here. (http://www.shrinemaiden.org/forum/index.php/topic,9281.msg672015.html#msg672015)

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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Agent of the BSoD 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.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Yuni17 on July 15, 2011, 04:05:11 AM
Oh wrong thread? ^^' Woops~
I fixed the problem I had before, but now I have another problem, like an error, error.


---------------------------
ScriptError
---------------------------
script_enemy_main内で
「{...}」が対応していません。
---------------------------
OK   
---------------------------


Any ideas?  :V

Title: Re: Danamkufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on July 15, 2011, 04:42:13 AM
The brackets don't match up. Double check everything.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: wobuffet3 on July 23, 2011, 10:19:12 PM
mine wont start up. it doesnt respond if i run it with apploc. :C
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Fetch()tirade on July 23, 2011, 10:28:28 PM
What system are you using?
Title: Re: Danamkufu Error Message Troubleshooting
Post by: wobuffet3 on July 23, 2011, 10:50:28 PM
windows vista :/
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Fetch()tirade on July 24, 2011, 02:04:53 AM
Is applocale installed, or does your computer block you from even using it? If the latter is correct, you may need admin powers to override the built-in incompatibility.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: KEY LIME PIE on August 04, 2011, 07:33:43 PM
Would someone tell me what's wrong with mine?

I don't know I can't figure out the problem

By the way I'm just a beginner with hardly any experience in this.
 :ohdear:

I won't post till I know someone will check it.  Therefore please reply.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Drake on August 04, 2011, 07:45:27 PM
uh that's what the thread is for

Or rather, this thread is for identifying unknown error messages that pop up in japanese. If you aren't getting an error message in japanese that isn't already described in the OP (http://www.shrinemaiden.org/forum/index.php/topic,4155.0.html), then please direct yourself to the Q&A thread (http://www.shrinemaiden.org/forum/index.php/topic,9281.0.html).
Title: Re: Danamkufu Error Message Troubleshooting
Post by: KEY LIME PIE on August 05, 2011, 07:41:56 PM
I understand that but the issue is there and I get 2 errors which I am unable to solve.

Their both concerning creating familiars for bosses.

EDIT:  I fixed one but they can't find the familiar picture?
I'm still learning the basics of this stuff.

Let me know if it doesn't work (the link   no duh)
http://www.4shared.com/folder/9rIgO9Qy/_online.html (ftp://www.4shared.com/folder/9rIgO9Qy/_online.html)
Title: Re: Danamkufu Error Message Troubleshooting
Post by: Blargel on August 05, 2011, 08:58:40 PM
The fact that you managed to fix one is great. Much better than those people who never try looking around and learning for themselves before going directly to us for help. However, your first post was quite possibly the most pointless post I've seen in a while. I'm not entirely sure why you didn't ask the question since either way you'll be checking back to see if anyone replied. :wat:

That said, if you press ctrl+c in the Danmakufu error window, it'll copy the message to the clipboard and you can paste it into this thread without making us run your script. It'll make it much more likely for lazy people (like me :V) to help you identify your problem. That 4shared link didn't work for me for some reason, but I have a better suggestion anyway. Just post the script where the error comes from to pastebin (http://pastebin.com) and share that url.
Title: Re: Danamkufu Error Message Troubleshooting
Post by: KEY LIME PIE on August 05, 2011, 09:13:32 PM
http://pastebin.com/hTSBRAJZ (ftp://pastebin.com/hTSBRAJZ)

Okay then.  Here's the issue. 


---------------------------
ScriptError「F:\New Folder\script\tutorial\testing.txt」
---------------------------
登録されてない敵スクリプト(Script_enemy itemFam)です。(108行目)

      CreateEnemyFromScript("Script_enemy itemFam",GetEnemyX,GetEnemyY,0,0,0);

      }







    //wait function

    function wait
~~~
---------------------------
OK   
---------------------------
Title: Re: Danmakufu Error Message Troubleshooting
Post by: Blargel on August 05, 2011, 09:29:21 PM
The enemy's name is "itemFam" and not "Script_enemy itemFam". Speaking of which, if you put Script_enemy when starting the script for your familiar, that's also wrong. Danmakufu is case sensitive so it's script_enemy instead of Script_enemy. I can't actually tell what you put though because your pastebin link is the error message again instead of your script.
Title: Re: Danmakufu Error Message Troubleshooting
Post by: KEY LIME PIE on August 05, 2011, 10:00:22 PM
Oh whoops sorry my bad. :ohdear: :wikipedia:
http://pastebin.com/TSD9UKCz

Here.  Sry bout that.
Title: Re: Danmakufu Error Message Troubleshooting
Post by: Naeten Scarlet on August 20, 2011, 03:51:32 PM
Mmm... I'm getting this mistake:

---------------------------
ScriptError「E:\danmaku related stuff\Danmakufu~\th_dnh\script\Umi no Charlotte\UmiSpell01.txt」
---------------------------
SetShotDataAの対象にはできません(347行目)

            SetShotDataA(1,0,1,dir,0.2,0,1,AQUA31);            FireShot(1);            CreateShotA(2,GetEnemyX+20*cos(dir),GetEnemyY+20*sin(dir)
~~~
---------------------------
Aceptar   
---------------------------

Here's the script: http://pastebin.com/3DaRtEDi
Title: Re: Danmakufu Error Message Troubleshooting
Post by: stillsatellite on September 03, 2011, 01:46:36 PM
Code: [Select]
SetShotDataA(id, frame, initial speed, angle, angular velocity, acc/deceleration, minimum/maximum speed, shot graphic);You have an extra parameter.
Also, read through the steps in the OP.
Title: Re: Danmakufu Error Message Troubleshooting
Post by: Chronojet ⚙ Dragon on September 03, 2011, 05:35:48 PM
No, the problem is with the CreateLaserC, which isn't fired, therefore the ID 1 (which is used by both that shot and the lasers) is not freed up, causing Danmakufu to create that error.

Either get rid of the CreateLaserC or fireshot the laser.