Little Fighter Empire - Forums
Shutting down when Random is selected - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [1.9/1.9c] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=17)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=19)
+---- Thread: Shutting down when Random is selected (/showthread.php?tid=2127)



Shutting down when Random is selected - NocturneSama - 02-17-2009

Good evening folks, here i am trying to solve a problem which appeared to me while i was mading my LF2 Mod.

Since i've removed all the original chars from the game and placed my own chars (only 2 actually, but i'm planning to put more 7-8), the Random choice in the Character Select Screen simply makes the game shut down, without warnings, error messages or anything else.
When i put back the original chars and keep my own chars, the Random function works properly.

What must i do?!

Portuguese Version / Versão em Português



RE: Shutting down when Random is selected - Boop - 02-18-2009

It's because random doesn't have enough choices... Just add "dummy" characters (add the same character multiple times or something). You need a minimum of 8 characters to ensure it never crashes.


RE: Shutting down when Random is selected - NocturneSama - 02-18-2009

Thanks so much Lord Silva! You really saved my life =D

Btw, i have 2 little questions:

1 - There's anyway to change this "minimum of 8 characters" via Hex?
2 - Are you brazillian?


RE: Shutting down when Random is selected - Boop - 02-18-2009

1)Random is coded in such a way to ensure that people won't get the same character twice in a row, and 2 people won't have the same character. It is some complex algorithm which I can't be bothered understanding + I don't see a point for it.

2)No