PDA

View Full Version : SegaGameGear Emulator, every GG game, on Clié


hansschmucker
04-18-2003, 12:46 PM
Now we can play ANY GameGear game on our Cliés. Well almost, as we still need somebody to write a 5 way emulation hack, cause that cannot be done inside the main program. Feel free to mail your favourite Hack developer about it, cause we're not gonna do it. So right now, we're stuck with pinball games, but at least those work great (in other games you can't turn left or right since SEGA decided to use the TT 5-way controller for that).

Lucky are those with a TG-50, which's HOME and GRAFFITI buttons seem to work as Left/Right as well.

Anyway. What do we need to get things started

//EDIT: I was just told about a little program called PW-patcher Lite (available at http://www.prcedit.tk/ ). This little program has been written in Windows Delphi and is therefore a lot easier to handle. It also eliminates the need to install the Sun Java VM. I would still recommend doing so, but at least there's an alternative now. So, what must be changed in the how-to if you want to use PW-patcher lite.
1.) You don't have to download Java
2.) You don't have to install Java
3.) You can start PWpatcherlt.exe like any other Windows program.
4.) You have to extract GameGearClie.zip manually
5.) In PWPatcherLT, open the extracted XML file, not the ZIP
6.) After selecting the patch you want to apply just press Patch and browse to your Sonic PRC file.
That's about it. Hope I'm not confusing you, but I want to leave the other way in the description as it feels more right and is also compatible with Mac and Linux.
//EDIT END


a)We need the original Sonic game as released by SEGA.
http://www.sega.com/palm/purchase/buy_select_sonic.jhtml

b)We need the patches written by Glacialeye. Get them at
[Link removed as per Sega's request.]

c)We need an engine to apply the patches.
[Link removed as per Sega's request.]

d) If you don't have it allready installed, you need the Sun Jave JRE.
http://java.sun.com/j2se/1.4.1/download.html

e) You need Glacialeye's ROM replacer.
[Link removed as per Sega's request.]

f) Of course you need some ROMS to replace the current. Try looking them up in Google. Remember you are only allowed to download games which you either own or where the company which used to own the rights doesn't exist anymore (and where the rights have NOT been sold). Some people claim that it would be legal to play every game for 24h max. IT IS NOT. The ROMS must be 256kb in size.
http://www.google.com

g) And of course you need a valid Sonic for Clié regkey if you want to play longer then 5 minutes.
https://www.sega.com/palm/purchase/buy_entercode.jhtml?offerId=25

After you've gotten all that stuff together. We can start.

1. Install the Java Runtime environment as described on their homepage
2. Install the PWCPP patcher as described on their homepage
3. Start PWCPP as descirped on the pilotwarez homepage
4. File/LoadTargetList GameGearClie.zip
5. Select Sonic 1.0 Clie compatibility patch. Click on Sonic_Hedgehog_h.
5. Choose FileInfos/ChooseTargetFile and browse to your original Sonic game. OK.
6. Choose FileInfos/PatchTargetFile
7. Do the same for the Sonic 1.0 ROM Compatibility Enhancer. (Using of course the .patched file as the basis) Close PWCPP.

---Now we have a Sonic game which actually runs on the Clie. Now for replacing the ROM file---

8. Put the patched Sonic prc file as well as the ROM replacer and the ROMS you want to play into a directory of your choice. Make sure all files are NOT write protected and have DOS filenames (8.3 , like SNCTHDGH.PRC)
9. Open a DOS window (Win 9X: Start/Run/Command ; Win2K/XP: Start/Run/Cmd) and navigate to the folder you placed the files into using the CD FOLDER and the D: commands where D is the driveletter you want to change to and FOLDER, well, is the foldername.
10. Type in
SonicHC sonic.prc game.gg target.prc
Where sonic.prc is our patched standard game file. Game.gg is the game ROM you've got from google (the 256k one). Target.prc is the name of the resulting file.
11. You can now hotsync your target.prc, or whatever you called it and start gaming right away.

Legal disclaimer:
We offer you a tool. If you abuse its functionality for illegal purposes, then you and only you are to blame. We do NOT offer binary content for download which has been produced by SEGA or its associates.
Legal disclaimier end.

Atomsk
04-18-2003, 01:09 PM
I'm gussing that a 33MHz DBZ processor isn't adequate to run this thing....

hansschmucker
04-18-2003, 01:13 PM
Sorry, it was written for TT and it's pretty slow over there. The sonys are a bit faster since they've got about 38% more horsepower, but 33Mhz, I don't think that would work.

Glacialeye
04-18-2003, 01:39 PM
That program uses ARMlets, so *THERE IS NO CHANCE* it to be run on any PalmOS<5

cbulock
04-18-2003, 01:43 PM
This is pretty exciting. I can't wait until someone gets the whole button thing worked out.

helf
04-18-2003, 02:37 PM
heh. good work glacial :)

I bet if you do some more screwing around you could get it to work with larger/smaller roms.. I might mess with this later.

hansschmucker
04-18-2003, 03:36 PM
Actually that shouldn't be too hard as Sega uses 128k roms as well. Just do a binary compare and start disassembling the parts outside the ROM

marciton
04-18-2003, 05:31 PM
yes now sonic work on my NX , but I can't go left or right ...

hansschmucker
04-18-2003, 05:40 PM
RTFM, if I may be so bold to say that:

So right now, we're stuck with pinball games, but at least those work great (in other games you can't turn left or right since SEGA decided to use the TT 5-way controller for that).

The key rebinding should be handled by an external driver, similar to the driver the Clié gamepad uses. Unfortunately we're not going to do it, but if anybody else has a project that aims into this direction, maybe he would consider changing things a bit to make it work.

