I worked on the framework yesterday. I added more to the event and windowing frameworks to pass button presses to windows. If the cursor is visible it passes the button presses to any window and any children components that fall under it.
I gave the button an on click event handler and made it creat…
I gave the button an on click event handler and made it creat…
I really don't write in this enough. Work keeps me busy and by the time I get home I don't feel like doing much development after doing it all day.
My PSP sparked my interest again recently, so I was looking around on the internet for information on homebrew stuff I came across this:
PGELua PSP Game …
My PSP sparked my interest again recently, so I was looking around on the internet for information on homebrew stuff I came across this:
PGELua PSP Game …
By this I mean blogging.
As you can see by my archive on the right I've been a GDNet+ Member for quite a while, but I don't keep my journal up to date very well.
I really haven't done a ton on the game development front in the last year, I decided early in the year that the TorqueX stuff was still t…
As you can see by my archive on the right I've been a GDNet+ Member for quite a while, but I don't keep my journal up to date very well.
I really haven't done a ton on the game development front in the last year, I decided early in the year that the TorqueX stuff was still t…
It doesn't look like much, but it's actually representative of a lot of work.
I have a mostly working skybox, an object handler class, a model class with working shaders, a base camera object that I still need to work on so that I can manipulate it easier.
I still have a lot to work on, but it feels …
It doesn't look like much, but it's actually representative of a lot of work.
I have a mostly working skybox, an object handler class, a model class with working shaders, a base camera object that I still need to work on so that I can manipulate it easier.
I still have a lot to work on, but it feels …
From around the 20th of this month till around the 3rd is the busiest time for me at work. It's end of year, I have to do upgrades on the HR and Payroll systems for the new years tax tables, there is the year end saves and all kinds of other fun stuff. This year is compacted with the merger which j…
Well, looking at my last entry, it was in July of last year. You see back in 2003 I moved back to Arizona from Texas and quit my job to be close to my Grandfather. He had Alzheimers and I didn't want my one major regret in life to be that I didn't spend the time that I could have with him before it…
Ok, so after I spent a day or so going over the communication protocol I started feeling like I didn't care anymore. That is a sure sign that you are starting to burn out.
I looked at the calendar and realized I have been spending every waking moment outside of work and household chores working on t…
I looked at the calendar and realized I have been spending every waking moment outside of work and household chores working on t…
I'm at that place in my project where you go back over the code you have written and what needs to be written and determine if it will work the way you planned on.
I've written out some stuff on how I need to keep track of what entities to send to clients, what messages need to be replicated to othe…
I've written out some stuff on how I need to keep track of what entities to send to clients, what messages need to be replicated to othe…
Ok, so without further ado, I present, Ship in space:
I now can load torque2d, key in my user/pass, select my character, and hit Enter Game, upon which the server happily tells me to spawn a player ship in the middle of the screen. T2d happily complies.
I only spent about 3-4 hours today working on t…
I now can load torque2d, key in my user/pass, select my character, and hit Enter Game, upon which the server happily tells me to spawn a player ship in the middle of the screen. T2d happily complies.
I only spent about 3-4 hours today working on t…
I decided to get part of my usual sunday crap done tonight instead, so that I can spend all day sunday working on the game. So I went out buying groceries, etc.
I coded in handling for the new messages on the T2d c++ side. I also coded in part of the player creation bit on the torque script side. Th…
I coded in handling for the new messages on the T2d c++ side. I also coded in part of the player creation bit on the torque script side. Th…
Ok, so I got the scrolling star background working.
The star background is pretty neat. I took one of the 1600x1200 images from the NASA website sattelite images and cut it up into a few tiles and told Torque2d to wrap it. I'm still playing with the image sizes but it looks pretty good. I'll post so…
The star background is pretty neat. I took one of the 1600x1200 images from the NASA website sattelite images and cut it up into a few tiles and told Torque2d to wrap it. I'm still playing with the image sizes but it looks pretty good. I'll post so…
Ok, well I spent most of tonight attempting to cut up large images into tiles so that I can use them as the background for my game. I finally ended up doing it by hand and created the tiles I needed.
So now Ive got the game loading, going through the login process and displaying the game screen with…
So now Ive got the game loading, going through the login process and displaying the game screen with…
Ok, so tonight I worked on the communication protocol between the server and Torque2d.
So far I have made the following message types:
So far I have made the following message types:
enum EComType
{
COM_NONE = 0,
COM_HELLO,
COM_DISPLAY,
COM_LOGIN,
COM_LOGOUT,
COM_BANNED,
COM_MENU,
COM_CHARLIST,
COM_CREATECHAR,
COM_CHOOSECHAR,
COM_ENTER…
I didn't get a ton done tonight. I'm in the process of buying a house, so as soon as I got off work, I had to hurry over to the loan office and sign a ton of papers, then they got to tell me all the papers I forgot to bring and would have to bring them next time. Fun.
So after that I had to go get s…
So after that I had to go get s…
Ok, I only spent an hour working on it tonight. However I did find the wierd bug I was talking about before and it had to do with the way that I handle the input buffer from the socket.
I have two buffers, one is the "input" buffer, and I use it to do a recv from the socket. The second buffer is use…
I have two buffers, one is the "input" buffer, and I use it to do a recv from the socket. The second buffer is use…
Ok, so I didn't get to exactly where I wanted to. I'm having some issues with Torque2d and I needed to step away in order to get a fresh look at what I was doing. So I went to do laundry (wee, fun).
But what I did accomplish this weekend:
I got the server to do non-blocking character input while run…
But what I did accomplish this weekend:
I got the server to do non-blocking character input while run…
I forgot I had volunteered to host a player run magic tournament on mtgo today, so I ended up doing that from noonish till around 10 pm. That killed most of my development time.
I worked on it a little bit after that, but ended up spending three hours chasing down a bizarre bug that I have no idea w…
I worked on it a little bit after that, but ended up spending three hours chasing down a bizarre bug that I have no idea w…
So I didn't get quite where I wanted to be, but I got damn close.
I've got all the code in the server completed up to the point of actual gameplay. I've got all the protocol messages up to there finished as well. I've added callbacks for all of those commands to Torque2D and I've created the callbac…
I've got all the code in the server completed up to the point of actual gameplay. I've got all the protocol messages up to there finished as well. I've added callbacks for all of those commands to Torque2D and I've created the callbac…
Ok, I'm still on schedule.
Tonight I :
Finished coding the Account class.
I coded the AccountDB class that keeps track of them while the server is running.
I coded the Character class. More will need to be added later, but I got the barebones of whats needed to meet my weekend goal.
I coded the Charact…
Tonight I :
Finished coding the Account class.
I coded the AccountDB class that keeps track of them while the server is running.
I coded the Character class. More will need to be added later, but I got the barebones of whats needed to meet my weekend goal.
I coded the Charact…
Well, I don't have any nifty pictures to show tonight as most of the work I did is all on the server side in the back end.
I finished coding the game states into the player handler up to the main game handler, which will be completed later.
Then I went and created the Account class, the tables to hol…
I finished coding the game states into the player handler up to the main game handler, which will be completed later.
Then I went and created the Account class, the tables to hol…
Ok so I made some progress, just not as much as I hoped.
I made a login screen (go programmer art):
So then you hit the login button:
So tommorow I'll work on the state machine on the server side to properly handle the connection, then once a player is logged on Ill try to upload his entity and get th…
I made a login screen (go programmer art):
So then you hit the login button:
So tommorow I'll work on the state machine on the server side to properly handle the connection, then once a player is logged on Ill try to upload his entity and get th…
I was planning on putting in the code to pass the login/password data then send the player entity updates to see if I could get the player to spawn on the screen.
I was just about ready to vnc in from work when I got disconnected from my router (ssh). When it came back up I had to wait a few for my …
I was just about ready to vnc in from work when I got disconnected from my router (ssh). When it came back up I had to wait a few for my …
Well, I've got the communication working both ways now.
Server:
Server:
E:\Development\Dev-Cpp\Projects\gtwserv>gtwserv
Loading EntityId
MySQLWrap::Connecting.
MySQLWrap::Connected.
MySQLWrap::Opening(SELECT * FROM EntityId WHERE Type = 'Player')
MySQLWrap::Open.
MySQLWrap::Field(0) = Type
MySQLWrap::Field(1) = …
Ok, so I got it working.
My server waits for connection, and when a connection is achieved it creates a "CComHello" object, and pushes it to the other side.
So I have the script in Torque2d doing this:
My server waits for connection, and when a connection is achieved it creates a "CComHello" object, and pushes it to the other side.
So I have the script in Torque2d doing this:
$TestObj = new NetObj(testobj);
echo("NetObj = " @ $TestObj);
$TestObj.setVariable(42);
echo("N…
Well, I had been planning on spending this whole weekend programming, however my aunt came into town on thursday and I ended up doing family activities both thursday evening and friday. So I didn't get done near as much as I wanted.
Today however, I got to work pretty much the whole day.
I had some e…
Today however, I got to work pretty much the whole day.
I had some e…
Things have been pretty boring at work today, so I added in the functionality to return a recordcount as well as to access fields in the active query by name instead of just by number.
Also fixed a little bug I found, and fixed up the main game loop.
I created a singleton class to handle the assignin…
Also fixed a little bug I found, and fixed up the main game loop.
I created a singleton class to handle the assignin…
Ok, so apparently I'm a retard.
I dug around on google for about a half hour and dug up a tutorial for mysql. Between that and the example program that actually came with the server it took me about an hour to get the connection up and running.
I'm not sure why I didn't look into mysql before this, i…
I dug around on google for about a half hour and dug up a tutorial for mysql. Between that and the example program that actually came with the server it took me about an hour to get the connection up and running.
I'm not sure why I didn't look into mysql before this, i…
Ok, so after the last post I went and brought over some of the base Entity classes I had created, and ended up changing them some to accomodate the fact that there are no rooms in this game, etc.
After I did that I started to think about the retrival/storage of data and how I was going to handle it…
After I did that I started to think about the retrival/storage of data and how I was going to handle it…
Advertisement
Popular Blogs
Advertisement