Skip to main content

Posts

Showing posts from March, 2018

Studio - 3 Week-8

This week I managed to get the photon sides of things to work better however the sync for the bullets don’t seem to be not working , even though my code seems to be fine. I have been going through my code over and over to find the bug, even changing all the firing code line by line to debug and find what is happening, this seems to be the major blocker for the week.   After two days of debugging I was going to lose all hopes I have for the project however I was allowed to re-scope my project a bit which has given me the encouragement to move forward and fix this bug, after some time I pulled through unity documentation & photon documentation only to come up short however I did not give up as I had a last option which was to go through the code we made for the game in gpg220 which was still there luckily the code there worked thus I copied it and pasted it to see if the projectiles synced over photon and to my surprise they did . After comparing the old projects code t...

Studio - 3 Week-7

After a large chunk of the networking is working, I decided to start work again into in game mechanics, this was a nightmare at first as the controls did not seem to work, after some further testing I was able to figure out that the movement multiplier set was 0 thus there was not active movement in the game after which I decided to add controller support , this was fairly easy as all I have to do is add more axis in the input panel in unity however everything looks simple at first , but it is not true , as the each input axis requires two to be made , one for keyboard controls the other for joystick controls . Looking at each axis’s on a wiki page helped me figure out how each input works , this is a very long process as the base unity axis’s need to be changed  , Horizontal & Vertical work with any controller thus it needs to be changed to support the first controller plugged in , then the fire needs to be disabled and for each controller a new Fire must be created in i...

Studio - 3 Week-6

For this week I will be working on user verification after which I will be working on moving the login system from localhost to 00webhost, this will be a major milestone for the project. Before moving the system to 00webhost, I will have to make sure that there is Email validation to check if the Email exists and if it does then to return a message and not proceed to the registration. Next the same code is being used in order to check for the user so the user cannot select the same user name, this is used so each user has a unique user and email. Moving to the 00webhost will be very simple, firstly we must export the tables as a SQL file then we must import it into a newly created table, this is the simple part of the switch however getting the scripts online is going to be different as most the reference material to do this is for the older 00webhost interface, however I will figure it out. After looking around for a bit I found the area to upload the ...

Studio - 3 Week-5

For this week I have been working on setting up by SQL database on localhost but I know nothing about it and I will be researching on how to make a table, learning the right syntax to use in php to communicate with the SQL server. The PHP code necessary for connecting to the SQL database on localhost is pretty simple as all you have to do is declare in the information needed to login into the database such as the server name, database user, database password and the databases name which can be seen in the snippet below. Next, we need to form a connection to the database and check if we are connected before we can go ahead, this is a small optimization. In order to connect to the database, we declare a reference $conn which will equal to mysqli_Connect which is the syntax needed in the PHP script in order to form a connection. The if condition only checks if a connection is made and if it has not then it will kill the connection with a die functio...

Studio - 3 Week-4

Early pitch went bad as there were different scenes and I was late, we worked on integrating our scenes and making everything work however there are many text components and particles to send over the network, which will take me a while to figure out. For our second class we are re-structuring some code in order to get better performance because the game seems to lag quite a bit wherein we are having a rubber banding issue in the client while I work on the networking. The team does not want a networked game and feel that I am dragging them down thus we have decided to part ways, I will be now only working on networking and remastering an older game I have worked on for production called “The first Valkyrie”, I was pretty passionate about the project and working on this project again is going to be great. Restarting work on setting up trello & documentation is going to be pretty annoying as this is the part of production I have never liked however I will be working for...