Old Star Trek game, italian language, bugfixed!

Page 3/3
1 | 2 |

By Emily82

Rookie (28)

Emily82's picture

07-07-2019, 22:42

Here it is the cassette version with less strict checking
https://drive.google.com/file/d/1b3cjRVRZN7M2qUV060u1naAuB8gRJyZj/view

And here the dsk version of game, both ascii and tokenized format.

https://drive.google.com/file/d/1tqKaM2FnU-19m1bDAjTwmWejQNIkvRw3/view

Remember to hold CTRL or memory will not be enough.

By Manuel

Ascended (15815)

Manuel's picture

07-07-2019, 22:47

I'm not really sure if there are modern tools that can do it. I do remember some old tools like REM SPACE KILLER, see MSX Computer Magazine 4 or SpcKil in issue 29 (https://www.msxcomputermagazine.nl/archief/msxdos-29/). But the former doesn't seem to work very well on MSX2 and the latter doesn't seem to kill REMs.

You can of course also first remove all REM lines by hand. Easy and will save a few hundred bytes already.
Then perhaps some spaces, but that will not save a lot (there aren't that many).

There are also some constructions in the code that could be done shorter. Here's some things I came up with by taking a very quick look:
- the planet definitions could be compressed. See lines 7210-7270. All you need to know is how many planets there are of each type, then the repetition of the name could be removed. But I'm not sure if the code that will be needed to handle that will be actually shorter than what it removes :) (It will eliminate the typos there...)
- The sprite definitions could be done differently by using DATA lines and a loop to compile them. Saves a lot of CHR$ repetitions (lines 6530-6930)
- I think lines 3120-3190 could be replaced with an ON F GOTO construction.
- There are many wait loops. They could be replaced with specific or generic subroutines.

By Emily82

Rookie (28)

Emily82's picture

07-07-2019, 22:51

Thanks alot for your suggestions, considering i saved the code also as pure ascii to floppy disk, i could take advantage of my linux editor find-replace tools to edit the code instead of using internal basic editor.

By Manuel

Ascended (15815)

Manuel's picture

07-07-2019, 23:26

I saved it to ascii as well to inspect the code on Linux Smile But there are some characters used above ASCII 128, so be careful.

Try it on MSX or emulator after each step....

By Emily82

Rookie (28)

Emily82's picture

07-07-2019, 23:32

Yes, im working on it its just long but i already saved alot of space Smile

By Emily82

Rookie (28)

Emily82's picture

08-07-2019, 04:11

Wow it worked alot, now on msx2 there is 3.6k in excess and in msx1 7k!!
Here it is the cassette version
https://drive.google.com/file/d/1X1ogUz9wrqj3RyLLC_gsKhAzmqybkxsk/view?usp=sharing

And here the floppy disk image with original basic code without all my optimizations in ascii format and the optimized one plus the tokenized form (optimized)

https://drive.google.com/file/d/1ajTELESvga4aQvyXM1hs2OQB4MzET2YD/view?usp=sharing

Now guys there is no more need to worry about CTRL or SHIFT key, this version works on all msx.

By alexito

Hero (555)

alexito's picture

08-07-2019, 09:00

Got it. Thanks.

By Manuel

Ascended (15815)

Manuel's picture

08-07-2019, 09:11

Great job! I'll check it out later.

Page 3/3
1 | 2 |