Maidens of the Kaleidoscope

~Hakurei Shrine~ => Rika and Nitori's Garage Experiments => Topic started by: Sparen on April 01, 2015, 08:12:21 PM

Title: Random Spellcard Name Generator [C++]
Post by: Sparen on April 01, 2015, 08:12:21 PM
Hello Danmaku makers! Have you ever been at a loss as to what to name your spell card? Well, I'm building a tool to make that less stressful!

I present, the Random Spellcard Name Generator!

https://github.com/Sparen/RandomSpellcardGenerator (https://github.com/Sparen/RandomSpellcardGenerator)

I will be using Github's Release functionality in the future to save snapshots of versions. Read the description in the repo for details on the characters supported. This is currently a work in progress, although it will be built up in time.

If you would like to contribute to this project, please send a pull request or dump code here for me to insert.

Note on Pull Requests:
--Any major modifications of the system will be denied
--If there are compilation or executable files (IE you did not run make clean before pushing to Github), your request will be denied

LATEST RELEASE:
*for latest code, please refer to the github repository
V0.08 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.08)
Release Post on this thread (https://www.shrinemaiden.org/forum/index.php/topic,18226.msg1210007.html#msg1210007)

NOTES ON COMPILING FROM SOURCE:
If using the Unix Command Line (MacOSX/Linux Terminal), cd to the directory and type 'make' without quotes. Other instructions are in ReadMe
If using Windows, there are multiple options (ignore if you know how to compile on Windows). Make for Windows (http://gnuwin32.sourceforge.net/packages/make.htm), Cygwin (https://www.cygwin.com), and NMake (https://msdn.microsoft.com/en-us/library/dd9y37ha.aspx) are among the possible options. (We recommend Make for Windows)
We will try to provide packages with a pre-compiled executable for major releases.

If you are looking for Fluffy8x's generator, written in Haskell with Japanese support, please refer to
https://www.shrinemaiden.org/forum/index.php/topic,18237.0.html (https://www.shrinemaiden.org/forum/index.php/topic,18237.0.html)
Title: Re: Random Spellcard Name Generator
Post by: Sparen on April 03, 2015, 01:52:34 AM
There was progress today

Rumia, Letty, the Prismriver Sisters, Kisume, Kogasa, and Wakasagihime (and perhaps others) were added today (canon only). More to come. Results for default have begun to get interesting, with names such as the following appearing:

Umbrella Sign: Duplex Dimensional Kick
Scattered Spirit: Omnidirectional Treasured Orb
Holy Relic: Sky-Conquering Night Carnival
Well Bucket: Umbrella Wind-Buddha Kick

EDIT: Chen and Ran added
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 04, 2015, 01:07:29 AM
SO MUCH PROGRESS

Added today:
Wriggle, Mystia, Tewi, Sekibanki, Momiji, Shizuha, Minoriko, Medicine, Yuuka, Shikieiki, Kyouko, Yamame, Parsee, Yuugi, Satori, Nazrin, Shou, Murasa, Hatate, Yoshika, and Seiga!

Of course, I will probably edit this post to dump like 10 more. But we're getting to the more frustrating part where there are 30+ spell cards per character, and I have yet to dig up people's scripts to add in new words
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 05, 2015, 02:24:36 AM
Today, we have new option flags from Fluffy8x, as well as multi name support (the spell card names can be taken from a pool of multiple characters as opposed to a single on or all of them)

We also have some new characters added, or at least their official spell cards.
-Orin
-Utsuho
-Kagerou
-Flandre
-Keine
-Mokou
-Benben & Yatsuhashi

As can be seen from the roster, I am holding off on the characters who have appeared in fighting games because they have way more spells than other characters (even if Reimu and Marisa are done, there are still hundreds more spells to categorize)
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 06, 2015, 07:13:09 PM
A few minutes ago, I snapshotted our second release:

https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.02 (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.02)

We now support 49 characters, so it's no longer worth listing them. You also do not need to touch the actual code at all if you want to help us out, since the database files are now separate from the code.

New features:
-Multiname Supoort (Thanks to Fluffy8x)
-Dual Spellcards (Thanks to Fluffy8x)
-External Database (Thanks to Fluffy8x)
-Aliases (e.g. Okuu works in place of Utsuho) (Thanks to Fluffy8x)

SAMPLE:
Esoterica: Near the Abyss Spark
---Whatever an Abyss Spark is, it sounds horrifying
Moth Sign: Toxic Phoenix in the Disorder of Edo
---...WTF?
Charm: Event Shower - Cumulonimbus-Ascending Silver Cucumber
---Nitori has done something terrible
Vague Recollection: Firefly Destructor
---Satori, what is this?!
Noise Sign: I Shall Always Stay Under a Room of Danmaku
---Tenshi?
Necromancy: Live Decapitation
---AAAAAAAAAAAAHHHH
Photography: Bloodthirsty Wolf Arrows
---I think Momiji got pissed, Aya. Please leave. Now.
Jeweled Pagoda: Hakurei Ray
---Hakuray Raymoo has the pagoda now.
White Sign: Old Lady Ohgane's Nuclear Energy
---oh no
Seven Stars: Eternally Anchored Sword
---EXCALIBUR!
Rabbit Sign: Infinite Dimensional Kick
---Tewi, what is this?
Hermit Sign: Light on a Dual Gassing Biwa
---I won't ask what the Tsukumo Sisters have planned for us
New Impossible Request: I Shall Always Stay Under a Little Danmaku Barrier
---NEET
Title: Re: Random Spellcard Name Generator [C++]
Post by: TTBD on April 06, 2015, 11:15:17 PM
I just have a question, how do we use this? I downloaded it, but I don't know how to use it. ???
Title: Re: Random Spellcard Name Generator [C++]
Post by: Uruwi on April 07, 2015, 01:50:45 AM
I just have a question, how do we use this? I downloaded it, but I don't know how to use it. ???

Type make and an executable should appear.

(edit: you forgot formatters!)
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 07, 2015, 01:56:15 AM
I just have a question, how do we use this? I downloaded it, but I don't know how to use it. ???
Type make and an executable should appear.

If you are on windows, you will probably want to run 'make' inside the directory (use cmd.exe)

If you are on Linux/Mac, you will want to open the Terminal, cd to the directory with the code, and then run make. From that point onwards, the directions in the Readme should be sufficient
Title: Re: Random Spellcard Name Generator [C++]
Post by: Validon98 on April 07, 2015, 05:07:56 AM
Just tried that myself. I don't think "make" works on regular old command prompt.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Uruwi on April 07, 2015, 05:13:22 AM
Just tried that myself. I don't think "make" works on regular old command prompt.

Did you try adding the directory of your make installation to your PATH variable?
Title: Re: Random Spellcard Name Generator [C++]
Post by: TTBD on April 07, 2015, 08:56:05 AM
I've just tried using cmd.exe for make, and this is what comes up.

Code: [Select]
'make' is not recognised as an internal or external command, operal program or batch file.
And that's what it says for me when I type in 'make'.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 07, 2015, 12:47:20 PM
I've just tried using cmd.exe for make, and this is what comes up.

Code: [Select]
'make' is not recognised as an internal or external command, operal program or batch file.
And that's what it says for me when I type in 'make'.

Did you type it *without quotes*?
Title: Re: Random Spellcard Name Generator [C++]
Post by: Validon98 on April 07, 2015, 04:21:48 PM
Did you try adding the directory of your make installation to your PATH variable?

Yep, did that, still doesn't work, typed make without quotes, doesn't work either. I have a sneaking suspicion it isn't working because of a lack of mingw or something else like that. I don't think cmd.exe has that functionality normally.

(http://i.gyazo.com/d9cd0ca072ca1c5aeda2ded6bacacb5a.png)
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 07, 2015, 05:03:42 PM
Consider Cygwin or PuTTY, or call nmake (https://msdn.microsoft.com/en-us/library/dd9y37ha.aspx)

Fluffy: How do you compile it? Do you use an IDE?
Title: Re: Random Spellcard Name Generator [C++]
Post by: TTBD on April 07, 2015, 06:19:12 PM
*without quotes*?

Yeah, I just typed make.  :V
Title: Re: Random Spellcard Name Generator [C++]
Post by: Uruwi on April 07, 2015, 08:26:14 PM
Consider Cygwin or PuTTY, or call nmake (https://msdn.microsoft.com/en-us/library/dd9y37ha.aspx)

Fluffy: How do you compile it? Do you use an IDE?

I installed GNU Make and added the path to make.exe to the PATH variable.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 08, 2015, 10:09:02 PM
Version 0.03 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.03)

There are OSX and Windows executables that must be run with the Command Line this time. Please report any bugs via Github Issues (if it is a code bug) or here if you are having trouble running the programs. PLEASE READ THE README AND VERSION DESCRIPTION.

New Characters since last version:
Sanae Kanako Kaguya Tojiko Yabusame Tsubakura Futo Miko Meiling Suwako Eirin Ichirin Patchouli Raiko Sukuna Mamizou Nue Kokoro Yumemi

New Features:
-More aliases for characters
-Incorporated more spell card names for Yoshika, Letty, and others
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 14, 2015, 05:36:11 PM
Version 0.04 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.04)

There is a OSX executable that must be run with the Command Line (there will be a Windows version eventually). Please report any bugs via Github Issues (if it is a code bug) or here if you are having trouble running the programs. PLEASE READ THE README AND VERSION DESCRIPTION.

New Characters since last version:
Len'en cast (1-3)
TLC and MPP casts
Byakuren
Yuyuko
Reisen
Komachi
Iku
...and maybe more?

New Features:
-Incorporated more spell card names for Hatate, Sanae, and others

Note that you can override your old chara folder and README with the new ones and everything should function exactly the same as before.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Arcorann on April 17, 2015, 10:53:18 AM
Intriguing. Naturally, this brought to mind disfact's spellcard name generator (http://www.disfact.com/autospell.html) which doesn't have character select, though.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 17, 2015, 04:32:59 PM
Intriguing. Naturally, this brought to mind disfact's spellcard name generator (http://www.disfact.com/autospell.html) which doesn't have character select, though.

I did not know of this one, but thanks for bringing it up, because it's pretty interesting as well.

On that note, I should probably continue adding in characters to this one. There's still a lot of work to do.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on April 20, 2015, 07:50:26 PM
Version 0.05 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.05)

Once again, we have a new release, although this one is very small and was mainly done because of the 200 commit mark as well as a long period of time since the last release.

New characters include:
Aya Shameimaru
Sakuya Izayou
Youmu Konpaku

Yuyuko, Hatsuna, and Ruri's spell cards from RSS have also been added, as well as a number of database changes and improvements.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on May 03, 2015, 10:53:55 PM
Version 0.06 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.06)

Aaaand another release! This one isn't anything big, but the project has calmed down a lot and it's been about two weeks since the last release, so I decided to just make a release to mark it.

New Characters
Tarumi
Hanie
Himemiko
Momohime
Yato
Kiyohime
Koishi Komeiji
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on May 14, 2015, 12:59:52 AM
Version 0.07 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.07)

