Translate

Saturday, March 29, 2014

Sims 3- MAGE Club

For the next household, we have folks that represent my club. For their safety, I won't use their full names in this blog. We have the Club President, and there we have all the clubmates. This isn't even all the members, so I'll have to make another household for the other half. But I'm not that far in yet. I know this seems confusing, but when I come across the individual characters themselves, I'll be sure to distinguish who is who.

Do. M(ember)

Ad. M

Al. M

B. M

C. M

Da. M

J. P(resident)

S. M
For now, have a great day! :)


~Jelly

Thursday, March 27, 2014

Basic Server/Client Application - Network Programming

   Today, I’d like to get into programming sockets, and help explain a little about network programming.  While network programming is a lot to understand, it is easy to understand once you get the hang of the basic functions needed to get a client-server connection established. First let’s go through some basic terminology of networking.

Sockets: There are object inside of the source code that create an interface with the network, and act as a connection to the transport layer of the IP(Internet Protocol).

Client: The local application a user starts is called the application.

Server: The application on the end that receives messages from the client’s application instance.

Protocol: A protocol is a system of rules for the exchange of data across a network. There are many protocols, made up of layers for each protocol used by an application. For this tutorial, we will be utilizing the UDP protocol for passing a basic message. There is also the TCP protocol, which came first and serves a different purpose, but with the same principal; to enable the transfer of data.

Port: A number, specifying the location for the protocol to be used on the transport layer (i.e. 80 is for HTTP, which is used to browse the web.)

Internet Address: A 12 character number, which describes the location of the physical computer used for an application; Necessary for finding and establishing a connection to the client’s and to connect to the server.

   Ok, now that we have an understanding of the terms for a network application, let’s get into a basic networking application. Both files are quite similar, so lets start with defining the methods used:

struct sockaddr_in sockServer, sockClient;
WSADATA wsa;
SOCKET s, c;
int slen = sizeof(sockClient) , recv_len;
char buf[BUFLEN];

   The first few lines in main() set some variables and data structures to be used in the application. The first two are structures, called sockaddr_in. These are socket address interface object, and they store the socket information for our application, for the client and the server. The second of the two variables are the SOCKET variables, which act an the interface objects to the transport layer of the IP suite. The next variable is the WSADATA variable; this is a winsock specific variable, and we will need to initialize this in order to get the application to work on windows correctly. There is also two integers for measuring the length of the socket (slen) and of the data incoming (recv_len). The final variable, buf[], is the buffer for our data; an array of characters, with BUFLEN as a defined value constant for determining the length of the message.

if(WSAStartup(MAKEWORD(2,2),&wsa) != 0)
       {
           printf("Failed. Error Code : %d",WSAGetLastError());
       }

   This if loop will setup WinSock for our application with the wsa variable, and return a error message if it can't initialize properly.

s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);

   This is where the server socket is initialized. AF_INET tells this socket that it will be used over the internet. SOCK_DGRAM tells this socket to send data as a datagram, and the third parameter, IPPROTO_UDP will set the protocol used to UDP (User Datagram Protocol).

sockServer.sin_family = AF_INET;
sockServer.sin_port = htons(SERVERPORT);
sockServer.sin_addr.s_addr = inet_addr("127.0.0.1");

   These lines of code will initialize the sockaddr_in object with information about the computer being connected to. The first line is AF_INET, which tells the structure to use the IP suite. The second one assigned a port number - this instance has the user assigned a port number to a specific number, but normally this area is used for port numbers used for protocol numbers like HTTP (80) or UDP (67). And inet_addr assigns a numerical address to the structure, to identify the specific computer to connect to. In this case, the number "127.0.0.1" is used to indicate the local host, meaning that same computer used for the server is also the same address for the client; we will be using this for the tutorial to keep this simple, and I will go into this later on.

bind(s , (struct sockaddr*)&sockServer, sizeof(sockServer) );

  Before the main loop our application utilizes, we call bind, to bind the socket 's' to the address structure 'sock'server'. This means calling the sizeof() method for the structure as well.