Massman82
04-18-2003, 06:01 PM
Sounds interesting!! :)

This is a great start...Does anyone know if it works with the Clie controller?

helf, good luck, and nice job Glaciel!!!

hansschmucker
04-18-2003, 06:01 PM
Wizard Pinball is the only game I know of, which works without Left/Right.

And sorry, it doesn't work with the Cliecontroller, since the controller basically emulates the hardkeys and jog-dial (which kinda makes one wish Palm had used Sony's jogdial code for their 5-way's second axes)

Massman82
04-18-2003, 06:02 PM
:( Didn't log me in...

hansschmucker
04-18-2003, 06:04 PM
The login-on-reply never works. It's just there to irritate inocent CliéSource users. Didn't you know that?

Massman82
04-18-2003, 06:06 PM
I just posted about this at PDArcade.
Maybe a hack developer will be generous enough to help us out!!

Massman82
04-18-2003, 06:09 PM
Originally posted by hansschmucker
The login-on-reply never works. It's just there to irritate inocent CliéSource users. Didn't you know that?

Of course I knew that...I have not tried it for a long time. I thought that the forum version changed and the problem was fixed...

(Would be nice though!)

hansschmucker
04-18-2003, 06:22 PM
Thanx a lot!
If somebody is able to write a CF driver without documentation, writing an input driver should be a breeze. Or at least not impossible =) . The PalmSDK should have some docs about how to use it. Probably not enough for a working driver, but maybe enough for looking up some basic concepts.

About the login-on-reply
You know that I knew, you knew, didn't you?

hansschmucker
04-18-2003, 07:31 PM
Good News:

yOyOYoo:
TG users luckily have the home and graffiti hardkeys, which just so happens to double as LEFT/RIGHT keys.

cbulock
04-18-2003, 07:48 PM
Originally posted by hansschmucker
Good News:

yOyOYoo:
TG users luckily have the home and graffiti hardkeys, which just so happens to double as LEFT/RIGHT keys.

Hopefully this means it won't be to hard to remap the buttons on other devices.

hansschmucker
04-18-2003, 07:52 PM
There is light at the end of the tunnel. And all that within one day. Shows how much Sega wants to bring Sonic to Clié.

GoldenTiger
04-18-2003, 08:03 PM
Let's start emailing makers of Okey, etc. guys... I'm going to look for input programs and msg the authors, plus post emails.

yOyOYoo
04-18-2003, 08:09 PM
the directional pads on the keyboard are terribly small, and I think playing sonic would be no fun using those little buttons...

hansschmucker
04-18-2003, 08:23 PM
_________________
|(H)_________(C)|
(S)|_______________|
|(M)_________(S)|
-----------------
_______(U)_______
(L)____(D)____(B)
__(R)_______(A)__



Standard Clié gamepad format

GoldenTiger
04-18-2003, 08:31 PM
What we need is Address/Datebook to be left and right, and up/down to be up/down. A and B are already taken care of.

tifosiv122
04-18-2003, 11:29 PM
Anyone try to use the code for colums and add it to modify sonic?

Erik

Glacialeye
04-19-2003, 02:44 AM
Well, making savefiles different for different ROMs IS actually possible. And not too hard, too :) That would mean you can have one savefile for each ROM you have...
I need only to change a bit the program I wrote...
The point is that I have no time to do it now, because I'm packing and I'll fly on holiday tomorrow.
So see you guys in a week... and I'll probably fix it :)
Hans: don't release the source code please, I only gave it to you as a proof that I was not joking/sending viruses/trying to hack your PC etc. :)

Byez :)

marciton
04-19-2003, 08:25 AM
maybe we can do something with virtual graphiti ?

http://www.cliesource.com/sdownload/index.php?op=showfiles&catid=18&sortby=date&sortorder=DESC

squish
04-19-2003, 09:02 AM
Great work on the converter tool, i've checked some 256kb gg games and they all work great (But offcourse you allready knew that ;-)

s_n_m
04-19-2003, 09:18 AM
Can someone help me out here? I'm on mac!

hansschmucker
04-19-2003, 07:52 PM
For Mac users: PWCPP is a Java applicatio and therefore runs well on MacOS. So patching should be no problem. However I'm not familiar with filesplitting tools on MacOS. You need to slice the patched PRC into three pieces:

Byte 0 to 180941
Byte 180942 to 443085
Byte 443086 to end

There are filesplitters for MacOS that can do that, I just don't know any names.

Now, you have to merge together into one file:
The first of the three resulting files + A GG Rom (256kb) of your choice + The third piece.

The result should be similar (A few features missing, but generally working) to one form Glacialeye's converter.

ardiri
04-21-2003, 04:16 PM
>> 04-18-2003 06:46 PM

it took so long?

http://www.palminfocenter.com/view_story.asp?ID=5232

we had this working on the 16th - and, its a *lot* easier process than doing this mess of patches! and, whats with the 256kb limitation? we have successfully got this working with 512kb rom images. tut tut. amateur hacking. surely, posting such a hack is both illegal in immoral (i am sure Sega are happy) - does this not come across your mind at all?

as for the key 'processing', it is quite easy to do.
its a very simple 4 byte patch - its easy to patch 68k code isn't it? what a shame there are not utilities to mess with the armlet portions though *g*

it was pretty cool to play bubble bobble and earthworm jim - but, the emulators really crappy. doesn't achieve the frame rate that is really needed to play these games with a decent quality factor. i guess, better luck next time.

s_n_m
04-21-2003, 04:30 PM
Originally posted by hansschmucker
For Mac users: PWCPP is a Java applicatio and therefore runs well on MacOS. So patching should be no problem. However I'm not familiar with filesplitting tools on MacOS. You need to slice the patched PRC into three pieces:

