[MASUKAN SCRIPT KODE BUKU TAMU ANDA DISINI]
Mau punya buku tamu seperti ini?
Klik di sini

Selasa, 29 Maret 2011

pengertian dan coding create alter drop

Posted by fardi"linkin 18.57, under | No comments

CREATE tabel

Bila Anda membuat tabel baru ada banyak hal yang harus Anda pertimbangkan. Ini termasuk: berapa banyak kolom, nama kolom yang sesuai untuk Anda, yang masing-masing tipe data kolom, dan kolom yang akan (primer) kunci / s. Ini hanya harus dipertimbangkan setelah Anda memiliki rencana basis data dinormalisasi.Setelah Anda siap, maka Anda perlu untuk memberitahu database Anda cara membuat / struktur tabel baru. 
Catatan: Anda harus mendeklarasikan tipe data pada masing-masing dan setiap kolom!
Contoh kode:
 CREATE TABLE buku (
    INT title_id IDENTITAS TIDAK NULL, / / ​​IDENTITAS berarti auto-kenaikan
    judul VARCHAR (150),
    halaman INT,
    PRIMARY KEY (title_id)
 ); 
Line 1: Nama tabel baru = buku. 
Line 2: Nama baru kolom = title_id, kolom hanya dapat berisi sebuah Integer, kolom harus mengandung nilai, nilai selisih kolom otomatis akan. 
Baris 3: Nama baru kolom = judul, kolom dapat berisi berbagai karakter (huruf, angka, karakter khusus), kolom dapat berisi maksimal 150 karakter. 
Line 4: Baru nama kolom = halaman, kolom hanya dapat berisi sebuah Integer. 
Line 5: kunci set Utama untuk title_id kolom =. 
Line 6: Tutup buku perintah SQL CREATE TABLE.
 CREATE TABLE penulis (
    INT author_id IDENTITAS TIDAK NULL, / / ​​IDENTITAS berarti auto-kenaikan
    title_id INT TIDAK NULL,
    penulis VARCHAR (125),
    PRIMARY KEY (author_id)
 ); 
Line 1: Nama tabel baru = penulis. 
Line 2: Nama baru kolom = author_id, kolom hanya dapat berisi sebuah Integer, kolom harus mengandung nilai, nilai kolom akan otomatis kenaikan. 
Baris 3: Nama baru kolom = title_id, kolom hanya dapat berisi sebuah Integer, kolom harus berisi nilai. 
Line 4: Baru nama kolom = penulis, kolom dapat berisi berbagai karakter (huruf, angka, karakter khusus), kolom dapat berisi maksimal 125 karakter. 
Line 5: kunci set Utama untuk author_id kolom =. 
Line 6: Tutup penulis perintah SQL CREATE TABLE.


Data yang berbeda jenis

Ada banyak jenis data yang dapat ditugaskan untuk kolom. Daftar di bawah ini bukanlah daftar lengkap dari semua, melainkan adalah daftar yang paling umum digunakan. Anda mungkin tidak (sampai bekerja pada database yang kompleks) untuk membutuhkan yang lain daripada apa yang tercantum di bawah ini.
INT (ukuran) Integer. Sebuah keseluruhan (tidak ada titik desimal) nomor dalam kisaran (-2147483648) - (2147483647). Ukuran diperbolehkan dapat dideklarasikan di dalam kurung.
DECIMAL (ukuran, d) A DOUBLE disimpan sebagai string, yang memungkinkan untuk titik desimal tetap.Jumlah maksimum digit dapat ditentukan dalam parameter ukuran. Jumlah maksimum digit ke kanan titik desimal ditentukan dalam parameter d.
DATE Sebuah tanggal. Format: YYYY-MM-DD. Rentang yang didukung adalah dari '1000-01-01 'untuk '9999-12-31'.
DATETIME Sebuah kombinasi tanggal dan waktu. Format: HH YYYY-MM-DD: MM: SS. Rentang yang didukung adalah dari '1000-01-01 00:00:00 'to '9999-12-31 23:59:59'
TIMESTAMP Sebuah timestamp. nilai TIMESTAMP disimpan sebagai jumlah detik sejak zaman Unix ('1970-01-01 00:00:00 UTC '). Format: HH YYYY-MM-DD: MM: SS. Rentang yang didukung adalah dari '1970-01-01 00:00:01 'UTC '2038-01-09 03:14:07' UTC. Nilai diperbarui ketika kolom diubah.
WAKTU ada waktu. Format: HH: MM: SS. Rentang yang didukung dari '-838:59:59' untuk '838: 59:59 '.
CHAR () Sebuah karakter string tetap panjang (huruf, angka, karakter khusus) ke maksimal 8.000 karakter.Harus hanya digunakan ketika setiap entri untuk kolom ini akan panjang sama seperti yang lain. Panjang maksimum dapat dinyatakan dalam kurung.
VARCHAR () Sebuah variabel panjang string karakter (huruf, angka, karakter khusus) ke maksimal 8.000 karakter. Harus hanya digunakan ketika setiap entri untuk kolom ini akan bervariasi panjang dari yang lain.Panjang maksimum dapat dinyatakan dalam kurung.
TEKS Variable-panjang karakter string (huruf, angka, karakter khusus). Maksimum 2GB data teks. Untuk digunakan saat VARCHAR tidak menyediakan karakter yang cukup untuk panjang dimaksudkan teks.


Kendala yang berbeda jenis

NOT NULL - didefinisikan dengan data kolom dalam membuat kode tabel 
Kendala NULL TIDAK memberlakukan kolom untuk TIDAK menerima NULL NULL values.The kendala TIDAK memberlakukan lapangan untuk selalu mengandung nilai. Misalnya: 
author_id INT NOT NULL
UNIK - didefinisikan dengan data kolom dalam tabel kode buat. 
Kendala UNIK unik mengidentifikasi setiap record di tabel database, mirip dengan PRIMARY KEY (yang secara otomatis memiliki kendala UNIK diterapkan untuk itu), kecuali meja dapat memiliki kendala UNIK banyak tetapi banyak hanya pernah memiliki satu PRIMARY KEY kendala. Misalnya: 
INT NOT NULL P_Id UNIK
PRIMARY KEY - didefinisikan dengan data kolom dalam tabel kode buat. 
kunci primer harus mengandung nilai-nilai unik. Sebuah kolom kunci primer tidak dapat berisi nilai NULL. Setiap tabel harus memiliki primary key, dan setiap tabel hanya dapat memiliki SATU kunci primer. Misalnya: 
P_Id INT NOT NULL PRIMARY KEY
FOREIGN KEY - didefinisikan dengan data kolom dalam tabel kode buat. 
Referensi kunci asing Primer kunci dalam meja lain. kunci asing hanya dapat berisi nilai sama dengan salah satu nilai dari kunci primer pada tabel itu referensi. Misalnya: 
P_Id INT FOREIGN KEY REFERENSI Orang (P_Id) / / dimana Orang (P_Id) ini nama tabel dan kolom.
PERIKSA - didefinisikan dengan data kolom dalam tabel kode buat. 
Periksa digunakan untuk meletakkan batas pada kisaran data yang dapat dimasukkan ke dalam kolom. Cek Tindak contoh untuk memastikan data untuk P_Id lebih besar dari 0. Misalnya: 
P_Id INT NOT NULL CHECK (P_Id> 0)
DEFAULT-didefinisikan dengan data kolom dalam tabel kode buat. 
Digunakan untuk memasukkan nilai default jika tidak ada nilai lain yang ditentukan. Misalnya: 
Kota VARCHAR (255) DEFAULT 'Sandnes'
Hal ini juga dapat digunakan untuk memasukkan nilai-nilai sistem, dengan menggunakan fungsi seperti GETDATE (). Misalnya: 
OrderDate DATE DEFAULT GETDATE ()