recv_len = recvfrom(s, buf, BUFLEN, 0, (struct sockaddr *) &sockClient, &slen);

   This line of code start with the variable; that variable will get the number of bytes received from the incoming data. That value is returned from the recv_from() method.

   The recv_from() method receives data from another computer; this is the method to test for incoming data. The first parameter in the recv_from method is the bound socket, for our current application. The second and third parameters are the buffer for the data and the buffer size, respectively. The fourth parameter is for setting flags ('0' in this case). The fifth parameter take a sockaddr_in object, passing the address information from the source into the object. And the sixth parameter takes the size in bytes of the fifth parameter's structure.

sendto(c, buf, recv_len, 0, (struct sockaddr*) &sockClient, slen);

   This method finally sends the data out to another computer; the sendto() method. The parameters in this method are identical to the recv_from arguments; the main difference is that all the parameters are inputs, meaning all the objects in the sendto() method are being utilized, and no data is sent out from this function to any of the objects passed as arguments, unlike recv_from().

closesocket(c);

   Finally, we call closesocket() to close the socket in use. This takes a single parameter, the socket. It is pretty simple to understand.

I’ve included the source code for both the client and the server instances below for you to run; just remember to run the server application first before using the client. I hope this tutorial was helpful in illuminating exactly how an application works over the internet. It serves to show exactly how an application works from a windows stand point.

   To compile, simply put both files in a directory, navigate to that directory with cd, then, assuming you have GCC, type g++ -Wall server.c –o serverAppName.exe –lWs2_32. Please remember the –l and Ws2_32, as these are the libraries for Windows to work with sockets. Without them the application will not work.
Have a fantastic day! :D
Server Code:
#include <stdio.h> //printf
#include <string.h> //memset
#include <stdlib.h> //exit(0)

#ifdef WIN32
#include <winsock2.h>
#include <winsock.h>
#else
#include <arpa/inet.h>
#include <sys/socket.h>
#endif

#define BUFLEN 512  //Max length of buffer
#define SERVERPORT 1111   //The port on which to listen for incoming data
#define CLIENTPORT 1112

int main(int argc, char **argv)
{
    struct sockaddr_in sockServer, sockClient;
       WSADATA wsa;
    SOCKET s, c;
       int slen = sizeof(sockClient) , recv_len;
    char buf[BUFLEN];
      
       if(WSAStartup(MAKEWORD(2,2),&wsa) != 0)
       {
           printf("Failed. Error Code : %d",WSAGetLastError());
       }
    
    //create a UDP socket
    s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
    
    // zero out the structure
    memset((char *) &sockServer, 0, sizeof(sockServer));
    
       //Assign IP address and port number for the server
    sockServer.sin_family = AF_INET;
    sockServer.sin_port = htons(SERVERPORT);
    sockServer.sin_addr.s_addr = inet_addr("127.0.0.1"); //Localhost
    
    //bind socket to the port number
    bind(s , (struct sockaddr*)&sockServer, sizeof(sockServer) );
    
    //keep listening for data
    while(1)
    {
              //Send message and clear standard buffers
        printf("Waiting for data...");
        fflush(stdout);
              fflush(stdin);
        
        //try to receive some data, this is a blocking call
        recv_len = recvfrom(s, buf, BUFLEN, 0, (struct sockaddr *) &sockClient, &slen);
             
              //print details of the client/peer and the data received
              printf("Received packet from %s:%d\n", inet_ntoa(sockClient.sin_addr), ntohs(sockClient.sin_port));
              buf[recv_len];
              printf("Data: %s\n" , buf);
                    
              //Create client socket for server side connection.
              c = socket(AF_INET, SOCK_DGRAM, 0);
             
              sockClient.sin_family = AF_INET;
              sockClient.sin_port = htons(CLIENTPORT);
              sockClient.sin_addr.s_addr = inet_addr("127.0.0.1");
        
        //now reply the client with the same data
        sendto(c, buf, recv_len, 0, (struct sockaddr*) &sockClient, slen);
             
              //Close the socket connection the server to the client
              closesocket(c);
    }
      
       //Close the server socket and close the application
       closesocket(s);
    WSACleanup();
      
    return 0;
}

Client Code:
#include<stdio.h> //printf
#include<string.h> //memset
#include<stdlib.h> //exit(0)

