~Hakurei Shrine~ > Rika and Nitori's Garage Experiments
Danmakufu Q&A Thread 4 - V3 Edition.
(1/11) > >>
WishMakers:
Welcome to the Danmakufu Q/A thread!  This is a continuation of the V2 thread, finally back in action.
Ask your questions here should you have a problem with Danmakufu, be it an error that you can't find, problem with the program, etc.

Previous thread
Danmakufu Wiki
DNH Function Docs
Major Info Thread
Nickster206:
I'm having trouble animating a "gravitational aura" around a boss. The only Danmakufu scripts I've come across that have made use of these can be found here (https://www.youtube.com/watch?v=2hVmjJrUzmM) and here (https://www.youtube.com/watch?v=bxf9Hvkx5oE). In case I'm not clear, I mean the circle around the boss that causes the background to pulsate and warp. I've examined both of these scripts' code and am still unsure how it was accomplished. Can someone help?

EDIT: Nevermind, I got it to work!
Nickster206:
I have a new question! I'm struggling with understanding packages. When I launch th_dnh.exe, I want it to immediately run the package declared in th_dnh.def like package.script.main = x/y/z.dnh. Despite having declared the package as such in the .def file, the package does not launch automatically, and I am instead brought to the regular Danmakufu menu. I checked to make sure the path was correct, and the package works if I select it from the menu. What am I missing?
Icemoon:
Greetings! I am relatively new to Danmakufu, working my way through Sparen's tutorials, trying out my own stuff or to tinker with his provided code for learning's sake - long story short, for some reason the task TFinalize he provides only goes off in one of my scripts. I always call it in @Initialize, I have moved it into a function library outside of the pastebins below to ensure all my scripts make use of the same TFinalize task and, quite frankly, I am stumped. :( It does work in all my scripts when moved into @MainLoop, but then awards way too many points on spell capture for obvious reasons.

I've tried to search the old forum as well as Google for my issue before posting here, but have not found aught that could help me - doesn't mean it's not there, merely that I failed to find it.

https://pastebin.com/MucNFquT One of my scripts where TFinalize does not work.

https://pastebin.com/urXMyXZN My script where TFinalize does work.

Apologies if I missed out on anything else you might need!

EDIT: Please do notify me if I did. I... generally try to avoid getting help since most of the time, it's just me being stupid or my search engine fu being weak, so I'm far from used to making these posts...

EDIT 2: I am a fool thrice over and I have figured it out - I needed to yield; in @MainLoop... still leaving the post here in case anyone else stumbles over the same issue - my utmost apologies ;_;
WishMakers:

--- Quote ---Despite having declared the package as such in the .def file, the package does not launch automatically, and I am instead brought to the regular Danmakufu menu. I checked to make sure the path was correct, and the package works if I select it from the menu. What am I missing?
--- End quote ---

Here's a good example of a def file, just in case you're still stuck.

--- Code: ---window.title = <redacted>
package.script.main = Script/package.dnh
screen.width=640
screen.height=480
--- End code ---
I'm sure you have everything like that, but make sure the name of the .def file is th_dnh.def and in the same folder as the exe.  Other than that, I'm not sure personally, but I don't work with .def files very often.
Do you have any more info about the issue?  What does your setup look like?
Navigation
Message Index
Next page

Go to full version