Author Topic: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)  (Read 152943 times)

CK Crash

  • boozer
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #30 on: April 30, 2011, 03:30:40 AM »
Code: [Select]
@Initialize
{
ascent(i in 0..4){Option(i*90);}
}

task Option(a)
{
yield;
let obj = Obj_Create(OBJ_EFFECT);
let x = GetPlayerX;
let y = GetPlayerY;
let r = 0;

blahblahblah;  //Effect object stuff, you should know how to do this

loop{

x = (GetPlayerX+x*19)/20;  //Gives option position a little "lag"
y = (GetPlayerY+y*19)/20;
a += 5;  //Makes them spin
if(GetKeyState(VK_SLOWMOVE)==KEY_HOLD && r > 32){r--;}  //Move the options in or out based on if focusing or not
if(GetKeyState(VK_SLOWMOVE)==KEY_FREE && r < 48){r++;}
Obj_SetPosition(obj, x+cos(a)*r, y+sin(a)*r);  //Set option position

//Place the shot firing code here, and use 'a' as the angle

yield;
}
}

Typed this all right here, so some probably made a stupid error in there somewhere. Make sure you've got a yield; in @MainLoop as well.

CK Crash

  • boozer
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #31 on: April 30, 2011, 03:33:26 AM »
Why not make an array of object bullets, and then ascent through it to check for collisions with each bullet? It's pretty tedious to code though, so if you can't figure it out, I'll look through my code for an example...

Drake

  • *
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #32 on: April 30, 2011, 06:05:25 AM »
Just set for the butterflies to move at a certain time or when the wave bullets get to a certain radius from the boss. No need to perform collision checks as far as I can tell...

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

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #33 on: April 30, 2011, 11:58:09 AM »
I made my yuyuko player but it turns out into a fail. I'm a failure.  :fail:

download here and you'll know what I did: http://www.mediafire.com/?th4vtf73qhabf9q
I CAN'T WAIT FOR TOUHOU 14!

Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #34 on: April 30, 2011, 07:53:04 PM »
I'm trying to make a shot type with the 'options' or 'satelites' are spinning and the bullets are going in all directions, kinda like Reimu C's in SA, but are always spinning, not shooting where you last moved. is it possible, or am I just hoping for something impossible.
If you're describing what I think you're describing, your idea is much easier than Reimu C. Why wouldn't it be possible? What's so code-breaking about it?

Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #35 on: April 30, 2011, 07:58:18 PM »
I made my yuyuko player but it turns out into a fail. I'm a failure.  :fail:

download here and you'll know what I did: http://www.mediafire.com/?th4vtf73qhabf9q
Misplaced graphic rectangle. ;P Look up SetGraphicRect on the wiki.

And, yanno, add shots, a hitbox...

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #36 on: April 30, 2011, 08:09:23 PM »
If it's Touhou, it's possible.
Let's see what's so bad, atfyntify
Oh, and Supreme Gamesmaster - stop randomly adding nonsense words into your sentences.

Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #37 on: May 01, 2011, 01:23:48 AM »
What do you mean nonsense words? It's yanno, you know?

Oh, and I fixed my earlier problem -- I forgot to check if the player was actually taking the stairs, so when the screen reset to accommodate the new room, the game would think the floor should change whether the stairs were used or not. :derp: Let this be a lesson to all who do such things (read: me).

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #38 on: May 05, 2011, 02:30:51 AM »
How can you extract the files out of danmakufu's DAT files? I want to take a look at them, but I don't really have a way of doing so.
I know, I know. I'll get a real avatar and signature soon. -_-

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #39 on: May 05, 2011, 03:22:38 AM »
How can you extract the files out of danmakufu's DAT files? I want to take a look at them, but I don't really have a way of doing so.

Lymia released a Danmakufu DAT de-archiver.

TheTeff007

  • Best Touhou 2015!
  • So much cuteness...!
    • Youtube Channel
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #40 on: May 05, 2011, 03:46:23 AM »
Does anybody happens to have the config.txt of the "Embodiment of Scarlet Hair" script?  No matter how many times I try it, I can't play it.
Small Teaser of my upcoming project~