ALTER tabel

Mengganti nama tabel 
ALTER TABLE buku RENAME publikasi; 
'Buku' dimana adalah nama tabel asli dan 'publikasi' adalah nama / baru yang diinginkan.
Mengubah tipe data kolom (harus menyertakan tipe data) 
MENGUBAH ALTER TABLE penulis penulis VARCHAR (150); 
'Di mana' penulis adalah nama tabel, 'penulis' adalah nama kolom dan 'VARCHAR (150)' adalah tipe data baru.
Edit nama kolom (harus menyertakan tipe data) 
ALTER TABLE penulis penulis Ganti AUTHOR_NAME varchar (125); 
'Di mana' penulis adalah nama tabel, 'penulis' adalah nama kolom lama, dan 'AUTHOR_NAME varchar (125)' adalah nama kolom baru dan tipe data.
Hapus kolom 
ALTER TABLE DROP COLUMN publikasi halaman; 
'Publikasi' dimana adalah nama tabel dan 'halaman' adalah kolom untuk menjatuhkan / menghapus.
Memindahkan kolom dalam tabel (harus menyertakan tipe data) 
MENGUBAH ALTER TABLE penulis penulis varchar (125) author_id SETELAH; 
'Penulis' dimana adalah nama tabel, 'penulis varchar (125)' adalah kolom untuk bergerak, dan 'author_id' adalah kolom untuk menempatkan kolom langsung bergerak setelah.
MENGUBAH ALTER TABLE penulis penulis varchar (125) PERTAMA; 
'Penulis' dimana adalah nama tabel dan 'penulis varchar (125)' adalah nama kolom untuk pindah ke depan meja.
Tambah kolom baru (harus menyertakan tipe data) 
publikasi ALTER TABLE ADD waktu TIMESTAMP; 
ALTER TABLE ADD publikasi my_new_column varchar (20); 
publikasi 'di mana' 'adalah nama tabel, dan' waktu TIMESTAMP 'dan' my_new_column varchar (20) 'adalah kolom baru.
Anda juga dapat menentukan posisi yang tepat dari kolom dengan menggunakan SETELAH atau PERTAMA 
ALTER TABLE pengarang ADD my_new_coluumn varchar (125) author_id SETELAH;
Menambahkan kendala UNIK untuk kolom 
Orang ALTER TABLE ADD UNIQUE (P_Id); 
Dimana Orang adalah nama tabel dan (P_Id) adalah nama kolom.
Menambahkan KUNCI UTAMA kendala untuk kolom 
Orang ALTER TABLE ADD PRIMARY KEY (P_Id); 
Dimana Orang adalah nama tabel dan (P_Id) adalah nama kolom.
Menambahkan kendala FOREIGN KEY untuk kolom 
Pesanan ALTER TABLE ADD FOREIGN KEY (P_Id) Orang REFERENSI (P_Id) 
Dimana Pesanan adalah nama tabel, (P_Id) adalah nama kolom untuk kunci asing, dan Orang (P_Id) adalah tabel referensi dan nama kolom.
Menambahkan kendala PERIKSA untuk kolom 
Orang ALTER TABLE ADD PERIKSA (P_Id> 0) 
Dimana Orang adalah tabel dan (P_Id> 0) adalah nama kolom diikuti dengan 'cek', dalam hal ini, P_Id harus lebih besar dari 0.
Menambahkan kendala DEFAULT untuk kolom 
Orang ALTER TABLE ALTER 'Sandnes' KOLOM Kota SET DEFAULT 
Dimana Orang adalah nama tabel, Kota adalah nama kolom dan 'Sandnes' adalah nilai default yang akan dimasukkan.


DROP tabel

Akan ada salah satu dari dua hal yang akan ingin lakukan di sini. Entah benar-benar drop tabel utuh dan semua data, atau hanya menghapus data yang terdapat dalam tabel.
Untuk benar-benar drop tabel menggunakan pernyataan DROP TABLE. Misalnya: 
DROP TABLE nama_tabel 
'Nama_tabel' Di mana adalah nama tabel.
Untuk hanya menghapus data yang terdapat dalam tabel menggunakan pernyataan TABEL TRUNCATE.Misalnya: 
TRUNCATE TABLE nama_tabel 
'Nama_tabel' Di mana adalah nama tabel.

Jadi itu adalah dasar-dasar menggunakan baris perintah SQL untuk membuat tabel baru, update / mengubahnya jika perlu, dan bagaimana memasukkan data ke dalamnya. Pastikan untuk memeriksa SQL kategori othr, terutama tentang cara Query pada database - tidak ada gunanya memiliki satu jika Anda tidak dapat menemukan data anda di dalamnya!

tutorial mengubah kursor bloger

Posted by fardi"linkin 06.05, under | No comments

cara membuat dan mengganti kursor di blog kita

cara membuat dan mengganti kursor di blog kita tidak susah yang kita butuhkan untuk merubah kursor diblog kita dalam hal ini blogspot atau blogger gambar icon yang sudah kita upload di photobucket.com.

Kalian bisa memodifikasi gambar muka kalian untuk di jadikan kursor di blog dengan menjadikannya icon terlebih dahulu dengan masuk klik disini
Lalu upload di photobucket.com icon muka kalian tadi .........................


cara membuat / merubah kursor di blog menjadic muka kita sendiri
berikut langkah-langkahnya
pertama login dengan id kmu di blogger.com
kedua rancangan
masuk ke edit laman
add gadget
pilih html java script
kosongkan judul
lalu copas kekotak kedua
script di bawah ini



<style type="text/css">body {cursor:url("taruh alamat gambar yang ingin di jadikan kursor blog di sini "),default}</style>


jangan lupa di save dan lihat hasil nya

tolong koment nya

bloging its fun

download idm

Posted by fardi"linkin 01.52, under | No comments

Internet Download Manager has NO spyware or adware inside of it
Installation instructions:
  1. Download Internet Download Manager Now
    Free download: 4.01 MB
    Estimated download time: 00:03:57
     
atau di sini untuk mendownload nya ....
 
http://www.ziddu.com/download/14382514/idman605.exe.html

Simple Insert, Select, Edit, Update and Delete

Posted by fardi"linkin 01.22, under | No comments

 Simple Insert, Select, Edit, Update and Delete in Asp.Net GridView control
   
   
Introduction    
This article explains the methods of binding Asp.Net GridView control with simple DataSet or DataTable, and also explains the methods like Insert, Edit, Update and Delete function in the GridView control.    
   
You can see most of the articles and tutorials in many websites teach you the way to bind a GridView control to the database with some Data Source controls such as SQLDataSource, ObjectDataSource, AccessDataSource and even XMLDatasource. But this article focus on the other way, by binding the GridView control to the database with the help of simple DataTable and perform adding of new records to the database from the footer row of the GridView control. And on each row, we are going to manipulate the records by editing, updating, cancelling and deleting functions.

Sample Scenario

For demonstration, we are going to fill an ASP.NET GridView control with data from a database. Let us take a simple Customer Table. This customer table contains 6 columns such as Customer Unique Code, Name of     
    the Customer, Gender, City, State and Customer Type. We are going to add new records to the database and populate it in the GridView control. Then record manipulation (edit, update and delete) will be done in each and every column with the server controls such as TextBox and DropDownList. In these 6 columns, we are not going to display Customer Code, and to edit Customer Name and City columns we are going to provide TextBox, to edit Gender and Customer Type we are going to use DropDownList. Additionally, the values for Gender DropDownList will be filled with static values such as Male and Female, other DropDownList for Customer Type, we will be filled dynamically with the values from the Database.

   
