diff --git a/chuni_setup.md b/chuni_setup.md new file mode 100644 index 0000000..4559bb5 --- /dev/null +++ b/chuni_setup.md @@ -0,0 +1,91 @@ +# extra steps + +## reset chuni config (chuni.yaml) + +```yaml +server: + enable: True + loglevel: "debug" + news_msg: "" + use_https: True # for CRYSTAL PLUS and later or SUPERSTAR and later + +team: + name: ARTEMiS # If this is set, all players that are not on a team will use this one by default. + +mods: + use_login_bonus: True + # stock_tickets allows specified ticket IDs to be auto-stocked at login. Format is a comma-delimited string of ticket IDs + # note: quanity is not refreshed on "continue" after set - only on subsequent login + stock_tickets: + stock_count: 99 + + # Allow use of all available customization items in frontend web ui + # note: This effectively makes every available item appear to be in the user's inventory. It does _not_ override the "disableFlag" setting on individual items + # warning: This can result in pushing a lot of data, especially the userbox items. Recommended for local network use only. + forced_item_unlocks: + map_icons: False + system_voices: False + avatar_accessories: False + nameplates: False + trophies: False + character_icons: False + stages: False + +version: + 11: + rom: 2.00.00 + data: 2.00.00 + 12: + rom: 2.05.00 + data: 2.05.00 + 13: + rom: 2.10.00 + data: 2.10.00 + 14: + rom: 2.15.00 + data: 2.15.00 + 15: + rom: 2.20.00 + data: 2.20.00 + 16: + rom: 2.25.00 + data: 2.25.00 + 17: + rom: 2.30.00 + data: 2.30.00 + 18: + rom: 2.40.00 + data: 2.40.00 + +crypto: + encrypted_only: False + +matching: + enable: False + match_time_limit: 60 + match_error_limit: 9999 +``` + +## set maintenance start time to same as end time (core.yaml) + +```yaml +title: + loglevel: "info" + reboot_start_time: "07:00" + reboot_end_time: "07:00" # this must be set to 7:00 am for some game, please do not change it +``` + +## adjust mysql database + +```sql +-- Add missing columns to profile table +ALTER TABLE chuni_profile_data +ADD COLUMN stageId INTEGER DEFAULT 0, +ADD COLUMN trophyIdSub1 INTEGER DEFAULT -1, +ADD COLUMN trophyIdSub2 INTEGER DEFAULT -1; + +-- Add missing columns to playlog table +ALTER TABLE chuni_score_playlog +ADD COLUMN monthPoint INTEGER DEFAULT 0, +ADD COLUMN eventPoint INTEGER DEFAULT 0; +``` diff --git a/example_config/cardmaker.yaml b/example_config/cardmaker.yaml deleted file mode 100644 index fb17756..0000000 --- a/example_config/cardmaker.yaml +++ /dev/null @@ -1,13 +0,0 @@ -server: - enable: True - loglevel: "info" - -version: - 0: - ongeki: 1.30.01 - chuni: 2.00.00 - maimai: 1.20.00 - 1: - ongeki: 1.35.03 - chuni: 2.10.00 - maimai: 1.30.00 \ No newline at end of file diff --git a/example_config/chuni.yaml b/example_config/chuni.yaml deleted file mode 100644 index 4855fa1..0000000 --- a/example_config/chuni.yaml +++ /dev/null @@ -1,35 +0,0 @@ -server: - enable: True - loglevel: "info" - news_msg: "" - -team: - name: ARTEMiS # If this is set, all players that are not on a team will use this one by default. - -mods: - use_login_bonus: True - -version: - 11: - rom: 2.00.00 - data: 2.00.00 - 12: - rom: 2.05.00 - data: 2.05.00 - 13: - rom: 2.10.00 - data: 2.10.00 - 14: - rom: 2.15.00 - data: 2.15.00 - 15: - rom: 2.20.00 - data: 2.20.00 - -crypto: - encrypted_only: False - -matching: - enable: False - match_time_limit: 60 - match_error_limit: 9999 diff --git a/example_config/core.yaml b/example_config/core.yaml deleted file mode 100644 index daf18fc..0000000 --- a/example_config/core.yaml +++ /dev/null @@ -1,66 +0,0 @@ -server: - listen_address: "127.0.0.1" - hostname: "localhost" - port: 80 - ssl_key: "cert/title.key" - ssl_cert: "cert/title.crt" - allow_user_registration: True - allow_unregistered_serials: True - name: "ARTEMiS" - is_develop: True - is_using_proxy: False - proxy_port: 0 - proxy_port_ssl: 0 - log_dir: "logs" - check_arcade_ip: False - strict_ip_checking: False - -title: - loglevel: "info" - reboot_start_time: "04:00" - reboot_end_time: "07:00" # this must be set to 7:00 am for some game, please do not change it - -database: - host: "localhost" - username: "aime" - password: "aime" - name: "aime" - port: 3306 - protocol: "mysql" - sha2_password: False - loglevel: "info" - enable_memcached: True - memcached_host: "localhost" - -frontend: - enable: False - port: 8080 - loglevel: "info" - secret: "" - -allnet: - standalone: False - port: 80 - loglevel: "info" - allow_online_updates: False - update_cfg_folder: "" - -billing: - standalone: True - loglevel: "info" - port: 8443 - ssl_key: "cert/server.key" - ssl_cert: "cert/server.pem" - signing_key: "cert/billing.key" - -aimedb: - enable: True - listen_address: "" - loglevel: "info" - port: 22345 - key: "" - id_secret: "" - id_lifetime_seconds: 86400 - -mucha: - loglevel: "info" diff --git a/example_config/cxb.yaml b/example_config/cxb.yaml deleted file mode 100644 index 628d49c..0000000 --- a/example_config/cxb.yaml +++ /dev/null @@ -1,4 +0,0 @@ -server: - enable: True - loglevel: "info" - use_https: True \ No newline at end of file diff --git a/example_config/diva.yaml b/example_config/diva.yaml deleted file mode 100644 index 7b8bdcb..0000000 --- a/example_config/diva.yaml +++ /dev/null @@ -1,11 +0,0 @@ -server: - enable: True - loglevel: "info" - festa_enable: True - festa_add_VP: "20,5" - festa_multiply_VP: "1,2" - festa_end_time: "2029-01-01 00:00:00.0" - -mods: - unlock_all_modules: True - unlock_all_items: True diff --git a/example_config/idac.yaml b/example_config/idac.yaml deleted file mode 100644 index 626565e..0000000 --- a/example_config/idac.yaml +++ /dev/null @@ -1,22 +0,0 @@ -server: - enable: True - loglevel: "info" - ssl: False - ssl_key: "cert/idac.key" - ssl_cert: "cert/idac.crt" - matching_host: "127.0.0.1" - port_matching: 20000 - port_echo1: 20001 - port_echo2: 20002 - port_matching_p2p: 20003 - -stamp: - enable: True - enabled_stamps: # max 3 play stamps - - "touhou_remilia_scarlet" - - "touhou_flandre_scarlet" - - "touhou_sakuya_izayoi" - -timetrial: - enable: True - enabled_timetrial: "touhou_remilia_scarlet" diff --git a/example_config/idz.yaml b/example_config/idz.yaml deleted file mode 100644 index 1bfff9b..0000000 --- a/example_config/idz.yaml +++ /dev/null @@ -1,11 +0,0 @@ -server: - enable: True - loglevel: "info" - hostname: "" - news: "" - aes_key: "" - -ports: - userdb: 10000 - match: 10010 - echo: 10020 diff --git a/example_config/mai2.yaml b/example_config/mai2.yaml deleted file mode 100644 index f0d7754..0000000 --- a/example_config/mai2.yaml +++ /dev/null @@ -1,17 +0,0 @@ -server: - enable: True - loglevel: "info" - -deliver: - enable: False - udbdl_enable: False - content_folder: "" - -uploads: - photos: False - photos_dir: "" - movies: False - movies_dir: "" - -crypto: - encrypted_only: False \ No newline at end of file diff --git a/example_config/nginx_example.conf b/example_config/nginx_example.conf deleted file mode 100644 index b01a822..0000000 --- a/example_config/nginx_example.conf +++ /dev/null @@ -1,105 +0,0 @@ -# Allnet -server { - listen 80; - server_name naominet.jp; - - location / { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_request_headers on; - proxy_pass http://127.0.0.1:8080/; - } -} - -# Non-SSL titles -server { - listen 80; - server_name your.hostname.here; - - location / { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_request_headers on; - proxy_pass http://127.0.0.1:8080/; - } -} - -# SSL titles, comment out if you don't plan on accepting SSL titles -server { - listen 443 ssl; - server_name your.hostname.here; - - ssl_certificate /path/to/cert/title.crt; - ssl_certificate_key /path/to/cert/title.key; - ssl_session_timeout 1d; - ssl_session_cache shared:MozSSL:10m; - ssl_session_tickets off; - - ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; - ssl_ciphers "ALL:@SECLEVEL=0"; - ssl_prefer_server_ciphers off; - - location / { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_request_headers on; - proxy_pass http://127.0.0.1:8080/; - } -} - -# Billing, comment this out if running billing standalone -server { - listen 8443 ssl; - server_name ib.naominet.jp; - - ssl_certificate /path/to/cert/server.pem; - ssl_certificate_key /path/to/cert/server.key; - ssl_session_timeout 1d; - ssl_session_cache shared:MozSSL:10m; - ssl_session_tickets off; - - ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; - ssl_ciphers "ALL:@SECLEVEL=0"; - ssl_prefer_server_ciphers off; - - location / { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_request_headers on; - proxy_pass http://127.0.0.1:8080/; - } -} - -# Frontend, set to redirect to HTTPS. Comment out if you don't intend to use the frontend -server { - listen 80; - server_name frontend.hostname.here - - location / { - return 301 https://$host$request_uri; - # If you don't want https redirection, or are using something like cloudflare to manage HTTPS, comment out the line above and uncomment the line below - # proxy_pass http://127.0.0.1:8090/; - } -} - -# Frontend HTTPS. Comment out if you on't intend to use the frontend, or have cloudflare or something managing https for you. -server { - listen 443 ssl; - server_name frontend.hostname.here; - - ssl_certificate /path/to/cert/frontend.pem; - ssl_certificate_key /path/to/cert/frontend.key; - ssl_session_timeout 1d; - ssl_session_cache shared:MozSSL:10m; # about 40000 sessions - ssl_session_tickets off; - - # intermediate configuration - ssl_protocols TLSv1.2 TLSv1.3; - ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; - ssl_prefer_server_ciphers off; - - # HSTS (ngx_http_headers_module is required) (63072000 seconds) - add_header Strict-Transport-Security "max-age=63072000" always; - - location / { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass_request_headers on; - proxy_pass http://127.0.0.1:8090/; - } -} diff --git a/example_config/ongeki.yaml b/example_config/ongeki.yaml deleted file mode 100644 index 9af5efe..0000000 --- a/example_config/ongeki.yaml +++ /dev/null @@ -1,41 +0,0 @@ -server: - enable: True - loglevel: "info" - use_https: False - -gachas: - enabled_gachas: - - 1011 - - 1012 - - 1043 - - 1067 - - 1068 - - 1069 - - 1070 - - 1071 - - 1072 - - 1073 - - 1074 - - 1075 - - 1076 - - 1077 - - 1081 - - 1085 - - 1089 - - 1104 - - 1111 - - 1135 - # can be used for Card Maker 1.35 and up, else will be ignored - - 1149 - - 1156 - - 1163 - - 1164 - -version: - 6: - card_maker: 1.30.01 - 7: - card_maker: 1.35.03 - -crypto: - encrypted_only: False \ No newline at end of file diff --git a/example_config/pokken.yaml b/example_config/pokken.yaml deleted file mode 100644 index 423d9d3..0000000 --- a/example_config/pokken.yaml +++ /dev/null @@ -1,12 +0,0 @@ -server: - hostname: "localhost" - enable: True - loglevel: "info" - auto_register: True - enable_matching: False - stun_server_host: "stunserver.stunprotocol.org" - stun_server_port: 3478 - -ports: - game: 9000 - admission: 9001 diff --git a/example_config/sao.yaml b/example_config/sao.yaml deleted file mode 100644 index d405461..0000000 --- a/example_config/sao.yaml +++ /dev/null @@ -1,20 +0,0 @@ -server: - enable: True - loglevel: "info" - auto_register: True - photon_app_id: "7df3a2f6-d69d-4073-aafe-810ee61e1cea" - data_version: 1 - game_version: 33 - -crypt: - enable: False - key: "" - -hash: - verify_hash: False - hash_base: "" - -card: - enable: True - crypt_password: "" - crypt_salt: "" diff --git a/example_config/wacca.yaml b/example_config/wacca.yaml deleted file mode 100644 index bd96795..0000000 --- a/example_config/wacca.yaml +++ /dev/null @@ -1,36 +0,0 @@ -server: - enable: True - loglevel: "info" - prefecture_name: "Hokkaido" - -mods: - always_vip: True - infinite_tickets: True - infinite_wp: True - -gates: - enabled_gates: - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 diff --git a/import_chunithm.ps1 b/import_chunithm.ps1 new file mode 100644 index 0000000..e218eeb --- /dev/null +++ b/import_chunithm.ps1 @@ -0,0 +1,2 @@ +python dbutils.py upgrade +python read.py --game SDHD --version 15 --binfolder D:\games\CHUNITHM\bin --optfolder D:\games\CHUNITHM\bin\option