Difference between revisions of "Cubeworld beginner mod creating tutorial"

From Nexus Mods Wiki
Jump to: navigation, search
m (Small grammar edits)
(Starting Cheat Engine setup)
Line 70: Line 70:
  
 
 
 
 
 +
  
  
Line 78: Line 79:
  
 
While modding Cube World, Cheat Engine is used for dynamic analysis of the game. Dynamic analysis in this case means looking at values stored in the game while it is running. The interesting things we are looking at are the actual values of the 'variables' (Link to what variables are) and when they are used. These variables can be anything; the health of the players, monsters, or bosses, identifying values (IDs) of objects, quests, and items. Everything from the smallest flower to the biggest mountain range is data (another word for variable/part of a variable) stored and used in the game. They also have their specific pieces of code (logic to create and interact with variables) which we will modify to create new things in Cube World.
 
While modding Cube World, Cheat Engine is used for dynamic analysis of the game. Dynamic analysis in this case means looking at values stored in the game while it is running. The interesting things we are looking at are the actual values of the 'variables' (Link to what variables are) and when they are used. These variables can be anything; the health of the players, monsters, or bosses, identifying values (IDs) of objects, quests, and items. Everything from the smallest flower to the biggest mountain range is data (another word for variable/part of a variable) stored and used in the game. They also have their specific pieces of code (logic to create and interact with variables) which we will modify to create new things in Cube World.
 +
 +
It is expected to have Cheat Engine installed and to have Cube World set up as described in the '''Setup''' section. It is highly recommended but not necessary to do the Cheat Engine tutorial before you start with this section. The tutorial being referred to is the built-in Cheat Engine tutorial that pops up when you start Cheat Engine for the first time. More information about that can be found here: [Todo: Link]. Doing the tutorial provides you with solid basic knowledge for using Cheat Engine and modding Cube World. On top of that, the C++ and x86 Assembly discussed later in this guide will become easier to grasp as well.
 +
 +
=== Starting Cheat Engine ===
 +
 +
----
 +
 +
Starting Cheat Engine is as simple as locating `Cheat Engine.exe` on your computer. If you have followed the '''Setup''' section properly, this should be on your Desktop. Double click the file to open it. This should give you the following popup:https://i.ytimg.com/vi/drv1BEptAMQ/maxresdefault.jpg Pressing ''yes'' should start Cheat Engine. If you are prompted with doing a tutorial and you have not done that yet, it is highly recommended to do so.
 +
 +
Once Cheat Engine is started, you want to start Cube World. This can be done from the Steam Client itself or from a shortcut located on your computer. Cube World is fully loaded if you can hear the music and move the cursor in the main menu. When this is the case, you can load Cube World in Cheat Engine using the following steps. <Todo: Steps>
 +
 +
&nbsp;
 +
 +
&nbsp;
  
 
== Visual studio ==
 
== Visual studio ==

Revision as of 14:24, 16 February 2022


Overview


This is a step by step guide on how to create mods for Cube World for complete beginners. No previous experience is required, although a computer science background will make it easier. "Cube World is a voxel-based action RPG with a focus on exploration. It takes place in a procedurally generated fantasy world made up entirely of cubes." [1]


Introduction


Making mods for a game means modifying some of the content of said game and usually being able to share those modifications with others. 

Creating mods is a process that involves programming on multiple levels, especially for Cube World. In this guide we will cover topics like x86 assembly, c++, reverse engineering, hooks, processes, byte overwriting, dll compilation, source control and more. However do not worry. Even though these might all seem daunting terms, most are simpler than you think. I hope your are as exited for this as I am!

Before we finally get started, let me introduce myself. I am known as Nichiren in the Cube World modding scene and I have been actively modding Cube World for 3 years. During this time I have created or worked on more than half of the mods that exist for the steam release version of Cube World. Lets get this thing started.

Requirements


To mod Cube World you will need the following:

  • A machine running windows 10 or higher (possibly also windows 7, but that is not confirmed) that can run Cube World smoothly. This is required because you will be running other programs next to Cube World.
  • A steam account with Cube World.
  • A few GB of storage for all required programs.
  • [Recommended] Github account.

Except for the cost of Cube World, modding this game can be done entirely for free. All programs used to mod or aid modding are free of charge at the moment of this writing.


Setup


Cubeworld


Cheat Engine


Cheat Table


Steamless


IDA


Visual Studio


Modloader


Mods folder


 



Cheat engine


While modding Cube World, Cheat Engine is used for dynamic analysis of the game. Dynamic analysis in this case means looking at values stored in the game while it is running. The interesting things we are looking at are the actual values of the 'variables' (Link to what variables are) and when they are used. These variables can be anything; the health of the players, monsters, or bosses, identifying values (IDs) of objects, quests, and items. Everything from the smallest flower to the biggest mountain range is data (another word for variable/part of a variable) stored and used in the game. They also have their specific pieces of code (logic to create and interact with variables) which we will modify to create new things in Cube World.

It is expected to have Cheat Engine installed and to have Cube World set up as described in the Setup section. It is highly recommended but not necessary to do the Cheat Engine tutorial before you start with this section. The tutorial being referred to is the built-in Cheat Engine tutorial that pops up when you start Cheat Engine for the first time. More information about that can be found here: [Todo: Link]. Doing the tutorial provides you with solid basic knowledge for using Cheat Engine and modding Cube World. On top of that, the C++ and x86 Assembly discussed later in this guide will become easier to grasp as well.

Starting Cheat Engine


Starting Cheat Engine is as simple as locating `Cheat Engine.exe` on your computer. If you have followed the Setup section properly, this should be on your Desktop. Double click the file to open it. This should give you the following popup:maxresdefault.jpg Pressing yes should start Cheat Engine. If you are prompted with doing a tutorial and you have not done that yet, it is highly recommended to do so.

Once Cheat Engine is started, you want to start Cube World. This can be done from the Steam Client itself or from a shortcut located on your computer. Cube World is fully loaded if you can hear the music and move the cursor in the main menu. When this is the case, you can load Cube World in Cheat Engine using the following steps. <Todo: Steps>

 

 

Visual studio


Overview


Downloading


Installing


Setup


Compiling


 

IDA


CWSDK


Modloader 

References


  1.  https://store.steampowered.com/app/1128000/Cube_World/