Skip to main content

Posts

Metrics, part 4

Main function uses metrics, every single time it launches. It measures the base performance of the program, as the main function runs most of the functionality. In most video games, the main function runs the main game loop. int main() {     //main command arguments     main_performance_game_loop();     return 0:      } That is the most basic way to measure to game performance. Meaning RAM, CPU, VRAM and GPU. It is also possible to measure gameplay and graphics. A good way to do that is in the above presented code. Running performance and main game functionality in the same loop. Visual Studio has RAM measuring tools, but you can optimize them for your needs in the program. By running a main performance loop inside the main game loop. RAM analytics and and analysis can be adjusted by making code flags.  You can also use the analytics settings from the Visual Studio settings and options. You can also the commnad line prompts: --shell That...
Recent posts

Economy, part 3

 It is possible to actually test economy code. void test_market(int* trade_node, int* zone); This isn't just play testing, but to actually test how economy works in the game. This are actually two very different things, that have to distinguished. It also has to be noted, that this can be done after the playtesting, when the game is released. Testing the economy in the game, basically means tesing server data, but testing the economy code, while the game has released actually has effect on the game in game multiplayer economy. This is economy server data: main trade # # 0 0 And this is economy code: void test_market(int* trade_node, int* zone) {     if ( & trade_node == 1)      {           zone = 1;      } } The economy data provided means current economy standing, and trading and market statistics. One good example of such data is the grand exchange in old school runescape. It contains crucial data, on ...

Server coding, part 7

This is a basic structure of a server: class Server {  private:     int* main_file[100];   public:     void launch();     void maintenance();     void test(int* test_node, WNHD* test_process); }; You make an object every time you need to run the program, but this just to register the server to the game program(or client). The actual server is a station data: # # This is the main and most persistent data of the server. It's a global data macro, that sets the server online. void launch(); You can actually have entire server data in 10 files. But it can take up 1 pentabyte of data. #point #id #make The point macro checks the main most crucial data, id checks the number of the server. make macro checks the last online time data. # # # point

Economy, part 2

Another important aspect of gaming is trading. This seems at first glance a very simple process, but it really isn't. Takes quite a lot of work to get it right. First part is to make a security trade. #include <windows.h> #include <string> void trade(void* player1, void* player 2, WHND* bank_security_check); Second important a part here is to make a market. WHND* get_market(std::string market_sector); This returns a full screen window handle, by providing the current market area type. In other words, take Old School Runesape for example. All you have to do is write a lot of net code for the first trading, right? Take a closer look. Bank security, grand exchange, hardcore world's economy. Secure trading. Safety does not always mean security, and security does not always mean safety. Oldschool runescape used to have a lot of bank security breaches in the past, until they updated their security protocol. int get_security_pin(std::string access_request); Or more in deta...

Server coding, part 6

This the main structure of the server to make/establish or maintain: #include <windows.h> void run_server(WNDH** pipe_line_argument); The point here is to make a pipeline system. Another way is to try google tags: #include <windows.h> void tag_server(Server* adress, WNDH** tag); Here is an possible example of  a Server class: #include <string.h> class Server {     std::string main_files{}; public:     void run(WNDH** pipe_line_argument);     void tag_server(Server* adress, WNDH** tag); }; It is possible to actually use binary code to maintain the server  and it's access. void shift(int point_size, int* adress); To revamp the lessons so far on the series, a server requires a strong structure,  and a strong access shell structure. This can be done by making a  pipeline system, again; such as by charting it's design and making a google tag system to prevent search engine hacking. Which  in other words means, used...

Economy

Economy is very important in MMORPGs. or in other words a structure type, how many is spent, and how spending and buying affects the global market. And market is also a very important part of economy.  Market is a global structure that logs and consists all the main trade payments. By analyzing the market, buying and investing and selling opportunities arise. Another important thing are logistics, how to transport most important cargo.  #include <windows.h> void market(std::string trade); void transport(std::string object, std::string table); Another important aspect of economy is mixing together two things that don't quite get along. And that is stealth and trading. This might seem insane, but it's practical and important. Trying to transport crucial expensive cargo or trading without getting stopped or ambush is a vial and viable tactic. It means using hard to trace trading routes across near main ambush sectors. Economy can also be used in single player video games, s...

Metrics, part 3

Weapon metrics To make a weapon in a video game, it's more to than just make a static mesh, and then used the mesh for different situations. The real thing is the weapon model: barrel, caliber and it's most important army applications. Means making video game challenge rewards for accuracy based on the firing distance(or cutting accuracy for melee weapons). int damage(int distance, int main_damage); Car metrics A car moves by vectors, vertices and velocity.  And also by weight transfer. Vectors and vertices calculate the movement of the racing car, velocity is kilometers per hour. Weight transfer calculates the steering. void Car::move(Vector* main_pointer, int weight_transfer); This is the main  or most important function of the Car class. void Car::move(Vector* main_pointer, int weight_transfer) {     car_mapping(main_pointer.main_value(), 2*weight_transfer); } Car metrics in other words measure logistics, and weapon metrics the weapon's structure use. Water metric...