#ifdef WIN32
#include <winsock2.h>
#include <winsock.h>
#else
#include <arpa/inet.h>
#include<sys/socket.h>
#endif

#define BUFLEN 512  //Max length of buffer
#define SERVERPORT 1111   //The port on which to listen for incoming data
#define CLIENTPORT 1112

int main(int argc, char **argv)
{
    struct sockaddr_in sockHost, sockServer;
    SOCKET s, c;
       WSADATA wsa;
       int slen = sizeof(sockServer) , recv_len;
    char buf[BUFLEN];
    
       if(WSAStartup(MAKEWORD(2,2),&wsa) != 0)
       {
           printf("Failed. Error Code : %d",WSAGetLastError());
       }
      
    //create a UDP socket
    c = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
    
    // zero out the structure
    memset((char *) &sockHost, 0, sizeof(sockHost));
    
    sockHost.sin_family = AF_INET;
    sockHost.sin_port = htons(CLIENTPORT);
    sockHost.sin_addr.s_addr = inet_addr("127.0.0.1"); //Localhost
    
    //bind socket to port
    bind(c , (struct sockaddr*)&sockHost, sizeof(sockHost) );
    
    //keep listening for data
    while(1)
    {
              //Get input from the user, and put the data into the buffer
        printf("Input data...");
        fflush(stdin);
              fgets(buf, 512, stdin);
              printf("Client: %s", buf);
             
              //Create the client-side socket for the server
              s = socket(AF_INET, SOCK_DGRAM, 0);
              sockServer.sin_family = AF_INET;
              sockServer.sin_port = htons(SERVERPORT);
              sockServer.sin_addr.s_addr = inet_addr("127.0.0.1");
             
        //now reply the server with the input data
        sendto(s, buf, BUFLEN, 0, (struct sockaddr*) &sockServer, slen);
             
              closesocket(s);
             
        //receive some data, this is a blocking call
        recv_len = recvfrom(c, buf, BUFLEN, 0, (struct sockaddr *) &sockServer, &slen);
        
              printf("Server: %s", buf);
    }

    closesocket(c);
       WSACleanup();
    return 0;

}

Sims 3- The Roosevelt Family

You didn't think I was done, did you? Anyway, this household I will go over all at once. This is the Roosevelt family, and it is based off of my OC's(original characters), as well as someone else's. There is the hubby and wife, Lily and Eric Roosevelt. Next are the twin children, Lola and Jacob Roosevelt. Lastly, there is Eric's mirror image as a female, Erika Roosevelt, and her girlfriend Tornyada Rosetta. Everyone are supposedly hedgehogs, minus Tornyada(the bald one) who is a butterfly. Eric is based off my close friend's OC, but everyone else are based off my OC's.


With that, I hope you have a great day! :)


~Jelly

Tuesday, March 25, 2014

Saints Row IV

Good morning/afternoon/evening fellow readers!

So, I apologize for not mentioning it sooner. I recently got Saint's Row 4 in the mail. I haven't played it yet., though. I from what I have heard, it is like GTA V, but with superheroes more wackyness. I'm enjoying GTA V, so I thought I might enjoy this game too. But, I also heard there is more shooting in Saints Row 4, which is the aspect in GTA V that I like the least. The main reason I got the game was for wackyness and customization. If I have to shoot some baddies to get there, then I guess I'll shoot some baddies~ :D

I'm not going to play it right now, though. As of now, I am currently in the middle of GTA V. I want to progress in that game more before I get myself involved in another open-world shooter game. When I do start playing it, though, you can definitely expect a 'First Impressions' post from me. So that is something to look forward to in the future. :3

With that, I hope you have a great day~! :)

~Jelly

Monday, March 24, 2014

Game Developers Conference 2014, Game Development

Howdy y'all!

How was everyone's weekend?

Just got back from Bakersfield. It was my Dad's 65th birthday yesterday. He's still looking healthy and kicking it with a lot of energy, lol.

Anyways, GDC has been going this past week in San Francisco, and a lot of great stuff happened there. Wished I went myself, but of course, society is making it hard for me to find a job that will hire me with my adept skills. At least I learned Japanese for the heck of it, lol.