Byte 0 to 180941
Byte 180942 to 443085
Byte 443086 to end

There are filesplitters for MacOS that can do that, I just don't know any names.

Now, you have to merge together into one file:
The first of the three resulting files + A GG Rom (256kb) of your choice + The third piece.

The result should be similar (A few features missing, but generally working) to one form Glacialeye's converter.

Hmm...would you mind sending me the sonic game with the sound disabled? Then I will try modding the app.

hansschmucker
04-22-2003, 05:11 PM
Aaron, don't be so harsh on us. Of course it's amateur hacking. The aim was not to create a beautiful solution, but one that would work. And about the date. To be honest we only found out this program existed the very same day I opened this thread.
About the patches. They are not illegal as they are now. Sure, they swap a few bytes around, but they don't contain any code besides the CRC.
About immoral. I have to divide that into two portions:
1. Sound disabler: I can't find anything immoral here
2. AnyROM patch: Yes, you can argue about that. But we left Sonic's protection in place, so people have to buy from Sega if they want to use it. And we also pointed out, that people have to find out if any company still owns the right to a game before they use it. Or they have to buy it. That's all we can do.

About patching ARM code. No idea about it. I merely tested the little swap tool and wrote the documentation. You'll have to ask Glacialeye when he returns.

hansschmucker
04-22-2003, 05:16 PM
Originally posted by s_n_m


Hmm...would you mind sending me the sonic game with the sound disabled? Then I will try modding the app.

Now that would be illegal. But as I said before, PWCPP is written in Java, so you can use it straight away on OSX

GoldenTiger
04-22-2003, 05:36 PM
SNM check your email and PM's.

GoldenTiger
04-22-2003, 05:40 PM
Thanks! You've ensured I won't buy any software from your company with this post...

&nbsp;

Originally posted by ardiri
&gt;&gt; 04-18-2003 06:46 PM

it took so long?

http://www.palminfocenter.com/view_story.asp?ID=5232

we had this working on the 16th - and, its a *lot* easier process than doing this mess of patches! and, whats with the 256kb limitation? we have successfully got this working with 512kb rom images. tut tut. amateur hacking. surely, posting such a hack is both illegal in immoral (i am sure Sega are happy) - does this not come across your mind at all?

as for the key 'processing', it is quite easy to do.
its a very simple 4 byte patch - its easy to patch 68k code isn't it? what a shame there are not utilities to mess with the armlet portions though *g*

it was pretty cool to play bubble bobble and earthworm jim - but, the emulators really crappy. doesn't achieve the frame rate that is really needed to play these games with a decent quality factor. i guess, better luck next time.

yOyOYoo
04-22-2003, 05:48 PM
when are you guys gonna update Liberty!?

hansschmucker
04-22-2003, 06:00 PM
yOyOYoo: Use Bodo's Phoinix. It's at least as good as liberty and freeware!

GoldenTiger: Don't be to angry. You have to understand his position. He's a developer and people messing with such stuff can pose a threat to buisness. Let me just quote Yoda here:
Fear leads to anger, anger leads to hate, hate leads to great suffering.

Unregistered
04-22-2003, 06:42 PM
Can the authors of the XML and patcher post versions that work with the shining force download? This would enable us to patch in 512k roms.

hansschmucker
04-22-2003, 06:50 PM
He's on holiday right now, but I can try!
The Clie patch should work in any case

GoldenTiger
04-22-2003, 07:34 PM
Why doesn't he help us out instead of taunting us!?

hansschmucker
04-22-2003, 07:47 PM
I want to know what Max is thinking

.
..
...
!

That was a waste of money!

(I guess I'm the only person who can make any sense of this code, but what the heck)
Seriously though, he doesn't like the idea of people hacking their way through commercial software and eventually even requesting support for it. This situation has already occured several times and it's VERY unpleasent to deal with.

ardiri
04-23-2003, 02:00 AM
Originally posted by GoldenTiger
Why doesn't he help us out instead of taunting us!?
i did help. i told you it was possible *g*

but, since i am a developer - i am not about to just go around and tell you how to do these things (or, worse, give you the binaries). the binaries work fine here, and, i enjoy the games on my clie (i also have a T|T, so, i did it more for fun than necessity)

as for liberty - thats nearly 3 years old.
newer products to focus on dont you think? :)

ardiri
04-23-2003, 02:17 AM
ok, so you want help :) here goes.

Originally posted by hansschmucker
Aaron, don't be so harsh on us. Of course it's amateur hacking. The aim was not to create a beautiful solution, but one that would work.
ok, you have 10 ROMC resources (ROMC07c0 -> ROMC07c9). you just need to split your .gg rom file into relatively equal portions. so, for example:

128kb rom = 13500 bytes each
256kb rom = 27000 bytes each
512kb rom = 54000 bytes each

the last rom will not be the same size - but, thats no problem.
if you have developer tools installed, it can be as easy as this:


$ prc2bin palm_sonic.prc
>> patch code0001.bin to allow different roms (excercise for reader)
$ split -b XXXX.gg file.rom
$ mv xxa ROMC07d0.bin
$ mv xxb ROMC07d1.bin
$ mv xxc ROMC07d2.bin
$ mv xxd ROMC07d3.bin
$ mv xxe ROMC07d4.bin
$ mv xxf ROMC07d5.bin
$ mv xxg ROMC07d6.bin
$ mv xxh ROMC07d7.bin
$ mv xxi ROMC07d8.bin
$ mv xxj ROMC07d9.bin <-- rom images (10 chunks, 27000 @ 256Kb)
$ vi tAIN03e8.bin <-- change the application icon name
$ par c -a "resource" ../sega-{file}.prc "{file}" appl SEGA *.bin