Pre-requisites

Your project or website must be ASP.NET AJAX enabled website. Because we are going to add the GridView in an UpdatePanel. So your GridView control will be look smart without unnecessary postbacks. You need to create a Customer Table with 6 columns for Customer Code[Code], Name[Name], Gender[Gender], City[City], State[State] and Customer Type[Type], with your desired data types. Then create a class file in your App_Code folder and create a Default.aspx along with code-behind file Default.aspx.cs.

   
Step 1. Create Class File ‘CustomersCls.cs’

We need to create a class file to do database manipulations such as select, insert, delete and update data in the Customer Table. So we add a class file as ‘CustomersCls.cs’ in App_Code section. Let us write five methods in the class file as follows
   
public void Insert(string CustomerName, string Gender, string City, string State, string CustomerType)
{
    // Write your own Insert statement blocks
}

public DataTable Fetch()
{
  // Write your own Fetch statement blocks, this method should return a DataTable
}

public DataTable FetchCustomerType()
{
  // Write your own Fetch statement blocks to fetch Customer Type from its master table and this method should return a DataTable
}

public void Update(int CustomerCode, string CustomerName, string Gender, string City,  string CustomerType)
{
  // Write your own Update statement blocks.
}

public void Delete(int CustomerCode)
{
  // Write your own Delete statement blocks.
}
   
Step 2: Make Design File ‘Default.aspx’

In the Default.aspx page, add an UpdatePanel control. Inside the UpdatePanel, add a GridView, set AutoGenerateColumns as False. Change the ShowFooter Flag to True and set the DataKeyNames your column name for Customer Code and Customer Type, in our case it is Code and Type. Then click on the Smart Navigation Tag of the GridView control, choose Add New Column and add 5 BoundField columns with DataField values as Name, Gender, City, State and Type, plus 2 CommandField columns with one for Edit/Update and another for Delete functions. Now your GridView control is ready. But as first step, we need to add some new records into the database. For that we need to place the controls in the Footer row. So we have to convert all these BoundField columns as TemplateField columns. To do this again, click on the Smart Navigation Tag on the GridView choose Edit Columns, the Field’s property window will open. Select column by column from Name to Customer Type, include also Edit column, and select ‘Convert this field into a TemplateField’. Now all the BoundField columns will be converted to TemplateField columns except the Delete column.

   
Column[0] – Name

Right click on the GridView control, select Edit Template, choose column[0] – Name, you can view a label placed in the ItemTemplate section and a TextBox placed in the EditItemTemplate section. Add another Texbox in the FooterTemplate section and name it as txtNewName.

Column[1] - Gender

Now again select Edit Template, choose column[1] - Gender, replace the TextBox with a DropDownList, name it as cmbGender, add Male and Female as their ListItem values. On the Edit DataBindings of the cmbGender, add Eval("Gender") to its selectedvalue. Add another DropDownList in the FooterTemplate section and name it as cmbNewGender.

Column[2] –City & Column[3] - State

Add Texboxes in both column’s FooterTemplate section and name it as txtNewCity and txtNewState respectively.     Click Here
   
Column[4] - Type

In this column’s EditItemTemplate section, replace the TextBox with a DropDownList, name it as cmbType. Also add another DropDownList in the FooterTemplate section and name it as cmbNewType. Both these DropDownList’s we are going to fill with dynamic data from database. So specify both DropDownList’s DataTextField and DataValueField as Type.

Column[5] - Edit

Just add a link button into the FooterTemplate section, specify its CommandName property as ‘AddNew’.

For your persual, we have provided the complete source code of the GridView control below. The State column in our sample is read-only. So you cannot find TextBox for that column in the EditItemTemplate section.    

[[Show full code..]] Click here to view Source Code of the GridView Control [Show full code..]
   
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Code, Type" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowCommand="GridView1_RowCommand" ShowFooter="True" OnRowDeleting="GridView1_RowDeleting">
<Columns>

<asp:TemplateField HeaderText="Name" SortExpression="Name"> <EditItemTemplate>
  <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name") %>'></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
  <asp:TextBox ID="txtNewName" runat="server"></asp:TextBox> </FooterTemplate>
<ItemTemplate>
  <asp:Label ID="Label2" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="Gender">
<EditItemTemplate>
  <asp:DropDownList ID="cmbGender" runat="server" SelectedValue='<%# Eval("Gender") %>'>
    <asp:ListItem Value="Male" Text="Male"></asp:ListItem>
    <asp:ListItem Value="Female" Text="Female"></asp:ListItem>
  </asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
  <asp:Label ID="Label2" runat="server" Text='<%# Eval("Gender") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
  <asp:DropDownList ID="cmbNewGender" runat="server" >
    <asp:ListItem Selected="True" Text="Male" Value="Male"></asp:ListItem>
    <asp:ListItem Text="Female" Value="Female"></asp:ListItem> </asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="City">
<EditItemTemplate>
  <asp:TextBox ID="txtCity" runat="server" Text='<%# Bind("City") %>'></asp:TextBox>
</EditItemTemplate>
<FooterTemplate>
  <asp:TextBox ID="txtNewCity" runat="server" ></asp:TextBox>
</FooterTemplate>
<ItemTemplate>
  <asp:Label ID="Label3" runat="server" Text='<%# Bind("City") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="State" SortExpression="State">
<EditItemTemplate>
  <asp:Label ID="Label1" runat="server" Text='<%# Eval("State") %>'></asp:Label>
</EditItemTemplate>
<FooterTemplate>
  <asp:TextBox ID="txtNewState" runat="server" ></asp:TextBox>
</FooterTemplate>
<ItemTemplate>
  <asp:Label ID="Label4" runat="server" Text='<%# Bind("State") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="Type">
<EditItemTemplate>
  <asp:DropDownList ID="cmbType" runat="server" DataTextField="Type" DataValueField="Type"> </asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
  <asp:Label ID="Label5" runat="server" Text='<%# Eval("Type") %>'></asp:Label>
</ItemTemplate>
<FooterTemplate>
  <asp:DropDownList ID="cmbNewType" runat="server" DataTextField="Type" DataValueField="Type"> </asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>

<asp:TemplateField HeaderText="Edit" ShowHeader="False">
<EditItemTemplate>
  <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update" Text="Update"></asp:LinkButton>
  <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
</EditItemTemplate>
<FooterTemplate>
  <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="AddNew" Text="Add New"></asp:LinkButton>
</FooterTemplate>
<ItemTemplate>
  <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField HeaderText="Delete" ShowDeleteButton="True" ShowHeader="True" />

</Columns>
</asp:GridView>
   


Step 3: Make Code-behind File ‘Default.aspx.cs’

Now we are going to do the code-behind part of this page. Les us explain you event by event coding on each methods. In the code-behind page, create an instance for the Customer class as follows

CustomersCls customer=new CustomersCls();

Then create a private method 'FillCustomerInGrid' to retrieve the existing customer list from the database and bind it to the GridView. The CustomersCls class’s Fetch() method is used and it returns the data to a DataTable. On first stage it will return empty rows. So you cannot see any header, data or even footer rows of the GridView control. You can only see an empty space or you see only the EmptyDataText. So you cannot add any new data from the footer row.