Moving on, I've been looking into some game development programs and decided to try them out. Before I graduated from college, I fooled around a lot  on UDK (Unreal Development Kit) and 3DSMAX. Now that I see more programs being free (aside from trial-based programs *sigh*), I want to get back to trying out some new things in Animation and regular 2D/3D design. I'll have to also refer back to some programming in C++ and Java (seeing that Mobile Games are the craze this year).

For now though, I'll be trying out this 2D sprite program that a friend shared with me called "Constructor 2." When he first showed me it, he was able to show a replica of Megaman game mechanics along with interesting level development. I've always wanted to create my own fighting game, but that's a long day away. As most people would say, "it's time to go back to basics."

Well that's enough rap talk for now.

Hope you guys enjoy the rest of your day :)

Constructor 2 - https://www.scirra.com/

Sunday, March 23, 2014

Sims 3- JJ's Harem Pt. 3

Now these two ladies, which are twins, I just made up. Because as once said by a wise woman “Who doesn't fantasise being with twins?” XD

Misa is the older twin of the two. She is more mature out of the two, as well is a clean freak and a perfectionist. Most of the time, she is watching over her sister to make sure she doesn't get into trouble.


Saying that, Lisa is the younger twin of the two. She is very childish and loves playing outside. She loves music, as well herself, trying her best to always look good. Inside that rowdy, playful exterior, is a loving, affectionate woman that just wants to cuddle.



With that, we finish the household of JJ's Harem!...What, don't look at me that way.


That being said, I hope you have a great day~! :)


~Jelly

Friday, March 21, 2014

Sims 3- JJ's Harem Pt. 2

Next up in line we have two mates from my school!

This one's name is Dime Amore. In my household, he is Madam Jellybean(my character)'s brother. If he's not sitting in front of a computer playing games, he's talking about them with other people. He also likes to drink, and tends to hit the bar on a daily basis(a juice bar, that is XD), much to Scarlett's dismay.


The other computer whiz in the group is Egorge Shannon. On top of that, he also our fix-it guy. With his awesome skills and his aims to please all, is a favorite among all in the household, espcially of my character. While he doesn't have any plans for dating in mind, he is loves to make everyone happy and make people feel special.

Alrighty, that is all for now, I hope you have a great day! :)


~Jelly

Wednesday, March 19, 2014

Sims 3- JJ's Harem Pt. 1

So it's time to start showing my characters. What better way than to start off with myself. This character is more of who I want to be instead of a representative of me. Fit, short haired, and very friendly and affectionate(Well, that is already apart of me already). I stand as a leader of the house. All the characters will be free roaming for the most part. The only one I will have more control over the others is this character. Why, because it's me; why wouldn't I take care of myself? XD


Inspired after one of my close friends is Scarlett Floretta. She likes to cook and read, just being creative in general. When she has a goal in mind, she aims to get it done. She is the dedicated chef of my household, although she sometimes gets underappriciated with her chefly duties. I always makes sure my character eats her food though. :3

The last one of the day with be Jaycee Copperdyne. She is just along for the ride for the most part, and she is friendly with everyone along the way. And may I say she is looking lovely in her striped shirt, yes she is~ :3



That is all for now, have a great day! :)


~Jelly

Tuesday, March 18, 2014

Ultra Street Fighter 4: 5th Character Revealed, Elder Scrolls Online

Happy Tuesday, everyone :)

Hope your day has been good for you.



For fighting game fans, if you haven't heard yet, this past weekend during the Ultra Street Fighter IV tournament at Final Round 17, the fifth character was finally revealed to the game community. The surprise character that was revealed  was none other than one of Bison's Shadowloo Dolls, and a clone of Cammy, Decapre. So far I've seen a lot of negative comments regarding the new character, seeing as how it was only a re-hash of Cammy's character model with a few changes in mechanics, making Decapre more of a charge character. From one perspective, I can understand the major disappointment from the Fighting Game Community, knowing that Capcom has been on the bad end of many broken promises and disappointing content development. In my opinion, I too am a bit mad myself, but I'll still end up getting Ultra when it comes available for content download. As a die-hard fan of the Street Fighter series during the days of my youth, I'm willing to give Decapre a try despite the misdirection that Capcom has taken in upsetting many gaming fans. At this point, I highly doubt Capcom would be to recover from this, depending if they somehow make-up this mistake in the future with much more content and no additional costs on DLC. But knowing Capcom, they'll still do it anyways. 