Updates:
-Suika
-Tenshi
-Kasen
-Remilia
-Yukari
-Seiran/YandereBunny
-Ringo
-Doremy

Basically, I've completed the entire cast of Windows Touhou characters except for the Three Fairies and those who have not yet appeared in games.

Note: You can now alias Byakuren using the following:
'Namusan'
'TurboGranny'

Enjoy!
Title: Re: Random Spellcard Name Generator [C++]
Post by: Python on June 01, 2015, 11:54:42 AM
Ahh, I just can't figure this out. I downloaded Make for Windows as you instructed, shoved all the files from your ZIP into the same directory as make.exe, cd'd to that same directory through the CMD, ran make and http://prntscr.com/7btw0u (http://prntscr.com/7btw0u)
Das System konnte die angegebene Datei nicht finden == The specified file could not be found.

So what is it that I'm doing wrong (besides using Windows)?
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on June 01, 2015, 02:26:58 PM
Ahh, I just can't figure this out. I downloaded Make for Windows as you instructed, shoved all the files from your ZIP into the same directory as make.exe, cd'd to that same directory through the CMD, ran make and http://prntscr.com/7btw0u (http://prntscr.com/7btw0u)
Das System konnte die angegebene Datei nicht finden == The specified file could not be found.

So what is it that I'm doing wrong (besides using Windows)?

What did you download? Did you download the source code? If you download the source code, there *should* be a generator.cc file. You should make sure that you have navigated to the directory with the source code.

Can I have a screenshot of the directory? Additionally, note that you can download a release package, which comes with a prebuilt exe. The only thing you need to do is update the chara directory when (if) we publish new updates, because that's the only part that's really changing now (besides the ReadMe)
Title: Re: Random Spellcard Name Generator [C++]
Post by: Python on June 01, 2015, 04:12:35 PM
http://prntscr.com/7bwmly (http://prntscr.com/7bwmly)
Here's a screenshot of the directory. I downloaded the GitHub repository as a ZIP and...that's all there was in it (save for the DLLs and make.exe, those are from Make for Windows).

EDIT: I found the EXE you meant. At first it said it was missing two DLL files (libgcc_s_dw2-1.dll and libstdc++-6.dll), so I downloaded those two, put them in the same directory I put your generator in and now it crashes everytime I open it or run it through the CMD. Perhaps it's also worth mentioning that it always runs the program twice and it crashes both times (i. e. I run it, it crashes, it runs itself again and crashes again).
Title: Re: Random Spellcard Name Generator [C++]
Post by: TTBD on June 01, 2015, 06:56:02 PM
Sakuya Izayou

Oh, you know I had to point this out.  :3
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on June 01, 2015, 07:40:26 PM
http://prntscr.com/7bwmly (http://prntscr.com/7bwmly)
Here's a screenshot of the directory. I downloaded the GitHub repository as a ZIP and...that's all there was in it (save for the DLLs and make.exe, those are from Make for Windows).

