Tuesday, September 30, 2014

First day after Quit My Job

Okay, so today is the first day after quitting my job

time now is 9:38am

Previously the standard "work for others" job
====================
Previously on the normal "job" the schedule is as below
1. wake up 7:30am
2. traffic jam all the way to office reach office 9:30am
3. work all the way to 6:30pm
4. traffic jam all the way home reach home 8:30pm
5. dinner then relax then sleep at 12 midnight

total hour taken per day is 13 hour + 8 hour mandatory sleep time = 21 hour gone
if I really want to do business or anything i only have 3 hour with super super tired mind and body

however, I can make around USD133 per day while working in the normal job

entrepreneur schedule
====================
1. wake up 9am, exercise 5 minute and breakfast
2. write on this blog what i plan to do for the day make sure my effort is worth USD133 per day even though I might not make any cents
3. work my ass off

today plan
========
1. pay the bill for september
- before 11 am (done)
2. design the discount voucher for my offline retail shop
- before 11 am (done 90%)
3. go out and pay the new house maintenance fee
- 11am to 1pm (done)
4. call the car shop and schedule meeting to fix my car
- 1pm to 3pm (done, book at friday 3:30pm)
5. Hire employee to watch over my offline retail shop
- post in forum 10am to midnight update (keep updating)
6. Code my iphone app "timetracker"
- 3pm to midnight
- stat for day(done)
- stat for month (done)
- stat for year(done)
- save stat for day (pending)
-- unable to finish due to unity refuse to save large number

7. research physical item to sell online
- do some keyword research
- what should i sell ? Shoe? watch?


total profit for today : 0
total expense for today: USD1031 (pay parent + condo bank loan + electric bill + phone bill + tv subscription + internet subscription + condo service maintenance fee for 3 month)
USD35 (grocery for the week + lunch + dinner)


Finally, I successfully quit my job, today is my last day on work

2 years ago I try to quit my job but my boss said he need me to help him finish the project, so I help him to finish the project, 2 years later, I sent in the resignation letter again. Since I need to give 2 month notice so I throw letter on July, so my last day is on 30 September 2014.

So tomorrow will mark the first day of my "jobless adventure"

My saving can only last me for a maximum of one year, so I need to at least come out with something to make some money, below is the list of thing I plan to achieve in a one year period

1. Have at least 10 iphone app on the appstore (roughly 1 app per month)
2. Have at least 24 -  3d Cartoon on youtube (roughly 2 cartoon per month)
3. Have some online store selling some physical item (not sure what I want to sell yet)
4. Have a retail shop selling some service
5. Optionally, if the first 4 fail miserably, I might open class to teach people how to code iphone and android app, or teach people how to build 3d cartoon

this is the 5 category of stuff I plan to do in my 1 years "jobless , incomeless adventure"

wish me luck, I will update everyday, I promised

Sunday, September 28, 2014

Unity Ongui how to get total seconds per day

var timestring: String;


timestring = System.DateTime.Now.ToString("hh:mm:ss");
    
    //here we want to get seconds per day so we add up hourx3600 + minutesx60 + seconds


    total_second_per_day = (int.Parse(timestring.Substring(0,2))*3600) + (int.Parse(timestring.Substring(3,2)) *60)
    +int.Parse(timestring.Substring(6,2));




Tuesday, September 23, 2014

Unity how to track and display hour minute seconds

So let say you want to create a time tracker to track seconds, minutes, hours, so below is how you do it


var timer1 : double;
var secondsint;
var minutesint;

var hoursint;
var niceTimeString;


function Update()
{
   
        timer1 += Time.deltaTime;
    
 } 


function OnGUI ()
{

            hoursMathf.FloorToInt(timer1 / 3600F);
            minutes = Mathf.FloorToInt(timer1 / 60F);
            seconds = Mathf.FloorToInt(timer1 - minutes * 60);
 
            
niceTime = String.Format("{0:00}:{1:00}:{2:00}"hours,minutesseconds);
            

 
  
        
        GUI.Label (Rect (20015012040), niceTime );



}

Friday, September 19, 2014

UNITY GUI SKIN TUTORIAL step by step

