A short troubleshooting note for an “Error launching app” message when opening a Cocos Creator project.
Software notes and practical experiments
This is the English entry point to Nanfeng's development blog. The archive currently contains Chinese-language technical notes; English translations will be published progressively.
Deploying a Hexo Blog to an Alibaba Cloud Server
Push generated Hexo files to a bare Git repository and serve them through Nginx on an Alibaba Cloud server.
Resolving PageView and ScrollView Touch Conflicts in Cocos Creator
Detect horizontal gestures inside a vertical ScrollView and forward them as PageView page changes.
Removing Trailing Zeros from a Numeric String in TypeScript
Remove unnecessary zeros after the decimal point while preserving the value as a string.
Fixing Git’s “remote origin already exists” Error
Inspect, replace, or update an existing Git origin remote before pushing to your own repository.
Sharing WebSocket Messages Between Classes in Cocos Creator
Create a WebSocket in one class and let another class subscribe to its incoming messages.
Implementing Indexed String Formatting in TypeScript
Replace placeholders such as {0} and {1} with arguments in a TypeScript formatting function.
Safely Freeing Disk Space on Windows
Use Windows built-in cleanup tools to remove temporary files without recursively deleting broad classes of system files.
Implementing a Broadcast Message Queue in Cocos Creator
Queue real-time messages and animate them across the screen one at a time in Cocos Creator.
Preserving this in setTimeout and setInterval Callbacks
Understand callback receiver rules and preserve a class instance inside JavaScript timers.