Patching Compiled STOS Programs to work with TOS 2.06

STOS-related stuff in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, exxos, Moderator Team

Patching Compiled STOS Programs to work with TOS 2.06

Postby Heavy Stylus » Fri Nov 02, 2007 10:41 am

Hi there,

I seem to remember there being a smal .PRG that you could chuck in an auto folder to get compiled STOS code to work with TOS 2.06, but is there any way to actually patch the programs themselves in a hex editor?

Any help/guidance would be appreciated.
http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
User avatar
Heavy Stylus
Atari Super Hero
Atari Super Hero
 
Posts: 776
Joined: Wed Dec 14, 2005 12:59 pm
Location: Exeter, UK

Postby Klapauzius » Fri Nov 02, 2007 10:48 am

Do you have a specific title in mind?

If so, I could have a go with it... :-)

I remember the cause for some (later) STOS games not working was that the game assumes TOS 2.x being a TOS 1.02 and overwriting TOS variables then...
http://www.klapauzius.net
http://dbug.kicks-ass.net/klaz

The tears are welling in my eyes again, I need twenty big buckets to catch them in, twenty pretty girls to carry them down, twenty deep holes to bury them in.
User avatar
Klapauzius
The Klaz
The Klaz
 
Posts: 4298
Joined: Sun Jul 04, 2004 7:55 am
Location: Bavaria

Postby Heavy Stylus » Fri Nov 02, 2007 11:03 am

Hi there,

Thanks for the offer, but I was wondering if it was something that I could learn myself.

I know there's a small program that GGN wrote (I think) that patches STOS code if you chuck it in an auto folder and load the game or program from disk (I think MUG told me abut this), but I was interested to find out how you'd go about 'bolting' this on to the front of an executable so that it is loaded before the STOS code.

Is there a 'one-rule-for-all' solution for this type of thing?
http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
User avatar
Heavy Stylus
Atari Super Hero
Atari Super Hero
 
Posts: 776
Joined: Wed Dec 14, 2005 12:59 pm
Location: Exeter, UK

Postby Heavy Stylus » Fri Nov 02, 2007 11:55 am

I think I've found what I'm looking for:

http://www.btinternet.com/~AnthonyJ/Ata ... fixer.html

I assume I can fix a compiled STOS prg with this to work with TOS 2.06...
http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
User avatar
Heavy Stylus
Atari Super Hero
Atari Super Hero
 
Posts: 776
Joined: Wed Dec 14, 2005 12:59 pm
Location: Exeter, UK

Postby Mug UK » Fri Nov 02, 2007 12:58 pm

GenFixer will work as it patches the .PRG file.

GGN's was a two-part fix - the one was a .PRG that went into the AUTO folder and was a v2 for the original fix he did which patched the original .PRG with a new header for the table that STOS uses in all it's compiled programs.

The other option would be to get someone to recompile the STOS compiler based on the source code that's on the ClickTeam website but include a larger table this time which would help with the uncompiled stuff out there.
Having sold 99.9% of my 1300+ collection of originals, I'm taking a bit of a back seat on the forum. I'll still do the front-of-house admin tasks as and when they're required but, for now, I'm enjoying my Xbox 360 time too much :)

Image
User avatar
Mug UK
Administrator
Administrator
 
Posts: 10986
Joined: Thu Apr 29, 2004 7:16 pm
Location: Heaton Chapel (UK)

Postby Heavy Stylus » Fri Nov 02, 2007 1:31 pm

Talking about uncompiled STOS stuff - my recent purchase has motivated one of my old friends to dig out his atari and HD from the attic at his parents house. He's got loads of programs on that he coded back in the day - database software, utils and even a couple of unreleased games...

He's completely forgotten how to use STOS though, so he might need someone to tidy them up a bit (if anyone wants them). I remember he completed a fairly decent snake game...

One of the games was a WIP pltformer we were working on. It was really rubbish (we were kids), but I'm looking forward to seeing it again because I did all the graphics for it! :D 8O

I'll post pictures if we get his kit up and running.
http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
User avatar
Heavy Stylus
Atari Super Hero
Atari Super Hero
 
Posts: 776
Joined: Wed Dec 14, 2005 12:59 pm
Location: Exeter, UK


Return to STOS

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests