Justin
Introduction
Included in this ZIP Archive (Update Test - RPG in a Box.zip) are two identical RPG in a Box Projects.
- Update Test v1.0.0
- Update Test v1.0.1
I have included Exported
versions of the game to quickly swap the game.pck
files.
- Update Test v1.0.0 - Windows x64
- Update Test v1.0.0 - Linux
- Update Test v1.0.0 - MacOS
=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Update Test v1.0.1 - Windows x64
- Update Test v1.0.1 - Linux
- Update Test v1.0.1 - MacOS
In the MacOS Export, game.pck
is located at:
"./Update Test v1.0.0 - Export (MacOS)/Game.app/Contents/Resources/rpginabox.pck"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Project information
"Update Test v1.0.0"
is a "Bare Bone Project"
with no modifications.
"Update Test v1.0.1"
is a "Bare Bone Project"
that includes the following modifications:
A Sign
placed at coord[-1, -5, 0]
in Map "overworld"
with a player interacts
trigger event.
A New Map called "new_overworld"
A Sign
placed at coord[0, 2, 1]
in "new_overworld"
with a player interacts
trigger event.
A Script
called "load_new_map"
to load_map("new_overworld", coord[0, 0, 0], SOUTH)
> Executed from the Sign located in Map "overworld".
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Steps to Reproduce Update / Patch Issue -
Download the attached ZIP Archive "Update Test - RPG in a Box.zip"
.
Extract the downloaded archive to a location on your computer.
NOTE: Remember the location of the extracted archive, you will go back to it a few times.
Update Test v1.0.0
Do one of the following:
- Open
"Update Test v1.0.0"
in RPG in a Box and Export Game
.
> Run the Game after Export
- Run one of the pre-exported games from directory
"Update Test v1.0.0 Exported"
.
NOTE:
- This Game DOES NOT include a
Sign
to the North of the player.
- This Game DOES NOT include the map
new_overworld
.
- This Game DOES NOT include the script
load_new_map
.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Update Test v1.0.1
Do one of the following:
- Open
"Update Test v1.0.1"
in RPG in a Box and Export Game
.
> Run the Game after Export
- Run one of the pre-exported games from directory
"Update Test v1.0.1 Exported"
.
NOTE:
- This Game DOES include a
Sign
to the North of the player.
> Interacting with this sign will load the New Map "new_overworld"
.
- This Game DOES include the map
new_overworld
.
- This Games DOES include the script
load_new_map
.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Before continuing with this section, please make a copy of the Update Test v1.0.0
game.pck
and place it somewhere notable. We will be needing this for the (After Saving Game)
section.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Patching / Updating Game (Before Saving Game)
Replace the game.pck
file from Update Test v1.0.0
with the game.pck
from Update Test v1.0.1
.
This is essentially "updating / patching" the games assets; including but not limited to scripts, scenes, shaders, models, textures, sound effects, music and any other assets.
> Source: Overview of PCK files
- The map will load the new assets as normal.
> New Map and newly added Sign to existing map: overworld
.
- The map will load newly added scripts as normal.
> New Script to load newly added map: load_new_map
.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Patching / Updating Game (After Saving Game)
Replace the Update Test v1.0.0
game.pck
file with the copy you've created.
> Mentioned above at the start of this section.
Do one of the following:
- Open
"Update Test v1.0.0"
in RPG in a Box and Export Game
.
> Run the Game after Export
- Run one of the pre-exported games from the directory
"Update Test v1.0.0"
.
NOTE: This Game should be the Bare Bone Project
with no modifications.
- Save the game!
- Close this game.
- Replace the
game.pck
from "Update Test v1.0.0"
with the game.pck
from "Update Test v1.0.1"
.
- Open
"Update Test v1.0.0"
Game.
- Continue / Resume Saved Game
Assets from "Update Test v1.0.1"
are visible within "Update Test v1.0.0"
; the game.pck
is now "updated / patched";
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Issue with Saved Game:
After loading into the Saved game
:
You will notice that the Sign
we placed from "Update Test v1.0.1"
is visible on the map when running the "game.exe"
from "Update Test v1.0.0"
.
However, interacting with the Sign
will not load the new map: new_overworld
.
Assets did update, but triggering the scripts did not.
You can load the new map using the Debug Console
using command:
load_map("new_overworld", coord[0, 0, 0], SOUTH)
The command is the only way to load or visit the new map, unless the user completely restarts the game with: New game
.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Desired Outcome:
Updating / Patching the game by replacing game.pck
should introduce the newly added content into Saved games
.
While it does introduce Models, NPC's, and other assets to an existing map, their scripts do not work.
Similar to my previous Reply:
An "Under construction" area of the map would be impossible to get to; because the script to load the new area / map does not execute.
This also includes:
- NPC Scripts (updated or added)
Changing NPC A.I.
- Tile Scripts (updated or added)
User interacting with Tiles in a map.
- Interactable Scripts (updated or added)
Scripts attached to an Object or NPC that the player interacts with.
- Updated Scripts
Pre-existing scripts that are updated or changed.
- Global Scripts
Saving / Loading changes; introducing new variables.
- And others...
Realized I left in the README.txt
that was just a draft of this reply.
Also, sorry that this is a lot!
I will also make a YouTube video demonstrating this.