that'll get the basic rom-replacement in order. but, nothing new there actually (we already knew that) - and, i think Glacialeye can update his program to handle different rom images without any issue.

next issue = key mapping

the application assumes that the d-pad is there, and, there are key codes that are specific to the d-pad controller, the ones we are interested in are:


#define keyBitNavLeft 0x01000000
#define keyBitNavRight 0x02000000
#define keyBitNavSelect 0x04000000
#define keyBitNavLRS 0x07000000

now, you just need to re-map those to the normal palm keys (not to forget to also disable their other function).. matching:


#define keyBitHard1 0x0008 // App #1
#define keyBitHard2 0x0010 // App #2
#define keyBitHard3 0x0020 // App #3
#define keyBitHard4 0x0040 // App #4

thats the tricky bit, mainly because the armlet does the KeyCurrentState() processing of the data. ideally, it would be nice to patch the 68k portion to swap keyBitHard2 with keyBitNavLeft and others, but, there isn't enough code space there to do so. so, you have to patch the armlet code (thats fun)

the third issue is the saved game stuff.

if you run many versions of the app, you'll notice that it'll ask you about save games, and, they are not unique. well, its an easy fix. the save game is stored in the preferences, and, you just need to edit the PrefSet/GetPreferences() API calls to use the creator id you used in the par command above. then, you'll have unique save games. *g*

Originally posted by hansschmucker
About the patches. They are not illegal as they are now. Sure, they swap a few bytes around, but they don't contain any code besides the CRC.
About immoral. I have to divide that into two portions:
1. Sound disabler: I can't find anything immoral here
2. AnyROM patch: Yes, you can argue about that. But we left Sonic's protection in place, so people have to buy from Sega if they want to use it. And we also pointed out, that people have to find out if any company still owns the right to a game before they use it. Or they have to buy it. That's all we can do.
have not heard of the DMCA?

anyhow, it was bad for sega not to support the clies - there is no excuse for that. and, its shame on them for not making the correct counter measures to prevent rom-replacement in the first place. currently, as it seems - the clie patch isn't really useful for anything, simply cause you cannot play the games on it. i am sure many people would love to see the sonic on their clie.

i have since deleted my modifications (but, i still remember how to do it) and continue on - the emulator isn't that good, it could have been done a lot better - but, it is all that is available right now. even if i had the binaries, i am not at liberty to make them available to anyone - i hope most of you can understand where i stand on that. sorry.

cbulock
04-23-2003, 03:13 AM
Originally posted by ardiri
have not heard of the DMCA?

I've heard of it. But what does it have to do with patching software? Unless the software is encrypted, I don't think your breaking the DMCA.

ardiri
04-23-2003, 03:19 AM
Originally posted by cbulock
I've heard of it. But what does it have to do with patching software? Unless the software is encrypted, I don't think your breaking the DMCA.
hmm.. all my software is encrypted - to make patching more difficult - but, i seriously doubt that has anything to do with it. the DMCA is also used to argue the distribution of mp3 files - how are audio tracks encrypted on a CD? they aren't.

patching software is illegal in any sense, the DMCA and other laws dont allow you to modify binaries after they are shipped from the developer/supplier. but anyhow - i am not a lawyer, so i am not going to argue this fact with you. they get paid pretty well to do that for us.

yOyOYoo
04-23-2003, 04:10 AM
Originally posted by ardiri

i did help. i told you it was possible *g*

but, since i am a developer - i am not about to just go around and tell you how to do these things (or, worse, give you the binaries). the binaries work fine here, and, i enjoy the games on my clie (i also have a T|T, so, i did it more for fun than necessity)

as for liberty - thats nearly 3 years old.
newer products to focus on dont you think? :)


Liberty may be 3 years old. But it was never a program that could fully blossom, because of the limitations on the palm os back then. Now, with palm units pushing 400mhz, as well as having stereo sound output, a new updated liberty that runs at full speed as well as full audio would be great. I'm sure a lot of people would jump on an ARM native Liberty.

Comeon Ardiri, you the man!!! I know you guys can do it!!

hansschmucker
04-23-2003, 04:41 AM
Thanx Aaron, that was quite a bit of info. Problem is, I can't do anything about the keys as I have no ARM disassembler. About the Rom file. We didn't split it since Sega only splited it in the resource declaration. The physical ROM is one huge block.

Oh and since you are already here. How are the current chances for an D3D or D3D2 SDK?

(I too would prefer editing on an official basis)

ardiri
04-23-2003, 05:45 AM
Originally posted by yOyOYoo
Liberty may be 3 years old. But it was never a program that could fully blossom, because of the limitations on the palm os back then. Now, with palm units pushing 400mhz, as well as having stereo sound output, a new updated liberty that runs at full speed as well as full audio would be great. I'm sure a lot of people would jump on an ARM native Liberty.

Comeon Ardiri, you the man!!! I know you guys can do it!!
mike and i have discussed it - and, it is on our to-do list (yes, we can write a kick-*** gameboy emu with ARM). *g* we pretty much have everything we need to do it, but time - we are working on a number of other 'better paid' projects right now.

if we were to release a new Liberty, it would be a new product, specifically only for the ARM devices - and, would support gameboy, gameboy color and - *maybe* gameboy advance. we have a cool project coming out soon - keep an eye out for it. we love emulation, thats all i can tell you.

ardiri
04-23-2003, 05:48 AM
Originally posted by hansschmucker
Thanx Aaron, that was quite a bit of info. Problem is, I can't do anything about the keys as I have no ARM disassembler. About the Rom file. We didn't split it since Sega only splited it in the resource declaration. The physical ROM is one huge block.
i played with the emulator for a bit on the day of release - figured out exactly how it worked *g* the rom has to be split in order to install to the unit. on a side note, you could also map the jogdial keys to the left/right as wel :) they exist on the clie and that would save messing around with the other key uses.

