Author Topic: Danmakufu Q&A/Problem thread number 4  (Read 206531 times)

Kylesky

  • *The Unknown*
  • Local Unbalanced Danmakufu Idiot Scripter
    • My useless youtube account... (will be useful in the future *I promise*)
Re: Danmakufu Q&A/Problem thread number 4
« Reply #900 on: March 25, 2011, 01:42:37 AM »
I dare you to make a script that is actually possible to beat.

I have... play my scripts on normal, instead of lunatic :V
Danmakufu Script Thread :V Latest Script: Intertwining Mechanical Intervention (temp name)

Yooooouuutuuuubeeee Channel Latest Video: Contest #8 Entry

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: Danmakufu Q&A/Problem thread number 4
« Reply #901 on: March 25, 2011, 02:19:31 AM »
I have... play my scripts on normal, instead of lunatic :V

Fine. Make one of my scripts into Mewkyuu/Kylesky difficulty. (They're the same thing... right?)

puremrz

  • Can't stop playing Minecraft!
Re: Danmakufu Q&A/Problem thread number 4
« Reply #902 on: March 26, 2011, 10:57:55 AM »
Simple one: Can danmakufu put a variable in a string? And if so,  how?
Example:

Code: [Select]
let difficulty="Hard";
SpellcardName("Shoot Bullets To Kill The Player (difficulty)");

If that won't do, can I succesfully merge two strings into one?
Code: [Select]
["Shoot Bullets "]~["(Hard)"];The above has no success unfortunately.
Full Danmakufu game "Juuni Jumon - Summer Interlude" is done!
By the same person who made Koishi Hell 1,2 (except this game is serious)
Topic: http://www.shrinemaiden.org/forum/index.php/topic,9647.0.html

Zengar Zombolt

  • Space-Time Tuning Circle - Wd/Fr
  • Green-Red Divine Clock
Re: Danmakufu Q&A/Problem thread number 4
« Reply #903 on: March 26, 2011, 11:53:31 AM »
To merge strings, I think you can just add them. What you're trying to do is to combine two arrays that aren't saved, so it doesn't work because there's nothing happening to it.

Azure Lazuline

  • Looooove!!
  • PM me for free huggles and love!
    • Entanma Project - indie game development
Re: Danmakufu Q&A/Problem thread number 4
« Reply #904 on: March 26, 2011, 02:10:26 PM »
"Shoot Bullets (" ~ difficulty ~ ")"
Strings themselves are basically arrays, so the brackets are unnecessary.

puremrz

  • Can't stop playing Minecraft!
Re: Danmakufu Q&A/Problem thread number 4
« Reply #905 on: March 26, 2011, 05:16:07 PM »
Thanks, that worked.
Full Danmakufu game "Juuni Jumon - Summer Interlude" is done!
By the same person who made Koishi Hell 1,2 (except this game is serious)
Topic: http://www.shrinemaiden.org/forum/index.php/topic,9647.0.html

Re: Danmakufu Q&A/Problem thread number 4
« Reply #906 on: April 02, 2011, 12:15:26 PM »
I'm trying to make a stage script, but when I use this script, the boss doesn't appear but the music plays normally. I have checked that the path is correct and WaitForFrames is correctly defined in StageFunctions.dnh. Also, if I use CreateEnemyFromFile in the script, danmakufu crashes. Any idea what could be wrong?

Code: [Select]
#TouhouDanmakufu[Stage]
#Title[Patchouli Knowledge EX Stage]
#Text[Extra Stage]
#Player[FREE]
#ScriptVersion[2]

script_stage_main{
let StageMusic = "script\Stage BGM\BGM_6-4";
task stage{
PlayMusic(StageMusic);
CreateEnemyBossFromFile("script\Patchouli Knowledge\PatchouliBoss.dnh", GetCenterX, -20, 0, 0, 0);
WaitForFrames(240);
Clear;
}
#include_function "\lib\StageFunctions.dnh";
@Initialize{
LoadMusic(StageMusic);
stage;
}
@MainLoop{
yield;
}
@BackGround{
SetAlpha(255);
SetGraphicScale(1, 1);
SetGraphicAngle(0, 0, 0);
SetViewTo(0, 0, 0);
SetViewFrom(100, 90, 45);
SetFog(100, 300, 0, 0, 0);
}
@Finalize{
DeleteMusic(StageMusic);
}
}

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #907 on: April 02, 2011, 04:52:03 PM »
For some what reason my danmakufu does not respond when I go to: All,Single,Plural,Stage,Random. I can only enter directory, What is wrong? I've used applocale many times!
I CAN'T WAIT FOR TOUHOU 14!

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: Danmakufu Q&A/Problem thread number 4
« Reply #908 on: April 02, 2011, 05:23:13 PM »
I'm trying to make a stage script, but when I use this script, the boss doesn't appear but the music plays normally. I have checked that the path is correct and WaitForFrames is correctly defined in StageFunctions.dnh. Also, if I use CreateEnemyFromFile in the script, danmakufu crashes. Any idea what could be wrong?

Code: [Select]
snip
Apparently CreateEnemyFromFile and FromScript does not work on the first frame of running a script. Put a WaitForFrames(1); just before calling CreateEnemyFromFile.

Re: Danmakufu Q&A/Problem thread number 4
« Reply #909 on: April 02, 2011, 05:36:04 PM »
For some what reason my danmakufu does not respond when I go to: All,Single,Plural,Stage,Random. I can only enter directory, What is wrong? I've used applocale many times!

Wait for a while, it may be loading the list of scripts.

If it doesn't work, try deleting script_index.dat.

Re: Danmakufu Q&A/Problem thread number 4
« Reply #910 on: April 02, 2011, 05:56:46 PM »
Apparently CreateEnemyFromFile and FromScript does not work on the first frame of running a script. Put a WaitForFrames(1); just before calling CreateEnemyFromFile.

Thanks a lot. It worked.

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: Danmakufu Q&A/Problem thread number 4
« Reply #911 on: April 03, 2011, 06:39:38 AM »
How can you decelerate object bullets? The method I'm using doesn't seem to work. It'll make the 16 bullets that move at the appropriate speed, but they won't slow down like how I want them to.
Code: [Select]
function PrimaryShot () {
ascent (i in 1..16) {
PrimaryShotDefine(i)

}
}

task PrimaryShotDefine(v) {
let obj=Obj_Create(OBJ_SHOT); //Make an object with the properties of a shot.
Obj_SetPosition(obj, GetX, GetY);
Obj_SetAngle(obj, 90);
Obj_SetSpeed(obj, 0.25* v);
ObjShot_SetGraphic(obj, 210); //Shot ID 210. See custom supershot script.
ObjShot_SetDelay  (obj, 20);
ObjShot_SetBombResist (obj, false);

while(Obj_BeDeleted(obj)==false) {
descent (j in 100..1) { //Deceleration of bullets. (not working)
Obj_SetSpeed(obj, j* v* 0.02);

}
yield;
}
}
I know, I know. I'll get a real avatar and signature soon. -_-

Drake

  • *
Re: Danmakufu Q&A/Problem thread number 4
« Reply #912 on: April 03, 2011, 06:52:16 AM »
Quote
while(Obj_BeDeleted(obj)==false) {
   descent (j in 100..1) { //Deceleration of bullets. (not working)
      Obj_SetSpeed(obj, j* v* 0.02);
   }
   yield;
}
This will set the speed 100 times, then yield. Not only will you not see anything happen, it's a waste of processing and probably wouldn't give the right result anyways.

What you want is simply
while(Obj_BeDeleted(obj)==false) {
   Obj_SetSpeed(obj, Obj_GetSpeed(obj) - something);
   yield;
}

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

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #913 on: April 03, 2011, 06:55:49 AM »
Wait for a while, it may be loading the list of scripts.

If it doesn't work, try deleting script_index.dat.
ah ok. thanks.
I CAN'T WAIT FOR TOUHOU 14!

Yuyuko Yakumo

  • Carry me~ow
  • Rawr I eat your face with maaaaaagicalness
Re: Danmakufu Q&A/Problem thread number 4
« Reply #914 on: April 03, 2011, 07:22:42 AM »
Ah, t
This will set the speed 100 times, then yield. Not only will you not see anything happen, it's a waste of processing and probably wouldn't give the right result anyways.

What you want is simply
while(Obj_BeDeleted(obj)==false) {
   Obj_SetSpeed(obj, Obj_GetSpeed(obj) - something);
   yield;
}

Ah, that worked perfectly. Thanks for the help.

I guess I tend to overthink things...

EDIT: Another question. Can the argument for an angle of a bullet be <0 or >360?
« Last Edit: April 04, 2011, 01:56:23 AM by YuyukoYakumo »
I know, I know. I'll get a real avatar and signature soon. -_-

Kylesky

  • *The Unknown*
  • Local Unbalanced Danmakufu Idiot Scripter
    • My useless youtube account... (will be useful in the future *I promise*)
Re: Danmakufu Q&A/Problem thread number 4
« Reply #915 on: April 04, 2011, 02:16:38 AM »
EDIT: Another question. Can the argument for an angle of a bullet be <0 or >360?

Yes... you can even make it 92371590275182934 :V (though that might cause problems)
Danmakufu Script Thread :V Latest Script: Intertwining Mechanical Intervention (temp name)

Yooooouuutuuuubeeee Channel Latest Video: Contest #8 Entry

Drake

  • *
Re: Danmakufu Q&A/Problem thread number 4
« Reply #916 on: April 04, 2011, 02:31:12 AM »
However due to DNH screwing up with sufficiently high or low values, you're going to want to modulo it most of the time.

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

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #917 on: April 04, 2011, 02:35:33 PM »
Quote
Player Scripts:
- Yuka Kazami (Mystic Square) <12/15/09 UPDATE>
- Mima (Mystic Square)

- The Shot Replace Script. - Requiered to play the old Cirno and Tenshi scripts

Err........for some what reason the mima error always appears and it says that the "mima.txt" has a problem. What's wrong? also I've tried all of johnny walker's scripts and there seems to be a BGcontrol error. I'd love the grimoire of alice script. http://www.shrinemaiden.org/forum/index.php?topic=476.0
« Last Edit: April 04, 2011, 02:39:09 PM by Atfyntify »
I CAN'T WAIT FOR TOUHOU 14!

ふとくていなねこじょおう

  • Cirno Kisaragi
  • *
  • When Ice Cars completely miss the intended target
Re: Danmakufu Q&A/Problem thread number 4
« Reply #918 on: April 10, 2011, 02:07:48 PM »
So, I'm starting on Danmakufu today.

I downloaded Applocale and started to install it.

Everything's fine and dandy until...it stops and says that it couldn't open some program needed and it canceled the install.

FFFFUUUUUUUUUU-  :colonveeplusalpha:
"I'm not sure about this anymore...Are you sure this is safe?"

"Absolutely! This is 100% safe! ...Not."

Chronojet ⚙ Dragon

  • The Oddity
  • 今コソ輝ケ、我ガ未来、ソノ可能性!!
Re: Danmakufu Q&A/Problem thread number 4
« Reply #919 on: April 10, 2011, 02:17:40 PM »
So, I'm starting on Danmakufu today.

I downloaded Applocale and started to install it.

Everything's fine and dandy until...it stops and says that it couldn't open some program needed and it canceled the install.

FFFFUUUUUUUUUU-  :colonveeplusalpha:

Oh? Hey there. What program does it "need"? Did it just suddenly close the install?

ふとくていなねこじょおう

  • Cirno Kisaragi
  • *
  • When Ice Cars completely miss the intended target
Re: Danmakufu Q&A/Problem thread number 4
« Reply #920 on: April 10, 2011, 02:51:24 PM »
It just stopped, showed me that message, and then closed the install once I pressed ok.
"I'm not sure about this anymore...Are you sure this is safe?"

"Absolutely! This is 100% safe! ...Not."

Kylesky

  • *The Unknown*
  • Local Unbalanced Danmakufu Idiot Scripter
    • My useless youtube account... (will be useful in the future *I promise*)
Re: Danmakufu Q&A/Problem thread number 4
« Reply #921 on: April 10, 2011, 03:27:52 PM »
It just stopped, showed me that message, and then closed the install once I pressed ok.

Care to show us the error? either a print screen image or just copy pasting it would work...
Danmakufu Script Thread :V Latest Script: Intertwining Mechanical Intervention (temp name)

Yooooouuutuuuubeeee Channel Latest Video: Contest #8 Entry

ふとくていなねこじょおう

  • Cirno Kisaragi
  • *
  • When Ice Cars completely miss the intended target
"I'm not sure about this anymore...Are you sure this is safe?"

"Absolutely! This is 100% safe! ...Not."

Re: Danmakufu Q&A/Problem thread number 4
« Reply #923 on: April 10, 2011, 04:07:53 PM »
IIRC the error is caused by UAC being a jerk. Either turn it off or do this:

Move apploc.msi somewhere where you can reach it easily from the command prompt.
Run the command prompt with admin rights.
Run apploc.msi from the command prompt.

hooray, vague explanations

TheMasterSpark

  • Lunatic lemurialist
Re: Danmakufu Q&A/Problem thread number 4
« Reply #924 on: April 10, 2011, 04:13:19 PM »
That's the same thing I had to go through when I tried to install Applocale on Windows 7 as well. They're basically what Luna just wrote, but here's the steps I used to set things straight.

Here?s how to install AppLocale on Windows 7:
1. Place the AppLocale installer (apploc.msi) in your C: drive.
2. Go to your start menu, type cmd in the search box.
3. Hold down crtl+shift and click on cmd.exe.
4. Select Yes when a dialog asks if you want the program to make chances to your computer.
5. The command prompt should show C:\Windows\System32.
6. Type cd\ and press enter to navigate to the C: drive.
7. Type apploc.msi and press enter, the installer will appear.
8. Install the application.

ふとくていなねこじょおう

  • Cirno Kisaragi
  • *
  • When Ice Cars completely miss the intended target
Re: Danmakufu Q&A/Problem thread number 4
« Reply #925 on: April 10, 2011, 04:19:15 PM »
Thank you so much! It finally worked!  :]
"I'm not sure about this anymore...Are you sure this is safe?"