private void FillCustomerInGrid()
{
   DataTable dtCustomer= customer.Fetch();

 if (dtCustomer.Rows.Count>0)
 {
    GridView1.DataSource = dtCustomer;
    GridView1.DataBind();
 }
 else
 {
      dtCustomer.Rows.Add(dtCustomer.NewRow());
      GridView1.DataSource = dtCustomer;
      GridView1.DataBind();

      int TotalColumns = GridView1.Rows[0].Cells.Count;
      GridView1.Rows[0].Cells.Clear();
      GridView1.Rows[0].Cells.Add(new TableCell());
      GridView1.Rows[0].Cells[0].ColumnSpan = TotalColumns;
      GridView1.Rows[0].Cells[0].Text = "No Record Found";
  }
}

In this article, we have provided a workaround to fix this problem. Closely look at the method FillCustomerInGrid, there is a conditional statement to check the rows exists in DataTable or not. Now go to the else part of the if statement, see the block of code we provided there. Simply we have added an empty row to the DataTable. Then bind it to the GridView control. To give a professional look to the GridView control, we do little bit more by providing ColumnSpan and set a Text as "No Record Found", this text will be displayed if the GridView is empty without any rows and you can see both the Header and Footer of the GridView control.

Initialize GridView control

In the page load event, we have to call this FillCustomerInGrid method as follows,

protected void Page_Load(object sender, EventArgs e)
{
  If (!IsPostBack)
  {
     FillCustomerInGrid();
   }
}

Fill DropDownList in GridView with dynamic values

In column[4] - Type, there are two DropDownList controls, one in the EditItemTemplate section (cmbType) and another in FooterTemplate (cmbNewType). We have to fill both these DropDownList controls with some dynamic data. If you look at our CustomersCls class, we have a separate method called FetchCustomerType. In the RowDataBound event of the GridView control insert the following code.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
  if (e.Row.RowType == DataControlRowType.DataRow)
  {
   DropDownList cmbType = (DropDownList)e.Row.FindControl("cmbType");

  if (cmbType != null)
  {
    cmbType.DataSource = customer.FetchCustomerType();
    cmbType.DataBind();
    cmbType.SelectedValue = GridView1.DataKeys[e.Row.RowIndex].Values[1].ToString();
   }
 }

if (e.Row.RowType == DataControlRowType.Footer)
{
    DropDownList cmbNewType = (DropDownList)e.Row.FindControl("cmbNewType");
    cmbNewType.DataSource = customer.FetchCustomerType();
    cmbNewType.DataBind();
 }

}


Previously in this article, we have set the DataKeyNames values as Code, Type. If you see in the above code, we use one of the DataKeyNames value as the SelectedValue for the cmbType control, this is to retain the value of the cmbType in EditMode. The index value of Code is 0 and Type is 1. So we use as follows

cmbType.SelectedValue = GridView1.DataKeys[e.Row.RowIndex].Values[1].ToString();

So far we have initialized the GridView control with the datatable and also make some values to be filled in the Footer DropDownList cmbNewType. Run the application, you can see the GridView only with the Footer row and data in the cmbNewType control. Let us start to code for adding new records into the database when we click ‘Add New’ linkbutton.

Add New Records from GridView control

Create an event for the GridView’s RowCommand and add the following code in it.

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
  if (e.CommandName.Equals("AddNew"))
  {
   TextBox txtNewName=(TextBox)GridView1.FooterRow.FindControl("txtNewName");
   DropDownList cmbNewGender = (DropDownList)GridView1.FooterRow.FindControl("cmbNewGender");
   TextBox txtNewCity = (TextBox)GridView1.FooterRow.FindControl("txtNewCity");
   TextBox txtNewState = (TextBox)GridView1.FooterRow.FindControl("txtNewState");
   DropDownList cmbNewType = (DropDownList)GridView1.FooterRow.FindControl("cmbNewType");

   customer.Insert(txtNewName.Text, cmbNewGender.SelectedValue, txtNewCity.Text, txtNewState.Text, cmbNewType.SelectedValue) ;
      FillCustomerInGrid();
  }
}

In the above code, we are declaring and finding the controls in the GridView’s footer section and use the CustomersCls class insert method to add the new data into the database. Then we are calling the FillCustomerInGrid method to fill the GridView control with the newly inserted values. Now save everything and run your application. Put some test data in the Textboxes and select some values in the DropDownLists and click on the Add New linkbutton. You can see data inserted into the database and listed in the GridView control.
   
Edit and Update in GridView

In the RowEditing event of the GridView, add the following lines of code. This will switch a specific row of the GridView to Edit Mode.

   
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
  GridView1.EditIndex = e.NewEditIndex;
  FillCustomerInGrid();
}

After the GridView swithes to Edit Mode, you can view the TextBoxes and DropDownlList controls along with Update and Cancel linkbuttons in the Edit mode. To cancel this action, add the following two lines of code in the GridView’s RowCancelingEdit event.

protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
  GridView1.EditIndex = -1;
   FillCustomerInGrid();
}
   
You can update the data to the customer table, by adding the following lines of code in the GridView’s RowUpdating event.

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
  TextBox txtName = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtName");
  DropDownList cmbGender = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("cmbGender");
  TextBox txtCity = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtCity");
  DropDownList cmbType = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("cmbType");

 customer.Update(GridView1.DataKeys[e.RowIndex].Values[0].ToString(),txtName.Text, cmbGender.SelectedValue,txtCity.Text, cmbType.SelectedValue);
  GridView1.EditIndex = -1;
  FillCustomerInGrid();
}

The above block of codes in RowUpdating event, finds the control in the GridView, takes those values in pass it to the CustomersCls class Update method. The first parameter GridView1.DataKeys[e.RowIndex].Values[0].ToString() will return the Code of the Customer. That is the unique code for each customer to perform update function.

Delete in GridView

To delete a row from the customer table, add the following lines of code in the GridView’s RowDeleting event. Here you have to pass the unique Code of customer which is in GridView1.DataKeys[e.RowIndex].Values[0].ToString() to the Delete method of the CustomersCls class.

protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
  customer.Delete(GridView1.DataKeys[e.RowIndex].Values[0].ToString());
  FillCustomerInGrid();
}






Here, I will be showing how to select, insert/add, update/edit and delete data in the Magento way. It’s about implementing the CRUD (Create Read Update Delete) concept. :)
Suppose, I have a database table named ‘news‘ with the following fields:-

id : int, auto increment, primary key
title : varchar
content : text
status : 0 or 1
Suppose, I have a module named ‘mynews‘. Here follows the code to select, insert, update, and delete data from the ‘news‘ table.
INSERT DATA
$data contains array of data to be inserted. The key of the array should be the database table’s field name and the value should be the value to be inserted.
$data = array('title'=>'hello there','content'=>'how are you? i am fine over here.','status'=>1);
$model = Mage::getModel('mynews/mynews')->setData($data);
try {
        $insertId = $model->save()->getId();
        echo "Data successfully inserted. Insert ID: ".$insertId;
    } catch (Exception $e){
     echo $e->getMessage();
}
SELECT DATA
$item->getData() prints array of data from ‘news’ table.
$item->getTitle() prints the only the title field.
Similarly, to print content, we need to write $item->getContent().
$model = Mage::getModel('mynews/mynews');
$collection = $model->getCollection();
foreach($collection as $item){
    print_r($item->getData());
    print_r($item->getTitle());
}
UPDATE DATA
$id is the database table row id to be updated.
$data contains array of data to be updated. The key of the array should be the database table’s field name and the value should be the value to be updated.
// $id = $this->getRequest()->getParam('id');
$id = 2;
$data = array('title'=>'hello test','content'=>'test how are you?','status'=>0);
$model = Mage::getModel('mynews/mynews')->load($id)->addData($data);
try {
        $model->setId($id)->save();
        echo "Data updated successfully.";
 
    } catch (Exception $e){
        echo $e->getMessage();
}
DELETE DATA
$id is the database table row id to be deleted.
// $id = $this->getRequest()->getParam('id');
$id = 3;
$model = Mage::getModel('mynews/mynews');
try {
        $model->setId($id)->delete();
        echo "Data deleted successfully.";
 
    } catch (Exception $e){
        echo $e->getMessage();
}