In regards to Elder Scrolls Online, there's been a lot of high expectations from this game, hoping it won't have any fallout on its' release just like Star Wars: The Old Republic when it first came out. From my perspective, it looks like it has potential. But I think there might be some issues completing some missions when a player clears it before the other player does. If it's like Skyrim, getting the proper loot after killing an boss may not distribute the same items if two random players that are not in a party kill at the same time. It also kind of takes away the amount of experience you gain from the fight when the levels between players are lopsided. I think it still looks good to try out though when it comes out. I'm probably going to wait on this one when it eventually becomes Free-to-Play like TERA and Star Wars: The Old Republic. Let's just hope they have a lot of new content developed by then that can keep both subscribers and FTP users intrigued.

Well that's enough from me talking spit.

Now go enjoy the rest of your day.

Later :)

Monday, March 17, 2014

Monster Girl Quest summary, spoiler free

Good morning/afternoon/evening fellow readers!

I was planning on writing a summary for this game, but I was told not to, so I had to throw my hour's worth of writing down the drain.

But I feel like for those that want an idea of what the game is like, I don't want to leave you out. Even actual books in the real world have summaries to them. They are posted online and they don't ruin everything. People still buy the books even though summaries are posted online. Why, because people that don't want to read the summaries and want to read it for themselves are not going to read the summaries, and are going to read the book instead.

Anyway, I'm not going to write the summary. Instead, I'm going to give you a link to where you can if you want to.  That way, it's fully on the reader(and not me forcing you or having you read it on accident) of this blog if you choose to want to, or not and go play the game yourself. And no, I'm not going to tell you where you can find the game.

Anyway here is my warning:

The following link will lead to spoilers of the game. If you do not want spoilers, don't click the link on the following link.  I am not responsible for any summaries written and/or if you choose to read a game's summary post that is already online and not published by me. You can get mad at that blogger, not me. One more time, this link that follows after this sentence will lead to spoilers of the game, only follow it if you want spoilers to the game; If not, you can skip past this link.: Click here for spoilers.


Anyway, if you choose to stay here with me, then awesome! Here, have a cupcake.

Seriously, the game is really awesome and you should go play it~ I wish you the best of luck in finding it~ With that, I hope you have a great day~ :)

~Jelly

More on Sims 3

So as you know, I started Sims 3 again recently, and I thought I would share with you the adventures that go on throughout my own personal series. If you want to be able to fully understand what is going on, though, you will need to see who these people are. It will be a fun adventure, I believe, and you will get to come along with me~ :3

For the most part these are all full houses, and I have 3 as of now. So I won't be showing all the sims I created all at once. At the same time, doing one at a time would probably drag on for too long. So I am thinking of doing 2-3 at a time. This way I won't strain you eyes will all the reading, and I don't have to strain my hands, eyes, and back from all the typing.

Once I get out all of the sims I've created, I will start giving you shots of what they are doing in-game. On top of that, I can start taking requests for creating characters for other people. I won't show the everyday lives of custom requests, but when my characters visit their house, I'll make sure that your characters are showcased.

With that, I hope you have a great day~! :)


~Jelly

Monster Girl Quest Analysis



Hello folks, this is EVA-Kirby providing you readers with a full impression of the game known as Monster Girl Quest, which was developed by the developer(s) known as Torotoro Resistance. But first off, I'd like to thank Jelly for allowing me to post this info on her site. If it weren’t for her interest, I probably wouldn’t be writing this article now.

Alright, as Jelly had mentioned on this site a while back, Monster Girl Quest is a visual novel that follows the adventures of the lad known as Luka as he goes about the world bringing about coexistence between humans and monsters, who all have mostly humanoid features. Unfortunately, those 'humanoid' features are the very reason this game is labeled as an eroge, or an adult game, because just about every monster in this game will want to sexually dominate Luka in all sorts of manners possible. However, despite this largely negative fact, I feel this game has an exceptionally good story that can warrant a good serious look into.