No need to call me Teff007. Teff will do just as well~

Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #41 on: May 05, 2011, 08:41:42 AM »
Does anybody happens to have the config.txt of the "Embodiment of Scarlet Hair" script?  No matter how many times I try it, I can't play it.

I think you need to open the game with Applocale

http://www.shrinemaiden.org/forum/index.php/topic,4138.0.html

Why can't my Applocale play mp3. music  :wat:
Hey There !

TheTeff007

  • Best Touhou 2015!
  • So much cuteness...!
    • Youtube Channel
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #42 on: May 05, 2011, 04:49:56 PM »
I have applocale installed, but when I run the script, it throws me an error and says that "config.txt" is missing.


---------------------------
ScriptError
---------------------------
#include_functionで置換するファイル[C:\Documents and Settings\ana.A\Mis documentos\Downloads\Danmakufu\th_dnh\script\output\config.txt]が見つかりません
---------------------------
Aceptar   
---------------------------
« Last Edit: May 05, 2011, 04:53:08 PM by Teff007 »
Small Teaser of my upcoming project~

No need to call me Teff007. Teff will do just as well~

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #43 on: May 06, 2011, 01:10:07 AM »
How do you map keys to equal certain functions? Like, when I press "F" I want something to happen.
I know, I know. I'll get a real avatar and signature soon. -_-

Blargel

  • RAWR!
  • I'M AN ANGRY LOLI!
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #44 on: May 06, 2011, 01:39:16 AM »
How do you map keys to equal certain functions? Like, when I press "F" I want something to happen.

Currently not possible to do. Maybe in ScriptVersion[3] whenever the hell that comes out. For now, you're stuck with only up, down, left, right, shift, z, x, c, and ctrl.
<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.

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #45 on: May 06, 2011, 02:39:14 AM »
Dang. Well, that just ruined plans I had. >:I
I know, I know. I'll get a real avatar and signature soon. -_-

TheTeff007

  • Best Touhou 2015!
  • So much cuteness...!
    • Youtube Channel
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #46 on: May 06, 2011, 06:01:05 PM »
I can't see where is this problem, is a "Script_main_error" or whatever is called, but all the braces match from what I can see

http://pastebin.com/fMKHN6d7
« Last Edit: May 06, 2011, 09:39:09 PM by Helepolis »
Small Teaser of my upcoming project~

No need to call me Teff007. Teff will do just as well~

Darkness1

  • Nothing to see here.
  • Enigmatic, isn't it?
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #47 on: May 06, 2011, 07:40:53 PM »
Okay... i?m trying to make my own shotsheet and have gotten a bit far. But the graphics look so ugly and sharp ingame, why is that? Also, i?m using the regular paint, am i supposed to be using a better program?

Heres the shotsheet: http://www.mediafire.com/?pzro6dt9c67rkgx

EDIT: changed the link.
« Last Edit: May 07, 2011, 08:57:07 AM by Darkness1 »

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #48 on: May 06, 2011, 08:54:39 PM »
Code: [Select]
pastebin or I'll eat your soul
The error is at the very top - where it says "script_enemy main", it should be "script_enemy_main". Without that, it doesn't work whatsoever.

Drake

  • *
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #49 on: May 06, 2011, 09:16:52 PM »
let ImgBoss = CSD ~ "\Pic\Jack.png"; should be inside script_enemy_main. I'm pretty sure you can't start functions, variables or any other memory reference with numbers (such as your 01).

Not sure how you even got to this point, though. Did you just script the entire thing without testing, or what?

Okay... i?m trying to make my own shotsheet and have gotten a bit far. But the graphics look so ugly and sharp ingame, why is that? Also, i?m using the regular paint, am i supposed to be using a better program?

Heres the shotsheet: http://www.mediafire.com/?i58n1c6mtay3y9y
I haven't taken a look yet, but when you ask questions like these please provide a screenshot.

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