Senin, 28 Maret 2011

command & conquer adlah permainan pertama game yang menembak orang

Posted by fardi"linkin 07.04, under | No comments

Command & Conquer

Command & Conquer (sering disingkat sebagai C&C atau CNC) adalah permainan video waralaba, sebagian besar bergaya real-time strategy juga berdasar sebuah permainan menembak orang pertama atau first-person shooter pada awalnya. Serial Command & Conquer pertama kali dikembangkan oleh Westwood Studios antara tahun 1995 – 2003, selanjutnya pengembangannya diambil alih oleh Electronic Arts dengan likuidasi Westwood Studios di tahun 2003.
Seri pertama diluncurkan secara global pada 31 Agustus 1995 dan dinamai dengan mudah yaitu Command & Conquer. Seri pertama ini berdasar pada permainan strategi yang dikembangkan sebelumnya oleh Dune 2. Seri ini pertama kali disegmentasikan untuk audiens Anglo-Saxon, yang kemudian diterjemahkan ke berbagai bahasa lain termasuk Jerman, Perancis, Spanyol, Korea dan Cina. Seri ini utamanya dikembangkan untuk komputer personal yang menjalankan sistem operasi Microsoft Windows, walaupun beberapa judul juga mempunyai berbagai versi konsol permainan video dan Apple Macintosh. Serial permainan ini dikembangkan pada berbagai versi dimulai dengan Tiberium Wars yang juga dikembangkan untuk Xbox 360. Permainan lepasan lain, Command & Conquer: Red Alert 3, juga dikembangkan untuk PC, Xbox 360, dan PlayStation 3.
Pada tahun 1999, Pemasar Amerika Serikat dan pengembang permainanan, Electronic Arts membeli Westwood Studios. Westwood ditutup pada 2003 dan digabung ke EA Los Angeles yang menjadi pusat pengembang permainan serial Command and Conquer ke depan. Beberapa pengembang asli Westwood bertahan di EA Los Angeles, tetapi sebagian besar membentuk Petroglyph Games.
Pada Juli 2009, Waralaba Command & Conquer terdiri dari delapan permainan dan sepuluh paket ekspansi (‘’expansion packs’’) dengan tingkat penjualan lebih dari 30 juta unit di seluruh dunia.

 
Langsung ke: navigasi, cari
Command & Conquer
Command & Conquer-Logo.png
Logo serial di Command & Conquer 4
Pengembang Westwood Studios
EA Los Angeles
Penerbit Virgin Interactive
Nintendo
Sega
Electronic Arts
Platform Apple Macintosh, Nintendo 64, PlayStation, PC (MS-DOS, Windows), Sega Saturn, PlayStation Portable, [1] Mac OS X, Xbox 360, PlayStation 3
Rilis pertama Command & Conquer
1995
Rilis terbaru Command & Conquer Red Alert 3: Uprising
2009
Situs resmi www.commandandconquer.com










 

 

 

 

Unsur umum permainan

Permainan Command & Conquer bergenre strategi, dengan pengecualian permainan first person shooter Command & Conquer: Renegade. Sebuah persamaan inti dari permainan ini adalah ‘’campaign's’’ dari golongan yang berbeda yang mempunyai satu garis cerita yang terpusat. Permainan ini juga menawarkan opsi permainan multiplayer, melalui koneksi LAN dan modem. Semua seri permainan ini juga menawarkan permainan online.
Semua permainan Command & Conquer kecuali Command & Conquer: Generals dan ekspansinya mempunyai fitur "side bar" untuk navigasi dan kontrol yang berlawanan dengan permainan yang sama dimana bar kontrol terdapat di bagian bawah layar.
Bermain Command & Conquer biasanya pemain harus membangun sebuah markas dan mendapatkan sumber daya, untuk mendanai produksi dari berbagai alat oerang untuk menyerang dan menaklukan markas musuh. Semua struktur dari setiap faksi dipilih dan dibangun oleh pemain di tempat pembuatan konstruksi yang disebut dengan "construction yard" – yang biasanya diawali dengan kendaraan yang besar yang mampu mengubah dirinya menjadi “construction yards”. Ketika sebuah construction yard telah seleasi membangun bangunan baru, pemain biasa memilih sebuah tempat didekat struktur yang sudah ada untuk kemudian dibangun, dimana bagian-bagian bangunan dengan cepat dirakit dengan caranya sendiri-sendiri. Di semua seri permainan kecuali Command & Conquer: Renegade dan Command & Conquer: Generals dan ekspansinya, Zero Hour, dana didapatkan dari unit khusus yang mengambil dan membawa (Tiberium untuk seri permainan “Tiberian” atau Ore atau permata yang berharga pada seri “Red Alert”) ke sebuah struktur “penyulingan”. Yang kemudian akan mengkonversikan bahasn mentah menjadi sumber daya yang dapat digunakan, diekspresikan sebagai kredit.
Semua faksi mempunyai struktur yang mempunyai fungsi yang sama pada umumnya. Tetapi, mereka akan disesuaikan sesuai dengan tema dari faksi tersebut dan mempunyai bentuk bangunan yang berbeda. Unit dapat diklasifikasikan menjadi infantry, kendaraan dan pesawat, yang mempunyai subdivisi masing-masing. Efektifitas dari sebuah unit melawan musuh mengikuti prinsip batu-kertas-gunting yang ditemukan di hampir sebagian besar permainan real-strategy.
Setiap tipe struktur di dalam seri berperan sebagai “pohon teknologi”, dan unit tambahan, struktur dan kemampuan khusus faksi akan tersedia ketika struktur baru dibangun dan ditempatkan. Akses ke unit lebih kuat akan sementara diblok jika struktur yang dibutuhkan untuk membuat unit tersebut hancur, atau struktur tersebut tidak didukung oleh listrik yang cukup oleh struktur pendukukung “pembangkit listrik”.

Multiplayer

Setiap permainan Command & Conquer mempunyai kemampuan untuk bermain multiplayes melawan orang lain. Setiap kotak dari Command & Conquer terdapat dua kopi CD dari permainan, secara cepat membuat permainan multiplayer menjadi mungkin hanya dengan sekali pembelian permainan saja. Iklan Westwood Studios pada paket game mempunyai slogan "Sebuah kopi kedua, jadi kamu dan temanmu dapat saling menghancurkan." Ini menghasilkan Command & Conquer menjadi permainan RTS pertama yang mempunyai fitur permainan online [2], dan ini akan berhubungan dengan factor kesuksesan Command & Conquer.[3] Semua seri permainan sampai Command & Conquer: Red Alert 2 juga mempunyai dua CD dengan alasan ini, tetapi permainan selanjutnya tidak ada dua CD lagi. Command & Conquer: Red Alert 3 mempunyai catatan menjadi permainan RTS pertama yang memungkinkan “Campaigns” dimainkan kooperatif secara online; permainan lain hanya mendukung pemain solo dalam campaignnya. Tetapi hal itu hanya dimungkinkan melalui server EA saja dan tidak bisa melalui LAN Permainan yang diproduksi oleh Westwood menggunakan sistem Westwood Online untuk memfasilitasi permainan multiplayer melalui internet; “Renegade” juga didukung oleh Gamespy. Permainan yang dikembangkan oleh EA berlanjut menggunakan Gamespy, server Westwood Online dimatikan agar dapat menggunakan server milik EA sendiri.

