Page 1 of 1

Game crashes when too many items are generated in the game

Posted: Fri Sep 01, 2023 4:54 am
by tavvva
Hello. I'm playing one of the custom RTC based dungeons and got in a state when too many items are generated and the game crashes due to that. My last save demonstrates the problem .. When I either kill the rockpile producing 4 stones or cast zokathra 4 times, the engine goes down. I expect there's a static array of items declared in the code and there's no check for reaching the maximum. Would it be possible to allocate the array dynamicaly or at least make the size configurable in the config.txt ? Thank you

Re: Game crashes when too many items are generated in the game

Posted: Fri Sep 01, 2023 9:06 am
by Gambit37
Ah that's a shame. No-one here has the source code to RTC so it's not possible to make any changes to fix that bug unfortunately. The original author of RTC stopped working on it 15 years ago. I think the best you could do would be start the game again and try and minimise the amount of actions you make that generate new items.

Re: Game crashes when too many items are generated in the game

Posted: Sun Sep 03, 2023 8:55 pm
by Cycl0ne
yes its a shame he didnt opensource it. Another option could be, take the editor and tell the rockpille to generate only one or 0 stones?

Re: Game crashes when too many items are generated in the game

Posted: Wed Sep 06, 2023 9:08 am
by tavvva
Well, I tried to contact George via e-mail a week ago, asking him to release the source code under a suitable open-source license, but got no response. It's such a pity, since RTC looks like one of the best DM clones ever made. Unfortunately it has few annoying bugs and this one is the worst. I loaded one of the older saves and started collecting things from the ground and selling them in the shops to keep the game alive. I'm playing the dungeon called "Down" and fortunately almost everything can be sold there, so ... a workaround exists :]

Re: Game crashes when too many items are generated in the game

Posted: Wed Sep 06, 2023 9:14 am
by tavvva
Has anyone tried to do a reverse-engineering of the RTC file format? I would write the engine from scratch, but analysing the file format could take ages and it makes no sense to build a new engine with no support for the RTC dungeons :/

Re: Game crashes when too many items are generated in the game

Posted: Sat Sep 09, 2023 11:00 am
by tavvva
Cycl0ne wrote: Sun Sep 03, 2023 8:55 pm yes its a shame he didnt opensource it. Another option could be, take the editor and tell the rockpille to generate only one or 0 stones?
Well ... the editor only eats .TXT files and doesn't accept the .RTC file. Is there any way how to edit .RTC ?

Re: Game crashes when too many items are generated in the game

Posted: Sun Sep 10, 2023 9:16 pm
by Gambit37
I recall there was a weird hack where it's possible to open . RTC files in the editor, but I don't think they can be saved back out as .TXT files.