Very Weird Randomize Bug - 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: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11) +--- Thread: Very Weird Randomize Bug (/showthread.php?tid=8795) |
Very Weird Randomize Bug - Rhino.Freak - 06-29-2013 so guys Im working on a mod and theres a problem I noticed that happens everytime.. so what happens is, whenever I pick random character with some random opponents, after the match is over, when I click on randomize, the first random character gets randomized to the first character in my data.txt, (id: 30 character in this case, which should not even appear without adding cheatcode), and when I randomize after that the first 2 random characters in the character selection screen always turn out to be same, its pretty weird and I need some help, as far as I remember there's nothing that I changed with the exe except of some design.. HELP NEEDED! RE: Very Weird Randomize Bug - empirefantasy - 06-29-2013 usually id:0 is the first in the list. That makes random function work properly. So go and add template (or another id: 0) in the first line. RE: Very Weird Randomize Bug - The Lost Global Mod - 06-29-2013 to confirm, you could always try to start the game with a non-modified exe. you can get the exe only here btw, lf2 2.0a files RE: Very Weird Randomize Bug - Rhino.Freak - 06-30-2013 well I tried both the things but the bug remains as it is.. when I added template, the randomize became template and the same bug.. tried with the original lf2 exe too and still same bug.. need help RE: Very Weird Randomize Bug - empirefantasy - 06-30-2013 why dont you show us your data file? that would be a very good way to help you. RE: Very Weird Randomize Bug - Rhino.Freak - 06-30-2013 Code: <object> this is it for now .. RE: Very Weird Randomize Bug - Silverthorn - 06-30-2013 If I'm not mistaken, the first entry of data.txt is always displayed, no matter which id you give it. That's for that. Regarding the randomizing.... (06-29-2013, 01:57 PM)rhino.freak Wrote: as far as I remember there's nothing that I changed with the exe except of some design..Have you paid attention to the byte-sizes of the bitmaps that were replaced? If they do not match, then the addresses of certain functions of lf2 might be different. That could explain why the randomizer is borked. This applies for anything and is not limited to bitmaps only. If you remove or add a single byte into the exe, the implications can range from "no effect" up to "exe does not even start". Do you start anything else with the exe? For example, some sort of DLL or any "unrandomizer"? edit: and follow Reaper's advice Just add a couple dummy-lines to check if the randomizer then works. RE: Very Weird Randomize Bug - Reaper - 06-30-2013 IIRC the randomizer goes bonkers if you have too few characters to choose from (less than 10?). If I take a couple of the original heroes out of data.txt I get the same error. RE: Very Weird Randomize Bug - Rhino.Freak - 06-30-2013 @blue pheonix : well I did try to use original lf2, but it didnt work.. @reaper: i'll add more characters and report back, most probably it'll work EDIT : Added more characters and randomize working fine! thanx fellas.. topic is SOLVED! xD |