As the game starts off, Luka is adamant about becoming a hero in the eyes of Ilias, the resident goddess of light in this game and goes off to be baptized for his journey. However, a mishap with a peculiar monster named Alice causes him to miss out on being recognized as an official hero by Ilias. Despite this setback, Luka still sets off on his journey of heroism, wanting to do his best to save the world from discriminations between humans and monsters, all while enduring the snarking from Alice, who decides to tag along with him, but states she will not be his ally, but more of an observer... but for what? Hopefully you folks can survive long enough to find out.

While the game starts off nice and humorous to ease players into the setting, including taking a few jabs at certain kleptomaniac heroes from similar RPGs in the 90's, the game manages to go out of its way to deconstruct the very ideas of heroism ingrained into Luka's head, like for instance, how what's right and wrong can be entirely subjective. At the same time, the game reconstructs these ideas to give Luka new motivation of just what a Hero REALLY should be, which improves his outlook on the world and also convinces the people he meets on his travels to think about their past ideas and want to change them for the better. It's this sort of development that gives this game some much needed atmosphere, by making flawed characters and seeing them improve their characteristics as time goes on; lately, it feels like most developers fail to take that into account and continue making bland characters and settings while trying to make games look more impressive graphically to sell them off, but I digress. Effectively, the story will keep you coming back for more of this interesting tale; if not that, then certainly the vast multitude of women here might convince you, hehe.

Monster Girl Quest does start off simple enough by using the token visual novel gameplay to explore the lands and mixes it with RPG segments to fight off the many monster girls that come after you, but continues to get more complicated by adding more elements into the battle. Despite this, the game does it in a way so you won't feel too overwhelmed. Add in the typical fantasy RPG backgrounds, the multitude of characters drawn by various Japanese artists such as Kenkou Cross, Setouchi, frfr, and Jingai Modoki in loving detail, the complex story, fitting music, and various achievements and difficulty levels to warrant multiple playthroughs, and you have a breadwinner of a visual novel game. If you're willing to look past the fact this game is purely for adults and 18+ folks, you're in for a real treat of a game. Of course, there's also the matter of LOOKING for the game itself, but sadly, neither me nor Jelly will help you out with that. There should be a site that allows you to buy this game in all its glory. Of course, unless you can read Japanese, you'll also need to download a translation patch as well.

As one last note, this game has been divided into 3 parts, so you'll need to get those and combine the files altogether. Pretty sure there's a guide for that somewhere else on the internet, though, so don't get too discouraged.

With that, I conclude my analysis of this game. Jelly and I hope you enjoyed this article, and if you're able to play it, do so. You won't be disappointed at all... provided of course some of the girls don't weird you right the heck out, that is. See ya!

~EVA-Kirby

Howdy, folks!

Hello folks, one and all. My name is EVA-Kirby, and I have just recently joined this blog to write articles and stuff. I've been a long-standing gamer who's grown up on mainly Nintendo consoles all my life. My hobbies include gaming, comics, card games, anime, and effectively anything random that might pop up from time to time.

Speaking of which, many of my articles on here will be about various random games and nick-knacks I happen to stumble upon, past or present, just so I can share my appreciation of them with you readers. I suspect they might be mostly Nintendo games, but I'll do my best to venture out into other genres to keep things interesting for ya.

If you feel the need to contact me, check out the info page for my contact information.

Until next time, see ya!

~EVA-Kirby

Saturday, March 15, 2014

Compiling with MinGW and Initializing WinSock

Hello :D; Today, I'd like to explore the usage of MinGW in the context of building a simple program that utilizes an important library in the compilation process. This tutorial will help you use MinGW to build a basic program with the g++ command, teaching the purposes of some of the commands, and even exploring how to initialize WindowsSockets, or WinSock. Sockets are relevant to networking, and learning to work with them means learning how computers communicate through networks, with which much of our modern economy now depends. So learning how to initialize this library for use in you programming efforts will help considerably, and with networking becoming such a crucial aspect of programming any application in the modern world, it should be considered good knowledge as a programmer to know how a networking library works, and how to use one.

