Where to put/how to install patches
Moderator: Moderator
Where to put/how to install patches
How do you install patches. Is there some folder for them? I found one named 'patch,' but putting patches (saved as 'All Files') in there did nothing.
Re: Where to put/how to install patches
Seriously can anybody tell me how to do this? Does the mac version not have this kind of functionality or something? If it does, should most of the patches from killerbunnies.org work?
-
- Keeper
- Posts: 1549
- Joined: Tue Aug 12, 2003 3:08 pm
- Location: The edge of the Abyss
Re: Where to put/how to install patches
It's been ages since I've tinkered with macs, but...
First of all, backup your current ToME folder just in case.
Second, the patches you're talking about are zipped, right? If so, you should just be able to unzip them into the ToME folder and it'll do everything for you. If not, place it all in there manually, overwriting when necessary. Then, if your game works, then it was patched successfully.
First of all, backup your current ToME folder just in case.
Second, the patches you're talking about are zipped, right? If so, you should just be able to unzip them into the ToME folder and it'll do everything for you. If not, place it all in there manually, overwriting when necessary. Then, if your game works, then it was patched successfully.
And it was such a good idea...
Re: Where to put/how to install patches
Crap, the answer always seems to be to put it in the parent directory and not all those little subdirectories. I'll try it and see if it works. Thanks!
Re: Where to put/how to install patches
Well it doesn't seem to have worked. They did nothing. I was actually trying to install patches from Zizzo's page, killerbunnies.org. They opened right in my browser, so I just saved them as 'all files' with the file extension .diff (which is from his page).
-
- Reaper
- Posts: 1535
- Joined: Mon Jan 22, 2007 6:31 pm
- Location: East of the sun, west of the moon
Re: Where to put/how to install patches
I dont have access to a mac version... but I know on the windows version there is a patches directory... I have never used them myself.
Right now (keep in mind it is WAY past my bedtime so I be tired and not thinking completely correctly) the .diff extension makes me think of compiling and maybe that is the only way to incorporate them... (I very may well be wrong here though).
try putting them into the patches directory and then if all else fails go to compiling it with the patches.
Right now (keep in mind it is WAY past my bedtime so I be tired and not thinking completely correctly) the .diff extension makes me think of compiling and maybe that is the only way to incorporate them... (I very may well be wrong here though).
try putting them into the patches directory and then if all else fails go to compiling it with the patches.
Re: Where to put/how to install patches
If you look at the patches a lot of them are C code, which means you will have to re-compile the code with the patches in place.
The Lua code can be dropped into place without too much trouble.
The Lua code can be dropped into place without too much trouble.
Regards
Jon.
Jon.
Re: Where to put/how to install patches
This is a kinda beyond my range of knowledge. ToME's an application bundle on macs, which I wouldn't know how to recompile.
Re: Where to put/how to install patches
I thought maybe since they're diff files I could try using patch, which seemed to work on one file (haven't tried it on the others yet). It dealt with these to files correctly (in fact, I checked them, and they had all the changes in place; this seems kinda strange as all these files are bundled in the tome app, and core's in a directory called 'Resources', not lib; I told patch where the first file was, so maybe it adapted or something; I didn't know it could do that; overuse of semicolons ftw
):
EDIT:
Just realized that I could grab the source from the tome website. Do any of you know if the source built into the tome executable on the mac port? Would I have to build it from the source to actually patch the source code (or whatever the stuff in src is).

It ran into trouble, though, with this file:--- lib/core/auto.lua.orig 2004-02-24 16:42:10.000000000 -0500
+++ lib/core/auto.lua 2004-05-05 19:16:18.000000000 -0400...
--- lib/core/xml.lua.orig 2004-02-24 16:42:10.000000000 -0500
+++ lib/core/xml.lua 2004-05-05 21:16:22.000000000 -0400
I don't have this src directory that it mentions. Does src stand for source, or something, and does the standard linux install have that directory?--- src/squeltch.c.orig 2004-02-24 16:42:15.000000000 -0500
+++ src/squeltch.c 2004-05-05 18:58:35.000000000 -0400
EDIT:
Just realized that I could grab the source from the tome website. Do any of you know if the source built into the tome executable on the mac port? Would I have to build it from the source to actually patch the source code (or whatever the stuff in src is).
Last edited by Ithulta on Sun Jan 03, 2010 5:44 am, edited 1 time in total.
Re: Where to put/how to install patches
"src" stands for "source", a.k.a. source code. That's the stuff that gets compiled into an executable and included in the application. Thus, any patches that affect files in src would require a recompile to use.
Re: Where to put/how to install patches
Thanks. So since I didn't get that with my install, would I have to rebuild it from the source? I just used the disk image from the website.
Re: Where to put/how to install patches
Patched the source code without problem, but how would I go about building it from the source? There's no configuration script, so I can't go the ./configure, make, make install route. I tried just giving make makefile.osx as a the file to use (I didn't give it a target), but that returned a weird error message:
Help?admins-macbook:tome-235-src NameHere$ make -f src/makefile.osx
make: *** No rule to make target `lua/lapi.c', needed by `lua/lapi.o'. Stop.
Re: Where to put/how to install patches
My guess is you need to be in the src directory when you run the make command. This would woould solve your issue if there is a file: src/lua/lapi.c
Re: Where to put/how to install patches
Hm, seems like it got farther along, but I got a different error this time:
I know for a fact that stdarg.h does exist at that location. The next two errors I'm not sure about. The last file (/var/folders/jE/jEfdAyyMG3Wg84fbKz8VLE+++TM/-Tmp-//cc28fHxr.out) doesn't exist. I'm running 10.6, not 10.4 (or 10.1). Would that cause problems with compiling from the source? It seems to be trying to build for an earlier version.admins-macbook:~ NameHere$ cd Downloads/tome-235-src/src
admins-macbook:src NameHere$ make -f makefile.osx
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lapi.o lua/lapi.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lcode.o lua/lcode.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/ldebug.o lua/ldebug.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/ldo.o lua/ldo.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lfunc.o lua/lfunc.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lgc.o lua/lgc.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/llex.o lua/llex.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lmem.o lua/lmem.c
MACOSX_DEPLOYMENT_TARGET="10.1" cc -Wall -Os -g -pipe -fpascal-strings -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -Ilua -I. -DUSE_MACOSX -DMACH_O_CARBON -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY -DSUPPORT_GAMMA -DUSE_LUA -c -o lua/lobject.o lua/lobject.c
In file included from lua/lobject.c:8:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lua/lobject.c: In function ‘luaO_verror’:
lua/lobject.c:86: warning: implicit declaration of function ‘va_start’
lua/lobject.c:88: warning: implicit declaration of function ‘va_end’
In file included from lua/lobject.c:8:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
lua/lobject.c: In function ‘luaO_verror’:
lua/lobject.c:86: warning: implicit declaration of function ‘va_start’
lua/lobject.c:88: warning: implicit declaration of function ‘va_end’
lipo: can't open input file: /var/folders/jE/jEfdAyyMG3Wg84fbKz8VLE+++TM/-Tmp-//cc28fHxr.out (No such file or directory)
make: *** [lua/lobject.o] Error 1
Re: Where to put/how to install patches
This link appears to explain the problem (the first bit of quoted text) and a work around:
http://lists.cairographics.org/archives/cairo/2009-October/018395.html
Maybe change the makefile deployment target to 10.6 and remove / change the isysroot to the 10.6 sdk?
http://lists.cairographics.org/archives/cairo/2009-October/018395.html
Maybe change the makefile deployment target to 10.6 and remove / change the isysroot to the 10.6 sdk?