Skip to main content

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 scripts , now it’s just a matter of calling the link from unity , which is passed into the www form in string format  as can be seen the inspector window below.



Right now I have been testing out the login system, however the system does not seem to be sending data which seems to be a very difficult thing to debug as I have had our lecturer review the code and everything seems to be working fine , but I will be putting in debugs to see if the information is going through which was the case , after some searching I found out that the issue might be in regards to my network settings thus I tried to disable my firewall to see if it works , this is proving to be a major setback as there were many other things planned for the week.

After reaching out to multiple sources, such as the creators of the 00webhosting, I came across the conclusion that my PHP code works, so does my C# code however the network is blocking the connection which seems to work through a test VPN made.

After some further research I found out that it was the network providers blocking the service thus routing them through a google DNS solves the issue, this not a vpn and it is just information routed through a secondary server, which is perfectly legal. I also found a link which was very helpful. (Arrows, n.d.)







References

Arrows, K. (n.d.). How to Fix DNS_PROBE_FINISHED_NXDOMAIN on Google Chrome. Retrieved from https://appuals.com/how-to-fix-dns_probe_finished_nxdomain-on-google-chrome/

Comments

Popular posts from this blog

week 11

For this week I will be learning some basic animation from one of the animators to understand the workflow of other fields and in doing so I have modeled some basic objects such as a table, chair and a few other things visible in the picture below. Another learning outcome I have been working on is around making a API wherein I decided to make a dll file , the reason I chose a dll file was because this is something new to learn and it is a good way to protect my code from being used by unauthorized users . To start off on learning how to make a dll, I started with looking at lots of guides but noticed a lot of them were not using monobehaviour which is something I needed to run my steering behaviors as they use man classes found in monobehaviour such as transforms and vector3. After some assistance from my lecturer I have been able to find the right resources and start working on the dll itself but more things are yet t...

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...

week 12

This week we were going to start building our final builds however we found a new bug which was due to poor design from my end as a programmer, last week we fixed the issue with the player partially being the in the wall however this created a new problem wherein the shields did not take and damage and this is really bad as it is a major game mechanic. To fix this issue we tried many solutions , but they all seemed to be having their own flaws & drawbacks thus we eventually decided to keep the rigidbody on both the shields and made the main objects box collider bigger with the shields box colliders being slightly bigger than the main bodies , this made the collision work properly and was a simple enough solution however I feel like this situation could have been avoided if better tech design decision would have been made from the beginning  . Once all the problems were solved I started working in 3ds max again to cr...