Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions about data.txt
#1
My game when this loading gives an error for not finding a certain sprite. However this sprite in this folder and it worked smoothly before the last character I made. The game has limitations on the amount of id's? because when I remove one. dat even the data.txt file the game works normally. Please, help me
Reply
Thanks given by:
#2
1.9 has about a 100-item limit, but 2.0 I think has 500. You must be packing a lot of content for it to be breaking LF2 if you're on 2.0.
To live a life of power, you must have faith that what you believe is right, even if others tell you you're wrong.
The first thing you must do to live a life of power is to find courage. You must reach beyond the boundaries of time itself.
And to do that, all you need is the will to take that first step...
Ask not what others can do for you, but what you can do for others.
Reply
Thanks given by:
#3
I don't think it's about the id limit thing. I don't remember LF2 throwing the a "couldn't create art surface error" for that. The problem, I guess, is that you're running out of memory. You're loading a lot of screen sized sprites which result in the error. Can you confirm that? Is that your case?
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#4
(06-20-2014, 04:30 AM)Bat Tamer Wrote:  1.9 has about a 100-item limit, but 2.0 I think has 500. You must be packing a lot of content for it to be breaking LF2 if you're on 2.0.

I changed my executable by the 2.0a and he continues to give problems :/
Reply
Thanks given by:
#5
Well.. You did not answer my question, but since you were using a 1.9 exe and changing to 2.0 didn't work, I can be sure it is not an id limit problem.
Solution:
Make your bigger sprite grids smaller in size. You might have to go through all your sprite grids, redo them, replace the sprites in the smaller squares, and reset the centers, bdys, itrs in the .dat for all the grids you've clipped.

A faster solution is to just get the A-Grid Clipper: http://www.lf-empire.de/forum/showthread.php?tid=8902
It is still going to take a while, specially if you're going to clip the sprites of the whole mod, but it is 1000x faster than if you would do it manually. Just place all your .dat files and sprites in the "input" folder, run the program, wait until it's done, and copy all the new generated .dats and sprites in the "output" folder to your mod.

[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#6
(06-20-2014, 10:31 AM)A-MAN Wrote:  I don't think it's about the id limit thing. I don't remember LF2 throwing the a "couldn't create art surface error" for that. The problem, I guess, is that you're running out of memory. You're loading a lot of screen sized sprites which result in the error. Can you confirm that? Is that your case?

Yes, I use giant tables! Sorry for not having answered before
Reply
Thanks given by:
#7
(06-21-2014, 05:12 PM)TheRoot Wrote:  
(06-20-2014, 10:31 AM)A-MAN Wrote:  I don't think it's about the id limit thing. I don't remember LF2 throwing the a "couldn't create art surface error" for that. The problem, I guess, is that you're running out of memory. You're loading a lot of screen sized sprites which result in the error. Can you confirm that? Is that your case?

Yes, I use giant tables! Sorry for not having answered before
Then I can say that the A-GC will 100% fix your problem. Good luck.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)