VOGONS


First post, by labrat256

User metadata
Rank Newbie
Rank
Newbie

Hello

I'm currently playing around with the android port of DosBox and whilst I'm able to play all other games, I'm having a problem getting Theme Hospital to work. Every time I try to run it, I get the "Could not allocate 4900000 Bytes" error. Having upped the available amount of memory in dosbox.conf, this wasn't fixed.

I know Android is still in beta, and I dont think its supported yet. As such, I just want to ask what is likely to cause the same error in PC DosBox?

Thanks,
Labrat256

Reply 2 of 11, by labrat256

User metadata
Rank Newbie
Rank
Newbie

Nope, it doesn't, it runs fine! I know that I won't really get any help with Android on here, I'm just wondering what might cause the same "Could not allocate * Bytes" error in normal DosBox, with the hope that understanding what causes the error in DosBox will help me fix it.

Thanks,
Labrat256

Reply 3 of 11, by Xelasarg

User metadata
Rank Member
Rank
Member

Which Android port? There are at least 5 out there, and only two of them are being (more or less) maintained (AnDOSBox and aDOSBox).

"What's a paladin?!"

Reply 4 of 11, by labrat256

User metadata
Rank Newbie
Rank
Newbie

I'm using aDosBox. Whilst it is maintained, its not supported anywhere, and its interesting to try and figure out the problems myself! So am I right in assuming that nobody using DosBox on a PC or other device has received this error message?

Thanks,
Labrat256

Reply 5 of 11, by Xelasarg

User metadata
Rank Member
Rank
Member

Are you using an original version or a downloaded one? I only have the demo, and it runs with both ports (unplayably slow in aDOSBox though, I'd suggest AnDOSBox anyway).

"What's a paladin?!"

Reply 6 of 11, by labrat256

User metadata
Rank Newbie
Rank
Newbie

Due to the fact that AnDOSBox are trying to charge for me to have the program, I'm actually avoiding it. I'm dead against people charging for the use of GPL code. To that end, I'd like to try to support aDOSBox.

Its actually the full game of Theme Hospital. I own the original CD (somewhere) and ripped it a couple of years ago to play in DOSBox, which I did with no problems. I'm now getting around to testing more things, I'll see if any other more ram-intensive games have similar problems. Next to test, Dune II...

Thanks,
Labrat256

Reply 7 of 11, by Xelasarg

User metadata
Rank Member
Rank
Member
labrat256 wrote:

Due to the fact that AnDOSBox are trying to charge for me to have the program, I'm actually avoiding it. I'm dead against people charging for the use of GPL code. To that end, I'd like to try to support aDOSBox.

Yes, that discussion filled another thread not long ago... 😊
Sorry I can't help you with this one, but I don't own the game and I don't support warez. 😉
Have you tried other free ports (lubomyr's DOSBox at anddev.at.ua or Droiddos)?

"What's a paladin?!"

Reply 8 of 11, by sliderider

User metadata
Rank l33t++
Rank
l33t++
labrat256 wrote:
Due to the fact that AnDOSBox are trying to charge for me to have the program, I'm actually avoiding it. I'm dead against people […]
Show full quote

Due to the fact that AnDOSBox are trying to charge for me to have the program, I'm actually avoiding it. I'm dead against people charging for the use of GPL code. To that end, I'd like to try to support aDOSBox.

Its actually the full game of Theme Hospital. I own the original CD (somewhere) and ripped it a couple of years ago to play in DOSBox, which I did with no problems. I'm now getting around to testing more things, I'll see if any other more ram-intensive games have similar problems. Next to test, Dune II...

Thanks,
Labrat256

Can they do that? Incorporating someone else's code into a commercially sold program sounds a little bit illegal to me, even if the code is GPL. They say on their website that they are only charging you for their own code, but since their code is useless without the DOSBox code they really are charging you for the DOSBox code.

Reply 9 of 11, by labrat256

User metadata
Rank Newbie
Rank
Newbie
Xelasarg wrote:

Yes, that discussion filled another thread not long ago... 😊
Sorry I can't help you with this one, but I don't own the game and I don't support warez. 😉
Have you tried other free ports (lubomyr's DOSBox at anddev.at.ua or Droiddos)?

I noticed there was, and you mentioned that the reason you went with AnDOSBox was the virtual keyboard support. The version of aDOSBox I'm using though has a reasonable mouse and a pretty good virtual keyboard, so I'm happy to play on it! It also has a nice (removable) virtual games control similar to Android/iOS (S)NES emulators which I'm finding really useful.

I've not actually used another DOSBox port, I went with aDOSBox due to the maintenance of the code. Having said that, my reason for trying to get it to run on aDOSBox is more about fiddling and fixing, and possibly helping to contribute a fix. TBH, I've played Theme Hospital many times before and if I really want to, desktop DOSBox does the job just fine.

sliderider wrote:

Can they do that? Incorporating someone else's code into a commercially sold program sounds a little bit illegal to me, even if the code is GPL. They say on their website that they are only charging you for their own code, but since their code is useless without the DOSBox code they really are charging you for the DOSBox code.

They are legally allowed under the GNU GPL to charge for providing you with the program. For example, if I burned a GPL program to a CD for you and gave it to you, I could charge you for the CD, despite the fact the program is free. Under the same rules I would actually be well within my rights to then redistribute the software they charged money for considering its a derivative work and thus must be licensed under the same GPL. I may very well do that!

If you're interested in the legalities of it, its actually quite nicely cleared up in the GPL FAQ, seen at http://www.gnu.org/licenses/gpl-faq.html#Does … llowDownloadFee.

Thanks,
Labrat256

Reply 11 of 11, by boodschap

User metadata
Rank Newbie
Rank
Newbie

There's not enough memory allocated. You can change it in the preferences. To get the preferences changed do this:

Inside DOSBox type:
"mount d /data/data/org.hystudio.android.dosbox"
"d:"
"cd files"
"cd dosbox~1"
"copy *.* c:"

now edit dosbox~1.con in notepad/teksteditor
search for mem, there's 8mb allocated, change the value to 16

Start DOSBox, mount D: to same location as earlier: "mount d /data/data/org.hystudio.android.dosbox"
then:
"c:"
"copy dosbox.con d:\files\dosbox~1"

reboot DOSbox