"Absolutely! This is 100% safe! ...Not."

Darkness1

  • Nothing to see here.
  • Enigmatic, isn't it?
Re: Danmakufu Q&A/Problem thread number 4
« Reply #926 on: April 11, 2011, 05:06:13 PM »
Is it just me not getting puremrz?s shotsheet to work? When i load the bullets they all look like the graphicrect is off.

EDIT: Nevermind, fixed. I apparently had an old version of the shotsheet.
« Last Edit: April 11, 2011, 05:54:11 PM by Darkness1 »

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #927 on: April 12, 2011, 01:14:41 PM »
That's the same thing I had to go through when I tried to install Applocale on Windows 7 as well. They're basically what Luna just wrote, but here's the steps I used to set things straight.

Here’s how to install AppLocale on Windows 7:
1. Place the AppLocale installer (apploc.msi) in your C: drive.
2. Go to your start menu, type cmd in the search box.
3. Hold down crtl+shift and click on cmd.exe.
4. Select Yes when a dialog asks if you want the program to make chances to your computer.
5. The command prompt should show C:\Windows\System32.
6. Type cd\ and press enter to navigate to the C: drive.
7. Type apploc.msi and press enter, the installer will appear.
8. Install the application.



how come I can't open the installation?

I already have danmakufu but I want to install it on my OTHER computer.
I CAN'T WAIT FOR TOUHOU 14!

Re: Danmakufu Q&A/Problem thread number 4
« Reply #928 on: April 12, 2011, 05:14:33 PM »
Still Windows 7?

Atfyntify

  • Danmakufu worshipper
  • I worship Danmakufu
Re: Danmakufu Q&A/Problem thread number 4
« Reply #929 on: April 12, 2011, 05:24:37 PM »
Still Windows 7?
what? my error? no. its XP.
I CAN'T WAIT FOR TOUHOU 14!