| ~Hakurei Shrine~ > Rika and Nitori's Garage Experiments |
| RaNGE Contest #20: New Stars of Four Seasons (deadline extended to Apr. 28) |
| << < (5/12) > >> |
| Crescendo:
--- Quote from: Andi on April 19, 2019, 10:32:29 PM ---Whoops, that'd be me accidentally removing something important. I forgot that was in that folder. Should be fixed now, try downloading it again. --- End quote --- But now Danamkufu simply crashes :'D I think something in the package system is off. I only say think because I have zero knowledge of package scripts work, but that's my only lead at the moment. or I put it in the wrong spot which would not be surprising I do hope it doesn't end up being a massive problem though, your StB styled entry caught my attention so I'm very curious on how it turns out! |
| Kinedyme:
--- Quote from: Andi on April 19, 2019, 10:32:29 PM ---Whoops, that'd be me accidentally removing something important. I forgot that was in that folder. Should be fixed now, try downloading it again. --- End quote --- I'm having trouble running your script still. :( :( I am a little confused which script to run. Perhaps I am blind, but I also can't find any readme. I guessed that the correct script is ./Package/Package.dnh, which is titled "MAIN MENU"? However, standalone running this script causes compilation errors: --- Code: ---#Include file is not found[C:/Users/funct/Downloads/Touhou Danmakufu/script/RaNGE20 - Hanami in Four Seasons/Library/selibrary.txt]. (#includeで置換するファイル[C:/Users/funct/Downloads/Touhou Danmakufu/script/RaNGE20 - Hanami in Four Seasons/Library/selibrary.txt]が見つかりません) C:/Users/funct/Downloads/Touhou Danmakufu/script/RaNGE20 - Hanami in Four Seasons/Package/PackageFunctions.txt PackageFunctions.txt line(行)=1 ↓ #include "./../Library/selibrary.txt" #include "./../Library/DirPaths.txt" #include "./../Library/EventList.txt" let CANCEL_CLOSE = 0; let CANCEL_SELECTLAST = 1; let CANCEL_CONFIRMLAST = 2; let CANCEL_DISABLE = 3; let CANCEL_SELECTFIRST = 4; / ~~~ --- End code --- Danmakufu cannot find the include files for your package scripts. I hope you don't mind that I looked at the source file that caused the error. The path for the includes in ./Package/PackageFunctions.txt and ./Package/Package.dnh is specified as "./../Library/*" . Will it work to be changed to "./../RaNGE20 - Hanami in Four Seasons/Library/*" ? Or is it that the ./Package folder should be placed inside ./RaNGE20 - Hanami in Four Seasons ? |
| Andi:
--- Quote from: Crescendo on April 19, 2019, 10:56:55 PM ---But now Danamkufu simply crashes :'D I think something in the package system is off. I only say think because I have zero knowledge of package scripts work, but that's my only lead at the moment. or I put it in the wrong spot which would not be surprising --- End quote --- --- Quote from: Kinedyme on April 21, 2019, 04:45:51 PM ---I'm having trouble running your script still. :( :( I am a little confused which script to run. Perhaps I am blind, but I also can't find any readme. I guessed that the correct script is ./Package/Package.dnh, which is titled "MAIN MENU"? However, standalone running this script causes compilation errors: --- End quote --- It's not actually meant to use the package at all, it's just including some of the helper functions from there for the pause script. The package stuff is just left over from another thing (that's why I deleted it originally). Just run the plural in the main script folder (HiFS.dnh). --- Quote from: Crescendo on April 19, 2019, 10:56:55 PM ---I do hope it doesn't end up being a massive problem though, your StB styled entry caught my attention so I'm very curious on how it turns out! --- End quote --- Thanks! --- Quote from: Kinedyme on April 21, 2019, 04:45:51 PM ---I hope you don't mind that I looked at the source file that caused the error. --- End quote --- Not at all, feel free to dig through it. I intentionally made the stuff for the photography fairly standalone so it should be easy to adapt for your own scripts if you want. |
| Kinedyme:
--- Quote from: Andi on April 21, 2019, 05:34:38 PM ---Ah, no it's not that. That's left over from another thing, which is why I deleted it originally. Just run the plural in the main script folder (HiFS.dnh). --- End quote --- Ah, I see. But I don't have any player to run with? If I run with Rumia, I get this error: --- Code: ---2019/04/21 18:41:33.098 Array index out of bounds. (配列のサイズを超えています) C:/Users/funct/Downloads/Touhou Danmakufu/script/RaNGE20 - Hanami in Four Seasons/RaNGE20 - Hanami in Four Seasons/Library/DirPaths.txt DirPaths.txt line(行)=5 ↓ while(dir[i-2]!="th_dnh_ph3"){i--;} dir = slice(dir,0,min(i+1,length(dir))); let dirstring = dir[0]; ascent(i in 1..length(dir)){dirstring=dirstring~"/"~dir[i];} SetCommonData("ScriptRootDirectory",dirstring); return dirstring; } let root ~~~ --- End code --- Edit: Could it be that if the there is no folder name "th_dnh_ph3" on the current path, the value in variable "i" arithmetically underflows? If th_dnh_ph3 is meant to be the folder that contains the running danmakufu executable, maybe getting a string acquired by GetModuleDirectory() might work instead? |
| Andi:
--- Quote from: Kinedyme on April 21, 2019, 05:46:12 PM ---Ah, I see. But I don't have any player to run with? If I run with Rumia, I get this error: --- End quote --- ...I knew that hack would bite me in the ass someday. I'm guessing you renamed your danmakufu folder to something other than th_dnh_ph3? It's looking for that directory to find the main directory for the script without having to worry about where it's getting called from or if the main stage script is actually running yet. Either rename your danmakufu folder to th_dnh_ph3 or change "th_dnh_ph3" in DirPaths.txt to whatever your danmakufu folder is called. I don't think the choice of player script should affect it but after checking again I think I might have put the wrong player script in there anyway, I'll just go ahead and set it up properly and reupload :p Okay, fixed. I tried to fix some of the things that were confusing people as well, hopefully it should be easier to work out now. (I also fixed that thing with DirPaths.txt, now it just uses GetMainStgScriptDirectory like it should). |
| Navigation |
| Message Index |
| Next page |
| Previous page |