Originally posted by hansschmucker
Oh and since you are already here. How are the current chances for an D3D or D3D2 SDK? (I too would prefer editing on an official basis)
i know ivo is working on D3D and D3D2 a bit now - but, you may have better luck working with ivo direct to create some levels. :) maybe it is best feasible for us to work with you to bring a D3D implementation to the palm? its nice to make money *g*

nevarDeath
04-23-2003, 09:39 AM
Originally posted by cbulock


I've heard of it. But what does it have to do with patching software? Unless the software is encrypted, I don't think your breaking the DMCA.

no, the problem with the DMCA is that it's sooo broad, it was intended for digital music and video mainly, but 'any copyright circumvention devices' are illegal. Do you remember last year when someone figured out how to break the copy protection on (philips or sonys) copy protected CDs? They used a magic marker, and everyone joked about how those were illegal now. Even some of the senators that passed it are regretting it now....you should read 2600 to get good coverage on it, and pick up all of last years issues too: http://www.2600.com (don't go if you're at work, it is a 'hackers quarterly' but they're very political and not even like the horrible evil things you hear)

hansschmucker
04-23-2003, 10:35 AM
Does the millenium act apply to Europe. I honestly don't know, but generally we have our own copyright laws.

GoldenTiger
04-23-2003, 12:06 PM
No, it does not apply to Europe. It is an american law.

Hans, please check your PM's. I have the tools you need.

yOyOYoo
04-23-2003, 02:27 PM
OMG Megaman and Sonic the Hedgehog 2 on my CLIE! who coulda dreamed it?

btw the gameplay on the TG50 is absolutely horrible!

hansschmucker
04-23-2003, 02:58 PM
Goldentiger. Problem is, I'm no developer as I said counless times before. I have a basic understanding of how computers work, but that's not good enough for this job. Hell, if you tell me ARM is a little endian system I know that the bits are swapped some way, but that's about it. I merely wrote the documentation and tested some stuff. But anybody at all would need an ARM compatible disassembler, which I couldn't find anywhere on the pages you sent me links to. They are all for the 68k . Thanx for the effort, but I doubt it will be of any use. As far as my knowledge goes, I've looked through the file but couldn't find anything of value for editing the buttons. But I will have to find a good base converter anyway, before there's only a slight chance that I will find anything.

Unregistered
04-24-2003, 12:18 PM
I tried to follow ardiri's post. I got through everything without much problem with one exception. I can not seem to determine how to patch the code to allow for different roms. I tried opening the code0001.bin and looking for a clue as to where to edit it - no luck. I then tried to use the patcher on the file before I prc2bin'ed it. Still no luck. The rest of the process works fine, I am able to install the rebuilt app, but get an invalid rom message when I try to start it up.

Has anyone else figured out how to get this working?

Hans - did you have any luck updating the app that insert the roms?

hansschmucker
04-24-2003, 12:45 PM
Not yet, since all the ROM swapper currently does right now is phisically replace the ROM and various ids. To add support for resources of differing sizes, a complete prc header analysis would be in order. I'm not sure if it's worth the effort. Not before somebody got the key patch to work. Also the swapper was programmed by GlacialEye, since I have almost no idea about such stuff. But I guess my GFABasic knowledge would be enough to write and edit a simple console app in C.

GoldenTiger
04-24-2003, 01:54 PM
Originally posted by Unregistered
I tried to follow ardiri's post. I got through everything without much problem with one exception. I can not seem to determine how to patch the code to allow for different roms. I tried opening the code0001.bin and looking for a clue as to where to edit it - no luck. I then tried to use the patcher on the file before I prc2bin'ed it. Still no luck. The rest of the process works fine, I am able to install the rebuilt app, but get an invalid rom message when I try to start it up.

Has anyone else figured out how to get this working?

Hans - did you have any luck updating the app that insert the roms?

&nbsp;

Can you post the app :)?

Unregistered
04-24-2003, 03:26 PM
No one is going to post an app. Just information on how to do the modifications.

A 512k rom swapper would help me out in two ways. One, I borrowed a friends TT. Second, I am working with someone who might be able to help out with the key mapping. His current idea is a simple palm app that runs in the background and intercepts the calls.

So you know where and what to edit in the .bin file mentioned by ardiri?

GoldenTiger
04-24-2003, 03:39 PM
Can you make a PWCPP patch for it? And no, I'm sorry, but I don't.

hansschmucker
04-24-2003, 07:57 PM
Here's the anysize-don't-worry-rom-swapper.

It is written in YaBasic and uses Par and Prc2Bin. If you supply a patched file as source, resulting files WILL work. But I think you can patch the file afterwards as well.

What's not implemented yet, is a displayname changer, so it will currently always say "Sonic" until you rename it manually. This will get fixed soon.

Anyway, you can get the new Rom swapper at
http://hansschmucker.free.fr/gg/ReRom2.zip

GoldenTiger
04-24-2003, 08:02 PM
Originally posted by Unregistered
No one is going to post an app. Just information on how to do the modifications.

A 512k rom swapper would help me out in two ways. One, I borrowed a friends TT. Second, I am working with someone who might be able to help out with the key mapping. His current idea is a simple palm app that runs in the background and intercepts the calls.

So you know where and what to edit in the .bin file mentioned by ardiri?

