COSCUP
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
復活一個 Browser Game - Unlight 開源事件 - 蒼時弦也 === {%hackmd LcL4-VI0SGitSiINTuy4rA %} > 請從這裡開始 > # 遊戲網址:[https://unlight.app/](https://unlight.app/) 噗浪: <https://www.plurk.com/unlightapp> 粉絲專頁:<https://www.facebook.com/OpenUnlight/> 【已知Bug】[Bug清單](https://justpaste.it/3e43u) 簡報:<https://speakerdeck.com/elct9620/2019-coscup-fu-huo-ge-browser-game-unlight-kai-yuan-shi-jian> 專案開源的時間大概8月初,到現在大概兩個禮拜。 1. 了解 micro service 裡面大概有五到六種不同的service彼此互相溝通。 2. 日本遊戲產業發達 遊戲業真是一個血汗的地方,所以就跑去做web。 Ruby + ActionScript 3 <- 被 賈伯斯 判死的東西 Flash <- 自從賈伯斯讓他死掉後,所有人都要他死掉 不意外,只要是來自日本,幾乎都會是ruby。 它是 Ruby 但不是 Ruby on Rails。工程師在沒有框架的情況下自己搞出來。 工程師沒有用 IDE 直接寫 ActionScript。 Adobe Flash IDE is unavailable。 你在外面找不到一個會動的 flash IDE。 官方一開始忘記把src檔案放出來。 例如 `mxmlc src/Unlight.mxml` 它寫了一個 script 把這個語言所有的對話用到的文字找出來,就知道只需要把這些unicode的font內嵌。 使用 Flex SDK 3.0 編譯前端。 整個專案的重建就是和遺失檔案奮鬥的過程。 compiler 太麻煩了,用 [Docker](https://github.com/open-unlight/legacy-unlight-docker) 打包起來 它每次 compile 都一定會把你的 source code 弄髒。 它有很多個語言,中文版只需要 compile 中文的東西。所以它又寫了一個 script 把檔案名稱改掉。然後 git 就會告訴你檔案髒掉了。 為了自訂伺服器需求,寫了三個 compose 檔案 我 server 跑起來,client 跑起來,然後很高興的跑起來。就登入失敗。因為 as3crypto 版本錯誤。 Unlight 使用 Secure Remote Password 協定加密。但是和現行標準(RFC)不太一致。 RFC是server把salt之類的各種東西給client,才開始算public key。 論文則沒有要求這件事。 Unlight 的實作是論文實作不是RFC實作。 「為什麼我的帳號被別人登入了?」因為我從來沒有檢查過密碼。 好朋友 Poka 贊助了一台伺服器 -> 有 24 GB Ram。 發現 24 GB Ram 給 500 人居然卡住。 單一 SQL Query 跑 0.2 sec <- 同樣的 query 跑太多次,對於遊戲來說會讓玩家覺得慢 它真的沒上 index !!! ```sql SELECT * FROM card_inventories WHERE chara_card_deck = .... ``` 加了 index 後速度快 100 倍 <- 有人說:「當初遊戲公司會倒掉,是不是因為這個原因」 現在可以給千人遊玩了。可能可以到三千。 有些 table 資料成長速度飛快,一週 10M ~ 20M rows How to Hosting? 加上 Amazon Cloudwatch 監控。 就有玩家問一個問題。以前遊戲有課金商店,那我可不可以課金? * 沒有接金流 * 另外開 api 去做課金商店,直接用 rack 寫。 SmartLook <- 錄製 user 的畫面協助 debug 以後會整理看看正常狀況要花多少錢。 我們現在是不正常狀況,像是有人家裡有閒置 server。 目前主要與原版相比的更動:TCP socket -> WebSocket 不過要 javascript 固定 packet size 語法很難懂 索性用 Golang 寫客戶端 websocket。 你可以學到如何用 Ruby 學習 C 的思考。 現在遊戲裡面是無差別課金格鬥。 畢竟是女性向收集角色遊戲,課金第一名是冥府的印章。 ###### tags: `COSCUP2019` `Ruby`

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully