Portfolio : Nyubot

nyubot
Nyubot main Page

 

Description:
Nyubot is an online vending search for Indonesian Ragnarok Online ( idRO ). Made with PHP and Javascript to make it interactive without loading another page , and perl as an engine to gather data from the game.

Openkore was used as data input ( perl modified ) and PHP as back-end, Nyubot is a Ragnarok Online (idRO) game vending searcher and megaphone chat and guild war saver.

Link:
Not Available
Continue reading »

Visual Studio 2012 : Error! No export were found

Visual Studio 2012
Visual Studio 2012

Today, when I open my old project there was this error “No exports were found that match the constraint”, I then search google for this problem and the solution is fairly simple.

This error happen when I installed new unity 5.2.1f, the installer installed visual studio 2015, the problem is solved by clearing Visual Studio Component Model Cache.

Continue reading »

Unity : DrawTextureWithTexCoords Example and Tutorial

A few weeks earlier I was confused in how to use the DrawTextureWithTexCoords, searching with google gave no results, yes there are fews example and perhaps tips, but those are unclear to me.

Fortunatelly after trial and error, I finally understand how this function really works, stick to me for more explanation.

Unity Documentation :

DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend = true);

Position : Rectangle on the screen to draw the texture within.
Texture : Texture to display.
texCoords : How to scale the image when the aspect ratio of it doesn’t fit the aspect ration to be drawn within.
alphablend : Whether to alpha blend the image on to the display (the default). If false, the picture is drawn on the display.

For more simple explanation,

Continue reading »

Unity : blue background when playing the scene

unity_developer

A few days ago, I got stuck in some problem.. it wasn’t so hard, the rendered game and executable unable to show me the background image, it’s just showing blue background and my sprite stuck in the middle.

Googling to find what the problem doesn’t show any results, until I got advice to restart unity… and problem was solved.

It seems unity had a bug that making the background image not showing in render game or executable compiled, the solution is actually simple, just restart the Unity and voila problem solved..

As for the sprite that stuck on center, just by check the root in the sprite solved the problem..

Oh yeah, I’m trying to learn how to use unity and blogging it as a reminder for many problem that may show up.. or just using it to store code library ?

Continue reading »

How to use animation offset in libgdx from texturepacker

While trying some new things after working all days, I encountered something annoying .. when I used texturepacker gui from codeandweb, the packer packs my image into one and use offset to maximize its compression.

This kind of packing is actually good, but it’s a little annoying because we must set the offset in libgdx to actually make the animation position line-up.

Packed by texturepacker
Packed by texturepacker

I browsed through google to find how to actually get the offset and apply it to the animation function in libgdx, but luck not in my side for a whole day … ah, as reminder I used this code to apply rotation from the left bug, because if you used the sprite as it is, you will get the same as the sprite above for animation.

Continue reading »

iLog – New logging feature on opencart

Hai, dah lama banget ga ngepost di blog ini … as you know, saat ini saya sedang sibuk bekerja di salah satu kantor baru bergerak di bidang “online shopping”, tugas di sini antara lain fix website nya dan pengembangan inventory untuk kantor, dan ada tambahan kerjaan untuk nerima client bikin “web application” biar ada kerjaan *sob*

Di kantor ini kita memakai opencart sebagai basic nya, dan kemudian di custom utk toko online / inventory produk, proyek terakhir adalah pembuatan system inventory utk perusahaan dengan memakai opencart, dan kebetulan ini ada satu module yg saya buat untuk merekam tiap kegiatan user ..

Buat file baru dengan nama iLog.php
file location : \system\library\iLog.php

Setelah pembuatan file di atas, kita harus menambahkan beberapa baris kode pada file index.php di folder depan, misalnya untuk admin, maka kita perlu menambahkan di admin\index.php

buka file index.php dan cari baris berikut ( btw ini adalah contoh pada admin, karena inventory tidak membutuhkan catalog pada opencart, jadi hanya isi admin saja yang di butuhkan ..

cari :

tambahkan :

dan tara, jadilah kode untuk merekam kegiatan user, untuk menggunakan nya, bisa dengan menggunakan cara berikut

pada setiap akhir eksekusi database di model ..

apabila ada pertanyaan atau perbaikan, silahkan tinggalkan pesan di kotak komentar 😀

Continue reading »

PHP : Filter String with Array Diff

When you wanted to filter strings through words, you can use array diff to filter known words on string.

Example :

Words = “I want to eat something this morning, but I don’t have any money”

Filter Words = “this”, “but”, “any”

In Php you can use the array diff, first we will separated the words by making it into arrays ..

Continue reading »