RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Patching System

0 Members and 2 Guests are viewing this topic.

*
Rep:
Level 84
Rubber Shark
VX Patching System
Version: 2.0 Beta
Author: Yeyinde
Date: October 1, 2008

Version History


  • <Version 2.0> Release

Planned Future Versions

  • <Version 2.1> Fixes to the help window and audio deletion
  • <Version 2.2> Add an internal versioning system for dependancied

Description


This script allows you to "patch" your released RPG Maker VX game with small-ish files, rather than having to upload the fixed version every time.  The script has the ability to alter game data (Actors, Enemies, Items, Maps, etc.), graphics, and even music and sound effects.  It can even add to existing scripts!

Features

  • Patches data, graphics, and audio
  • Easy to use patch creator
  • Security to prevent hacked or unwanted patches from working
  • Patches can be used to add extra content!

Instructions

  • Insert the following .txt file into a new script section directly above "Main" and below any custom script entries.
  • In "Main", add the following line right before the line that says "begin": Patcher.start
  • In "Main", add the following line right at the end: Patcher.finish
  • Modify the constants in "PatchConfig" to suit your needs.
  • Create patches by calling "$scene = Scene_PatchMaker.new" with the "Script..." command.  Press the A button on an item to get some info on it. Select ">>Finish" to create the dated patch.

Script


Because the script is too large to be posted (~229 KB)

Credit


  • Yeyinde (Core)
  • Minero Aoki (FileUtils)
  • Ruby Standard Library (Find)
  • Mauricio Julio Ferna'ndez Pradier and Austin (Minitar)

Support


Post here if you need help.

Author's Notes


Currently, the help window is blank due to a small issue with it refusing to update, even after explicit calls.   Also, there is an issue with audio deletion if a patched audio file is being played.  A small workaround is in effect, but I'd rather fix the issue directly.

Restrictions

Free to use in free games. $20 commercial license for commercial games.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
This looks pretty wicked Yeyinde. What a fantastic idea.

Best new member ever <3

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
holy crap that kicks so much ass.
I hope someone can actually make use of this, it'd make distributing games so much simpler.

Any chance of an XP version? xD
(or is the RGSS not powerful enough or something?)

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

**
Rep:
Level 85
Question. Can't patching be done without a script? Say by replacing the .rgss file.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
Question. Can't patching be done without a script? Say by replacing the .rgss file.

that wouldn't replace the data files and audio files though.
a patch essentially adds new information and overwrites -specified- info that changed, without touching anything that stays the same.  So only new resources need to be included in a patch, instead of every last resource in the game.
making updates a lot quicker to download.

FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

*
Rep:
Level 84
Rubber Shark
This looks pretty wicked Yeyinde. What a fantastic idea.

Best new member ever <3
Thank you :)

Any chance of an XP version? xD
(or is the RGSS not powerful enough or something?)
I actually was going to do an XP version, but I stopped working on it because it would have been too difficult to integrate into the default scripts.

Question. Can't patching be done without a script? Say by replacing the .rgss file.
My original plan was to have a script generate stand-alone exes that directly modify .rgssad/.rgss2a files.  I had the technology, however the speed that it ran at was way too slow to be of any use.  However, I recently discovered a new technology which might just let me restart this script.

**
Rep:
Level 85
All right, makes sense. I'll give it a shot in the future at least. (Still setting up the databases and such.)

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Welcome here Yeyinde and nice script again ^_^
I thought you didn't do an XP version because people nagged you too much. I didn't realize it was an excuse xD

Great work
*hugs*
 - Zeriab

**
Rep:
Level 85
Fly Irock
Quote from: Yeyinde
VX->XP Conversion Fund

For those who really want this script in XP, please contribute to the $30 fund.
Funds: $0/30

An XP version would be nice though.

*
Rep:
Level 84
Rubber Shark
Welcome here Yeyinde and nice script again ^_^
I thought you didn't do an XP version because people nagged you too much. I didn't realize it was an excuse xD

Great work
*hugs*
 - Zeriab
Naa.  It would have required the SDK to implement this script properly, but something this nice shouldn't need any external support to run :P

Quote from: Yeyinde
VX->XP Conversion Fund

For those who really want this script in XP, please contribute to the $30 fund.
Funds: $0/30

An XP version would be nice though.
.org quotes need not apply here.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I can understand that XD

**
Rep:
Level 84
Koalas are awesome
I don't understand how to make patches with scripts... help please...?
Spoiler for BIG:
A mini-biography-ish thing of meI am learning to script with Ruby/RGSS2, I think I'm getting pretty good at it :)
Oh yeah, and I know Latin, that count's for something, doesn't it?
This is amazing, can you raed it?
Quote
Olny 55% of plepoe can raed this.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! Spelling is important!! :D
fi yuo cna raed tihs, palce it in yuor siantugre.
The Best Ruby Guide I've Found: Why's (poignant) guide to ruby

**
Rep: +0/-0Level 84
its a great idea, but when I call the script, I get a lot of errors in others scripts!
« Last Edit: October 17, 2008, 06:43:56 PM by Charbel »

**
Rep:
Level 84
how do you get it sofarthe scripts are also updated in the patch file?

***
Rep:
Level 84
---> LOL <---
Fix your link please i get page loader error

*
Rep: +0/-0Level 84
this patching script has a lot of potential but I can't seem to get it to work properly.

First I tried to patch some scripts however the scripts don't appear in the patcher.

Second I tried to patch a music file, a file appeared in the game folder which said patch(numbers) - forgot what it said

I copied it to a copy of my game to see if I could patch it...nothing happened.

Help please!

Instructions would be nice

**
Rep: +0/-0Level 83
hey... theres an error

Script 'Game_Map' Line 223: NoMethodError Occured.
undefined method 'data' for nil:nilclass when i press ESC on the patch screen. all i do is add the scene method that calls the patcher in the main menu before selecting new game of continue or something else... is that appropriate?

sorry nevermind... i got fixed it all by myself. its not good to do that. but how to make the patch work? i mean i already made the patch file... so is there some sort of patching process before starting a game when the patch is done? i mean like those patch the Online RPGs have?
« Last Edit: February 06, 2010, 10:37:05 AM by fatapi_shadramon »

*
Rep: +0/-0Level 69
RMRK Junior
 :blizj:
I don't understand how to make patches with scripts... help please...?


Interesting...

**
Rep: +0/-0Level 83
please mods dont mark this as necropost i really need to post this... so here it is... i used this script but there is a bug... using >>Graphics i cant seem to patch graphics and image and what not... now when i tried encrypting a test game with your patching system it comes with no graphics...

**
Rep: +0/-0Level 64
RMRK Junior
There are two problems I have found with this script. The first is easy enough to fix.
Insert the following .txt file into a new script section directly above "Main" and below any custom script entries.
There seems to be compatibility issues with SwapXT. It seems this script needs to be placed ABOVE the SwapXT one(s), otherwise the tiles will not change.

I have not figured out how to fix the second problem, however. If I have this script in my game, sound effects only play for perhaps a quarter of a second before suddenly cutting off. I really want to use this script but I can't have sound effects that are broken because of it. Is there a way to fix this issue?

*
Rep: +0/-0Level 55
RMRK Junior
How does one get the $20 across?

*
RMRK's dad
Rep:
Level 86
You know, I think its all gonna be okay.
For going the distance for a balanced breakfast.Project of the Month winner for June 2009For being a noted contributor to the RMRK Wiki2013 Best WriterSilver Writing ReviewerSecret Santa 2013 Participant
This link is dead. Does anyone have the script lying around?
:tinysmile: