Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Out of Memory - Help!  (Read 4139 times)

0 Members and 2 Guests are viewing this topic.

highrise

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Out of Memory - Help!
« on: July 16, 2010, 02:38:00 PM »

hi guys

many years ago I co-wrote an editor for Championship Manager in Amos Pro, called CMEd. A small group of avid fans of CM have asked that I look at updating the editor so it can be used to bring modern stats into the game. So I said I'd take a look. But I've got a problem.

I successfully connected my old Amiga Hard Drive to my PC, and booted up through WINUAE. Everything seemed fine, and I was able to load Amos Professional. However, when I went to load my source code, it told me the text buffer was not large enough, so I clicked 'yes' to automatically enlarging it. When it then tried to load it I got 'out of memory'. I have tried adding the maximum of both chip and fast memory to the emulator but with no success. Unfortunately my real Amiga is refusing to power up just now so this is my main hope.

The source code for this is freely available as long as noone passes it off as their own so I have attached it here to see if a helpful soul might like to see if they can get it to load up on their machine and let me know how they got on.



Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Out of Memory - Help!
« Reply #1 on: July 16, 2010, 05:59:34 PM »

I've tried loading it with EUAE on the Mac.  The closest I got to viewing it was when I selected "block all" from the menu.  It wouldn't highlight more than the first line of code though.  It doesn't seem to be an emulator bug.  Perhaps your file is corrupted.   :(
Logged

highrise

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Out of Memory - Help!
« Reply #2 on: July 16, 2010, 09:31:24 PM »

thanks for trying. It was a while ago, but I compiled it into an executable and it was ok. I'm trying compiling it in the emulator now but it seems to get a bit stuck - if it's not too much trouble, it would be great if you could try compiling it also. If anyone has a real amiga they can test this on it would be much appreciated!

thanks
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: Out of Memory - Help!
« Reply #3 on: July 17, 2010, 06:42:46 PM »

Howdi I managed to open it - For some reason using Merge ASCII even though it doesnt seem to be a ASCII file
I then saved it back as an .AMOS file and attached it below
 :( It seems to get stuck on the Testing part unless it just takes a VERY long time? -It a big bit of code
Open it up have a look -let us know what you think
« Last Edit: July 17, 2010, 06:49:17 PM by BooBoo »
Logged

highrise

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Out of Memory - Help!
« Reply #4 on: July 19, 2010, 10:29:03 AM »

hey thanks! I can load it too, but it won't test / run or compile, not through the emulator anyway.

I've now got the source in ascii though so I can probably work on it. Thanks again.

« Last Edit: July 19, 2010, 10:37:53 AM by highrise »
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: Out of Memory - Help!
« Reply #5 on: July 19, 2010, 12:10:21 PM »

Cool thats good news - heres the file I made from converting to ASCII then back again
You should be able to test this - But not compile the source seems incomplete your have to have a look
Good Luck
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Out of Memory - Help!
« Reply #6 on: July 19, 2010, 10:29:18 PM »

If you have trouble running something from the source, check if it is expecting to have a memory bank stored with the code in the .AMOS file.
Logged

highrise

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Out of Memory - Help!
« Reply #7 on: July 22, 2010, 11:33:45 AM »

hey guys

just my luck - the part of the code which I really need is right near the end and didn't load using the 'merge ascii' trick. I don't think the file is corrupt and I even have a back up, it just seems to be a memory issue.

how do I check the memory banks? I don't suppose someone could try loading this into a real amiga could they?
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: Out of Memory - Help!
« Reply #8 on: July 22, 2010, 10:56:51 PM »

hey guys

just my luck - the part of the code which I really need is right near the end and didn't load using the 'merge ascii' trick. I don't think the file is corrupt and I even have a back up, it just seems to be a memory issue.

how do I check the memory banks? I don't suppose someone could try loading this into a real amiga could they?
Ill try and give it ago -but not sure when on my A1200 unless someone beats me to it.
Youve tried both the file and the back up?
Did you find any older versions on your old HD? what about .bak files?
Logged

highrise

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Out of Memory - Help!
« Reply #9 on: July 23, 2010, 04:59:23 AM »

yes, I have a .bak file I can post if you have no luck with that. However, the guy who I worked on this with has been in touch and I think he might have some working source code :)
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: Out of Memory - Help!
« Reply #10 on: July 23, 2010, 07:34:22 AM »

yes, I have a .bak file I can post if you have no luck with that. However, the guy who I worked on this with has been in touch and I think he might have some working source code :)

Thats good news im sure the guys over at EAB will be pleased :)
The .bak file you can try opening as a normal .AMOS file -Probably not needed now.
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Out of Memory - Help!
« Reply #11 on: July 27, 2010, 04:39:52 PM »

hey guys

just my luck - the part of the code which I really need is right near the end and didn't load using the 'merge ascii' trick. I don't think the file is corrupt and I even have a back up, it just seems to be a memory issue.

The very last line 7975 is incomplete, example below:

REQUEST["Sorry","This


I was able to load the very first file you posted. I did get the "Out of memory" error, but switching to Direct mode and typing "Unpack 4 To 0" brought up the Championship Manager Editor image. So I think the banks are ok.
The code is incomplete for some strange reason - I was able to load it and list it the slow way (5 hours slow) by going down a line and adding a space at the end of each line and pressing down again. AMOS recognised the line (including the code from the file) and allowed me to proceed down to line 3. Repeat ad nauseum (replacing space with the apostrophe on lines where there was no code), and 5 hours later I got to the last line (7975).
My guess is that when you last saved it you accidentally deleted the code from the end, or possibly an AMOS glitch, which caused the code to be saved incomplete. Banks are stored at the end of an .AMOS file (and the same is true with compiled programs too) so the file you uploaded was NOT corrupt.

FYI: AMOS happily saves invalid code. So if you type "Screen If Sprite Get" (which is 3 commands, without the correct syntax) and then attempt to save it, AMOS will let you!! It will only pick up the syntax glitch when you hit test it (F2) or try to run it (F1).


Regards,
Lonewolf10

Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022