Page 1 of 1

How to "Update" Your mod?

Posted: Fri Oct 04, 2013 1:21 am
by NickL4D2
I don't really know if that was posted before but, how do i "Update" my mod source code? Is there a way or i have to redo everything each version?

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 6:47 am
by IKnowRight
Hmmm, Good point. There isn't really a way I can think of to do that.

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 6:54 am
by InnocentSam
In some cases, it's a cut-paste job. Just move your snippets from the previous version into the newer version. In other cases, you may need to rewrite the snippet in order for it to work (like Reg's seed update).

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 10:22 am
by Nightmare Tank
Either there should be backwards compatibility, or some detailed explanation on here. I do know that I've seen a couple mods on here that make new rooms, but attempting to add those rooms to the .ini file after copy-pasting the code into the base file will either result in memory access violations, "inability to load map 0" or something like that, or the rooms just will not appear.

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 10:32 am
by InnocentSam
Nightmare Tank wrote:Either there should be backwards compatibility, or some detailed explanation on here. I do know that I've seen a couple mods on here that make new rooms, but attempting to add those rooms to the .ini file after copy-pasting the code into the base file will either result in memory access violations, "inability to load map 0" or something like that, or the rooms just will not appear.
Well I had to update my 008 mod several times during development and it never had any issues, it was just slightly time-consuming.

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 10:44 am
by Nightmare Tank
InnocentSam wrote:
Nightmare Tank wrote:Either there should be backwards compatibility, or some detailed explanation on here. I do know that I've seen a couple mods on here that make new rooms, but attempting to add those rooms to the .ini file after copy-pasting the code into the base file will either result in memory access violations, "inability to load map 0" or something like that, or the rooms just will not appear.
Well I had to update my 008 mod several times during development and it never had any issues, it was just slightly time-consuming.
Well I got a bunch of mods from v0.7.4 but attempting to copy-paste their source code into the related v0.8.1 files as well as their rooms into the .ini file yields the above issues...

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 11:09 am
by InnocentSam
Nightmare Tank wrote:
InnocentSam wrote:
Nightmare Tank wrote:Either there should be backwards compatibility, or some detailed explanation on here. I do know that I've seen a couple mods on here that make new rooms, but attempting to add those rooms to the .ini file after copy-pasting the code into the base file will either result in memory access violations, "inability to load map 0" or something like that, or the rooms just will not appear.
Well I had to update my 008 mod several times during development and it never had any issues, it was just slightly time-consuming.
Well I got a bunch of mods from v0.7.4 but attempting to copy-paste their source code into the related v0.8.1 files as well as their rooms into the .ini file yields the above issues...
It's best to let the respective mod author know that some people want the mod updated to 0.8.1 (or any newer version). They know their code best, and it'd be easier to port.

Re: How to "Update" Your mod?

Posted: Fri Oct 04, 2013 10:16 pm
by UnknownGlaze
Just extract the mod info into the new SCP folder you'd like to mod. Then work from there:
  • Check for M.A.V.'s, and see what's causing the problem (usually files that don't belong, such as removed ones, AND A BIGGIE: WRONG. FILE. EXTENSIONS.)
  • Update the files that haven't been extracted into there
  • In some cases, new animations/durations to models/sounds have to be added
That's basically it. I hope I helped. :D

EDIT: Just noticed you said source code. I'd compare the files, and see if anything has changed.

Re: How to "Update" Your mod?

Posted: Sat Oct 05, 2013 4:58 am
by mrpeanut188
Want to know how I updated mine?
This.
Get the vanilla and your modded code, and find what lines are modded. Copy them somewhere else, and note the line numbers.
Then compare the old vanilla and new vanilla, and paste in the modified lines using the line numbers as a reference or re-write them if the coding changed in the update.

Re: How to "Update" Your mod?

Posted: Sat Oct 05, 2013 8:02 pm
by Nightmare Tank
This...kinda worked...I got some bits, but not others...