Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Not having any luck trying to apply the git patch. I just get the following error:

error: scripts/GMLiveAPI/GMLiveAPI.gml: patch does not apply

I've had a look at doing it manually but I'm not happy doing that as the raw data looks a lot more than what the lines look like when you look at the patch data to try and amend the right lines.

Can someone supply a fixed GMLiveAPI file so a simple cut and paste could be done within GMS 2 itself?

Thanks.

(+3)

I'll run you through it, it's super easy to do it manually and just worked for me (thanks gnysek & yellow!):

  1. Open https://gist.github.com/gnysek/23e3b3c1d082fe7ffe0c6b734617599f in a browser window
  2. Open \scripts\GMLiveAPI\GMLiveAPI.gml from your project's directory in a text editor
  3. Grab line 12 from the patch (except for the + sign at the start) and replace line 23 in in the gml file with it
  4. Grab line 21 from the patch (except for the + sign at the start) and replace line 60 in the gml file with it
  5. Grab lines 30 and 31 from the patch (except for the + sign at the start) and replace lines 67 and 68 with them respectively

Save it and you're done! Good luck!

(+1)

Might be a mac thing but patching with git didn't work :(
Manually replacing the lines worked though! Thanks!

(1 edit) (+1)

Download the GMLive_2022.2.patch and copy it to the root of your project (you can find the root of your project easily->  in GMS go at menu: Help -> Open Project In Explorer). Then in the root of project directory write the command (via command prompt,  powershell, terminal etc):

git apply GMLive_2022.2.patch
(+1)

I did exactly the same thing trying to apply the patch as you described but I gave it another go anyway and still got the same error message. 

Then I tried doing the editing from the patch lines as Bulletproof Outlaws suggested and, after realising textedit on Mac doesn't work very well with code lines that long, I downloaded and did the cut/paste with Atom instead. Now I am up and running again finally.

Much appreciated to both of you for trying to help me out here. I don't have much hair left to pull out :-)

it might crash, if you try to apply it on different version, or applied any change on original files

Was getting the same error. Running "git apply --reject --whitespace=fix GMLive_2022.2.patch" worked for me.