Thanks a ton :). If your friend does that, please make sure to also make a way to still press start (perhaps jog-back for start, jog-press for select?). Your work is MUCH appreciated by everyone at cliesource, and though not many people are posting, you can tell by the thread views that MANY are watching and waiting for something such as you mention you're working on. See above also, Hans kindly posted the patcher you're looking for.

hansschmucker
04-24-2003, 08:35 PM
Minor update. Now the display name changes as well
[Link removed as per Sega's request.]

Tomorrow, I will include GlacialEyes patches directly into the Rom swapper . But it's too late right now. Good night

cbulock
04-25-2003, 12:31 AM
Hans and GlacialEyes, you guys are awesome! Good work!

yOyOYoo
04-25-2003, 01:50 AM
yay!

hansschmucker
04-25-2003, 07:24 AM
Meet the third edition. If you supply an unaltered version of the palm_sonic.prc file, it will apply the needed patches automatically. Beware, though! One changed byte and it will assume that the file has already been patched and continue just like version 2

[Link removed as per Sega's request.]

hansschmucker
04-25-2003, 08:10 AM
If you already have v2 installed, you can download this 2kb file:
[Link removed as per Sega's request.]
and extract it to the source directory, overwriting the old file.

hansschmucker
04-25-2003, 11:29 AM
4000 views. Come on guys, somebody has to know how disassemble ARM instructions...

tifosiv122
04-25-2003, 11:36 AM
Originally posted by hansschmucker
4000 views. Come on guys, somebody has to know how disassemble ARM instructions...

Meaning reading the code?
Provide me the code and it will be done

Erik

hansschmucker
04-25-2003, 06:25 PM
I mean looking for the instructions that Aaron posted and trying to replace them

there must be a place where there are all the lines, like
MV something,07000000

and we need to replace those

Glacialeye
04-27-2003, 02:59 PM
Baaah...
I leave everything for just one week and aaron does everything all by himself :) That's a shame :)

Mmm... I have some things to say...
1st. Tx aaron for the indications, although i had found out the 99% of the things you said before your post. Anyway, having done the patches and the tools in ~15 minutes, I could not go very deep into that.
2nd. Of course aaron has the right ARM developing tools like debuggers and stuff (wich I do not have...). I got a Linux ARM basic disassembler, but I have no linux boxes ready here... That means that I need to build one or find someone that does the disassembling for me :)
Anyway releasing a key remapping patch doesn't seem a bad thing here... You would only add Clies support too that game. If you really dislike XMLs (those are legal aren't they?) you can PM me one anyway :) Then some other (ahem...) good guy will finish a tool to do all the patchings automagically including names, icons, savegames, preferences, and all the other things a 68k patcher can easily fix :)
3rd. Tomorrow and the next few days I probably won't be around... but I promise I'll finish everything as soon as I can :)
4th. aaron: how hard is ARM assembler? (to code things I mean... not to patch) I'd like to learn it...

GoldenTiger
04-27-2003, 03:11 PM
Could Codewarrior disassemble the ARM code? I own a&nbsp;copy of it since I'm learning programming... if it does I can disassemble the code for you and send it off.

hansschmucker
04-27-2003, 03:56 PM
I don't think CW has a disassembler, as it's meant purely for 68k development and can only link GCC precompiled binaries.

Glacialeye. I will update my version of the patcher as often as possible. I know the source is kinda ugly, but it works. Changing resources will come soon.

However final exams are up for the next two weeks, so don't count on me working a lot on it during this time.

GoldenTiger
04-27-2003, 04:16 PM
NM.

GoldenTiger
04-27-2003, 04:30 PM
Originally posted by Unregistered
I tried to follow ardiri's post. I got through everything without much problem with one exception. I can not seem to determine how to patch the code to allow for different roms. I tried opening the code0001.bin and looking for a clue as to where to edit it - no luck. I then tried to use the patcher on the file before I prc2bin'ed it. Still no luck. The rest of the process works fine, I am able to install the rebuilt app, but get an invalid rom message when I try to start it up.

Has anyone else figured out how to get this working?

Hans - did you have any luck updating the app that insert the roms?

&nbsp;

Can you tell us the disassembler you used?

GoldenTiger
04-27-2003, 04:57 PM
Glacial/Hans: I found a disassembler for ARM code...

http://www.gumbley.demon.co.uk/disarm.html

The one problem is, it's in C code format and needs to be compiled before you can use it. Those are easy to find with google for free to use, so you're all set if you want to work on the emulator :). Thanks a ton for looking! It looks like it might be windows compatible...

GoldenTiger
04-27-2003, 06:43 PM
I found a disassembler in my codewarrior, but it disassembles to raw hex. Can you do anything with taht such as make it a C file or modify it?

Glacialeye
04-28-2003, 07:42 AM
GT: that disassembler is for EPOC... I'll try, but I don't think the port will be a very automatic thing :) Anyway it does disassemble only a very tiny number of instructins, I doubt that will be enough :(
Another thing: disassembling means creating a text file with all the ASM instructions (ASM, not C or any other language) starting from the binaries (or hex, whatever you like calling it). So CW offers no help at all.

ZeoBuzz
04-28-2003, 06:54 PM
BUMP!!!

Glacialeye
04-30-2003, 12:59 AM
I finally got an ARM disassembler... Now I have to begin working... When I have some free time of course :)

hansschmucker
04-30-2003, 08:16 AM
care to share?

ZeoBuzz
04-30-2003, 02:12 PM
Originally posted by Glacialeye
I finally got an ARM disassembler... Now I have to begin working... When I have some free time of course :)

woot woot!

GoldenTiger
04-30-2003, 02:13 PM
Awesome! Do you think you'll be able to do the needed changes?

GoldenTiger
04-30-2003, 08:43 PM
2 questions:

&nbsp;

