Saturday, July 11, 2020

Basics on testing the vpk PART 1

All of us want to test and try our doings, and it is very important to make sure it works correctly. For that reason, we will want to check our vpk a few times before even the alpha testing.
[We want to know if the basics are correct before going to the difficult part, otherwise we will end with a big brick of code and we will have to start from zero again.]

After compiling, we have a few files, among them is our precious "hello_world.vpk" file.

This is only a sample, with no more than a text printed. For the shake of reducing the steps, without losing any learning, we are testing this vpk in the Vita3k emulator.

The first step here is to have the emulator ready to use:

As we said before, we wanted to have it all into the virtual machine to have a clean environment. So we downloaded the linux file.

However, after trying to execute it, we got some compatibility issues that we think are not worth to solve. So we end up using the Windows version instead.

Note: for those interested in the problems, these are:
 - not having libsdl2-2.0: solving this was easy  (sudo apt-get install libsdl2-2.0)    
 - not having the GLIBC_2.27 version -> we the look at this askubuntu thread and is not worth the trouble.

Note 2: we should have used a more modern ubuntu version, but i am used to let the lastest version and nighlies for testing, not for learning like this. Because it is easy to find incompatibilities.

The windows version is as simple as downloading the zip file, unzip it in a folder, and execute it.
After execute it, you need to follow the steps at their quick start to have a system.

Last thing we will do in this entry is to have our "hello_world.vpk" file in the same folder and drag it to the Vita3K
to test it.

If everything went well we should see this screen:





With this, we know our sdk and code works, now we can go further.

No comments:

Post a Comment