Helepolis

  • Charisma!
  • *
  • O-ojousama!?
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #50 on: May 06, 2011, 09:40:35 PM »
WHEN POSTING LARGE BLOCKS OF CODE, PLEASE USE PASTEBIN.COM 


Drake

  • *
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #51 on: May 06, 2011, 10:11:10 PM »
GG HELEPOLIS

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

TheTeff007

  • Best Touhou 2015!
  • So much cuteness...!
    • Youtube Channel
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #52 on: May 06, 2011, 10:29:27 PM »
I totally forgot to about pastebin, it won?t happen again.

someone call Keine to erase "that" history
Small Teaser of my upcoming project~

No need to call me Teff007. Teff will do just as well~

Darkness1

  • Nothing to see here.
  • Enigmatic, isn't it?
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #53 on: May 07, 2011, 09:24:03 AM »
Quote
I haven't taken a look yet, but when you ask questions like these please provide a screenshot.

okay here's a screenshot of it:

Also, i updated the link in the last post. Nothing changed but the name of the folder.
EDIT: changed picture due to my laziness of not reading through the rules carefully. Bear with me.
Or see the first here: http://img863.imageshack.us/img863/3884/shotsheet.png
« Last Edit: May 07, 2011, 04:44:02 PM by Darkness1 »

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #54 on: May 07, 2011, 05:35:05 PM »
Is it possible to loop songs with an intro? Like, the song plays the intro, but when it loops, it doesn't go back to it.
I know, I know. I'll get a real avatar and signature soon. -_-

Drake

  • *
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #55 on: May 07, 2011, 05:46:48 PM »
Make two separate music files (intro and loop) or make one really long music file that includes an actual clean loop, that's pretty much it.

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

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #56 on: May 07, 2011, 07:57:23 PM »
I'm trying to run LibTest from the animation library folder. I make no adjustments, and I get the following error:



I figure it means something like file does not exist, but I triple-checked and it lines up correctly in the code.
I know, I know. I'll get a real avatar and signature soon. -_-

Drake

  • *
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #57 on: May 08, 2011, 12:57:18 AM »
So how exactly are we supposed to help you without any other information. Gotta post something besides the error!

However that is the generic error for "cannot find file" as you thought, yes.

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

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #58 on: May 08, 2011, 01:29:30 AM »
Sorry! I just wanted to make sure that's the error I was getting first. The following is part of the LibTest.dnh and it's contained in my Scripts folder. The two images are also in the same location.
Code: [Select]
script_enemy_main {
  #include_function ".\AnimationLib.dnh"
  let imgNue = GetCurrentScriptDirectory ~ "Nue.png";
  let imgNazrin = GetCurrentScriptDirectory ~ "Nazrin.png";
  @Initialize {
    SetLife(1);
    SetY(120);
    LoadGraphic(imgNue);
    LoadGraphic(imgNazrin);
    InitializeAnimationData;
   
    Animate("nue", "idle", true);
    Animate("nazrin", "idle", true);
    ShowOffNueAnimation;
    ShowOffNazrinAnimation;
This is the only part that could possibly be affecting the error, unless it doesn't have to do with the script itself.

EDIT: Seemed to auto-fixed itself. All I had to do was reboot the computer.  :derp:
« Last Edit: May 08, 2011, 01:32:42 AM by Yuyuko Yakumo »
I know, I know. I'll get a real avatar and signature soon. -_-

Re: ※ Q&A/Problem Thread 5 ※ for OLD Danmakufu version (0.12m)
« Reply #59 on: May 08, 2011, 02:08:32 AM »
Hi
I'm having a little problem with my simple code that is using a task.

Now, the boss shoot bullets and when those bullets touch the border of the screen, they explode into a circle of other bullets.
You see, that's simple, but something wrong happen : they only explode when they touch the bottom border of the screen.

This is my code
http://pastebin.com/Amq8j5qX

If someone can test my code and tell me what my problem is, it will be really but really appreciate
Thanks
« Last Edit: May 08, 2011, 06:54:47 AM by Helepolis »