First, load up the console of your choice and move to a suitable directory, preferably an empty one. Make sure MinGW is installed; if not, please refer to my previous tutorial for an example installation of MinGW for Windows 7. From here, create a new cpp file with the following command : notepad newfile.cpp. This will open notepad and generate the filename your typed in, as a c++ file. Copy the following

#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>

WSADATA wsaData;

int main () {
int iResult;

// Initialize Winsock
iResult = WSAStartup(MAKEWORD(2,2), &wsaData);
if (iResult != 0) {
    printf("WSAStartup failed: %d\n", iResult);
    return 1;
}

printf("WSAStartup Successful");
return 0;
}

This code simply creates a variable for holding the details of the WindowsSocket implementation being run, wsaData. That variable is called in the WSAStartup() method, and if unsuccessful, the program will output the “WSAStartup Failed” message and return from main, ending the run for the program. If the parameters are good for WSAStartup(), then the method will return a 0 to iResult and the if loop will conclude. From here, the program will output a “WSAStartup() Successful” message, then conclude the program with successful execution, by returning 0.

After the code above is in the .cpp file, save that file and close it. From here, Type in the following sequence:
g++ -Wall newfile.cpp –o programName.exe –lws2_32
This will produce a simple program from the supplied file from above. In this case, the above program will be as simple program that outputs a message, but depending on the results of that program, it might be an error message, or a successful initialization message for the Winsock library.

G++ : The C++ compiler installed with MinGW; this compiler and linker will create the program executable for us, and is key in accessing any of the other variables.

-Wall : A Preprocessor flag known as W-all, will enable all ‘W’ flags, enabling the compiler warnings and checks often found in Visual Studios.
newfile.cpp : Our source file that will be compiled for our program.

-o : Output files, which can be specified, as we have with the .exe suffix.

-l (-lws2_32) : This is a linker flag for compiling libraries with our program. In this case, the –l is indicating a library to link with, and WindowsSocket, or ws2_32 in our command line argument, indicating ws2_32.lib.

This should produce an executable for you to run in your own prompt, which should be enough of a program to output the successful initialization message in the command prompt.

Sunday, March 9, 2014

South Park: The Stick of Truth, TERA, Dark Souls (1 & 2), Getting Back to Fighting Games

Hi everyone! Hope you're having a fun-filled weekend.

Been seeing a lot of buzz for the new game that has finally came out, South Park: The Stick of Truth. I have already seen a few playthroughs on YouTube and I'm really itching to play this game myself just for laughs and giggles, lol.

I haven't been playing MMOs that much since Star Wars: The Old Republic went Free-to-Play. Decided that I wanted to get back to TERA:Rising and give that a try again. Only played it for a while, since I was with a group of friends at the time. At that time I barely got to the next zone and dropped it since then. Now that I'm back on it, it's not too bad, but it seems I missed out on a lot of great stuff I could of had if I didn't stop playing it. Lucky for me, one of my friends still have their character and is willing to share their loot with me, lol.

While I'm still plowing through Dark Souls, Dark Souls 2 is just around the corner. Sadly, I won't be able to play it within the time it is finally out. At least I get to enjoy the terror that the others will have to face when they get the game, lol. There a lot of changes they made compared to Dark Souls, making it a bit more restrictive on exploiting advantages against some enemies and bosses. Nonetheless, it'll still be fun to play once I get my hands on it.

Ever since EVO last year, I haven't played that much Fighting Games. Ironically, fighting games are my favorite genre to play most of the time in video games. Although I don't have the high-caliber skills that you see from tournament players, I miss all the action and excitement you get when you're so engrossed into the game. With Street Fighter IV: Ultra and Blazblue: Chrono Phantasm (DANG IT ARC SYSTEMS, WHY ONLY THE PS3/PS4!?) coming out, and Person 4 Arena: The Ultimax Ultra Suplex already hitting arcades, I need to get back into the mix of it all. Been playing too much MOBAs and Sport games (NBA 2K14), lol.

Well that's all I have to say for now, hope you guys have a good day :)

Friday, March 7, 2014

The Rage in MOBAs

