Page 1 of 1

Memory usage issue

Posted: Sun Jun 09, 2013 10:34 pm
by Mykos
I just recently installed DLE-XP and thought I'd try making up some levels. I used to use dmb2 back in the day and so far the level building has been great. The issue I'm having is that for some reason it won't play in D2X-XL. I can play any other level just fine, but when I load a tiny 16 block test level it says "Can't load level: Not enough memory". The file size on the .hog and .mn2 files is correspondingly small (16kb vs d2x.hog which is 4.2mb).

Has anyone else had this issue ? Is there a simple setting or fix that I'm missing that would make the level somehow take more memory ?

Any help would be greatly appreciated.

Re: Memory usage issue

Posted: Sun Jun 09, 2013 11:54 pm
by Sapphire Wolf
Please create your account at sourceforge.net and post your issue within this link:
http://sourceforge.net/p/d2x-xl/dle-xp/?source=navbar

Re: Memory usage issue

Posted: Mon Jun 10, 2013 1:07 am
by Mykos
Alright, done. I attached the mission I used to test there, but all I've made do the same thing.

Re: Memory usage issue

Posted: Mon Jun 10, 2013 2:17 am
by Pumo
Oh yeah, I know of that error. That issue happens when your level doesn't has any light source on it.

As D2X-XL (unlike original D2) calculates lighting while loading the level (specially on Standard light quality and above), it may need to find a light source on the level to have something to calculate.

Just by putting a single lamp or lava wall or any other light emitter texture, you can prevent that error from happening.

Re: Memory usage issue

Posted: Mon Jun 10, 2013 2:51 am
by Mykos
Oh, fantastic. I knew it was going to be something trivial and dumb like that. It works great now that I put in a light.

I usually do the whole framework first before I do any textures so I wouldn't have found it out myself before I gave up in frustration, thank you. I'll close the ticket on sourceforge as well.

Re: Memory usage issue

Posted: Mon Jun 10, 2013 4:19 am
by Hawkins
Makes a bit sense even though it's unintended behaviour: unless you put lightsources (manual vertex lighting won't work in D2X-XL lightmap calc) how can you really test a level you cannot really see in. Still, maybe a warning should prompt the user upon saving such a level.

Re: Memory usage issue

Posted: Mon Jun 10, 2013 7:43 am
by karx11erx
That's weird, but a good hint for bug fixing.