PGD Home

P-0: Virtual World Concept: Update 9: Updates, and Basic implementation of Action/Effects System

by on Feb.07, 2016, under Astral Realms, P-0, Servers and Networking, Spiritus Astrum

I have completed some modifications to the database connector which allow me to easily access even large sql query results from script. It is probably not as fast as it could conceivably be, but it is more than fast enough.

I have also implemented the context-sensitive menu, although I will need to test this properly on the network, to ensure that the proper client/server data transfer is happening. I need to keep as much data on the server as possible, for security reasons, and as much processing on the client as possible, for performance reasons.

I have also implemented a very simple demo of the action/effect code, the player can now eat an object that supports that action. I intend to have a separate function for each action, although some actions, like eat, pick up, etc, can be generalised. Eating one food is the same as eating another, for example, it’s just the nutritional content that changes.

I have a lot of work to do here, and I have still to implement support for the effects of actions, such as, for example, adding the “poisoning” effect when a certain food is eaten. I also need to add extensive code to calculate the players recommended daily amount of food, and calculate their hunger levels, thirst levels, fatigue, and a lot of life simulation variables, but I have made significant progress.

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!