1) Can you tell us where to get the disassembler so Hans and I can take a crack at it?

2) I doubt I can do it, so if you guys can, will you be making an XML patch?

TheSpies
04-30-2003, 09:04 PM
Originally posted by GoldenTiger
2 questions:

&nbsp;

1) Can you tell us where to get the disassembler so Hans and I can take a crack at it?

2) I doubt I can do it, so if you guys can, will you be making an XML patch?

If you doubt you can do it why do you want a disassembler to "take a crack at it"?

GoldenTiger
04-30-2003, 09:07 PM
So I can try.

TheSpies
04-30-2003, 09:17 PM
I have dabbled in assembly for my own purposes (mostly keyboard mapping and screen routines for the Poqet (anyone remember those?)), and unless you know what your doing you are wasting your time. But G and about 15 others i recognize on this board could make short work of it. It is to bad we could not get some of these people together.

GoldenTiger
04-30-2003, 09:21 PM
So who's working on it? I know Glacial is :) w00t, anyone else going to try?

Glacialeye
05-01-2003, 02:46 AM
It's a bit a problem, since no one that I know besides Ardiri has the necessary knowledge to do anything. Of course I'm still trying, but if I don't catch ardiri somewhere to have a chat it will be hard I think...
Anyway I already PM'd Hans about the disassembler I'm trying to use...

GoldenTiger
05-03-2003, 10:58 AM
Bump!

Glacialeye
05-04-2003, 03:52 AM
Well... The patch is done finally :)
For all this delay a big THANK YOU to Ardiri for all the wrong "hints"...

1)KeyCurrentState() is in the 68k code. Not in the ARMlet.
2)There is A LOT of space around to do the patch - no need to patch any ARMlet
3)Like every C programmer knows, there is no way to change definitions as they are simply not variables but immediates...

Anyway, here we go... That patch disables the sound and remaps the keys to let Sonic run fine on every OS5 Clie (I hope).
Use with PWCPP or PWPLite of course.
A Phyton script to do everything automagically is coming soon.
Hans: contact me on ICQ #147550281

edit: copy/paste does not work on this board... Nor attachments do... If anyone has a public ftp or something I'll upload the patch there. Will be in next xml anyway.

TheSpies
05-04-2003, 05:13 AM
Anxious to try it but i could not get the xml to import just said:

A SAXParseException occured!
The error is located at line: 1
The error message is: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be to low)

any ideas?

Glacialeye
05-04-2003, 05:30 AM
I need somewhere to upload to...

TheSpies
05-04-2003, 05:40 AM
I sent you a PM

TheSpies
05-04-2003, 06:01 AM
Well it patched ok, but i seem to have no way to start the game.

hansschmucker
05-04-2003, 06:01 AM
TheSpies: Glacialeye always writes Clié which is an invalid char for PWCPP. Just open the file in notepad and change Clié to Clie and it will work fine.

TheSpies
05-04-2003, 06:04 AM
yah i patched it fine, i just cant get any button to start the game.

Glacialeye
05-04-2003, 06:14 AM
thespies: read the xmls before patching. ALWAYS :)
hans: flush that damn pm box :)!

TheSpies
05-04-2003, 06:22 AM
DOH! I think i was a little bit eager, great work on that. Thanks for all the time spent on it. Too bad Sega couldna made it a bit smoother.

hansschmucker
05-04-2003, 06:44 AM
Glacialeye: FLUSHED!!!

hansschmucker
05-04-2003, 06:52 AM
Allright, here it is:
[Link removed as per Sega's request.]


All typos I found have been fixed =) and all special chars have been removed to enable PWCPP compatibility

GoldenTiger
05-04-2003, 11:49 AM
*cheers wildly*

AWESOME job to you both, hans and glacial!!

Massman82
05-04-2003, 12:10 PM
Great job! Just tested it and it works...:)

Is there any way to swap sound apis? (With the new ones just released by Sony? If so, then it would be as if the game was meant for the NX!)

hansschmucker
05-04-2003, 12:21 PM
I don't think this is possible. If the APIs had only different names, then yes, but since they actually have a different input format... couldn't think of a way that could be done in asm.

Glacialeye
05-04-2003, 01:00 PM
...especially if they are coded in arm and 68k together...
I mean: nothing's impossible but, if your name isn't Albert Einstein', you can find some things rather difficult. That's one of those :)

GoldenTiger
05-04-2003, 02:51 PM
Glacial, will you be working on a patch to let us save more than 1 title's save? Right now if I try 2 titles using the sonic base, it will say "ERROR: CANNOT SAVE GAME" if I try saving in any game but one.

arskelly
05-05-2003, 12:06 PM
What about using powerrun to keep the saves individually packaged when closing?

TheUltimate
05-05-2003, 01:59 PM
Hey I can not get any of the other GG Roms to work on the program? When I use ReRom it says live invalid size? Can u email me at hteasthope@yahoo.com. with more indpth instructions on how to convert the file for the clie... Thanks in advance!!

Doctorded
05-05-2003, 02:45 PM
Originally posted by arskelly
What about using powerrun to keep the saves individually packaged when closing?

Yeah same here?

hansschmucker
05-05-2003, 03:02 PM
No spaces inside the filename please, only simple alphanumeric expressions, plus you may use the - sign. So your filename should best look like NBAJam-TE.gg

TheUltimate
05-05-2003, 05:32 PM
Is there a way to change the Sonic Icon? So I dont have a bunch of Sonic Icons for each of the Game Gear Roms????

X Destruction
05-05-2003, 07:33 PM
AppIcon.

darhorn
05-05-2003, 08:34 PM
The problem I am having here is that when I run the game, I get an invalid game rom message..