Permainan

Seri Tiberian

Command & Conquer, dirilis pada 31 Agustus 1995, adalah permainan pertama dalam seri ini dan secara luas dikenal sebagai judul yang mendefinisikan dan memopulerkan genre real-time strategy.[2][4][5][6][7][3] Command & Conquer memperkenalkan faksi Global Defense Initiative(GDI) dan Brotherhood of Nod. Command & Conquer diterima dengan baik dan secara luas dipuji dan dikritik: "Command & Conquer is one of the finest, most brilliantly-designed computer games I have ever seen" menurut pengulas GameSpot Chris Hudak. Command & Conquer mendapatkan 94% skor agregat dari Metacritic[8] dengan penerimaan yang kurang baik dari ekspansinya Covert Operations yang mendapatkan skor agregat 72% setelah rilis tahun 1996.[9]
Command & Conquer: Tiberian Sun, dirilis pada 27 Agustus 1999, mengambil setting waktu 30 tahun setelah permainan pendahulunya. Sementara plot cerita Command & Conquer' berpusat pada keadaan politik dunia kiasan. Tiberian Sun mengubah hal tersebut menjadi lebih bertema Fiksi ilmiah. Pada tahun 1998 Westwood Studios, pengembang dari Tiberian Sun diakusisi oleh Electronic Arts, tetapi EA tidak secara langsung ikut serta dalam pengembangan seri tersebut. Dibandingkan dengan pendahulunya, Tiberian Sun sangat mengandalkan pada teknologi fiksi ilmiah, dan mengenalkan sebuah mesin permainan isometric baru yang mempunyai fitur tingkat permukaan tanah yang bervariasi untuk memberikan lingkungan 3D yang realistis.
Full motion videonya juga dinaskah secara berbeda; sementara potongan adegan dari Command & Conquer dan Red Alert difilmkan dari sudut pandang orang pertama, Tiberian Sun menggunakan teknik perekaman secara tradisional untuk FMVnya menampilkan aktor terkenal Hollywood seperti James Earl Jones dari trilogi Star Wars dan Michael Biehn dari Terminator dan Aliens.
Tiberian Sun tidak diterima secara baik seperti Command & Conquer dengan agregat skor 80% dan 73% untuk judul tersebut dan ekspansinya, Command & Conquer Tiberian Sun: Firestorm Command & Conquer: Renegade, dirilis pada 26 Februari 2002 dan mengambil keadaan pada hari terakhir even Command & Conquer dan permainan Command & Conquer terakhir yang dibuat oleh Westwood Studios sebelum likuidasi tahun 2003. Tidak seperti permainan lain dalam seri, Permainan seri Renegade adalah first person shooter[10] memberi pemain kesempatan untuk melihat dunia Command & Conquer dari sudut pandang orang pertama. Walaupun mendapat ulasan yang rata-rata saja, dengan agregat skor 75% pada Game Rankings dan Metacritic, Renegade dipuji karena fitur onlinenya: GameSpy memberikan penghargaan pada '"Renegade tahun 2002 dengan penghargaan "Wish it had been better", menyalahkan mode pemain tunggalnya tetapi mengatakan bahwa "C&C: Renegade's multiplayer was innovative and fun".[11] Banyak pengluas sangat menyukai fitur onlinenya karena dapat mendorong kerjasama tim dan penyerangan terkoordinasi tidak seperti permainan first-person shooters lain.[12]
Command & Conquer 3: Tiberium Wars, dirilis pada 29 Maret 2007 kembali pada dasar seri permainan ini yaitu real-time strategy. Sebagai sekuel langsung dari Tiberian Sun, Tiberium Wars mengambil keadaan kira-kira 17 tahun setelah peristiwa Tiberian Sun dan memperkenalkan faksi ketiga yaitu Scrin. Sekuel ini dipuji dan diharapkan oleh penggemar seri ini dan mendapat skor agregat 85% dari Game Rankings dan Metacritic. PC Gamer U.S. memberikan status "Editor's Choice" pada skor 90%, menyatakan bahwa "One of the greatest RTS franchises of all time returns to glory"(salah satu waralaba RTS sepanjang masa telah Berjaya kembali) , PC Gamer Swedia memberikan skor 81%, sementara PC Gamer Inggris memberikan skor 82%.
Tidak lama setelah rilis Tiberian Wars sebuah paket ekspansinya , Kane's Wrath diumumkan. Dirilis pada 24 Maret 2008, Kane's Wrath membatasi pemain pada 1 faksi saja yang dapat dimainkan, yaiu faksi Brotherhood of Nod. Penerimaaan secara umum positif dengan mendapat skor agregat 77%.

Seri Red Alert

Command & Conquer: Red Alert, dirilis pada 31 Oktober 1996, dan bertempat pada dunia alternative tahun 1950an dan asalnya dibuat sebagai prekuel dari Command & Conquer[13] membuat Red Alert sebagai prolog dari keseluruhan seri permainan “Tiberium”. Sejak itu Louis Castle mengatakan bahwa menghubungkan seri Red Alert dengan Tiberium adalah “eksperimen yang gagal”. Red Alert mengenalkan Allies / Sekutu dan Soviets / Uni Soviet sebagai faksi saingannya dan dianalogikan sebagai NATO dan Blok Soviet dalam Perang Dingin. Permainan ini diterima dengan baik oleh pengkritik dan mendapat skor rata-rata tertinggi dari permainan Command & Conquer lain dan mendapat skor lebih dari 90% dari Game Rankings dan Metacritic. Tidak seperti dua judul paket ekspansinya, Red Alert: Counterstrike dan Red Alert: The Aftermath yang kedua mendapat ulasan dibawah rata-rata dengan mendapat skor masing-masing 63% dan 70%. Sebelum dirilis ulang sebagai freeware pada 31 Agustus 2008 Electronic Arts. Command & Conquer: Red Alert terjual sebanyak lebih dari 3 juta kopi. [14]
Dengan rilis dari Command & Conquer: Red Alert 2 pada 23 Oktober 2000, permainan ini kurang mempunyai referensi seri Tiberian, Hubungan yang dibuat di seri pertama Red Alert menjadi tidak jelas. Opini pada apakah even perjalanan waktu membentuk kelanjutan yang terpisah atau hanya petualangan lain pada era “Tiberian” terpisah. Tetapi, hal ini dinyatakan secara implisit oleh pencipta asli seri ini, yang saat ini bekerja pada Petroglyph Games, bahwa Red Alert 2 mengambil tempat pada sebuah dunia paralel yang terjadi sebagai hasil dari eksperimen perjalanan waktu. [15] Red Alert 2 diterima kembali cukup positif dengan skor agregat 86% dari Game Rankings.
Sebuah paket ekspansi Red Alert 2, Command & Conquer Red Alert 2: Yuri's Revenge dirilis pada 10 Oktober 2001 dengan mendapat ulasan positif yang banyak. GameRankings melaporkan skor rata-rata 85% berdasar pada 31 ulasan.[16] membuat Yuri's Revenge menjadi paket ekspansi yang paling diterima dari keseluruhan seri Command & Conquer.
Command & Conquer: Red Alert 3, dirilis pada 28 Oktober 2008, adalah kelanjutan dari cerita Red Alert 2, tetapi seri kelanjutan ini lebih “ringan” dimainkan dari Command & Conquer. Red Alert 2 mempunayi fitur Invasi Soviet pada Amerika Utara dengan tank, wajib militer, kapal perang besar, dan lain-lain; ekspansinya, Yuri's Revenge, meningkatkan masalah sampai pada UFO dan komunis di Bulan. Produser Eksekutif Chris Corry menyatakan dalam wawancara pra-rilis bahwa Red Alert 3 akan lebih jauh dibedakan satu faksi dengan yang lain. [17] Pendekatan ini terlihat populer dengan Red Alert 3 sehingga mendapatkan skor agregat 82% dari Metacritic. Sebuah paket ekspansi yang berdiri sendiri untuk Red Alert 3, Command & Conquer Red Alert 3: Uprising dirilis pada 12 Maret 2009, sangat sedikit ulasan untuk ini dengan mendapat skor rata-rata 64% dari Metacritic.

