Fixing MRC problem with MSX!

Page 1/2
| 2

By NYYRIKKI

Enlighted (6016)

NYYRIKKI's picture

05-04-2016, 17:50

We have a problem... We want to share information and code snippets here to each other, but we can't upload files here... We could use CODE-tags if they would work, but unfortunately they don't... Even simple MSX-BASIC programs tend to break here because they use characters that this forum just does not like... and this same problem has been here for 5 years.

There are ways to get over this... You can ie. use UUCODE or ie make the source available as HEX... How ever all of the options require either 3rd party internet service or an external program for decoding.

Now I have a solution for you!

You can use my new program to encode the files before you post them here! To keep things looking tidy, you can select parameters like source width. User does not need 3rd party programs for decoding, they can just boot up their MSX and run the text file they copied from here. Very easy!

Because I need to deliver this program to you, I have now encoded the program with it self.
Have fun!

10 'Create "FILE2BAS.BAS"
20 DEFINTA-Z:DIMD(415):FORI=0TO415:READD(I):NEXT:COPYDTO"FILE2BAS.BAS"
30 DATA9471,2688,14848,-6513,17952,19529,12869,16706,8275,24909,25956,16928
40 DATA14969,20000,22873,18770,19275,73,-32718,20,7314,1000,-21446,-3519,90
50 DATA-32698,30,8341,8358,8329,10254,14848,8329,15374,0,-32688,40,8359,15374,0
60 DATA-32678,50,8359,23054,0,-32651,60,8367,8325,8226,20041,21840,8276,18758
70 DATA17740,8250,15138,9294,-27392,18048,-20480,9294,-31358,21313,4643,19514
80 DATA10479,-20993,4648,-3799,10514,5116,4850,-19398,-23808,20608,-27392
90 DATA-23008,-30432,3616,50,-11776,23168,-10240,3872,14861,8849,20291,8782
100 DATA-197,10390,3343,15145,-20678,-31456,8736,21839,20564,21589,17952,19529
110 DATA14917,8736,20283,36,-32538,100,8368,9295,-32224,-25568,8371,21313,8992
120 DATA18,-32524,110,8341,8358,8329,14,0,-32480,120,8408,3343,-28358,9294,-197
130 DATA10390,3343,15145,-20678,-31456,8736,17952,20041,19521,20000,19777,14917
140 DATA8736,16955,36,-32429,130,18764,4079,15088,8408,3087,-28358,18764,-197
150 DATA10390,3343,15145,-20678,-31456,8736,18764,17742,19488,20037,18503,14932
160 DATA8736,19515,9289,29184,-29567,19456,-4279,-27393,19496,9289,-3543,14867
170 DATA8331,18764,4080,8222,8410,-32242,0,-32379,150,14993,8326,10308,10572
180 DATA-10694,9294,17625,-23552,-24447,-26880,21470,10276,10574,-17,10371
190 DATA-27649,20008,11305,-3566,20008,-4369,10513,41,-32294,170,20044,19695
200 DATA-3762,2575,-28358,4643,-8660,9299,19496,10574,8945,10016,29251,24933
210 DATA25972,8736,-15,10390,8719,-3799,9282,-15,10390,8719,41,-32222,180,20044
220 DATA19695,-3762,2575,-28358,4643,-8660,9299,19496,10574,8945,17440,17989
230 DATA20041,16724,23085,17466,19785,10308,-3806,21470,10276,10572,8945,14889
240 DATA20294,18770,12349,20308,-3806,21470,10276,10572,59,-32174,190,9299,8943
250 DATA17746,17473,10308,10569,20026,22597,14932,20291,22864,21572,8783,-15
260 DATA10390,8719,-3799,9282,-15,10390,8719,41,-32113,200,8331,18764,4080,8252
270 DATA8410,9105,11282,8738,19514,-4274,20044,4081,14858,9105,11282,21470
280 DATA10276,20044,15145,8226,15138,9299,-24262,9105,11282,14882,15138,9299
290 DATA-19200,-11646,19456,-4274,20044,4081,14858,9299,-8465,9299,19496,10574
300 DATA8945,17440,21569,8769,20026,-4276,4850,-14848,-9086,17408,-4316,21470
310 DATA10276,10308,10569,41,-32020,230,8331,-27905,21288,10532,-15,10386,9284
320 DATA-4567,18764,-9696,-28384,4643,21292,14884,8329,-11762,0,-31988,240,8331
330 DATA19534,-3345,8210,8410,19534,4591,14880,8353,9299,21487,-3804,11298,34
340 DATA-31975,250,9299,21487,-3804,9284,12544,1155,-29951,18720,19696,-9696
350 DATA18720,18927,4849,-30406,3616,220,15872,3715,-28415,4643,21292,14884,180,0
Login or register to post comments