EDIT: I found the EXE you meant. At first it said it was missing two DLL files (libgcc_s_dw2-1.dll and libstdc++-6.dll), so I downloaded those two, put them in the same directory I put your generator in and now it crashes everytime I open it or run it through the CMD. Perhaps it's also worth mentioning that it always runs the program twice and it crashes both times (i. e. I run it, it crashes, it runs itself again and crashes again).

Hmm... yeah, I really don't know how to help you then. If you are running the program via the command line... I really don't know what's wrong, since I can't replicate it without a copy of your operating system.

The executable was compiled by Fluffy8x - I don't know if he has any recommendations.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Uruwi on June 01, 2015, 10:57:31 PM
Hmm... yeah, I really don't know how to help you then. If you are running the program via the command line... I really don't know what's wrong, since I can't replicate it without a copy of your operating system.

The executable was compiled by Fluffy8x - I don't know if he has any recommendations.

Hmm, I have MinGW installed on my computer. What happens if you try installing MinGW and using its own DLLs that the program needs?
Title: Re: Random Spellcard Name Generator [C++]
Post by: Python on June 02, 2015, 08:54:20 AM
I assume MinGW refers to "Minimalistic GNU for Windows" (why do they call everything GNU, that's an animal)?

I think I installed it correctly (the installation process was a little confusing for me), but I still encounter the same errors, both, when compiling or running the program. It also says the DLLs are missing if I remove the ones I downloaded from the generator's folder. Seeing as it works for you, maybe you can send me the build you have on your computer?
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on August 28, 2015, 05:04:38 PM
Version 0.08 Release (https://github.com/Sparen/RandomSpellcardGenerator/releases/tag/v0.08)

At this point in time, the entire LoLK Cast, BPoHC cast, and NTP cast are present in the generator.

The fact that there is a release now does not mean that there will be another in the near future. If anyone would like to receive updates from this project, please fork or clone the repository, as the next foreseeable update will happen after the release of the demo of the next official Touhou game, unless JynX gets there first or SeitenTouji actually gets a demo.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Dark Kitsune on August 30, 2015, 05:55:07 PM
Downloaded the latest release version and running it just gave errors about missing libgcc_s_dw2-1.dll.
I put the DLL it was missing in the program folder and running showed an application error.

Edit: Oh, I see someone else had the same problem. In my case it doesn't run twice, and it only asked for the one DLL.
If it means anything I'm running Windows 8.1 x64.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on August 30, 2015, 06:07:40 PM
Downloaded the latest release version and running it just gave errors about missing libgcc_s_dw2-1.dll.
I put the DLL it was missing in the program folder and running showed an application error.

Edit: Oh, I see someone else had the same problem. In my case it doesn't run twice, and it only asked for the one DLL.
If it means anything I'm running Windows 8.1 x64.

What was the Application Error?

Also, I didn't make the executable - Fluffy8x did. Have you tried compiling from source? Additionally, you are running the program from the Windows Command Line, correct? If not, please do.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Dark Kitsune on August 30, 2015, 06:20:34 PM
"The application was unable to start correctly (0xc000007b). Click OK to close the application."
And yes, I ran it through the command line.

Running "make" in the directory produced the following error:
(http://puu.sh/jU5o2/a4986f75b1.png)
Title: Re: Random Spellcard Name Generator [C++]
Post by: Uruwi on August 30, 2015, 06:29:38 PM
What version of GCC do you have installed?
Title: Re: Random Spellcard Name Generator [C++]
Post by: Dark Kitsune on August 30, 2015, 06:37:33 PM
mingw32-gcc version 4.8.1-4
Title: Re: Random Spellcard Name Generator [C++]
Post by: JDude :3 on January 19, 2018, 02:07:04 AM
What I do with this?
I have a lot of files, but I don't know what to do :blush:
Title: Re: Random Spellcard Name Generator [C++]
Post by: Chronojet ⚙ Dragon on January 19, 2018, 03:35:34 AM
What I do with this?
I have a lot of files, but I don't know what to do :blush:

It's all in the readme file, but I'll repost it here.

Navigate to the directory that you have extracted the contents into in Command Prompt / Terminal, and use the command make.
Then you should have a file named generator.exe. If you're running Windows, then you can run it by typing generator.exe, and if you're running Linux or MacOSX, then run it by typing ./generator. Look in the readme if you want more options.

Edit: You might not want to trust me 100% with anything regarding Windows, since I haven't tested it at the time of posting (or editing) this, but this is what I understand from the readme. I can confirm it works on my Mac though.
Title: Re: Random Spellcard Name Generator [C++]
Post by: JDude :3 on January 19, 2018, 10:02:48 AM
Am I doing this right? :blush:
Title: Re: Random Spellcard Name Generator [C++]
Post by: niektory on January 19, 2018, 11:37:39 AM
If you want to build it yourself (via make) I think you're going to need MinGW (http://www.mingw.org/) installed.

It'll be easier to download the latest Windows build (Spellcard.Name.Generator.v0.08.WIN.zip) from the releases page (https://github.com/Sparen/RandomSpellcardGenerator/releases), then run it by typing generate.
Title: Re: Random Spellcard Name Generator [C++]
Post by: JDude :3 on January 19, 2018, 12:30:44 PM
The program can't be iniciated because libgcc_s_dw2-1.dll is missing on your computer....
WAT
Title: Re: Random Spellcard Name Generator [C++]
Post by: niektory on January 19, 2018, 03:48:49 PM
Oh. Well, you can get these DLLs from a MinGW installation. Or take these I uploaded because I'm generous like that. Unzip them in the same folder as the generator.
Title: Re: Random Spellcard Name Generator [C++]
Post by: Sparen on January 19, 2018, 04:31:10 PM
...And suddenly a project that hasn't been updated for years gets bumped from the dead...

As a reminder, this project was originally made for Unix based systems and was not made to run on Windows. If you do plan to run it on Windows, see some of the posts on how to get make working on Windows or on how to compile from source on Windows.