walkerp1 / dwarftherapist

Automatically exported from code.google.com/p/dwarftherapist
Other
1 stars 0 forks source link

Port to Mac #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would love to use this on the Mac.

Original issue reported on code.google.com by anthony....@gmail.com on 26 Sep 2009 at 4:23

GoogleCodeExporter commented 9 years ago
Indeed. I have tenuous access to macs at the moment. If I get one full time I 
throw 
some time at this.

Original comment by treyst...@gmail.com on 30 Sep 2009 at 11:19

GoogleCodeExporter commented 9 years ago
Seconded

Original comment by raylewi...@gmail.com on 28 Oct 2009 at 5:31

GoogleCodeExporter commented 9 years ago
Thirded =)

Original comment by metz.e...@gmail.com on 20 Jul 2010 at 3:28

GoogleCodeExporter commented 9 years ago
check here:

http://code.google.com/r/jofarrell-dwarftherapistosx/

Original comment by GuiV...@gmail.com on 28 Jul 2010 at 6:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The main-line Therapist does not work on OSX, James Farrell has worked on that 
aspect in his own branch of the code.

My understanding is that chmod is not experienced with ObjC and does not own a 
Mac for testing, and that is the reason for not integrating the code so far.

Compare 
http://code.google.com/r/jofarrell-dwarftherapistosx/source/browse/src/dfinstanc
eosx.mm with 
http://code.google.com/p/dwarftherapist/source/browse/src/dfinstanceosx.cpp

Original comment by spo...@gmail.com on 31 Jul 2010 at 8:26

GoogleCodeExporter commented 9 years ago
Thanks for the clarification spoooq, it sounds great.

Has anyone out there used the downloadable dmg from the 'Latest Build' Link?

Original comment by anthony....@gmail.com on 1 Aug 2010 at 1:46

GoogleCodeExporter commented 9 years ago
When you get to the mac port, I love you for ever. Tho with Linux version. I 
know be a while. Still your epic team.

Original comment by SamMan77...@gmail.com on 6 Oct 2010 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by treyst...@gmail.com on 13 Oct 2010 at 4:41

GoogleCodeExporter commented 9 years ago
I'm trying to get mac os x port back with 31.18 version maps. I've got the app 
running on 10.6, fixed few problems and stuck with reading memory for a new df 
version. The problem is that in scaner's job there are magic references 
declared. And os x version is missing it.

#ifdef Q_WS_WIN #define RACE_INDEX_MAGIC_REFERENCE ((const ushort)0x3966) 
#endif #ifdef Q_WS_X11 #define RACE_INDEX_MAGIC_REFERENCE ((const 
ushort)0xbf0f) #endif #ifdef Q_WS_MAC #define RACE_INDEX_MAGIC_REFERENCE 
((const ushort)0x0000) // TBD #endif

I am not sure how to get it except of running another version of df for other 
platform and then scanning for whatever "value" of dwarf race index. So can 
someone post their log/run.log with line like "DEBUG    core    dwarf race: 
"0x00000000" src/dfinstance.cpp:289? (load_dwarves)" So I could scan for that 
value. Thanks.

Original comment by dec...@gmail.com on 19 Dec 2010 at 10:18

GoogleCodeExporter commented 9 years ago
Ok, dwarf race value appears to be 0x000000c8, someone please confirm it for 
0.31.18 win/lin versions.

Original comment by dec...@gmail.com on 20 Dec 2010 at 1:42

GoogleCodeExporter commented 9 years ago
Line from run.log wth 0.31.18 windows version:
2010-???-21 17:46:59.304 DEBUG  core    dwarf race: "0x000000c8" 
[..\dwarftherapist\src\dfinstance.cpp:284] (load_dwarves)

decvar, did you managed to find the offsets for 31.18 mac with therapist's 
scanner ?

thanks®ards,

Original comment by senwei...@gmail.com on 21 Dec 2010 at 3:37

GoogleCodeExporter commented 9 years ago
I know this hasn't been touched in a while, but I'm currently working on a mac 
port and have most of the memory scanner stuff up and working, but the above 
mentioned Magic reference numbers are a place I'm currently short. Does anyone 
have any insight as to how they were derived? I've been pouring over dumps of 
the Windows, Linux and Mac versions to attempt to fill in a mac version, but 
haven't had any success yet.

Original comment by taylor.f...@gmail.com on 30 Apr 2011 at 5:08