By mars2000you

Enlighted (6428)

mars2000you's picture

05-04-2016, 18:27

I still don't understand why you don't simply upload the ZIPPED decoded basic file on your website, just like I did on my website :

www.msxblue.com/temp2/FILE2BAS.zip

No any wasted time with an encoded BASIC file, saved in ASCII format !

But both your solution and my solution have the same disadvantage : no any way to directly see the BASIC listing on MRC. In some cases, a discussion can indeed lead to suggestions to modify some lines of the BASIC program. And without the BASIC listing on the MRC screen, it's more difficult !

By meits

Scribe (6530)

meits's picture

05-04-2016, 18:53

Not everybody has his own website, so this works for everybody. You can c/p the code in openMSX and it works.
The disadvantage is indeed that you don't see the code in the topic, so there's no easy c/p'ing snippets into your ascii file you got opened next to the browser...

By NYYRIKKI

Enlighted (6016)

NYYRIKKI's picture

05-04-2016, 19:21

mars2000you wrote:

I still don't understand why you don't simply upload the ZIPPED decoded basic file on your website, just like I did on my website

I give you few hints:

mars2000you wrote:

Better use this link : http://downloadgamecast.altervista.org

mars2000you wrote:

More precisions :

- this tool requires MSX-DOS 2.2 or higher
- for the moment, the link to the OS file on the website is wrong - the correct link is :

http://www.msxtop.msxall.com/EdiosDownload/EdiOS00.zip

mars2000you wrote:

Game map available on MSX blue :

http://www.msxblue.com/?p=8753

It is very usual that by googling around you end up to this page and you see that there could be an example or similar... but it is not online anymore... or it has been moved... This solution keeps the file available as long as the forum is available.

By mars2000you

Enlighted (6428)

mars2000you's picture

05-04-2016, 19:33

Good examples, especially the last one Wink This map is always online, but has been transferred on my new site (MSX Eggerland) and is also available on MRC. But indeed it's almost impossible to correct all links in different forums !!!

By Manuel

Ascended (19270)

Manuel's picture

05-04-2016, 20:29

NYYRIKKI: why not hex notation, that should be a bit more compact... especially if you use no commas.

By NYYRIKKI

Enlighted (6016)

NYYRIKKI's picture

05-04-2016, 20:48

By snout

Ascended (15187)

snout's picture

05-04-2016, 20:55

Only NYYRIKKI ^_^

By Grauw

Ascended (10699)

Grauw's picture

05-04-2016, 21:16

Wonderful! ^_^

By tvalenca

Paladin (747)

tvalenca's picture

05-04-2016, 21:51

Manuel wrote:

NYYRIKKI: why not hex notation, that should be a bit more compact... especially if you use no commas.

If you use no commas and add "&H" to the number when READing DATA statements maybe you type less characters, but your program will use more RAM and "storage bytes" (ok, I can call file since you won't make a tape from this), as you are storing hexadecimal numbers as STRING. Thus, this will be harder to verify and correct typos. (no prolem at all if you just copy and paste)

By AxelStone

Prophet (3189)

AxelStone's picture

05-04-2016, 22:17

BAS files saved in ASCII format is not a bad way to share code since you can copy & paste it in Open MSX Catapult.

NYYRIKKI wrote:

LOL! LOL! LOL!

Page 1/2
| 2