2012年10月22日 星期一

Unity3D !

http://www.burgzergarcade.com/hack-slash-rpg-unity3d-game-engine-tutorial

真的不該 先修networked game 當一個基本的mobile game 都還搞不懂的時候...

不管怎麼說 多看範例還是 比直接看document 有用...
因為連基本的都還沒搞懂...
http://www.m2h.nl/unity/
 Ultimate Unity Networking project
"RPC need a networkview but don't use 'state synchronization' and 'observed' option"   (p7, M2H unity networking tutorial)

3(THREE) ways to Networkview
1. observed object(transform)
2. observed script(JS/CS) with OnSerializeNetworkView
3. RPC (observed :None, State Synchronization:Off)<- !! "The mojo is specifically this line: networkView.RPC("SetPosition", RPCMode.Others, transform.position);."

http://docs.unity3d.com/Documentation/ScriptReference/index.Script_compilation_28Advanced29.html

Unity3D compile 順序! Cs 是早於JS 的.. Standard Asset 又比較早.. 所以... 把要被讀取的放到裡頭就是了 

先看GUI 跟 guilayout的不同
http://forum.unity3d.com/threads/38178-what-s-the-exact-difference-between-GUI-and-GUILayout
再捨棄GUI! EZ gui 或是 NGUI
http://answers.unity3d.com/questions/122218/what-to-use-for-gui-instead-of-ongui-mobile-dev.html

JS 有很嚴重的問題 也導致我三周的邏輯錯誤
GetComponent("XXX").enable = "true"; XXX 在 JS 中找不到沒錯誤訊息 所以根本不知道沒有把該disable 的東西弄掉! CS 相較之下就沒這種問題了


MonoBehaviour is the base class every script derives from.
Behaviours are Components that can be enabled or disabled.
Component Base class for everything attached to GameObjects.

Transform Position, rotation and scale of an object.
名詞跟形容詞放一起 好容易搞混啊... 

2012年7月4日 星期三

Samba!

sudo setsebool -P samba_domain_controller on;
sudo tsebool -P samba_enable_home_dirs on

本輪 samba 關鍵!
該是SELinux 問題!
http://weinetworks.wordpress.com/2011/07/05/%E8%A7%A3%E6%B1%BA%E7%B6%B2%E8%8A%B3%E6%89%BE%E4%B8%8D%E5%88%B0samba%E7%B6%B2%E8%B7%AF%E8%B7%AF%E5%BE%91%E7%9A%84%E9%8C%AF%E8%AA%A4%E8%A8%8A%E6%81%AF/

 寫在開機指令中, 開機時設定自動生效
vi /etc/rc.d/rc.local
setsebool samba_domain_controller=1
setsebool samba_enable_home_dirs=1
setsebool samba_export_all_ro=1
setsebool samba_export_all_rw=1
setsebool samba_share_nfs=1
setsebool use_samba_home_dirs=1
setsebool virt_use_samba=1
service smb restart

2012年1月25日 星期三

[GAE]Google App Engine 筆記

http://code.google.com/appengine/docs/java/gettingstarted/creating.html
這個範例 最大的問題是
在 create new project 的時候 要 unclick "GWT" ...
不然根本不能跑啊........這 google web toolkit 還不知道幹嘛用的 倒是輕輕鬆鬆的搞死 hello world