Where to put/how to install patches

Everything about ToME 2.x.x. No spoilers, please

Moderator: Moderator

Message
Author
Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Where to put/how to install patches

#1 Post by Ithulta »

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.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#2 Post by Ithulta »

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?

Xandor Tik'Roth
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

#3 Post by Xandor Tik'Roth »

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.
And it was such a good idea...

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#4 Post by Ithulta »

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!

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#5 Post by Ithulta »

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).

Shoob
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

#6 Post by Shoob »

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.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: Where to put/how to install patches

#7 Post by madmonk »

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.
Regards

Jon.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#8 Post by Ithulta »

This is a kinda beyond my range of knowledge. ToME's an application bundle on macs, which I wouldn't know how to recompile.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#9 Post by Ithulta »

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 :D):
--- 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
It ran into trouble, though, with this file:
--- src/squeltch.c.orig 2004-02-24 16:42:15.000000000 -0500
+++ src/squeltch.c 2004-05-05 18:58:35.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?

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.

Derakon
Halfling
Posts: 85
Joined: Mon May 08, 2006 12:45 am
Location: Seattle

Re: Where to put/how to install patches

#10 Post by Derakon »

"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.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#11 Post by Ithulta »

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.

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#12 Post by Ithulta »

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:
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.
Help?

budswell
Wyrmic
Posts: 292
Joined: Wed May 21, 2008 2:08 am

Re: Where to put/how to install patches

#13 Post by budswell »

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

Ithulta
Halfling
Posts: 112
Joined: Sun Dec 20, 2009 7:21 pm

Re: Where to put/how to install patches

#14 Post by Ithulta »

Hm, seems like it got farther along, but I got a different error this time:
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
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.

Falconis
Uruivellas
Posts: 743
Joined: Tue Jan 27, 2004 3:10 pm
Location: UK

Re: Where to put/how to install patches

#15 Post by Falconis »

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?

Post Reply