below is the tutorial i found, cheers

http://forum.unity3d.com/threads/creating-custom-gui-skins-part-one.113055/



FONT FOLDER LOCATION
/Library/Fonts and /System/Library/Fonts.

NOTE: to go to root folder, open your finder, then PRESS COMMAND + SHIFT + G

Thursday, September 18, 2014

Unity Quick way to change GUI button font size

if(GUI.RepeatButton (Rect (70,260,50,30), "<color=black><size=10>WORK</size></color>"))


so your button font will be black and the size is 10

Tuesday, September 16, 2014

Blender object import into Unity messed up

Okay, so when I import my blender object into Unity , a few things messed up

1. some stuff not stick to the bone, so when the character moving, seem like part of the finger is still flying, to fix this i do as below
- a. In blender, top right, click your amature, bottom, click "pose mode" , press "A" on your keyboard to select all bone, bottom, click POSE -> CLEAR TRANSFORM -> ALL
(this will move all the bone back to original place)
- b. Say some of the finger mesh is not attached to the bone, when you still on "POSE MODE" , right click to select your finger bone, then on TOP RIGHT, click your CHARACTER, on BOTTOM, change to "WEIGHT PAINT MODE", you can paint your finger here, but normally you cannot, so you go to "EDIT MODE", click the "LIMIT SELECTION TO VISIBLE" so that you can see through all the face, press "B" then select your entire finger,

- c. go back to "WEIGHT PAINT MODE",  click "FACE SELECTION MASKING FOR PAINTING" then click WEIGHT-> SET WEIGHT

(this will 100% select all the faces for the finger and then set the weight to 100% to attach to the finger bone)

2. The character head is upside down

R T S, rotation, translation, scale
  1. create a backup of your blender file
  2. open blender and open your file
  3. in object mode, select all the meshes (press A), press CONTROL-A (apply menu), then select APPLY ROTATION, then again APPLY TRANSLATION, then APPLY SCALE
  4. you'll notice that the objects' pivots will be re-set to the center, and their scale and rotation will be fixed

3. The color is in the wrong direction, say example you build a house, supposingly the color is on outside, but somehow the color is now inside, and outside become transparent

- to fix, this, press 'N' , then under display -> tick the BACKSPACE CURLING, select the face that is wrong direction in "EDIT mode" and hit CTRL-F to Flip them


Saturday, September 13, 2014

Unity Blender Animation Tutorial I found

So below is the Unity Blender Animation tutorial i found that teach you from scratch


so basically, after you animate your character using both "DOPESHEET" and "TIMELINE", you click the DOPESHEET -> ACTION EDITOR, give your amature action a name, then you go to "NLA EDITOR" -> click the snowflake to add new action

becareful example
let say you only animate 2 bone in the first action, the rest of the bone did not save, meaning say

action 1: bone 1, bone 2
action 2: bone 1, bone 2, bone 3

if i suddenly change bone 3 , bone 4, bone 5 on action 3, the bone 4, bone 5 for action 1 and action 2 will also changed because you never add the saving for them in action 1 and action 2

to import into unity:
1. export your blender to .fbx, then copy the .fbx into your unity folder
2. You can preview the .fbx inside your unity, there are 3 tab,
- model (here you set the size)
- rig (here you set it to legacy because blender is legacy(old))
- animation (here you can preview the animation you like, and set the forever loop)


ok, after trying for hours, the video did not work

so i try the below video instead

it is super super important, that when you use the DOPESHEET->ACTION EDITOR, you need to press "F" button on the right hand side to save it, i dont know why, but if you dont, later when you import into unity, it just wont work

Sunday, September 7, 2014

Ok, So my first ever Iphone games "ROY CROSS BRIDGE" is up

Okay, so after many many years, my first iphone games "ROY CROSS BRIDGE" is up, i make it free, and i did not setup IAD advertisement meaning it will be zero profit

I was just testing the market to see how many download i will get

with 0 advertising and promotion, i got like 250 download in the first 3 days, then it slowly go into zero with a total of 321 download in 18 days

so what is the next step?

well, i guess i will try selling some app for $1 and see if i can even get any sale , LOL