since I am running this on my TT I havent applied the xml patch just tried rerom to replace the rom file..

has anyone noticed this?

thanks
Darrin

hansschmucker
05-05-2003, 08:59 PM
Yep, you need a compatibility patch. Get the alpha keypatch2 from the main thread, which includes a seperate compatibility patch, which you can use

darhorn
05-05-2003, 09:39 PM
that did it! thanks!

Darrin

Unregistered
05-06-2003, 08:04 PM
I have a TG50 and Sonic does work but i wonder is there any way to remap the keys so i can have different buttons for left and right? thanks in advance to anyone who can help

hansschmucker
05-06-2003, 08:19 PM
Read the thread in the news section

stevieboy
05-18-2003, 03:12 PM
This is Awesome!!
Only problem I have is that the clie is too fast. The emulation is too fast to make games playable. Is anyone else experiencing this? Does anyone have any ideas on how I can slow the emulation down?

UnReStRiCtEd
06-16-2003, 07:11 AM
use an overclocking program to underclock your cpu

TheSpies
06-16-2003, 12:08 PM
Originally posted by UnReStRiCtEd
use an overclocking program to underclock your cpu

There is no overclocking or underclocking program for the NX.

rob_squared
08-30-2003, 04:32 AM
There is now, too bad the program itself is gone.

TheSpies
09-01-2003, 11:46 PM
True, now we finally have one. I might have to give the game a second look.

lostether
09-02-2003, 01:33 AM
Originally posted by hansschmucker
No spaces inside the filename please, only simple alphanumeric expressions, plus you may use the - sign. So your filename should best look like NBAJam-TE.gg

Funny, I just converted a .gg rom that had spaces in the filename and it worked fine. I was pretty sure this hadn't been a problem in the past, so I checked it out.

DBZ-GOKU-
09-02-2003, 04:54 AM
Sorry to ask this question, but I have not been here or noticed this post until now. Do you know where I can get this Gamegear emulator? Does it run at a good speed?

PEG-SJ30
09-02-2003, 03:36 PM
No sound on my NX60.

rob_squared
09-03-2003, 12:29 AM
I wish someone could send me the rerom utility, I'm going to buy sonic anyway, but I just think to myself, I got hundreds of games when I bought Liberty and hundreds more when I bought NesEm.

rob (at) battl.com

rob_squared
09-03-2003, 06:01 AM
I mean, the program needs to be patched just to that it can RUN on clies. Sad, very sad. (mind you, I didn't have an NX when all of this started months ago.

ir803
10-29-2003, 08:40 AM
I have sonic working smooth as a very smooth thing on my TG50 the only problem is, I can't control anything or start the game.
do I need quick key or something similar to map keys or do I need to do something else, when I click on the options tab i only get sound options.

TheSpies
10-30-2003, 01:04 AM
there was a hack for the controls postrd here at one time but sega got into it and it was removed. not sure if its still floating around somewhere, im sure someone has it. i dont think i do anymore but will check through my junk later and see if i kept that or not.

Unregistered
10-30-2003, 02:33 AM
Can't believe sega removed it, those bastards.

Daniel Artes
10-30-2003, 05:24 AM
THEY DON;T THINK ABOUT ALL THE FANS OF SEGA GAMES!!! ALL PEOPLE THAT BUY THEIR SOFTWARE!! WE ARE THAT PPL!!! GRGGRGRRGRG THEY JUST DON'T CARE!

**** !! ****!!!

Daniel Artes
10-30-2003, 05:26 AM
Can someone send me the links or put that document in another website with some text that says "we are doing this for bla bla bla purposes" and all that shi* =)

Nate1749
10-30-2003, 07:32 PM
Daniel, I'm pretty sure that Sega has a specific contract with Palm and that's why they aren't supporting Sony devices (even though it would seem quite easy).

Unfortunately, I have also lost all links and files relating to this.... oh well, it just wasn't that much fun without sound .... which I find surprising since it's so cheesy anyways =*(

-Nate

rob_squared
10-30-2003, 08:43 PM
I have attempted to apply the key changes to the app with no luck. But if I get anything going I'll email you guys.

DO NOT EMAIL ME, I WILL EMAIL YOU.

ir803
10-31-2003, 03:39 AM
WOO HOO
You don't need any extra app !!!!!!!
at least not on the TG50.
when sonic asks you to press start. hold down the todo hard button then press the memo pad button this will start the game then you can use the two round buttons as left and right or date book and address book buttons (which is easier) as left and right buttons,
then todo or memo work as jump the the up/down scroll button works as look up and duck/roll.
I only have the demo game at the moment but I may very well buy the full version soon.

Unregistered
11-04-2003, 12:53 PM
how the hell do you get it to run smoothly on the tg50, it runs like kak on mine!!!

ir803
11-04-2003, 03:32 PM
got about 4 meg of ram spare and run it from the clie's ram it's really smooth, well as smooth as you expect as it's on a square format the screen moves around alot but the gaming is cool.

eyekyu
11-04-2003, 04:06 PM
anyone mind to email whatever is nessary to get sonic and other gg games working with my nx70v.

i would really appreciate it.

doof123@gmx.de

Daniel Artes
11-04-2003, 11:51 PM
email it to danielartes@msn.com please



i would really really appreciate it too.

Nate1749
11-05-2003, 01:43 AM
eyekyu: if you or anyone else can also email it to requests@ukbeats.com it would be greatly appreciated as well.

-Nate

cocksmoker
11-06-2003, 12:33 PM
send to guitman10@hotmail.com as well please.

thank you

luemas
07-15-2004, 02:25 PM
me too pleez ive been dieing to get some great games onto my nx70v :D
thanx in advance, sam

luemas_blain@hotmail.com