Sonic and Sega Retro Message Board: So Mac Sonic Hacking. - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

So Mac Sonic Hacking. Just how many "I'm a Mac" guys are at Retro?

#1 User is offline GT Koopa 

Posted 08 October 2009 - 11:11 PM

  • Posts: 1987
  • Joined: 23-February 09
  • Gender:Male
  • Location:Elgin, IL
  • Project:Flicky Turncoat DX, T.L.W.S. Vs M.G.W.
  • Wiki edits:6
Just as what this thread says, Sonic hacking has been mainly a Windows based field with close to all of its programs under its tight grip. But recently I have been trying to research just how to edit Sonic 2 (as so far it is the only one I can build on a Mac) without all the fancy tools, but by editing the binary files. It is coming along fine, asking around and such. But now I wonder exacly how many of you use Mac (or another non Windows operating system) for hacking, despite how limited it is.


Eventually I want to get a Windows computer again (last was a Windows 98 upgraded from a Windows 95, and it is disconnected/put away and full of viruses, not to mention the common usb flashdrive won't work right with it because it is so old) and I just might crack down and buy one, something I have been telling myself for years now and still haven't followed through with.

#2 User is offline Andlabs 

Posted 08 October 2009 - 11:21 PM

  • 「いっきまーす」
  • Posts: 2175
  • Joined: 11-July 08
  • Gender:Male
  • Project:Writing my own MD/Genesis sound driver :D
  • Wiki edits:7,061
Until I got a Windows laptop to replace an expired Windows 7 beta, most of my hacks were done on Mac using either modified Xenowhirl tools or wine. This also includes early versions of the Sonic & Knuckles split disassembly.

On a related note, in response to a problem GT Koopa was having earlier, here is a native Kosinksi (de)compressor for Mac OS X (and Linux) that runs from the command line. Just copy the GetFileSize.cpp, K-Compressor.cpp, and K-Decompressor.cpp from KENS (which you can get at Hacking-CulT) and compile all four C++ files together. I'll also make Nemesis, Enigma, and Saxman tools later.

http://idisk.mac.com/pietro10-Public/kosmac.c
This post has been edited by Andlabs: 08 October 2009 - 11:21 PM

#3 User is offline Sonic Hachelle-Bee 

Posted 09 October 2009 - 07:13 AM

  • Lost in Wood zone
  • Posts: 725
  • Joined: 03-March 04
  • Gender:Male
  • Location:Paris, France
  • Project:Sonic 2 Long Version
I have a Mac (a PPC one, it's getting old...). I'm editing Sonic 2 with the 2007 disassembly, and the "UPMEM" in hex. Someway, I linked the hex part with the disassembly so that I don't have to write 2 times my functions to build 2 different versions (one with the "UPMEM" and Knuckles, another without). I made my own Kosinski compressor/decompressor a while back, and found a way to do the graphics work easily with TileMolester.

I eventually use Windows 98 (on VirtualPC) for the Nemesis format and SonED 2 for mappings. I wrote a bunch of scripts to relocate files, import/export palettes and graphics between TileMolester, SonED 2, and the disassembly. Overall, the work is quickly done without having to bother so much with hex editing.

#4 User is offline GerbilSoft 

Posted 09 October 2009 - 01:08 PM

  • RickRotate'd.
  • Posts: 2838
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:5,000 + one spin
I have a Power Macintosh G4 (borrowed from TechServ) [dual 1.25 GHz] that I'm mainly using for Gens/GS PPC development. The first target OS for Gens/GS PPC is Ubuntu Linux, since that doesn't require rewriting the GUI. Once that's done, I will attempt to port it to MacOS X. smile.png

Keep in mind that I'm also planning on writing many debugging plugins for Gens/GS, starting with an initial VDP debugger (GTK+ only) in Release 7.1.

#5 User is offline Dr. Kylstein 

Posted 09 October 2009 - 03:39 PM

  • Posts: 84
  • Joined: 05-June 08
  • Gender:Not Telling
I'm on Ubuntu. I've been using SonMapEd and SonEd2 in Wine (SonEd2 doesn't display properly though.) I've had to use my old XP box to assemble, because the build script won't run in Wine. I heard the tools can be built for Linux, but it's been easier to log into the other station than to figure that out.

#6 User is offline Andlabs 

Posted 09 October 2009 - 03:52 PM

  • 「いっきまーす」
  • Posts: 2175
  • Joined: 11-July 08
  • Gender:Male
  • Project:Writing my own MD/Genesis sound driver :D
  • Wiki edits:7,061
QUOTE (GerbilSoft @ Oct 9 2009, 02:08 PM)
since that doesn't require rewriting the GUI. Once that's done, I will attempt to port it to MacOS X. smile.png



I already started it with m7 pre1, but I will get a fresh git repository tonight and start over. Note: until the PPC Linux port is ready, this will only run on Intel.
This post has been edited by Andlabs: 09 October 2009 - 04:02 PM

#7 User is offline Overlord 

Posted 09 October 2009 - 04:21 PM

  • Substitute Meerkovo IT Chief
  • Posts: 16993
  • Joined: 12-January 03
  • Gender:Male
  • Location:Berkshire, England
  • Project:VGDB
  • Wiki edits:3,204
All my hacking work in the past has been done on Windows, and all my tools to date have been Windows only. =P Now I'm starting to get to grips with Python I may well start writing future stuff in that, simply because it IS cross platform, though my main target platforms will be Linux and Windows with OS X as a distant third priority, honestly, because (a) I neither have nor want any modern Apple products so testing will be impossible for me to do and (b) I'm not sure if tools even exist to generate Mac Python binaries without using a Mac...

#8 User is offline GerbilSoft 

Posted 09 October 2009 - 04:24 PM

  • RickRotate'd.
  • Posts: 2838
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:5,000 + one spin
QUOTE (Overlord @ Oct 9 2009, 05:21 PM)
I'm not sure if tools even exist to generate Mac Python binaries without using a Mac...

Is that even necessary? Mac OS X includes a Python interpreter. (Granted, it's probably outdated, but it's still there.)

#9 User is offline Epsilonsama 

Posted 09 October 2009 - 04:26 PM

  • THE FASTEST TAPE ALIVE!
  • Posts: 630
  • Joined: 15-November 08
  • Gender:Male
  • Location:Earth
  • Wiki edits:7
QUOTE (Overlord @ Oct 9 2009, 05:21 PM)
All my hacking work in the past has been done on Windows, and all my tools to date have been Windows only. =P Now I'm starting to get to grips with Python I may well start writing future stuff in that, simply because it IS cross platform, though my main target platforms will be Linux and Windows with OS X as a distant third priority, honestly, because (a) I neither have nor want any modern Apple products so testing will be impossible for me to do and (b) I'm not sure if tools even exist to generate Mac Python binaries without using a Mac...


I'm implying your project is open source so all you could do is let the users with a mac generate the binaries and all you have to do is post instructions of how to do it for the mac guys or ask someone with a mac to do it.

#10 User is offline Overlord 

Posted 09 October 2009 - 05:13 PM

  • Substitute Meerkovo IT Chief
  • Posts: 16993
  • Joined: 12-January 03
  • Gender:Male
  • Location:Berkshire, England
  • Project:VGDB
  • Wiki edits:3,204
QUOTE (GerbilSoft @ Oct 9 2009, 10:24 PM)
QUOTE (Overlord @ Oct 9 2009, 05:21 PM)
I'm not sure if tools even exist to generate Mac Python binaries without using a Mac...

Is that even necessary? Mac OS X includes a Python interpreter. (Granted, it's probably outdated, but it's still there.)

Yeah, I'd be using binaries only, at least at first. =P For a start, the users would have to install wxwidgets as well as have the native Python runtimes - I'm not especially sure I want my first forrays into coding in the thing open =P

QUOTE (Epsilonsama @ Oct 9 2009, 10:26 PM)
I'm implying your project is open source so all you could do is let the users with a mac generate the binaries and all you have to do is post instructions of how to do it for the mac guys or ask someone with a mac to do it.

This is certainly an option, if the app reaches a point I'm happy opening the code at, I must admit.

#11 User is offline Puto 

Posted 10 October 2009 - 06:53 AM

  • Shin'ichi Kudō, detective.
  • Posts: 2012
  • Joined: 31-July 05
  • Gender:Male
  • Location:Portugal, Oeiras
  • Project:Part of Team Megamix, but haven't done any actual work in ages.
  • Wiki edits:51
QUOTE (Overlord @ Oct 9 2009, 11:13 PM)
QUOTE (GerbilSoft @ Oct 9 2009, 10:24 PM)
QUOTE (Overlord @ Oct 9 2009, 05:21 PM)
I'm not sure if tools even exist to generate Mac Python binaries without using a Mac...

Is that even necessary? Mac OS X includes a Python interpreter. (Granted, it's probably outdated, but it's still there.)

Yeah, I'd be using binaries only, at least at first. =P For a start, the users would have to install wxwidgets as well as have the native Python runtimes - I'm not especially sure I want my first forrays into coding in the thing open =P

OS X already includes wxWidgets. And Python.

#12 User is offline Overlord 

Posted 10 October 2009 - 02:24 PM

  • Substitute Meerkovo IT Chief
  • Posts: 16993
  • Joined: 12-January 03
  • Gender:Male
  • Location:Berkshire, England
  • Project:VGDB
  • Wiki edits:3,204
YES I KNOW OS X INCLUDES THE PYTHON RUNTIMES NOW =P

Didn't know it included wxwidgets though. Still, I'd stick to binaries at least at first. We're kinda drifting off message a bit here though =P

#13 User is offline Oerg866 

Posted 27 October 2009 - 09:21 AM

  • Posts: 1767
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
QUOTE (GT Koopa @ Oct 9 2009, 05:11 AM)
not to mention the common usb flashdrive won't work right with it because it is so old


*bump*

http://www.technical-assistance.co.uk/kb/usbmsd98.php

#14 User is offline GT Koopa 

Posted 27 October 2009 - 12:03 PM

  • Posts: 1987
  • Joined: 23-February 09
  • Gender:Male
  • Location:Elgin, IL
  • Project:Flicky Turncoat DX, T.L.W.S. Vs M.G.W.
  • Wiki edits:6
QUOTE (Oerg866 @ Oct 27 2009, 08:21 AM)
QUOTE (GT Koopa @ Oct 9 2009, 05:11 AM)
not to mention the common usb flashdrive won't work right with it because it is so old


*bump*

http://www.technical-assistance.co.uk/kb/usbmsd98.php


I think I tried that already long time ago. Didn't exactly work out or get it to work. Plus, right now the old computer is disconnected in the basement. With the blue tint screen problem it has (yes, I know I sound crazy or can't change monitor colors but it is real) the computer would be horrible for hacking visually. Any speck of red would be smeared into a giant red line covering the screen.
--
So I overheard that SonMapEd works in Wine. Is this true? Despite the fact I couldn't really get Wine to work either, what programs work in Wine?
This post has been edited by GT Koopa: 27 October 2009 - 01:01 PM

#15 User is offline Andlabs 

Posted 27 October 2009 - 04:09 PM

  • 「いっきまーす」
  • Posts: 2175
  • Joined: 11-July 08
  • Gender:Male
  • Project:Writing my own MD/Genesis sound driver :D
  • Wiki edits:7,061
QUOTE (GT Koopa @ Oct 27 2009, 01:03 PM)
So I overheard that SonMapEd works in Wine. Is this true? Despite the fact I couldn't really get Wine to work either, what programs work in Wine?

Yes, though sometimes (at least for me for a built-from-source wine) the menus stop working, forcing you to force quit wine (or if you re-added open-x11 to Leopard, like I did, all of X11).

(Edit: typo; sometimes I stop working)

Also, SonMapEd and all the command line tools work in wine, and SonEd doesn't AFAIK. I haven't tried too many tools. So unless you want to use asmx (or intend to do S&K, whose disassembly doesn't work with asmx (and I've tried fixing it, too)), you can

CODE
echo build.bat | wine cmd

This post has been edited by Andlabs: 27 October 2009 - 04:13 PM

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users