Seri Generals

Command & Conquer: Generals, dirilis pada 10 Februari 2003, tidak seperti pendahulunya garis cerita Generals sangat berbeda disbanding dengan seri permainan Command & Conquer lain. Generals bertempat pada waktu dekat masa depan dan menghadirkan Amerika Serikat, Cina dan organisasi teroris fiksi: Global Liberation Army. Setelah rilisnya, Generals diterima secara umum positif. Berdasarkan 34 ulasan, Metacritic memberi skor 84/100[18] yang mana termasuk sebuah skor dari IGN 9.3/10.[19] Generals juga menerima penghargaan E3 2002 Game Critics Awards “Best Strategy Game award”.[20] Satu ulasan memperhatikan bahwa Generals adalah permainan Command & Conquer real-time strategy pertama yang tidak memasukkan potongan adengan full-motion video untuk menceritakan cerita dan hal ini berangkat pada antar-mukanya yang unik dan mekanisasi bangunan basis yang mempunyai karakteristik semua judul C&C RTS sebelumnya.[21] Generals menggunakan mesin "SAGE" ( atau Strategy Action Game Engine) dan permainan pertama Command & Conquer real-time strategy yang tiga dimensi penuh.
Sebuah paket ekspansi Generals, Command & Conquer: Generals - Zero Hour, dirilis pada 22 September 2003, pendalaman dari garis cerita Generals. Tidak seperti Generals, Fitur Zero Hour mengembalikan full motion videos pada seri. Zero Hour mendapatkan sambutan yang sama seperti Generals dengan skor agregat 85% dan 84% dari Game Rankings dan Metacritic.

Pengembangan

Studio

Waralaba Command & Conquer telah diproduksi oleh tiga studio yang berbeda, Berikut adalah diurutkan berdasarkan tahun:
Westwood Studios (1992–2002)
EA Pacific (nama lain Westwood Pacific) (2000–2003)
EA Los Angeles (2003—)

 Music

Sebagian besar musik untuk seri permainan ini, dikomposisikan dan diproduksi oleh mantan sutradara suara Westwood Studios dan komponis musik permainan video Frank Klepacki pada awal permainan, dan tugas mengkomposisi diambil alih oleh pihak lain karena likuidasi Westwood Studios pada tahun 2003. Klepacki kembali pada seri tahun 2008 tetapi untuk membantu soundtrack Red Alert 3.
Musik dari C&C diterima secara positif oleh para pengkritik, walaupun pujian lebih tinggi diberikan pada awal-awal permainan. Musik awal Command & Conquer: Red Alert dikomposisikan oleh Frank Klepacki dan dipilih berdasarkan voting menjadi soundtrack permainan video tahun 1996 oleh PC Gamer dan Majalah Gameslice.[22] Diantara berbagai lagunya, lagunya yang paling terkenal berasal dari seri Red Alert, berjudul "Hell March", dengan aksen dari permainan dengan diiringi gitar elektrik, suara derap kaki barisan orang, nyanyian dramatis synthesizers. Yang awalnya diperuntukkan untuk tema faksi Brotherhood of Nod di paket ekspansi Covert Operations menjadi tema permainan original Command & Conquer 1995,[23] Lagu “Hell March” ini malahan akhirnya didaftarkan sebagai lagu tema seri Red Alert, dan sebuah versi kedua "Hell March" secara spesifik dibuat untuk Command & Conquer: Red Alert 2.
After C&C came out we wasted no time kicking out Covert Ops. I wrote some more ambient style themes they asked me for, and then I began tinkering with this heavy metal song that I was trying to gear towards Nod for the next big C&C game. Brett Sperry came in my office and said "You got anything I can hear for the new C&C?" I played it for him. He said "What's the name of this one?" I said "Hell March." He said "That's the signature song for our next game."[24].

Sambutan dan warisan

Seri Command & Conquer telah secara komersial sukses dengan lebih dari 30 juta kopi terjual tahun 2009. [50] Permainan dalam seri ini hamper konsisten mendapatkan skor yang tinggi pada ulasan di situs Game Rankings dan Metacritic, yang mengumpulkan data dari berbagai macam situs web ulasan. Sebagaimana ditulis dalam tabel, Permainan yang paling tinggi mendapat nilai adalah Command & Conquer dengan skor 94% dari Metacritic. Permainan paling tinggi yang mendapat nilai pada dua situs web adalah Command & Conquer: Red Alert dengan rata-rata lebih dari 90%. Sebagai seri keseluruhan, permainan Command & Conquermendapat nilai rata-rata kira-kira 80% termasuk paket ekspansi dan kira-kira 84% jika paket ekspansi tidak dihitung.
Riwayat panjang Command & Conquer’s menghasilkan penghargaan Guinness World Records, yaitu 6 rekor dunia dalam Guinness World Records: Gamer's Edition 2008. Rekor ini termasuk "Penjualan seri RTS terbesar ", "Jumlah Platform terbanyak untuk sebuah RTS ", dan "Aktor terlama dalam peran permainan video" untuk Joe Kucan, yang berperan sebagai Kane selama 14 tahun.