Hey everyone! How's everything? Meant to post last week, but I had some time to spend with my family back home. We had fun by the way, lol.

Anyways, I wanted to touch on a sensitive topic that has probably been already discussed on many forums or articles. And that is the RAGE in Video Gaming, but mostly in MOBA games.

I'll confess, I rage even myself when it comes to games. It's that serious nature that most like me are aware of when we play on MOBAs or other online games. In fact, I'm already raging with Dark Souls...but that's a whole different matter, so I'll chuck that to the side. Anyways, it seems to me that sometimes that seriousness really blows things out of proportion. For games like League of Legends, it does create a lot of conflict and break-ups between friends. That's why its funny nowadays when Riot implemented those notices that pop-up on inappropriate behavior before the game starts.  From my experience, I see it all the time. But what's strange is it's the littlest of things that would get people mad. For instance, you're in a game, and you have a player that's new to the whole thing and suddenly the team starts losing because the player was still trying to get use to the game. The other members start yelling at him because of his "noobish" skills and decide to report him because of that. It really irks me when things like that happen. Attitudes just like that really downgrades the enjoyment and excitement of being able to play online.

I've had my moments in MOBA when it comes to raging, but I know when to keep my cool and not bad-mouth those that are trying to have fun with the game they're playing. It can be difficult to handle, but there are limits to where your attitude could go through when building up all that aggression.

 I'm not trying to tell you not to play because of this, I'm only saying this because its natural in online gaming. Just be considerate of your actions and how you speak to people. Sometimes that misconduct can carry over towards your own lifestyle and cause discomfort for those around you. Just be smart, don't be insincere. That's all.

Thursday, March 6, 2014

Installing minGW on your computer

Greetings everyone :D. Today, I’d like you to take some time to download and install some software; it is safe, but also about 600 mB (so it might be a few minutes, depending on your internet speed). This software I’m talking about is the minGW compiler and Linker for windows. This is a totally different compiler and linker than the one used in visual studios, and it enables you the user to avoid the dependency on the GUI for writing and compiling your code, something I’m trying to accomplish with these tutorials. In this tutorial, I’d simply like you to install and test minGW.

Firsts, Download minGW-get-started.exe ( sourceorge link here : http://sourceforge.net/projects/mingw/ ) This installer makes the process much easier than doing it by command line, and for the sake of simplicity, we will go with this option. This installer isn’t a large download, but it does lead to a much larger download of about 570 mB, all for minGW. This will take a bit of time, so be patience, and install it to the C:\ path for the sake of simplicity (the default path). This will make utilizing minGW much easier.

Once the download process is complete, you should find a new icon on your desktop; this is the actual installer for the minGW bin files. When you run this installer, choose minGW toolkit and g++ (the C++ compiler) from the basic packages(it will choose MSYS automatically), and choose apply changes from the installation tab in the upper left corner. This will start the process of adding and downloading the necessary bin and dll files to your computer. When this part is finished, you can close the installer.

Now this final part is critical, so be careful. You will need to update the environmental variables with the ‘bin’ paths containing the necessary files for gcc. This means going into the control panel, finding the system option, and on the right sidebar, there will be Advanced system settings, select this option. It will open another window, where there is a button at the bottom labeled “Environmental Variables” Choose this option, and in the bottom scroll bar System Variables, find the path option and double click it. This will open another window with variable name and variable value. Now be careful not to remove anything in the value area, because that can cause issues with your computer; navigate with your arrow keys to the right side, and copy and paste (ctrl + c to copy and ctrl + v to paste to avoid using the mouse) the following text command into that value window (including the semi-colon):

 ;C:\MinGW\bin;C:\msys\1.0\bin;C:\MinGW\msys\1.0\bin

This should finish your install process, as windows now knows where the minGW bin files are located. Now go ahead and open console and test the installation for success by entering two commands:

gcc --version
g++ --version

These two commands should output the version date and copyright into the command window, indicating that windows can read the bin files with no issue. This should conclude the installation for minGW, and soon we will work with minGW for more in-depth programming tutorials in C++. Learning to work with multiple compilers is a great way to deepen you knowledge about computer programming, and hopefully you will be comfortable with this in the coming tutorials.

Good luck :D