Admiral-Fish / RaidFinder

Crossplatform RNG tool for Pokemon Sword/Shield raids
GNU General Public License v3.0
178 stars 54 forks source link

Please teach me how to compile this source code on windows #78

Closed KKMAA closed 3 years ago

KKMAA commented 3 years ago

I already download Visual Studio but I don't underderstand how to use...... I want to translate new map name to chinese

Ich73 commented 3 years ago

RaidFinder is a Qt project. So it's best to install and use Qt Creator. Visit the page, select the tab Qt Creator and download the program for your operating system, e.g. Qt Creator 4.13.2 for Windows 64-bit (283 MB).

Once you have it installed, you can download / fork and pull the repository and open RaidFinder.pro which is the project file using Qt Creator. You may need to tinker with the options in the Tools > Options... menu.

To get RaidFinder running you need to configure Build Settings. To do this select the Projects Tab on the left and add a new build configuration. I use a Release build configuration and C:\pathToRaidFinder\build-release as the build directory. To run it simply click the green arrow on the bottom left.

The files for translations can be found by selecting the Edit tab on the left and navigating to RaidFinder [master] > Sources > i18n. There are RaidFinder_xx.ts files you can edit. The tags <translation type="unfinished"></translation> need to be filled out with the proper translation. The abilities, characteristics, locations, natures and species can be found in RaidFinder [master] > Resources > resources.qrc > /text. After editing the files simply click the green arrow again to run RaidFinder and review your changes.

Admiral-Fish commented 3 years ago

To add on, you can also use Qt Linguist to have a dedicated tool for editing the RaidFinder_xx.ts files.

The other translation files in Resources/Text you only need a text editor.

KKMAA commented 3 years ago

RaidFinder is a Qt project. So it's best to install and use Qt Creator. Visit the page, select the tab Qt Creator and download the program for your operating system, e.g. Qt Creator 4.13.2 for Windows 64-bit (283 MB).

Once you have it installed, you can download / fork and pull the repository and open RaidFinder.pro which is the project file using Qt Creator. You may need to tinker with the options in the Tools > Options... menu.

To get RaidFinder running you need to configure Build Settings. To do this select the Projects Tab on the left and add a new build configuration. I use a Release build configuration and C:\pathToRaidFinder\build-release as the build directory. To run it simply click the green arrow on the bottom left.

The files for translations can be found by selecting the Edit tab on the left and navigating to RaidFinder [master] > Sources > i18n. There are RaidFinder_xx.ts files you can edit. The tags <translation type="unfinished"></translation> need to be filled out with the proper translation. The abilities, characteristics, locations, natures and species can be found in RaidFinder [master] > Resources > resources.qrc > /text. After editing the files simply click the green arrow again to run RaidFinder and review your changes.

compile error

https://i.imgur.com/QeEzJB5.png

Ich73 commented 3 years ago

That's Visual Studio, not Qt Creator. And everything is chinese. I'm willing to help, but what do you expect me/us to do with this information?

YZYZYZGOD commented 3 years ago

那是Visual Studio,而不是Qt Creator。一切都是中国人。 我愿意提供帮助,但是您希望我/我们如何处理这些信息?

I try to use QT creator compile raidfinder, but it seems something wrong, I wanna know which version QT Kits u chose

YZYZYZGOD commented 3 years ago

那是Visual Studio,而不是Qt Creator。一切都是中国人。 我愿意提供帮助,但是您希望我/我们如何处理这些信息?

I try to use QT creator compile raidfinder, but it seems something wrong, I wanna know which version QT Kits u chose

https://imgur.com/a/tUl6CjU This is wrong message, it happend in Raid.cpp

Ich73 commented 3 years ago

I'm running Qt Creator 4.11.0 (Community). I also installed the C compilers using Cygwin.

In Tools > Options... > Kits in the Tab Kits I clicked Add to add a Manual Kit with the following settings:

YZYZYZGOD commented 3 years ago

I'm running Qt Creator 4.11.0 (Community). I also installed the C compilers using Cygwin.

In Tools > Options... > Kits in the Tab Kits I clicked Add to add a Manual Kit with the following settings:

  • Compiler C: MinGW (C, x86 64bit in C:\Program Files\Cygwin\bin)
  • Compiler C++: MinGW (C++, x86 64bit in C:\Program Files\Cygwin\bin)
  • Debugger: GDB in C:\Program Files\Cygwin\bin\gdb.exe
  • CMake Configuration:
CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}

thanks,I will try to use same compilers to compile it