Referensi

  1. ^ Command & Conquer (PSP) at IGN
  2. ^ a b Paul Mallinson (2002-05-31). "Games that changed the world: Command & Conquer". CVG magazine. http://www.computerandvideogames.com/article.php?id=49038. Diakses pada 22 Desember 2006. 
  3. ^ a b Will Porter. "Command & Conquer - Origins". Computerandvideogames staff. http://www.computerandvideogames.com/article.php?id=183584&skip=yes. Diakses pada 29 Mei 2008. 
  4. ^ "Command & Conquer". Metracritic. http://www.metacritic.com/games/platforms/pc/commandandconquer?q=Command%20&%20Conquer. Diakses pada 25 April 2007. 
  5. ^ Dan Adams (2006-04-07). "The State of the RTS". IGN. http://pc.ign.com/articles/700/700747p1.html. Diakses pada 22 Mei 2008. 
  6. ^ Bruce Geryk. "A History of Real-Time Stategy Games". GameSpot. http://www.gamespot.com/gamespot/features/all/real_time/p3_02.html. Diakses pada 22 Mei 2008. 
  7. ^ Mark H. Walker. "Strategy Gaming: Part II". GameSpy. http://archive.gamespy.com/articles/february02/strategy02/. Diakses pada 22 Mei 2008. 
  8. ^ a b "Command & Conquer". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquer?q=Command%20&%20Conquer. Diakses pada 8 Agustus 2009. 
  9. ^ a b "Command & Conquer". Game Rankings. http://www.gamerankings.com/pc/196957-command-and-conquer/index.html. Diakses pada 8 Agustus 2009. 
  10. ^ "Command and conquer:Renegade, on IGN". http://pc.ign.com/objects/013/013180.html. 
  11. ^ "GameSpy's Game of the year awards 2002". GameSpy. 27 Maret 2011. http://archive.gamespy.com/goty2002/pc/index16.shtml. Diakses pada 8 Agustus 2009. 
  12. ^ "Game Over Online Magazine - Command & Conquer: Renegade". Game Over Online Magazine. 9 April 2002. http://www.game-over.net/reviews.php?id=712&page=reviews. Diakses pada 12 Agustus 2009. 
  13. ^ Westwood Studios (1997-10-24). "Westwood Studios Official Command & Conquer: Red Alert FAQ List". Westwood Studios. ftp://ftp.westwood.com/pub/redalert/info/RAFAQ19.TXT. Diakses pada 23 April 2007. 
  14. ^ "GameSpy Red Alert 2". GameSpy. http://planetcnc.gamespy.com/redalert2/. Diakses pada 8 Agustus 2009. 
  15. ^ Adam Isgreen (2006-12-18). "C&C Timeline (ii)". Petroglyph Games. http://www.petroglyphgames.com/forums/index.php?showtopic=1455&st=0&p=20748&#entry20748. Diakses pada 23 Agustus 2007. 
  16. ^ http://www.gamerankings.com/htmlpages2/476890.asp
  17. ^ Fordham, A: "PC PowerPlay #150", page 31. Next Publishing, 2008.
  18. ^ [1]
  19. ^ [2]
  20. ^ "2002 Game Critics Awards". GameCriticsAwards.com. http://www.gamecriticsawards.com/2002winners.html. Diakses pada 15 Agustus 2009. 
  21. ^ The Armchair Empire - PC Reviews: Command and Conquer - Generals Score: 7.9 / 10 - Omni (June 8, 2003)
  22. ^ Frank Klepacki. "COMMENTARY: Behind the Red Alert Soundtrack". frankklepacki.com. http://www.frankklepacki.com. Diakses pada 27 Juli 2006. 
  23. ^ Frank Klepacki. "COMMENTARY: Behind the C&C Soundtrack". frankklepacki.com. http://www.frankklepacki.com/. Diakses pada 27 Juli 2006. 
  24. ^ Klepacki, Frank (July 27th 2009). "Frank Klepacki: Behind the music of the first command & conquer". FaceBook.com. http://www.facebook.com/note.php?note_id=119522869602. Diakses pada 8 Agustus 2009. 
  25. ^ a b "Command & Conquer: The covert operations". Game Rankings. http://www.gamerankings.com/pc/29434-command-and-conquer-the-covert-operations/index.html. Diakses pada 8 Agustus 2009. 
  26. ^ "Command & Conquer: Tiberian Sun". Game Rankings. http://www.gamerankings.com/pc/196969-command-and-conquer-tiberian-sun/index.html. Diakses pada 8 Agustus 2009. 
  27. ^ "Command & Conquer: Tiberian Sun Firestorm". Game Rankings. http://www.gamerankings.com/pc/196970-command-and-conquer-tiberian-sun-firestorm/index.html. Diakses pada 8 Agustus 2009. 
  28. ^ "Command & Conquer: Renegade". Game Rankings. http://www.gamerankings.com/pc/913801-command-and-conquer-renegade/index.html. Diakses pada 8 Agustus 2009. 
  29. ^ "Command & Conquer: Renegade". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquerrenegade. Diakses pada 8 Agustus 2009. 
  30. ^ "Command & Conquer 3: Tiberium Wars". Game Rankings. http://www.gamerankings.com/pc/932602-command-and-conquer-3-tiberium-wars/index.html. Diakses pada 8 Agustus 2009. 
  31. ^ "Command & Conquer 3: Tiberium Wars". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquer3tiberiumwars. Diakses pada 8 Agustus 2009. 
  32. ^ "Command & Conquer 3: Kane's Wrath". Game Rankings. http://www.gamerankings.com/pc/942784-command-and-conquer-3-kanes-wrath/index.html. Diakses pada 8 Agustus 2009. 
  33. ^ "Command & Conquer 3: Kane's Wrath". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquer3kaneswrath. Diakses pada 8 Agustus 2009. 
  34. ^ "Command & Conquer: Red Alert". Game Rankings. http://www.gamerankings.com/pc/196962-command-and-conquer-red-alert/index.html. Diakses pada 8 Agustus 2009. 
  35. ^ "Command & Conquer". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquerredalert. Diakses pada 8 Agustus 2009. 
  36. ^ "Command & Conquer: Red Alert Counterstrike". Game Rankings. http://www.gamerankings.com/pc/196963-command-and-conquer-red-alert-counterstrike/index.html. Diakses pada 8 Agustus 2009. 
  37. ^ "Command & Conquer: Red Alert The Aftermath". Game Rankings. http://www.gamerankings.com/pc/196964-command-and-conquer-red-alert-the-aftermath/index.html. Diakses pada 8 Agustus 2009. 
  38. ^ "Command & Conquer: Red Alert 2". Game Rankings. http://www.gamerankings.com/pc/914165-command-and-conquer-red-alert-2/index.html. Diakses pada 8 Agustus 2009. 
  39. ^ "Command & Conquer: Red Alert 2". Metacritic. http://www.metacritic.com/games/platforms/pc/commandconquerredalert2. Diakses pada 8 Agustus 2009. 
  40. ^ "Command & Conquer: Red Alert 2 Yuri's Revenge". Game Rankings. http://www.gamerankings.com/pc/476890-command-and-conquer-red-alert-2-yuris-revenge/index.html. Diakses pada 8 Agustus 2009. 
  41. ^ "Command & Conquer: Red Alert 2 Yuri's Revenge". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconqueryuris. Diakses pada 8 Agustus 2009. 
  42. ^ "Command & Conquer: Red Alert 3". Game Rankings. http://www.gamerankings.com/pc/944928-command-and-conquer-red-alert-3/index.html. Diakses pada 8 Agustus 2009. 
  43. ^ "Command & Conquer: Red Alert 3". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquerredalert3. Diakses pada 8 Agustus 2009. 
  44. ^ "Command & Conquer: Red Alert 3 Uprising". Game Rankings. http://www.gamerankings.com/pc/955727-command-and-conquer-red-alert-3-uprising/index.html. Diakses pada 8 Agustus 2009. 
  45. ^ "Command & Conquer: Red Alert 3 Uprising". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquerredalert3uprising. Diakses pada 8 Agustus 2009. 
  46. ^ "Command & Conquer: Generals". Game Rankings. http://www.gamerankings.com/pc/556767-command-and-conquer-generals/index.html. Diakses pada 8 Agustus 2009. 
  47. ^ "Command & Conquer: Generals". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquergenerals. Diakses pada 8 Agustus 2009. 
  48. ^ "Command & Conquer: Generals - Zero Hour". Game Rankings. http://www.gamerankings.com/pc/917865-command-and-conquer-generals-zero-hour/index.html. Diakses pada 8 Agustus 2009. 
  49. ^ "Command & Conquer: Generals - Zero Hour". Metacritic. http://www.metacritic.com/games/platforms/pc/commandandconquergeneralszerohour. Diakses pada 8 Agustus 2009. 
  50. ^ Electronic Arts (2009-07-09). EA Los Angeles Announces the Development of Command & Conquer 4. Rilis pers. Diakses pada 2009-07-11.
Catatan

Pranala luar

Situs resmi

Lainnya

For a list of fansites, see the Command & Conquer entry at the Open Directory Project.

**** Jangan Lupa Commentnya By Fardi ****