From Danmakufu Wiki
Jump to: navigation, search

Frequently Asked Questions

What is Danmakufu and where can I get it?

Danmakufu is an engine for running user-created danmaku scripts, capable of making single spellcards, boss fights, stages, or if you've got enough programming savvy, full games. The popular fangame Concealed the Conclusion was made in Danmakufu (but don't ask us how it works). The scripts themselves are written as plain text files in Danmakufu's C-based scripting language, so the learning curve can be a bit steep if you've never done any programming before. However, the wiki is here to help!

Danmakufu is a Japanese application and you probably can't run it correctly as-is; to get around this, you'll want to run it with AppLocale. Once you've got AppLocale, choose the th_dnh.exe file, choose to run it with Japanese settings (it's the very bottom choice in the drop-down box), and you're good to go. You can even choose to make a permanent shortcut for running Danmakufu with AppLocale. As for config.exe, you can get that to run just by putting it in Windows 2000 compatibility mode.

From there, you're good to go! You can download anyone's scripts and put it in Danmakufu's "script" folder, and it'll appear in the game's menu. Similarly, player character scripts go in the "player" folder. If you want to start making your own scripts, consult the tutorial pages. In ph3, the player folder is located inside the script folder.

See the Links page for official site to download.

Why are there 2 Danmakufu engines now?

It seems the author(s) have decided that the old Danmakufu engine (0.12m) is inefficient and lacking lots of functions. Therefore, they have created a new engine (ph3), which drastically changed the way that scripting is done in Danmakufu. If you are new to Danmakufu, you can pick up the new engine, but be warned that the new engine is constantly under development. We are doing our best to provide and translate all functions on the Wiki.

Can I directly import/move my scripts from 0.12m to the new engine?

The answer is a simple and clear: No. You can't. If you have work in the old engine, it is your choice to decide whether to rewrite them under the new engine or just finish your game in the old engine and release it. Ph3 uses a different approach compared to the previous engine so you won't be able to move them directly. Careful planning and rewriting of functions is required in order to make your scripts work.

Here are some useful links to help you recoding your existing work:

How do I install scripts from other scripters?

Generally everything goes into the root of the script folder. Some authors release their scripts in an folder with the name of game; just drop it in the scripts folder and you are fine. However, beware: authors sometimes release custom players along with their script. Always consult the readme (if it is included).

Danmakufu crashes when I load the program or try to play

Scripts containing Japanese characters will crash the program. You'll need Applocale to run Danmakufu 0.12m and ph3 [.0]. ph3 [.1] does not require Japanese Locale, but Japanese might appear as gibberish or squares if you use this option.

  • Linux users using Wine, you might want to install direct music via Winetricks.
  • Mac users using Wine, use the following code LANG="ja_JP" wine th_dnh.exe to open in Japanese Locale via Terminal.

Danmakufu crashes when I browse my script list. I am using Applocale

Your script index might be corrupted. Make a backup and delete script_index.dat in your root directory. Reboot danmakufu to generate a new one.

Another possible source of this problem lies in special characters such as ©. If Danmakufu finds one of these in the header of a script, Danmakufu won't be able to create the script index and will crash. Always check that your autocorrect isn't changing (C) into © or other similar situations.

I want to create my own scripts! Where do I start?

We are glad to hear that. Logically you will need to obtain Danmakufu. In the 0.12m version, any scripts containing Japanese characters will require AppLocale. Scripting is simply done in notepad or any desired text editor, so you don't need to install fancy software to make your own scripts. From here on it depends on your willingness to learn and advance. Please read the basic tutorials to understand how Danmakufu works and how to create your first script. Various people have invested their time in translation and completing the documentation. For more help, please take a look at the links section.

My script crashes, help me!

Errors are something you need to learn to deal with. They can occur for various reasons:

  • You might have misspelled a function or variable. Danmakufu is case sensitive
  • Missing or misplaced brackets, parentheses or semicolons
  • Undefined variables
  • Logical errors
  • Characters such as ' appearing in unusual places
  • In ph3, using /* */ to create comment blocks are not handled well, please use // for commenting.

The following flow diagram might help you pinpoint the error.

How do I publish my scripts?

Bulletforge.org offers you a place to publish your work internationally. If you're capable of reading Japanese you can try Danmakufu.net.

What are shotsheets or shotreplace scripts?

Shotsheets are custom made or forged bullet image sheets to expand the amount of bullets you can use in your game. Each shotsheet is unique and you should refer to the readme when downloading one.

Shotreplace scripts (not to be confused with shotsheets) replace the standard danmakufu bullets. The term originally derived from Concealed the Conclusion where the creator replaced the graphics with better graphics, as well as adding extra bullets.

How do you make your own 'phantasm stage' with the original engine?

Various people have managed to hack the original MoF engine and directly modify the code to create their own scripts. The code is written generally in the original engine language.

  • This Wiki does not support any of these.