GoogleCodeExporter commented 9 years ago
The windows and linux offsets were found via disassembly mostly. Looking for 
known strings and following the assembler jumps all over the place. It's a slow 
business, but once you find the general structure of the mac version it won't 
change much from version to version. If you look at some of the methods in the 
scanner, you can see what is being looked for. Easiest (or at least it used to 
be) was finding the game's creature vector. Which is a std::vector<Creature*>

Good luck!

Original comment by treyst...@gmail.com on 30 Apr 2011 at 7:29

GoogleCodeExporter commented 9 years ago
here goes what jofarrel told me some time ago, I hope it helps you get the race 
pointer:
"To find the dwarf_race_id i load up DF vanilla and use "The Cheat" to search 
for 200 (the dwarf race id) then load up IronHand and search for 201 (the iron 
hand dwarf race id). When i find a memory value that matches i know i'm in luck"

Good luck :)

Original comment by GuiV...@gmail.com on 3 May 2011 at 8:48

GoogleCodeExporter commented 9 years ago
hey i'm really interested in getting this to work. i'm not great with code but 
if anyone has anything i can do to help this become a reality shoot me a mail, 
i'll do what i can. currently using 31.25 and i've got a copy of crossover 
games (wine wrapper) as well as the latest windows and jofarrel mac versions. 
let me know :)

Original comment by ActnMovi...@gmail.com on 9 May 2011 at 5:46

GoogleCodeExporter commented 9 years ago
I may have a test build for Mac OS X soon, had some real life stuff interrupt, 
but I'm getting really close to getting it to read dwarves, have got most of 
the searches working, so it's moving along.

Original comment by taylor.f...@gmail.com on 26 May 2011 at 3:44

GoogleCodeExporter commented 9 years ago
And by close, I apparently meany, really, really close. I've got a version up 
and running on Mac OS X reading and writing dwarves for version 31.25. It's not 
100% yet, but most of the basics are there. What's the standard practice for 
releasing for test? I could check a clone in as is so people can grab it, or I 
can post a binary for a few mac folk to start testing.

Original comment by taylor.f...@gmail.com on 27 May 2011 at 11:45

GoogleCodeExporter commented 9 years ago
Please post a binary for OS X 10.5

I'd be happy to test, but the Qt SDK is only compatible with Snow Leopard, so I 
can't compile an OS X version.

Original comment by aan...@gmail.com on 28 May 2011 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
DFFD host for OS X build : http://dffd.wimbli.com/file.php?id=4463

Original comment by taylor.f...@gmail.com on 30 May 2011 at 4:15

GoogleCodeExporter commented 9 years ago
Here is a link to the qt download needed to run the above Dwarf Therapist 
version: 
http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x

Original comment by d.rtyh....@gmail.com on 30 May 2011 at 9:42

GoogleCodeExporter commented 9 years ago
My little brother is using it right now on his fortress and no problems yet.  
Thank you for this.

Original comment by Firet...@gmail.com on 30 May 2011 at 10:17

GoogleCodeExporter commented 9 years ago
It should have the necessary frameworks all in the binary. If you are having to 
download the Qt framework something is not right.

Original comment by taylor.f...@gmail.com on 30 May 2011 at 11:13

GoogleCodeExporter commented 9 years ago
DT crashed on startup before I installed the above package, citing a missing qt 
framework as the culprit.  I guess something is not right then?

Original comment by d.rtyh....@gmail.com on 30 May 2011 at 11:57

GoogleCodeExporter commented 9 years ago
sir you are a god among men. works perfectly

Original comment by ActnMovi...@gmail.com on 3 Jun 2011 at 3:12

GoogleCodeExporter commented 9 years ago
There was a bad release originally that cased that issue, but I quickly put up 
one that included the Qt Frameworks necessary.

Original comment by taylor.f...@gmail.com on 5 Jun 2011 at 5:44

GoogleCodeExporter commented 9 years ago
So far it works beautifully for me too

Original comment by aan...@gmail.com on 5 Jun 2011 at 8:57

GoogleCodeExporter commented 9 years ago
Thanks for maintaining this! I would hate to lose DF for the Mac.

Original comment by tcol...@gmail.com on 7 Jun 2011 at 12:47

GoogleCodeExporter commented 9 years ago
Beta version released on downloads page. Thanks to my predecessors, the port 
has gone pretty smoothly, all things considered.

Original comment by ehler...@gmail.com on 5 Mar 2012 at 4:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Nice Work! Great to see new releases coming out!

Original comment by treyst...@gmail.com on 5 Mar 2012 at 5:46